likec4 1.8.0 → 1.8.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "likec4",
3
- "version": "1.8.0",
3
+ "version": "1.8.1",
4
4
  "license": "MIT",
5
5
  "homepage": "https://likec4.dev",
6
6
  "author": "Denis Davydkov <denis@davydkov.com>",
@@ -13,7 +13,7 @@
13
13
  "directory": "packages/likec4"
14
14
  },
15
15
  "engines": {
16
- "node": "^18.0.0 || >=20.0.0"
16
+ "node": ">=20.0.0"
17
17
  },
18
18
  "bugs": "https://github.com/likec4/likec4/issues",
19
19
  "type": "module",
@@ -94,52 +94,52 @@
94
94
  "@hpcc-js/wasm-graphviz": "1.2.0",
95
95
  "@nanostores/react": "0.7.3",
96
96
  "@vitejs/plugin-react": "4.3.1",
97
- "nanostores": "0.11.2",
97
+ "nanostores": "0.11.3",
98
98
  "playwright": "1.46.1",
99
- "react": "18.3.1",
100
- "react-dom": "18.3.1",
99
+ "react": "^18.3.1",
100
+ "react-dom": "^18.3.1",
101
101
  "vite": "5.3.4",
102
102
  "yargs": "17.7.2"
103
103
  },
