@particle-academy/fancy-flow 0.3.0 → 0.3.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/dist/{chunk-FGUJNX65.js → chunk-4YBSEMF2.js} +3 -3
- package/dist/{chunk-FGUJNX65.js.map → chunk-4YBSEMF2.js.map} +1 -1
- package/dist/{chunk-DDHKYIH2.js → chunk-GJSFZR6J.js} +63 -328
- package/dist/chunk-GJSFZR6J.js.map +1 -0
- package/dist/{chunk-YPINKH2D.js → chunk-OZPQAUZD.js} +3 -3
- package/dist/{chunk-YPINKH2D.js.map → chunk-OZPQAUZD.js.map} +1 -1
- package/dist/index.cjs +60 -356
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +5 -6
- package/dist/index.js.map +1 -1
- package/dist/registry.cjs +60 -356
- package/dist/registry.cjs.map +1 -1
- package/dist/registry.js +2 -3
- package/dist/runtime.cjs +60 -356
- package/dist/runtime.cjs.map +1 -1
- package/dist/runtime.js +2 -3
- package/dist/schema.js +0 -1
- package/package.json +1 -1
- package/dist/chunk-7D4SUZUM.js +0 -35
- package/dist/chunk-7D4SUZUM.js.map +0 -1
- package/dist/chunk-DDHKYIH2.js.map +0 -1
package/dist/registry.cjs
CHANGED
|
@@ -8,309 +8,6 @@ function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
|
8
8
|
|
|
9
9
|
var ReactExports__default = /*#__PURE__*/_interopDefault(ReactExports);
|
|
10
10
|
|
|
11
|
-
var __create = Object.create;
|
|
12
|
-
var __defProp = Object.defineProperty;
|
|
13
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
14
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
15
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
16
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
17
|
-
var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
|
|
18
|
-
get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
|
|
19
|
-
}) : x)(function(x) {
|
|
20
|
-
if (typeof require !== "undefined") return require.apply(this, arguments);
|
|
21
|
-
throw Error('Dynamic require of "' + x + '" is not supported');
|
|
22
|
-
});
|
|
23
|
-
var __commonJS = (cb, mod) => function __require2() {
|
|
24
|
-
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
25
|
-
};
|
|
26
|
-
var __copyProps = (to, from, except, desc) => {
|
|
27
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
28
|
-
for (let key of __getOwnPropNames(from))
|
|
29
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
30
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
31
|
-
}
|
|
32
|
-
return to;
|
|
33
|
-
};
|
|
34
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
35
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
36
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
37
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
38
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
39
|
-
__defProp(target, "default", { value: mod, enumerable: true }) ,
|
|
40
|
-
mod
|
|
41
|
-
));
|
|
42
|
-
|
|
43
|
-
// node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.js
|
|
44
|
-
var require_use_sync_external_store_shim_production = __commonJS({
|
|
45
|
-
"node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.js"(exports) {
|
|
46
|
-
var React = __require("react");
|
|
47
|
-
function is(x, y) {
|
|
48
|
-
return x === y && (0 !== x || 1 / x === 1 / y) || x !== x && y !== y;
|
|
49
|
-
}
|
|
50
|
-
var objectIs = "function" === typeof Object.is ? Object.is : is;
|
|
51
|
-
var useState2 = React.useState;
|
|
52
|
-
var useEffect2 = React.useEffect;
|
|
53
|
-
var useLayoutEffect2 = React.useLayoutEffect;
|
|
54
|
-
var useDebugValue2 = React.useDebugValue;
|
|
55
|
-
function useSyncExternalStore$2(subscribe, getSnapshot) {
|
|
56
|
-
var value = getSnapshot(), _useState = useState2({ inst: { value, getSnapshot } }), inst = _useState[0].inst, forceUpdate = _useState[1];
|
|
57
|
-
useLayoutEffect2(
|
|
58
|
-
function() {
|
|
59
|
-
inst.value = value;
|
|
60
|
-
inst.getSnapshot = getSnapshot;
|
|
61
|
-
checkIfSnapshotChanged(inst) && forceUpdate({ inst });
|
|
62
|
-
},
|
|
63
|
-
[subscribe, value, getSnapshot]
|
|
64
|
-
);
|
|
65
|
-
useEffect2(
|
|
66
|
-
function() {
|
|
67
|
-
checkIfSnapshotChanged(inst) && forceUpdate({ inst });
|
|
68
|
-
return subscribe(function() {
|
|
69
|
-
checkIfSnapshotChanged(inst) && forceUpdate({ inst });
|
|
70
|
-
});
|
|
71
|
-
},
|
|
72
|
-
[subscribe]
|
|
73
|
-
);
|
|
74
|
-
useDebugValue2(value);
|
|
75
|
-
return value;
|
|
76
|
-
}
|
|
77
|
-
function checkIfSnapshotChanged(inst) {
|
|
78
|
-
var latestGetSnapshot = inst.getSnapshot;
|
|
79
|
-
inst = inst.value;
|
|
80
|
-
try {
|
|
81
|
-
var nextValue = latestGetSnapshot();
|
|
82
|
-
return !objectIs(inst, nextValue);
|
|
83
|
-
} catch (error) {
|
|
84
|
-
return true;
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
function useSyncExternalStore$1(subscribe, getSnapshot) {
|
|
88
|
-
return getSnapshot();
|
|
89
|
-
}
|
|
90
|
-
var shim = "undefined" === typeof window || "undefined" === typeof window.document || "undefined" === typeof window.document.createElement ? useSyncExternalStore$1 : useSyncExternalStore$2;
|
|
91
|
-
exports.useSyncExternalStore = void 0 !== React.useSyncExternalStore ? React.useSyncExternalStore : shim;
|
|
92
|
-
}
|
|
93
|
-
});
|
|
94
|
-
|
|
95
|
-
// node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.js
|
|
96
|
-
var require_use_sync_external_store_shim_development = __commonJS({
|
|
97
|
-
"node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.js"(exports) {
|
|
98
|
-
"production" !== process.env.NODE_ENV && (function() {
|
|
99
|
-
function is(x, y) {
|
|
100
|
-
return x === y && (0 !== x || 1 / x === 1 / y) || x !== x && y !== y;
|
|
101
|
-
}
|
|
102
|
-
function useSyncExternalStore$2(subscribe, getSnapshot) {
|
|
103
|
-
didWarnOld18Alpha || void 0 === React.startTransition || (didWarnOld18Alpha = true, console.error(
|
|
104
|
-
"You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."
|
|
105
|
-
));
|
|
106
|
-
var value = getSnapshot();
|
|
107
|
-
if (!didWarnUncachedGetSnapshot) {
|
|
108
|
-
var cachedValue = getSnapshot();
|
|
109
|
-
objectIs(value, cachedValue) || (console.error(
|
|
110
|
-
"The result of getSnapshot should be cached to avoid an infinite loop"
|
|
111
|
-
), didWarnUncachedGetSnapshot = true);
|
|
112
|
-
}
|
|
113
|
-
cachedValue = useState2({
|
|
114
|
-
inst: { value, getSnapshot }
|
|
115
|
-
});
|
|
116
|
-
var inst = cachedValue[0].inst, forceUpdate = cachedValue[1];
|
|
117
|
-
useLayoutEffect2(
|
|
118
|
-
function() {
|
|
119
|
-
inst.value = value;
|
|
120
|
-
inst.getSnapshot = getSnapshot;
|
|
121
|
-
checkIfSnapshotChanged(inst) && forceUpdate({ inst });
|
|
122
|
-
},
|
|
123
|
-
[subscribe, value, getSnapshot]
|
|
124
|
-
);
|
|
125
|
-
useEffect2(
|
|
126
|
-
function() {
|
|
127
|
-
checkIfSnapshotChanged(inst) && forceUpdate({ inst });
|
|
128
|
-
return subscribe(function() {
|
|
129
|
-
checkIfSnapshotChanged(inst) && forceUpdate({ inst });
|
|
130
|
-
});
|
|
131
|
-
},
|
|
132
|
-
[subscribe]
|
|
133
|
-
);
|
|
134
|
-
useDebugValue2(value);
|
|
135
|
-
return value;
|
|
136
|
-
}
|
|
137
|
-
function checkIfSnapshotChanged(inst) {
|
|
138
|
-
var latestGetSnapshot = inst.getSnapshot;
|
|
139
|
-
inst = inst.value;
|
|
140
|
-
try {
|
|
141
|
-
var nextValue = latestGetSnapshot();
|
|
142
|
-
return !objectIs(inst, nextValue);
|
|
143
|
-
} catch (error) {
|
|
144
|
-
return true;
|
|
145
|
-
}
|
|
146
|
-
}
|
|
147
|
-
function useSyncExternalStore$1(subscribe, getSnapshot) {
|
|
148
|
-
return getSnapshot();
|
|
149
|
-
}
|
|
150
|
-
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
|
|
151
|
-
var React = __require("react"), objectIs = "function" === typeof Object.is ? Object.is : is, useState2 = React.useState, useEffect2 = React.useEffect, useLayoutEffect2 = React.useLayoutEffect, useDebugValue2 = React.useDebugValue, didWarnOld18Alpha = false, didWarnUncachedGetSnapshot = false, shim = "undefined" === typeof window || "undefined" === typeof window.document || "undefined" === typeof window.document.createElement ? useSyncExternalStore$1 : useSyncExternalStore$2;
|
|
152
|
-
exports.useSyncExternalStore = void 0 !== React.useSyncExternalStore ? React.useSyncExternalStore : shim;
|
|
153
|
-
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
|
|
154
|
-
})();
|
|
155
|
-
}
|
|
156
|
-
});
|
|
157
|
-
|
|
158
|
-
// node_modules/use-sync-external-store/shim/index.js
|
|
159
|
-
var require_shim = __commonJS({
|
|
160
|
-
"node_modules/use-sync-external-store/shim/index.js"(exports, module) {
|
|
161
|
-
if (process.env.NODE_ENV === "production") {
|
|
162
|
-
module.exports = require_use_sync_external_store_shim_production();
|
|
163
|
-
} else {
|
|
164
|
-
module.exports = require_use_sync_external_store_shim_development();
|
|
165
|
-
}
|
|
166
|
-
}
|
|
167
|
-
});
|
|
168
|
-
|
|
169
|
-
// node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.production.js
|
|
170
|
-
var require_with_selector_production = __commonJS({
|
|
171
|
-
"node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.production.js"(exports) {
|
|
172
|
-
var React = __require("react");
|
|
173
|
-
var shim = require_shim();
|
|
174
|
-
function is(x, y) {
|
|
175
|
-
return x === y && (0 !== x || 1 / x === 1 / y) || x !== x && y !== y;
|
|
176
|
-
}
|
|
177
|
-
var objectIs = "function" === typeof Object.is ? Object.is : is;
|
|
178
|
-
var useSyncExternalStore = shim.useSyncExternalStore;
|
|
179
|
-
var useRef2 = React.useRef;
|
|
180
|
-
var useEffect2 = React.useEffect;
|
|
181
|
-
var useMemo3 = React.useMemo;
|
|
182
|
-
var useDebugValue2 = React.useDebugValue;
|
|
183
|
-
exports.useSyncExternalStoreWithSelector = function(subscribe, getSnapshot, getServerSnapshot, selector, isEqual) {
|
|
184
|
-
var instRef = useRef2(null);
|
|
185
|
-
if (null === instRef.current) {
|
|
186
|
-
var inst = { hasValue: false, value: null };
|
|
187
|
-
instRef.current = inst;
|
|
188
|
-
} else inst = instRef.current;
|
|
189
|
-
instRef = useMemo3(
|
|
190
|
-
function() {
|
|
191
|
-
function memoizedSelector(nextSnapshot) {
|
|
192
|
-
if (!hasMemo) {
|
|
193
|
-
hasMemo = true;
|
|
194
|
-
memoizedSnapshot = nextSnapshot;
|
|
195
|
-
nextSnapshot = selector(nextSnapshot);
|
|
196
|
-
if (void 0 !== isEqual && inst.hasValue) {
|
|
197
|
-
var currentSelection = inst.value;
|
|
198
|
-
if (isEqual(currentSelection, nextSnapshot))
|
|
199
|
-
return memoizedSelection = currentSelection;
|
|
200
|
-
}
|
|
201
|
-
return memoizedSelection = nextSnapshot;
|
|
202
|
-
}
|
|
203
|
-
currentSelection = memoizedSelection;
|
|
204
|
-
if (objectIs(memoizedSnapshot, nextSnapshot)) return currentSelection;
|
|
205
|
-
var nextSelection = selector(nextSnapshot);
|
|
206
|
-
if (void 0 !== isEqual && isEqual(currentSelection, nextSelection))
|
|
207
|
-
return memoizedSnapshot = nextSnapshot, currentSelection;
|
|
208
|
-
memoizedSnapshot = nextSnapshot;
|
|
209
|
-
return memoizedSelection = nextSelection;
|
|
210
|
-
}
|
|
211
|
-
var hasMemo = false, memoizedSnapshot, memoizedSelection, maybeGetServerSnapshot = void 0 === getServerSnapshot ? null : getServerSnapshot;
|
|
212
|
-
return [
|
|
213
|
-
function() {
|
|
214
|
-
return memoizedSelector(getSnapshot());
|
|
215
|
-
},
|
|
216
|
-
null === maybeGetServerSnapshot ? void 0 : function() {
|
|
217
|
-
return memoizedSelector(maybeGetServerSnapshot());
|
|
218
|
-
}
|
|
219
|
-
];
|
|
220
|
-
},
|
|
221
|
-
[getSnapshot, getServerSnapshot, selector, isEqual]
|
|
222
|
-
);
|
|
223
|
-
var value = useSyncExternalStore(subscribe, instRef[0], instRef[1]);
|
|
224
|
-
useEffect2(
|
|
225
|
-
function() {
|
|
226
|
-
inst.hasValue = true;
|
|
227
|
-
inst.value = value;
|
|
228
|
-
},
|
|
229
|
-
[value]
|
|
230
|
-
);
|
|
231
|
-
useDebugValue2(value);
|
|
232
|
-
return value;
|
|
233
|
-
};
|
|
234
|
-
}
|
|
235
|
-
});
|
|
236
|
-
|
|
237
|
-
// node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.development.js
|
|
238
|
-
var require_with_selector_development = __commonJS({
|
|
239
|
-
"node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.development.js"(exports) {
|
|
240
|
-
"production" !== process.env.NODE_ENV && (function() {
|
|
241
|
-
function is(x, y) {
|
|
242
|
-
return x === y && (0 !== x || 1 / x === 1 / y) || x !== x && y !== y;
|
|
243
|
-
}
|
|
244
|
-
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
|
|
245
|
-
var React = __require("react"), shim = require_shim(), objectIs = "function" === typeof Object.is ? Object.is : is, useSyncExternalStore = shim.useSyncExternalStore, useRef2 = React.useRef, useEffect2 = React.useEffect, useMemo3 = React.useMemo, useDebugValue2 = React.useDebugValue;
|
|
246
|
-
exports.useSyncExternalStoreWithSelector = function(subscribe, getSnapshot, getServerSnapshot, selector, isEqual) {
|
|
247
|
-
var instRef = useRef2(null);
|
|
248
|
-
if (null === instRef.current) {
|
|
249
|
-
var inst = { hasValue: false, value: null };
|
|
250
|
-
instRef.current = inst;
|
|
251
|
-
} else inst = instRef.current;
|
|
252
|
-
instRef = useMemo3(
|
|
253
|
-
function() {
|
|
254
|
-
function memoizedSelector(nextSnapshot) {
|
|
255
|
-
if (!hasMemo) {
|
|
256
|
-
hasMemo = true;
|
|
257
|
-
memoizedSnapshot = nextSnapshot;
|
|
258
|
-
nextSnapshot = selector(nextSnapshot);
|
|
259
|
-
if (void 0 !== isEqual && inst.hasValue) {
|
|
260
|
-
var currentSelection = inst.value;
|
|
261
|
-
if (isEqual(currentSelection, nextSnapshot))
|
|
262
|
-
return memoizedSelection = currentSelection;
|
|
263
|
-
}
|
|
264
|
-
return memoizedSelection = nextSnapshot;
|
|
265
|
-
}
|
|
266
|
-
currentSelection = memoizedSelection;
|
|
267
|
-
if (objectIs(memoizedSnapshot, nextSnapshot))
|
|
268
|
-
return currentSelection;
|
|
269
|
-
var nextSelection = selector(nextSnapshot);
|
|
270
|
-
if (void 0 !== isEqual && isEqual(currentSelection, nextSelection))
|
|
271
|
-
return memoizedSnapshot = nextSnapshot, currentSelection;
|
|
272
|
-
memoizedSnapshot = nextSnapshot;
|
|
273
|
-
return memoizedSelection = nextSelection;
|
|
274
|
-
}
|
|
275
|
-
var hasMemo = false, memoizedSnapshot, memoizedSelection, maybeGetServerSnapshot = void 0 === getServerSnapshot ? null : getServerSnapshot;
|
|
276
|
-
return [
|
|
277
|
-
function() {
|
|
278
|
-
return memoizedSelector(getSnapshot());
|
|
279
|
-
},
|
|
280
|
-
null === maybeGetServerSnapshot ? void 0 : function() {
|
|
281
|
-
return memoizedSelector(maybeGetServerSnapshot());
|
|
282
|
-
}
|
|
283
|
-
];
|
|
284
|
-
},
|
|
285
|
-
[getSnapshot, getServerSnapshot, selector, isEqual]
|
|
286
|
-
);
|
|
287
|
-
var value = useSyncExternalStore(subscribe, instRef[0], instRef[1]);
|
|
288
|
-
useEffect2(
|
|
289
|
-
function() {
|
|
290
|
-
inst.hasValue = true;
|
|
291
|
-
inst.value = value;
|
|
292
|
-
},
|
|
293
|
-
[value]
|
|
294
|
-
);
|
|
295
|
-
useDebugValue2(value);
|
|
296
|
-
return value;
|
|
297
|
-
};
|
|
298
|
-
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
|
|
299
|
-
})();
|
|
300
|
-
}
|
|
301
|
-
});
|
|
302
|
-
|
|
303
|
-
// node_modules/use-sync-external-store/shim/with-selector.js
|
|
304
|
-
var require_with_selector = __commonJS({
|
|
305
|
-
"node_modules/use-sync-external-store/shim/with-selector.js"(exports, module) {
|
|
306
|
-
if (process.env.NODE_ENV === "production") {
|
|
307
|
-
module.exports = require_with_selector_production();
|
|
308
|
-
} else {
|
|
309
|
-
module.exports = require_with_selector_development();
|
|
310
|
-
}
|
|
311
|
-
}
|
|
312
|
-
});
|
|
313
|
-
|
|
314
11
|
// src/registry/registry.ts
|
|
315
12
|
var kinds = /* @__PURE__ */ new Map();
|
|
316
13
|
var listeners = /* @__PURE__ */ new Set();
|
|
@@ -5955,9 +5652,62 @@ function XYResizer({ domNode, nodeId, getStoreItems, onChange, onEnd }) {
|
|
|
5955
5652
|
destroy
|
|
5956
5653
|
};
|
|
5957
5654
|
}
|
|
5958
|
-
|
|
5959
|
-
|
|
5960
|
-
|
|
5655
|
+
function useSyncExternalStoreWithSelector(subscribe, getSnapshot, getServerSnapshot, selector, isEqual) {
|
|
5656
|
+
const instRef = ReactExports.useRef(null);
|
|
5657
|
+
let inst;
|
|
5658
|
+
if (instRef.current === null) {
|
|
5659
|
+
inst = { hasValue: false, value: null };
|
|
5660
|
+
instRef.current = inst;
|
|
5661
|
+
} else {
|
|
5662
|
+
inst = instRef.current;
|
|
5663
|
+
}
|
|
5664
|
+
const [getSelection, getServerSelection] = ReactExports.useMemo(() => {
|
|
5665
|
+
let hasMemo = false;
|
|
5666
|
+
let memoizedSnapshot;
|
|
5667
|
+
let memoizedSelection;
|
|
5668
|
+
const memoizedSelector = (nextSnapshot) => {
|
|
5669
|
+
if (!hasMemo) {
|
|
5670
|
+
hasMemo = true;
|
|
5671
|
+
memoizedSnapshot = nextSnapshot;
|
|
5672
|
+
const nextSelection2 = selector(nextSnapshot);
|
|
5673
|
+
if (isEqual !== void 0 && inst.hasValue) {
|
|
5674
|
+
const currentSelection = inst.value;
|
|
5675
|
+
if (isEqual(currentSelection, nextSelection2)) {
|
|
5676
|
+
memoizedSelection = currentSelection;
|
|
5677
|
+
return currentSelection;
|
|
5678
|
+
}
|
|
5679
|
+
}
|
|
5680
|
+
memoizedSelection = nextSelection2;
|
|
5681
|
+
return nextSelection2;
|
|
5682
|
+
}
|
|
5683
|
+
const prevSnapshot = memoizedSnapshot;
|
|
5684
|
+
const prevSelection = memoizedSelection;
|
|
5685
|
+
if (Object.is(prevSnapshot, nextSnapshot)) {
|
|
5686
|
+
return prevSelection;
|
|
5687
|
+
}
|
|
5688
|
+
const nextSelection = selector(nextSnapshot);
|
|
5689
|
+
if (isEqual !== void 0 && isEqual(prevSelection, nextSelection)) {
|
|
5690
|
+
memoizedSnapshot = nextSnapshot;
|
|
5691
|
+
return prevSelection;
|
|
5692
|
+
}
|
|
5693
|
+
memoizedSnapshot = nextSnapshot;
|
|
5694
|
+
memoizedSelection = nextSelection;
|
|
5695
|
+
return nextSelection;
|
|
5696
|
+
};
|
|
5697
|
+
const maybeGetServerSnapshot = getServerSnapshot === void 0 || getServerSnapshot === null ? null : getServerSnapshot;
|
|
5698
|
+
const getSnapshotWithSelector = () => memoizedSelector(getSnapshot());
|
|
5699
|
+
const getServerSnapshotWithSelector = maybeGetServerSnapshot === null ? void 0 : () => memoizedSelector(maybeGetServerSnapshot());
|
|
5700
|
+
return [getSnapshotWithSelector, getServerSnapshotWithSelector];
|
|
5701
|
+
}, [getSnapshot, getServerSnapshot, selector, isEqual]);
|
|
5702
|
+
const value = ReactExports.useSyncExternalStore(subscribe, getSelection, getServerSelection);
|
|
5703
|
+
ReactExports.useEffect(() => {
|
|
5704
|
+
inst.hasValue = true;
|
|
5705
|
+
inst.value = value;
|
|
5706
|
+
}, [value]);
|
|
5707
|
+
ReactExports.useDebugValue(value);
|
|
5708
|
+
return value;
|
|
5709
|
+
}
|
|
5710
|
+
var use_sync_external_store_with_selector_default = { useSyncExternalStoreWithSelector };
|
|
5961
5711
|
|
|
5962
5712
|
// node_modules/zustand/esm/vanilla.mjs
|
|
5963
5713
|
var createStoreImpl = (createState) => {
|
|
@@ -5992,18 +5742,18 @@ var createStoreImpl = (createState) => {
|
|
|
5992
5742
|
var createStore = (createState) => createState ? createStoreImpl(createState) : createStoreImpl;
|
|
5993
5743
|
|
|
5994
5744
|
// node_modules/zustand/esm/traditional.mjs
|
|
5995
|
-
var { useDebugValue } = ReactExports__default.default;
|
|
5996
|
-
var { useSyncExternalStoreWithSelector } =
|
|
5745
|
+
var { useDebugValue: useDebugValue2 } = ReactExports__default.default;
|
|
5746
|
+
var { useSyncExternalStoreWithSelector: useSyncExternalStoreWithSelector2 } = use_sync_external_store_with_selector_default;
|
|
5997
5747
|
var identity3 = (arg) => arg;
|
|
5998
5748
|
function useStoreWithEqualityFn(api, selector = identity3, equalityFn) {
|
|
5999
|
-
const slice =
|
|
5749
|
+
const slice = useSyncExternalStoreWithSelector2(
|
|
6000
5750
|
api.subscribe,
|
|
6001
5751
|
api.getState,
|
|
6002
5752
|
api.getServerState || api.getInitialState,
|
|
6003
5753
|
selector,
|
|
6004
5754
|
equalityFn
|
|
6005
5755
|
);
|
|
6006
|
-
|
|
5756
|
+
useDebugValue2(slice);
|
|
6007
5757
|
return slice;
|
|
6008
5758
|
}
|
|
6009
5759
|
var createWithEqualityFnImpl = (createState, defaultEqualityFn) => {
|
|
@@ -9663,52 +9413,6 @@ function buildNodeTypes() {
|
|
|
9663
9413
|
for (const k of listNodeKinds()) map[k.name] = RegistryNode;
|
|
9664
9414
|
return map;
|
|
9665
9415
|
}
|
|
9666
|
-
/*! Bundled license information:
|
|
9667
|
-
|
|
9668
|
-
use-sync-external-store/cjs/use-sync-external-store-shim.production.js:
|
|
9669
|
-
(**
|
|
9670
|
-
* @license React
|
|
9671
|
-
* use-sync-external-store-shim.production.js
|
|
9672
|
-
*
|
|
9673
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
9674
|
-
*
|
|
9675
|
-
* This source code is licensed under the MIT license found in the
|
|
9676
|
-
* LICENSE file in the root directory of this source tree.
|
|
9677
|
-
*)
|
|
9678
|
-
|
|
9679
|
-
use-sync-external-store/cjs/use-sync-external-store-shim.development.js:
|
|
9680
|
-
(**
|
|
9681
|
-
* @license React
|
|
9682
|
-
* use-sync-external-store-shim.development.js
|
|
9683
|
-
*
|
|
9684
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
9685
|
-
*
|
|
9686
|
-
* This source code is licensed under the MIT license found in the
|
|
9687
|
-
* LICENSE file in the root directory of this source tree.
|
|
9688
|
-
*)
|
|
9689
|
-
|
|
9690
|
-
use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.production.js:
|
|
9691
|
-
(**
|
|
9692
|
-
* @license React
|
|
9693
|
-
* use-sync-external-store-shim/with-selector.production.js
|
|
9694
|
-
*
|
|
9695
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
9696
|
-
*
|
|
9697
|
-
* This source code is licensed under the MIT license found in the
|
|
9698
|
-
* LICENSE file in the root directory of this source tree.
|
|
9699
|
-
*)
|
|
9700
|
-
|
|
9701
|
-
use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.development.js:
|
|
9702
|
-
(**
|
|
9703
|
-
* @license React
|
|
9704
|
-
* use-sync-external-store-shim/with-selector.development.js
|
|
9705
|
-
*
|
|
9706
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
9707
|
-
*
|
|
9708
|
-
* This source code is licensed under the MIT license found in the
|
|
9709
|
-
* LICENSE file in the root directory of this source tree.
|
|
9710
|
-
*)
|
|
9711
|
-
*/
|
|
9712
9416
|
|
|
9713
9417
|
exports.BUILTIN_KINDS = BUILTIN_KINDS;
|
|
9714
9418
|
exports.RegistryNode = RegistryNode;
|