Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump to 15.2.4 #6

Open
wants to merge 108 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
108 commits
Select commit Hold shift + click to select a range
49af799
chore: update dependency babel-plugin-istanbul to v7
renovate[bot] Jul 5, 2024
5cfe484
chore: update dependency puppeteer to v23
renovate[bot] Aug 8, 2024
e6559b2
chore: change typescript imports to use verbatim module syntax (#927)
LoaderB0T Aug 20, 2024
111929f
chore(CHANGELOG): update to v14.9.0
nikku Aug 20, 2024
7c90d44
14.9.0
nikku Aug 20, 2024
7d41f25
feat: search improvements
philippfromme Aug 28, 2024
5312291
fix: do not restore cached when closing on click outside
philippfromme Sep 10, 2024
b6ee0d5
chore: reduce padding for search result scrolling into view
philippfromme Sep 10, 2024
efbedf8
chore(CHANGELOG): update to v14.10.0
nikku Sep 12, 2024
b2c5c58
14.10.0
nikku Sep 12, 2024
d7b6d91
chore(popup-menu): disable spellcheck
philippfromme Jun 5, 2024
52e5899
feat: add search feature
philippfromme Jul 18, 2024
fe2e90e
chore(CHANGELOG): update to v14.11.0
nikku Sep 13, 2024
8c452f0
14.11.0
nikku Sep 13, 2024
2ce8808
chore: unbuild search integration in popup menu
nikku Sep 23, 2024
61597f0
chore(CHANGELOG): update to v14.11.1
nikku Sep 23, 2024
6a99532
14.11.1
nikku Sep 23, 2024
cefd9e1
fix(canvas): return copy of viewbox
philippfromme Sep 23, 2024
657a7e8
fix(search-pad): results is an object, not an array
philippfromme Sep 23, 2024
3f87f09
feat(search-pad): add custom marker to preselected element
philippfromme Sep 23, 2024
f1e2088
chore(search-pad): do not set zoom to 1
philippfromme Sep 23, 2024
430bc0a
chore(seach-pad): reduce padding
philippfromme Sep 23, 2024
640f3fe
chore(CHANGELOG): update to v14.11.2
nikku Sep 25, 2024
cfe7b8f
14.11.2
nikku Sep 25, 2024
d1d9c75
chore: simplify viewbox cloning
philippfromme Sep 27, 2024
dfe3399
chore(CHANGELOG): bump to v14.11.3
nikku Sep 30, 2024
345fa2e
14.11.3
nikku Sep 30, 2024
10c432b
test: configure Firefox (headless)
nikku Jul 4, 2024
99af140
fix(scheduler): use setTimeout to reliably off-load work
nikku Jul 4, 2024
4bc957e
test(copy-paste): remove bogus log statement
nikku Jul 4, 2024
c1014c8
chore: bump test dependencies
nikku Oct 1, 2024
856bf30
chore: bump eslint*
nikku Oct 1, 2024
2369342
chore: bump to [email protected]
nikku Oct 1, 2024
fb052e1
chore: update dependency del-cli to v6
renovate[bot] Oct 8, 2024
a66e059
chore: migrate to ESLint@9 and flat config
philippfromme Oct 2, 2024
634b209
style: mark `require` as global
nikku Oct 10, 2024
eced72c
style: address mocha lint errors
nikku Oct 10, 2024
98c5c71
style: workaround matching mocha rule
nikku Oct 10, 2024
4b49b99
style: fix lint errors
nikku Oct 11, 2024
27a6d4a
style: drop spaces at end of file
nikku Oct 11, 2024
5144004
chore: log layout error
nikku Oct 11, 2024
e662738
chore: document aspects of eslint config
nikku Oct 15, 2024
39e138c
chore: update dependency npm-run-all2 to v7
renovate[bot] Oct 22, 2024
7e03972
chore: add `tmp` to linting ignored directories
nikku Oct 31, 2024
65bd338
chore: bump puppeteer
nikku Oct 31, 2024
3e3d903
feat: move multi selection outline into separate feature
misiekhardcore Oct 30, 2024
460d84c
chore(CHANGELOG): update
misiekhardcore Nov 1, 2024
f3621c7
ci: adjust job names to `snake_case`
nikku Nov 1, 2024
01a4fad
chore: PhantomJS clean up
nikku Nov 4, 2024
98d91cc
test(popup-menu): fix cursor position
jarekdanielak Sep 19, 2024
20deedf
fix(styles): savely prefix `svg` styles
nikku Nov 4, 2024
491f283
feat(core): make `Canvas` focusable
nikku Nov 4, 2024
1978df9
feat(keyboard): make keyboard binding implicit
nikku Nov 4, 2024
31972d1
chore(CHANGELOG): update to version 15.0.0
nikku Nov 4, 2024
199cc22
15.0.0
jarekdanielak Nov 4, 2024
51543e7
fix(search): correctly handle duplicate entries
nikku Sep 23, 2024
89f1ef9
test(search): verify partial match
nikku Oct 31, 2024
0506b10
feat(popup-menu): integrate popup menu into `search` component
nikku Sep 23, 2024
0cb375f
test(popup-menu): restore fuzzy search test
nikku Sep 23, 2024
d33cab3
fix(search): search with whitespace
nikku Oct 31, 2024
e53ecb7
feat(search): always provide tokens
nikku Oct 31, 2024
0b6a26b
feat(search): find search terms across all keys
nikku Oct 31, 2024
ad1b800
test: correct search spec title
nikku Oct 31, 2024
bacea62
style: simplify
nikku Oct 31, 2024
edffcc1
feat(search-pad): recognize modern tokens
nikku Nov 1, 2024
e5624e5
test(popup-menu): simplify spec
nikku Nov 4, 2024
3ab3be3
feat(search): improve types
nikku Nov 4, 2024
51a65d2
chore(CHANGELOG): update to v15.1.0
nikku Nov 4, 2024
c5d8765
15.1.0
nikku Nov 4, 2024
2503808
chore(CHANGELOG): rephrase
nikku Nov 4, 2024
ff2c23a
test(search): verify we prioritize exact match
nikku Nov 4, 2024
7a31b1a
chore(search-pad): use open marker for element pre-select styling
nikku Nov 5, 2024
2e6ba49
test(search-pad): semantically group <open> tests
nikku Nov 5, 2024
2a37a8b
fix(search-pad): clear selection when search opens
nikku Nov 5, 2024
05d98ee
test(search-pad): verify open marker
nikku Nov 5, 2024
08d54e7
chore(CHANGELOG): update to v15.2.0
nikku Nov 7, 2024
5b4a2aa
15.2.0
nikku Nov 7, 2024
53d0ae9
fix: limit overly permissive regex range
barmac Nov 12, 2024
a55b7f9
test: verify componentsToPath
barmac Nov 14, 2024
43f97a3
chore: update changelog
barmac Nov 14, 2024
f5be55e
15.2.1
barmac Nov 14, 2024
7c09f56
fix(keyboard): correct `Keyboard#bind` and config signature
torge-hmn Nov 11, 2024
0a9bb6a
docs(keyboard): detail deprecation reason
nikku Nov 15, 2024
6836e4f
chore(CHANGELOG): update to v15.2.2
nikku Nov 15, 2024
c548079
15.2.2
nikku Nov 15, 2024
b35a5a8
chore: update codecov/codecov-action action to v5
renovate[bot] Nov 14, 2024
8927072
chore: update slackapi/slack-github-action action to v2
renovate[bot] Nov 14, 2024
3b077e5
ci: migrate to slack action v2
barmac Nov 18, 2024
e19d851
chore(CHANGELOG): correct entry
nikku Nov 20, 2024
bf03eb3
chore(CHANGELOG): correct additional entries
nikku Nov 20, 2024
e80568c
fix(search): guard against whitespace only pattern
nikku Nov 21, 2024
5a2fd31
fix(search-pad): do not search on whitespace only input
nikku Nov 21, 2024
0f24e54
fix(popup-menu): do not filter on whitespace only input
nikku Nov 21, 2024
6fbab22
chore(CHANGELOG): update
nikku Nov 21, 2024
ffe067a
fix(search): prioritize start of word and exact match more
nikku Nov 21, 2024
e52f02b
chore(search): value based off token length
nikku Nov 21, 2024
f117bfe
chore(CHANGELOG): update
nikku Nov 21, 2024
b07f749
chore(CHANGELOG): update to v15.2.3
nikku Nov 21, 2024
88e15c5
15.2.3
nikku Nov 21, 2024
dd24a7d
fix(core/Canvas): explicitly enable autoFocus
nikku Dec 19, 2024
e6e67f9
chore(CHANGELOG): update
nikku Dec 19, 2024
5cc398e
fix(core/Canvas): consistently emit `canvas.focus.changed` event
nikku Dec 19, 2024
3784311
feat(core/Canvas): focus on <element.mousedown>
nikku Dec 19, 2024
78e678d
fix(navigation/movecanvas): hook up with canvas focused state
nikku Dec 19, 2024
8c07236
fix(navigation/zoomscroll): hook up with canvas focused state
nikku Dec 19, 2024
6ba397b
chore(CHANGELOG): update to v15.2.4
nikku Dec 20, 2024
371877b
15.2.4
nikku Dec 20, 2024
3df2a4c
Merge remote-tracking branch 'diagramjs/develop' into feature/merge_f…
ElRaptorus Jan 9, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions .eslintignore

This file was deleted.

9 changes: 0 additions & 9 deletions .eslintrc

This file was deleted.

2 changes: 1 addition & 1 deletion .github/workflows/CODE_SCANNING.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:
- '**/*.md'

jobs:
CodeQL-Build:
codeql_build:
# CodeQL runs on ubuntu-latest, windows-latest, and macos-latest
runs-on: ubuntu-latest

Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
node_modules/
dist/
tmp/
coverage/
lib/**/*.d.ts
.idea/
Expand Down
80 changes: 79 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,84 @@ All notable changes to [diagram-js](https://github.com/bpmn-io/diagram-js) are d

_**Note:** Yet to be released changes appear here._

## 15.2.4

* `FIX`: canvas `autoFocus` must explicitly be enabled ([#956](https://github.com/bpmn-io/diagram-js/pull/956))
* `FIX`: properly integrate `zoomscroll` with canvas focus ([#956](https://github.com/bpmn-io/diagram-js/pull/956))
* `FIX`: properly integrate `movecanvas` with canvas focus ([#956](https://github.com/bpmn-io/diagram-js/pull/956))

## 15.2.3

* `FIX`: adjust search to prioritize start of word and exact matches ([#953](https://github.com/bpmn-io/diagram-js/pull/953))
* `FIX`: ignore whitespace when searching ([#954](https://github.com/bpmn-io/diagram-js/pull/954))

## 15.2.2

* `FIX`: correct `Keyboard#bind` and config types ([#948](https://github.com/bpmn-io/diagram-js/pull/948))

## 15.2.1

* `FIX`: limit overly permissive regex ([#949](https://github.com/bpmn-io/diagram-js/pull/949))

## 15.2.0

* `FIX`: clear selection when opening search pad ([#947](https://github.com/bpmn-io/diagram-js/pull/947))
* `FIX`: correct dangling selection after search pad interaction ([#947](https://github.com/bpmn-io/diagram-js/pull/947))
* `CHORE`: simplify search pad pre-selection behavior ([#947](https://github.com/bpmn-io/diagram-js/pull/947))

## 15.1.0

* `FEAT`: integrate `popup-menu` with `search` ([#932](https://github.com/bpmn-io/diagram-js/pull/932))
* `FEAT`: recognize modern `search` tokens in `search-pad` ([#932](https://github.com/bpmn-io/diagram-js/pull/932))
* `FEAT`: improve `search` types ([#932](https://github.com/bpmn-io/diagram-js/pull/932))
* `FIX`: correctly handle duplicate entries and whitespace in `search` ([#932](https://github.com/bpmn-io/diagram-js/pull/932))
* `FIX`: find `search` terms across all keys ([#932](https://github.com/bpmn-io/diagram-js/pull/932))
* `FIX`: `search` always returns tokens for matched items ([#932](https://github.com/bpmn-io/diagram-js/pull/932))

## 15.0.0

* `FEAT`: make canvas browser selectable ([#659](https://github.com/bpmn-io/diagram-js/pull/659))
* `FEAT`: make keyboard binding implicit ([#661](https://github.com/bpmn-io/diagram-js/issues/661))
* `FEAT`: make multi-selection outline an outline concern ([#944](https://github.com/bpmn-io/diagram-js/issues/944))

### Breaking Changes

* `Keyboard` binding target can no longer be chosen. Configure keyboard binding via the `keyboard.bind` configuration and rely on keybindings to work if the canvas has browser focus. ([#661](https://github.com/bpmn-io/diagram-js/issues/661))
* The `Canvas` is now a focusable component, that is recognized accordingly by the browser, with all benefits for UX and interaction. Components that pull focus from the `Canvas` during modeling must ensure to restore the focus (if intended), via `Canvas#restoreFocus`. ([#661](https://github.com/bpmn-io/diagram-js/issues/661))
* The `selection` feature does not provide visual outline by default anymore. Use the `outline` feature to re-enable it. ([#944](https://github.com/bpmn-io/diagram-js/issues/944))

## 14.11.3

* `CHORE`: simplify viewbox cloning ([#935](https://github.com/bpmn-io/diagram-js/pull/935))

## 14.11.2

* `FIX`: restore search result highlight ([#931](https://github.com/bpmn-io/diagram-js/pull/931))
* `FIX`: correct search result highlight not being removed ([#931](https://github.com/bpmn-io/diagram-js/pull/931))
* `FIX`: do not change zoom when search openes ([#931](https://github.com/bpmn-io/diagram-js/pull/931))

## 14.11.1

_Partially reverts v14.11.0._

* `FIX`: revert `search` integration into popup menu

## 14.11.0

* `FEAT`: add `search` utility
* `FEAT`: sort popup entry search results semantically ([#916](https://github.com/bpmn-io/diagram-js/pull/916))

## 14.10.0

* `FEAT`: align search styling with other popups ([#913](https://github.com/bpmn-io/diagram-js/pull/913))
* `CHORE`: use existing outline in search ([#913](https://github.com/bpmn-io/diagram-js/pull/913))
* `FIX`: only commit search viewport changes on `ENTER` ([#913](https://github.com/bpmn-io/diagram-js/pull/913))

## 14.9.0

* `CHORE`: export types compatible with `verbatimModuleSyntax` ([#927](https://github.com/bpmn-io/diagram-js/pull/927), [#864](https://github.com/bpmn-io/diagram-js/issues/864))
* `CHORE`: re-compute context pad position next frame ([#920](https://github.com/bpmn-io/diagram-js/pull/920))

## 14.8.0

* `FEAT`: add `scheduler` service ([#915](https://github.com/bpmn-io/diagram-js/pull/915))
Expand Down Expand Up @@ -137,7 +215,7 @@ _**Note:** Yet to be released changes appear here._
## 12.8.1

* `FIX`: reposition popup menu if it opens above the viewport ([#829](https://github.com/bpmn-io/diagram-js/pull/829))

## 12.8.0

* `FEAT`: remove selection outline from connections ([#826](https://github.com/bpmn-io/diagram-js/pull/826))
Expand Down
118 changes: 66 additions & 52 deletions assets/diagram-js.css
Original file line number Diff line number Diff line change
Expand Up @@ -74,14 +74,16 @@
--resizer-fill-color: var(--color-blue-205-100-45);
--resizer-stroke-color: var(--canvas-fill-color);

--search-container-background-color: var(--color-grey-225-10-97);
--search-container-border-color: var(--color-blue-205-100-50);
--search-container-box-shadow-color: var(--color-blue-205-100-95);
--search-container-box-shadow-inset-color: var(--color-grey-225-10-80);
--search-font-family: "IBM Plex Sans", sans-serif;
--search-font-size: 14px;
--search-container-background-color: var(--color-white);
--search-shadow-color: var(--color-black-opacity-30);
--search-input-border-color: var(--color-grey-225-10-75);
--search-result-border-color: var(--color-grey-225-10-75);
--search-result-highlight-color: var(--color-black);
--search-result-selected-color: var(--color-blue-205-100-45-opacity-30);
--search-input-focus-border-color: var(--color-blue-205-100-50);
--search-input-focus-background-color: var(--color-blue-205-100-95);
--search-result-hover-background-color: var(--color-grey-225-10-95);
--search-result-secondary-color: var(--color-grey-225-10-55);
--search-preselected-background-color: var(--color-blue-205-100-50-opacity-15);

--shape-attach-allowed-stroke-color: var(--color-blue-205-100-50);
--shape-connect-allowed-fill-color: var(--color-grey-225-10-97);
Expand All @@ -98,6 +100,18 @@
--tooltip-error-color: var(--color-red-360-100-45);
}

/**
* SVG styles
*/

.djs-container svg.drop-not-ok {
background: var(--shape-drop-not-allowed-fill-color) !important;
}

.djs-container svg.new-parent {
background: var(--shape-drop-allowed-fill-color) !important;
}

/**
* outline styles
*/
Expand Down Expand Up @@ -140,14 +154,6 @@
fill: var(--shape-drop-allowed-fill-color) !important;
}

svg.drop-not-ok {
background: var(--shape-drop-not-allowed-fill-color) !important;
}

svg.new-parent {
background: var(--shape-drop-allowed-fill-color) !important;
}


/* Override move cursor during drop and connect */
.drop-not-ok,
Expand Down Expand Up @@ -527,7 +533,7 @@ svg.new-parent {
width: 100%;
box-sizing: border-box;
font-size: var(--popup-font-size);
padding: 3px 6px;
padding: 3px 6px 3px 28px;
border-radius: 2px;
border: solid 1px var(--popup-search-border-color);
line-height: 21px;
Expand Down Expand Up @@ -588,6 +594,8 @@ svg.new-parent {
}

.djs-popup-search {
position: relative;
width: auto;
margin: 10px 12px;
}

Expand All @@ -598,21 +606,12 @@ svg.new-parent {
margin: 0;
}

.djs-popup-search {
position: relative;
width: auto;
}

.djs-popup-search-icon {
position: absolute;
left: 8px;
top: 7px;
}

.djs-popup-search input {
padding-left: 25px;
}

.djs-popup-results {
margin: 7px 3px 7px 12px;
list-style: none;
Expand Down Expand Up @@ -884,6 +883,14 @@ svg.new-parent {
/**
* search pad
*/
.djs-search-open .djs-context-pad {
display: none;
}

.djs-search-open .djs-connection.selected .djs-outline {
display: block;
}

.djs-search-container {
position: absolute;
top: 20px;
Expand All @@ -897,76 +904,83 @@ svg.new-parent {
max-width: 400px;
z-index: 10;

font-size: 1.05em;
opacity: 0.9;
background: var(--search-container-background-color);
border: solid 1px var(--search-container-border-color);
font-family: var(--search-font-family);
font-size: var(--search-font-size);
border-radius: 2px;
box-shadow: 0 0 0 2px var(--search-container-box-shadow-color), 0 0 0 1px var(--search-container-box-shadow-inset-color) inset;
box-shadow: 0px 2px 6px var(--search-shadow-color);
}

.djs-search-container:not(.open) {
display: none;
}

.djs-search-input {
position: relative;
}

.djs-search-input svg {
position: absolute;
left: 8px;
top: 7px;
}

.djs-search-input input {
font-size: 1.05em;
font-size: var(--search-font-size);
width: 100%;
padding: 6px 10px;
padding: 3px 6px 3px 28px;
border: 1px solid var(--search-input-border-color);
border-radius: 2px;
box-sizing: border-box;
line-height: 21px;
}

.djs-search-input input:focus {
background-color: var(--search-input-focus-background-color);
border: solid 1px var(--search-input-focus-border-color);
outline: none;
border-color: var(--search-input-border-color);
}

.djs-search-results {
position: relative;
overflow-y: auto;
max-height: 200px;
}

.djs-search-results:hover {
cursor: pointer;
background: var(--search-container-background-color);
}

.djs-search-result {
width: 100%;
padding: 6px 10px;
background: white;
border-bottom: solid 1px var(--search-result-border-color);
border-radius: 1px;
}

.djs-search-highlight {
color: var(--search-result-highlight-color);
padding: 6px 8px;
}

.djs-search-result-primary {
margin: 0 0 10px;
margin: 0 0 3px;
text-overflow: ellipsis;
overflow: hidden;
white-space: nowrap;
}

.djs-search-result-secondary {
font-family: monospace;
margin: 0;
text-overflow: ellipsis;
overflow: hidden;
white-space: nowrap;
color: var(--search-result-secondary-color);
}

.djs-search-result:hover {
background: var(--search-result-selected-color);
background: var(--search-result-hover-background-color);
}

.djs-search-result-selected {
background: var(--search-result-selected-color);
background: var(--search-result-hover-background-color);
}

.djs-search-result-selected:hover {
background: var(--search-result-selected-color);
background: var(--search-result-hover-background-color);
}

.djs-search-overlay {
background: var(--search-result-selected-color);
.djs-search-open .djs-element .djs-outline {
fill: var(--search-preselected-background-color) !important;
}

/**
Expand Down
Loading
Loading