104
104
  "devDependencies": {
105
105
  "@fontsource/ibm-plex-sans": "^5.0.21",
106
- "@likec4/core": "1.8.0",
107
- "@likec4/diagram": "1.8.0",
108
- "@likec4/generators": "1.8.0",
109
- "@likec4/icons": "1.8.0",
110
- "@likec4/language-server": "1.8.0",
111
- "@likec4/layouts": "1.8.0",
112
- "@likec4/log": "1.8.0",
113
- "@likec4/tsconfig": "1.8.0",
106
+ "@likec4/core": "1.8.1",
107
+ "@likec4/diagram": "1.8.1",
108
+ "@likec4/generators": "1.8.1",
109
+ "@likec4/icons": "1.8.1",
110
+ "@likec4/language-server": "1.8.1",
111
+ "@likec4/layouts": "1.8.1",
112
+ "@likec4/log": "1.8.1",
113
+ "@likec4/tsconfig": "1.8.1",
114
114
  "@mantine/core": "7.11.2",
115
115
  "@mantine/hooks": "7.11.2",
116
116
  "@mantine/vanilla-extract": "7.11.2",
117
117
  "@react-hookz/web": "^24.0.4",
118
- "@tabler/icons-react": "^3.12.0",
118
+ "@tabler/icons-react": "^3.14.0",
119
119
  "@tanstack/react-router": "1.45.13",
120
120
  "@tanstack/router-cli": "1.45.13",
121
121
  "@tanstack/router-vite-plugin": "1.45.13",
122
122
  "@types/node": "^20.16.1",
123
123
  "@types/prop-types": "^15.7.11",
124
- "@types/react": "18.3.3",
124
+ "@types/react": "18.3.4",
125
125
  "@types/react-dom": "18.3.0",
126
126
  "@types/string-hash": "^1.1.3",
127
127
  "@types/yargs": "^17.0.33",
128
- "@vanilla-extract/css": "^1.15.3",
129
- "@vanilla-extract/dynamic": "^2.1.1",
130
- "@vanilla-extract/vite-plugin": "^4.0.13",
128
+ "@vanilla-extract/css": "^1.15.5",
129
+ "@vanilla-extract/dynamic": "^2.1.2",
130
+ "@vanilla-extract/vite-plugin": "^4.0.15",
131
131
  "@xyflow/react": "12.1.1",
132
132
  "@xyflow/system": "0.0.39",
133
133
  "autoprefixer": "^10.4.20",
134
134
  "ci-info": "^3.9.0",
135
- "classnames": "^2.3.2",
135
+ "classnames": "^2.5.1",
136
136
  "clsx": "^2.1.1",
137
137
  "esbuild": "^0.21.5",
138
138
  "esbuild-node-externals": "^1.14.0",
139
139
  "esm-env": "^1.0.0",
140
140
  "execa": "^9.3.1",
141
141
  "fast-equals": "^5.0.1",
142
- "framer-motion": "^11.3.28",
142
+ "framer-motion": "^11.3.30",
143
143
  "get-port": "^7.1.0",
144
144
  "glob": "^11.0.0",
145
145
  "html-to-image": "^1.11.11",
@@ -153,7 +153,7 @@
153
153
  "postcss-preset-mantine": "^1.17.0",
154
154
  "pretty-ms": "^9.1.0",
155
155
  "react-error-boundary": "^4.0.13",
156
- "react-resizable-panels": "^2.1.0",
156
+ "react-resizable-panels": "^2.1.2",
157
157
  "react-shadow": "^20.5.0",
158
158
  "remeda": "^2.11.0",
159
159
  "string-hash": "^1.1.3",
package/react/index.mjs CHANGED
@@ -8571,7 +8571,7 @@ class MotionValue {
8571
8571
  * @internal
8572
8572
  */
8573
8573
  constructor(init2, options = {}) {
8574
- this.version = "11.3.29", this.canTrackVelocity = null, this.events = {}, this.updateAndNotify = (v2, render = !0) => {
8574
+ this.version = "11.3.31", this.canTrackVelocity = null, this.events = {}, this.updateAndNotify = (v2, render = !0) => {
8575
8575
  const currentTime = time.now();
8576
8576
  this.updatedAt !== currentTime && this.setPrevFrameValue(), this.prev = this.current, this.setCurrent(v2), this.current !== this.prev && this.events.change && this.events.change.notify(this.current), render && this.events.renderRequest && this.events.renderRequest.notify(this.current);
8577
8577
  }, this.hasAnimated = !1, this.setCurrent(init2), this.owner = options.owner;
@@ -8771,7 +8771,7 @@ function setTarget(visualElement, definition) {
8771
8771
  }
8772
8772
  }
8773
8773
  function getOptimisedAppearId(visualElement) {
8774
- return visualElement.getProps()[optimizedAppearDataAttribute];
8774
+ return visualElement.props[optimizedAppearDataAttribute];
8775
8775
  }
8776
8776
  class WillChangeMotionValue extends MotionValue {
8777
8777
  constructor() {
@@ -9143,7 +9143,7 @@ class VisualElement {
9143
9143
  this.current = instance, visualElementStore.set(instance, this), this.projection && !this.projection.instance && this.projection.mount(instance), this.parent && this.isVariantNode && !this.isControllingVariants && (this.removeFromVariantTree = this.parent.addVariantChild(this)), this.values.forEach((value, key) => this.bindToMotionValue(key, value)), hasReducedMotionListener.current || initPrefersReducedMotion(), this.shouldReduceMotion = this.reducedMotionConfig === "never" ? !1 : this.reducedMotionConfig === "always" ? !0 : prefersReducedMotion.current, this.parent && this.parent.children.add(this), this.update(this.props, this.presenceContext);
9144
9144
  }
9145
9145
  unmount() {
9146
- visualElementStore.delete(this.current), this.projection && this.projection.unmount(), cancelFrame(this.notifyUpdate), cancelFrame(this.render), this.valueSubscriptions.forEach((remove2) => remove2()), this.removeFromVariantTree && this.removeFromVariantTree(), this.parent && this.parent.children.delete(this);
9146
+ visualElementStore.delete(this.current), this.projection && this.projection.unmount(), cancelFrame(this.notifyUpdate), cancelFrame(this.render), this.valueSubscriptions.forEach((remove2) => remove2()), this.valueSubscriptions.clear(), this.removeFromVariantTree && this.removeFromVariantTree(), this.parent && this.parent.children.delete(this);
9147
9147
  for (const key in this.events)
9148
9148
  this.events[key].clear();
9149
9149
  for (const key in this.features) {
@@ -9153,11 +9153,13 @@ class VisualElement {
9153
9153
  this.current = null;
9154
9154
  }
9155
9155
  bindToMotionValue(key, value) {
9156
+ this.valueSubscriptions.has(key) && this.valueSubscriptions.get(key)();
9156
9157
  const valueIsTransform = transformProps.has(key), removeOnChange = value.on("change", (latestValue) => {
9157
9158
  this.latestValues[key] = latestValue, this.props.onUpdate && frame.preRender(this.notifyUpdate), valueIsTransform && this.projection && (this.projection.isTransformDirty = !0);
9158
9159
  }), removeOnRenderRequest = value.on("renderRequest", this.scheduleRender);
9159
- this.valueSubscriptions.set(key, () => {
9160
- removeOnChange(), removeOnRenderRequest(), value.owner && value.stop();
9160
+ let removeSyncCheck;
9161
+ window.MotionCheckAppearSync && (removeSyncCheck = window.MotionCheckAppearSync(this, key, value)), this.valueSubscriptions.set(key, () => {
9162
+ removeOnChange(), removeOnRenderRequest(), removeSyncCheck && removeSyncCheck(), value.owner && value.stop();
9161
9163
  });
9162
9164
  }
9163
9165
  sortNodePosition(other) {