@gantfdt/semiword 1.1.2 → 1.2.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-lib/{FlowchartEditor-LT6T7ZQV.mjs → FlowchartEditor-OSHXJZQC.mjs} +3 -3
- package/dist-lib/{FlowchartEditor-LT6T7ZQV.mjs.map → FlowchartEditor-OSHXJZQC.mjs.map} +1 -1
- package/dist-lib/{MindmapEditor-TMXT2VG3.mjs → MindmapEditor-LHYQNYU2.mjs} +3 -3
- package/dist-lib/{MindmapEditor-TMXT2VG3.mjs.map → MindmapEditor-LHYQNYU2.mjs.map} +1 -1
- package/dist-lib/{WhiteboardEditor-FSYK6RVN.mjs → WhiteboardEditor-ZNZ7DSSC.mjs} +9 -457
- package/dist-lib/WhiteboardEditor-ZNZ7DSSC.mjs.map +1 -0
- package/dist-lib/ai.mjs +6 -6
- package/dist-lib/{chunk-JUWUIWRJ.mjs → chunk-3S2IK47C.mjs} +4 -4
- package/dist-lib/{chunk-JUWUIWRJ.mjs.map → chunk-3S2IK47C.mjs.map} +1 -1
- package/dist-lib/{chunk-2NQHWRMX.mjs → chunk-7SGGGLSR.mjs} +7 -7
- package/dist-lib/{chunk-2NQHWRMX.mjs.map → chunk-7SGGGLSR.mjs.map} +1 -1
- package/dist-lib/{chunk-YE3O5CVM.mjs → chunk-7SGW66XT.mjs} +166 -30
- package/dist-lib/chunk-7SGW66XT.mjs.map +1 -0
- package/dist-lib/{chunk-IQZHLLFT.mjs → chunk-ADBRQOSQ.mjs} +4 -4
- package/dist-lib/{chunk-IQZHLLFT.mjs.map → chunk-ADBRQOSQ.mjs.map} +1 -1
- package/dist-lib/{chunk-UNGEXPJP.mjs → chunk-FGUTLPFA.mjs} +6 -6
- package/dist-lib/{chunk-UNGEXPJP.mjs.map → chunk-FGUTLPFA.mjs.map} +1 -1
- package/dist-lib/{chunk-V4AKDECS.mjs → chunk-NRXQ5SSE.mjs} +15 -9
- package/dist-lib/chunk-NRXQ5SSE.mjs.map +1 -0
- package/dist-lib/{chunk-WT7ZJINB.mjs → chunk-Q72ADACC.mjs} +31 -4
- package/dist-lib/chunk-Q72ADACC.mjs.map +1 -0
- package/dist-lib/{chunk-YLBAMBKK.mjs → chunk-UB5DIRWL.mjs} +4 -4
- package/dist-lib/{chunk-YLBAMBKK.mjs.map → chunk-UB5DIRWL.mjs.map} +1 -1
- package/dist-lib/designer.mjs +7 -7
- package/dist-lib/editor.d.mts +3 -3
- package/dist-lib/editor.mjs +7 -7
- package/dist-lib/gant-ai.mjs +6 -6
- package/dist-lib/index.d.mts +2 -2
- package/dist-lib/index.mjs +7 -7
- package/dist-lib/io.mjs +3 -3
- package/dist-lib/sdk.mjs +4 -4
- package/dist-lib/storage.d.mts +3 -3
- package/dist-lib/{types-D7kCE5Mu.d.mts → types-D43MTtwD.d.mts} +4 -0
- package/dist-lib/{useDocumentPersistence-CDUT0u5S.d.mts → useDocumentPersistence-0s-GS72-.d.mts} +1 -1
- package/package.json +4 -4
- package/dist-lib/WhiteboardEditor-FSYK6RVN.mjs.map +0 -1
- package/dist-lib/chunk-V4AKDECS.mjs.map +0 -1
- package/dist-lib/chunk-WT7ZJINB.mjs.map +0 -1
- package/dist-lib/chunk-YE3O5CVM.mjs.map +0 -1
|
@@ -5,15 +5,16 @@ import './chunk-G6HPH6AR.mjs';
|
|
|
5
5
|
import { c } from './chunk-3ZNQFITA.mjs';
|
|
6
6
|
import { g, i, h } from './chunk-VV6VKT22.mjs';
|
|
7
7
|
import { useContainerReady, useIsMounted } from './chunk-7AAZUM6M.mjs';
|
|
8
|
-
import { createGraphicEditorShellStyles, finalizeSvgRoot, EditorActionBar } from './chunk-
|
|
8
|
+
import { createGraphicEditorShellStyles, finalizeSvgRoot, EditorActionBar } from './chunk-Q72ADACC.mjs';
|
|
9
9
|
import './chunk-7D6NMYFG.mjs';
|
|
10
10
|
import './chunk-W627LLF4.mjs';
|
|
11
|
-
import { __commonJS,
|
|
11
|
+
import { __commonJS, __toESM } from './chunk-3FDXOZHO.mjs';
|
|
12
12
|
import * as React25 from 'react';
|
|
13
13
|
import React25__default, { createContext, useState, useRef, useEffect, forwardRef, useMemo, useCallback, memo, useImperativeHandle, useLayoutEffect, createElement, version, useContext, Children, isValidElement, cloneElement, Fragment as Fragment$1, useReducer, useDebugValue, useDeferredValue } from 'react';
|
|
14
14
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
15
15
|
import * as ReactDOM from 'react-dom';
|
|
16
16
|
import ReactDOM__default, { flushSync, unstable_batchedUpdates, createPortal } from 'react-dom';
|
|
17
|
+
import { create } from 'zustand';
|
|
17
18
|
import '@excalidraw/excalidraw/index.css';
|
|
18
19
|
|
|
19
20
|
// node_modules/.pnpm/fuzzy@0.1.3/node_modules/fuzzy/lib/fuzzy.js
|
|
@@ -90,339 +91,6 @@ var require_fuzzy = __commonJS({
|
|
|
90
91
|
}
|
|
91
92
|
});
|
|
92
93
|
|
|
93
|
-
// node_modules/.pnpm/use-sync-external-store@1.2.0_react@18.3.1/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.min.js
|
|
94
|
-
var require_use_sync_external_store_shim_production_min = __commonJS({
|
|
95
|
-
"node_modules/.pnpm/use-sync-external-store@1.2.0_react@18.3.1/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.min.js"(exports) {
|
|
96
|
-
var e7 = __require("react");
|
|
97
|
-
function h2(a, b) {
|
|
98
|
-
return a === b && (0 !== a || 1 / a === 1 / b) || a !== a && b !== b;
|
|
99
|
-
}
|
|
100
|
-
var k3 = "function" === typeof Object.is ? Object.is : h2;
|
|
101
|
-
var l = e7.useState;
|
|
102
|
-
var m = e7.useEffect;
|
|
103
|
-
var n = e7.useLayoutEffect;
|
|
104
|
-
var p = e7.useDebugValue;
|
|
105
|
-
function q(a, b) {
|
|
106
|
-
var d = b(), f = l({ inst: { value: d, getSnapshot: b } }), c3 = f[0].inst, g6 = f[1];
|
|
107
|
-
n(function() {
|
|
108
|
-
c3.value = d;
|
|
109
|
-
c3.getSnapshot = b;
|
|
110
|
-
r(c3) && g6({ inst: c3 });
|
|
111
|
-
}, [a, d, b]);
|
|
112
|
-
m(function() {
|
|
113
|
-
r(c3) && g6({ inst: c3 });
|
|
114
|
-
return a(function() {
|
|
115
|
-
r(c3) && g6({ inst: c3 });
|
|
116
|
-
});
|
|
117
|
-
}, [a]);
|
|
118
|
-
p(d);
|
|
119
|
-
return d;
|
|
120
|
-
}
|
|
121
|
-
function r(a) {
|
|
122
|
-
var b = a.getSnapshot;
|
|
123
|
-
a = a.value;
|
|
124
|
-
try {
|
|
125
|
-
var d = b();
|
|
126
|
-
return !k3(a, d);
|
|
127
|
-
} catch (f) {
|
|
128
|
-
return true;
|
|
129
|
-
}
|
|
130
|
-
}
|
|
131
|
-
function t(a, b) {
|
|
132
|
-
return b();
|
|
133
|
-
}
|
|
134
|
-
var u3 = "undefined" === typeof window || "undefined" === typeof window.document || "undefined" === typeof window.document.createElement ? t : q;
|
|
135
|
-
exports.useSyncExternalStore = void 0 !== e7.useSyncExternalStore ? e7.useSyncExternalStore : u3;
|
|
136
|
-
}
|
|
137
|
-
});
|
|
138
|
-
|
|
139
|
-
// node_modules/.pnpm/use-sync-external-store@1.2.0_react@18.3.1/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.js
|
|
140
|
-
var require_use_sync_external_store_shim_development = __commonJS({
|
|
141
|
-
"node_modules/.pnpm/use-sync-external-store@1.2.0_react@18.3.1/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.js"(exports) {
|
|
142
|
-
if (process.env.NODE_ENV !== "production") {
|
|
143
|
-
(function() {
|
|
144
|
-
if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== "undefined" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart === "function") {
|
|
145
|
-
__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
|
|
146
|
-
}
|
|
147
|
-
var React29 = __require("react");
|
|
148
|
-
var ReactSharedInternals = React29.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
149
|
-
function error(format) {
|
|
150
|
-
{
|
|
151
|
-
{
|
|
152
|
-
for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
|
|
153
|
-
args[_key2 - 1] = arguments[_key2];
|
|
154
|
-
}
|
|
155
|
-
printWarning("error", format, args);
|
|
156
|
-
}
|
|
157
|
-
}
|
|
158
|
-
}
|
|
159
|
-
function printWarning(level, format, args) {
|
|
160
|
-
{
|
|
161
|
-
var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;
|
|
162
|
-
var stack = ReactDebugCurrentFrame.getStackAddendum();
|
|
163
|
-
if (stack !== "") {
|
|
164
|
-
format += "%s";
|
|
165
|
-
args = args.concat([stack]);
|
|
166
|
-
}
|
|
167
|
-
var argsWithFormat = args.map(function(item) {
|
|
168
|
-
return String(item);
|
|
169
|
-
});
|
|
170
|
-
argsWithFormat.unshift("Warning: " + format);
|
|
171
|
-
Function.prototype.apply.call(console[level], console, argsWithFormat);
|
|
172
|
-
}
|
|
173
|
-
}
|
|
174
|
-
function is2(x, y) {
|
|
175
|
-
return x === y && (x !== 0 || 1 / x === 1 / y) || x !== x && y !== y;
|
|
176
|
-
}
|
|
177
|
-
var objectIs = typeof Object.is === "function" ? Object.is : is2;
|
|
178
|
-
var useState16 = React29.useState, useEffect17 = React29.useEffect, useLayoutEffect5 = React29.useLayoutEffect, useDebugValue3 = React29.useDebugValue;
|
|
179
|
-
var didWarnOld18Alpha = false;
|
|
180
|
-
var didWarnUncachedGetSnapshot = false;
|
|
181
|
-
function useSyncExternalStore(subscribe, getSnapshot, getServerSnapshot) {
|
|
182
|
-
{
|
|
183
|
-
if (!didWarnOld18Alpha) {
|
|
184
|
-
if (React29.startTransition !== void 0) {
|
|
185
|
-
didWarnOld18Alpha = true;
|
|
186
|
-
error("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.");
|
|
187
|
-
}
|
|
188
|
-
}
|
|
189
|
-
}
|
|
190
|
-
var value = getSnapshot();
|
|
191
|
-
{
|
|
192
|
-
if (!didWarnUncachedGetSnapshot) {
|
|
193
|
-
var cachedValue = getSnapshot();
|
|
194
|
-
if (!objectIs(value, cachedValue)) {
|
|
195
|
-
error("The result of getSnapshot should be cached to avoid an infinite loop");
|
|
196
|
-
didWarnUncachedGetSnapshot = true;
|
|
197
|
-
}
|
|
198
|
-
}
|
|
199
|
-
}
|
|
200
|
-
var _useState = useState16({
|
|
201
|
-
inst: {
|
|
202
|
-
value,
|
|
203
|
-
getSnapshot
|
|
204
|
-
}
|
|
205
|
-
}), inst = _useState[0].inst, forceUpdate = _useState[1];
|
|
206
|
-
useLayoutEffect5(function() {
|
|
207
|
-
inst.value = value;
|
|
208
|
-
inst.getSnapshot = getSnapshot;
|
|
209
|
-
if (checkIfSnapshotChanged(inst)) {
|
|
210
|
-
forceUpdate({
|
|
211
|
-
inst
|
|
212
|
-
});
|
|
213
|
-
}
|
|
214
|
-
}, [subscribe, value, getSnapshot]);
|
|
215
|
-
useEffect17(function() {
|
|
216
|
-
if (checkIfSnapshotChanged(inst)) {
|
|
217
|
-
forceUpdate({
|
|
218
|
-
inst
|
|
219
|
-
});
|
|
220
|
-
}
|
|
221
|
-
var handleStoreChange = function() {
|
|
222
|
-
if (checkIfSnapshotChanged(inst)) {
|
|
223
|
-
forceUpdate({
|
|
224
|
-
inst
|
|
225
|
-
});
|
|
226
|
-
}
|
|
227
|
-
};
|
|
228
|
-
return subscribe(handleStoreChange);
|
|
229
|
-
}, [subscribe]);
|
|
230
|
-
useDebugValue3(value);
|
|
231
|
-
return value;
|
|
232
|
-
}
|
|
233
|
-
function checkIfSnapshotChanged(inst) {
|
|
234
|
-
var latestGetSnapshot = inst.getSnapshot;
|
|
235
|
-
var prevValue = inst.value;
|
|
236
|
-
try {
|
|
237
|
-
var nextValue = latestGetSnapshot();
|
|
238
|
-
return !objectIs(prevValue, nextValue);
|
|
239
|
-
} catch (error2) {
|
|
240
|
-
return true;
|
|
241
|
-
}
|
|
242
|
-
}
|
|
243
|
-
function useSyncExternalStore$1(subscribe, getSnapshot, getServerSnapshot) {
|
|
244
|
-
return getSnapshot();
|
|
245
|
-
}
|
|
246
|
-
var canUseDOM = !!(typeof window !== "undefined" && typeof window.document !== "undefined" && typeof window.document.createElement !== "undefined");
|
|
247
|
-
var isServerEnvironment = !canUseDOM;
|
|
248
|
-
var shim = isServerEnvironment ? useSyncExternalStore$1 : useSyncExternalStore;
|
|
249
|
-
var useSyncExternalStore$2 = React29.useSyncExternalStore !== void 0 ? React29.useSyncExternalStore : shim;
|
|
250
|
-
exports.useSyncExternalStore = useSyncExternalStore$2;
|
|
251
|
-
if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== "undefined" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop === "function") {
|
|
252
|
-
__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());
|
|
253
|
-
}
|
|
254
|
-
})();
|
|
255
|
-
}
|
|
256
|
-
}
|
|
257
|
-
});
|
|
258
|
-
|
|
259
|
-
// node_modules/.pnpm/use-sync-external-store@1.2.0_react@18.3.1/node_modules/use-sync-external-store/shim/index.js
|
|
260
|
-
var require_shim = __commonJS({
|
|
261
|
-
"node_modules/.pnpm/use-sync-external-store@1.2.0_react@18.3.1/node_modules/use-sync-external-store/shim/index.js"(exports, module) {
|
|
262
|
-
if (process.env.NODE_ENV === "production") {
|
|
263
|
-
module.exports = require_use_sync_external_store_shim_production_min();
|
|
264
|
-
} else {
|
|
265
|
-
module.exports = require_use_sync_external_store_shim_development();
|
|
266
|
-
}
|
|
267
|
-
}
|
|
268
|
-
});
|
|
269
|
-
|
|
270
|
-
// node_modules/.pnpm/use-sync-external-store@1.2.0_react@18.3.1/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.production.min.js
|
|
271
|
-
var require_with_selector_production_min = __commonJS({
|
|
272
|
-
"node_modules/.pnpm/use-sync-external-store@1.2.0_react@18.3.1/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.production.min.js"(exports) {
|
|
273
|
-
var h2 = __require("react");
|
|
274
|
-
var n = require_shim();
|
|
275
|
-
function p(a, b) {
|
|
276
|
-
return a === b && (0 !== a || 1 / a === 1 / b) || a !== a && b !== b;
|
|
277
|
-
}
|
|
278
|
-
var q = "function" === typeof Object.is ? Object.is : p;
|
|
279
|
-
var r = n.useSyncExternalStore;
|
|
280
|
-
var t = h2.useRef;
|
|
281
|
-
var u3 = h2.useEffect;
|
|
282
|
-
var v = h2.useMemo;
|
|
283
|
-
var w = h2.useDebugValue;
|
|
284
|
-
exports.useSyncExternalStoreWithSelector = function(a, b, e7, l, g6) {
|
|
285
|
-
var c3 = t(null);
|
|
286
|
-
if (null === c3.current) {
|
|
287
|
-
var f = { hasValue: false, value: null };
|
|
288
|
-
c3.current = f;
|
|
289
|
-
} else f = c3.current;
|
|
290
|
-
c3 = v(function() {
|
|
291
|
-
function a3(a6) {
|
|
292
|
-
if (!c6) {
|
|
293
|
-
c6 = true;
|
|
294
|
-
d3 = a6;
|
|
295
|
-
a6 = l(a6);
|
|
296
|
-
if (void 0 !== g6 && f.hasValue) {
|
|
297
|
-
var b3 = f.value;
|
|
298
|
-
if (g6(b3, a6)) return k3 = b3;
|
|
299
|
-
}
|
|
300
|
-
return k3 = a6;
|
|
301
|
-
}
|
|
302
|
-
b3 = k3;
|
|
303
|
-
if (q(d3, a6)) return b3;
|
|
304
|
-
var e8 = l(a6);
|
|
305
|
-
if (void 0 !== g6 && g6(b3, e8)) return b3;
|
|
306
|
-
d3 = a6;
|
|
307
|
-
return k3 = e8;
|
|
308
|
-
}
|
|
309
|
-
var c6 = false, d3, k3, m = void 0 === e7 ? null : e7;
|
|
310
|
-
return [function() {
|
|
311
|
-
return a3(b());
|
|
312
|
-
}, null === m ? void 0 : function() {
|
|
313
|
-
return a3(m());
|
|
314
|
-
}];
|
|
315
|
-
}, [b, e7, l, g6]);
|
|
316
|
-
var d = r(a, c3[0], c3[1]);
|
|
317
|
-
u3(function() {
|
|
318
|
-
f.hasValue = true;
|
|
319
|
-
f.value = d;
|
|
320
|
-
}, [d]);
|
|
321
|
-
w(d);
|
|
322
|
-
return d;
|
|
323
|
-
};
|
|
324
|
-
}
|
|
325
|
-
});
|
|
326
|
-
|
|
327
|
-
// node_modules/.pnpm/use-sync-external-store@1.2.0_react@18.3.1/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.development.js
|
|
328
|
-
var require_with_selector_development = __commonJS({
|
|
329
|
-
"node_modules/.pnpm/use-sync-external-store@1.2.0_react@18.3.1/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.development.js"(exports) {
|
|
330
|
-
if (process.env.NODE_ENV !== "production") {
|
|
331
|
-
(function() {
|
|
332
|
-
if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== "undefined" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart === "function") {
|
|
333
|
-
__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
|
|
334
|
-
}
|
|
335
|
-
var React29 = __require("react");
|
|
336
|
-
var shim = require_shim();
|
|
337
|
-
function is2(x, y) {
|
|
338
|
-
return x === y && (x !== 0 || 1 / x === 1 / y) || x !== x && y !== y;
|
|
339
|
-
}
|
|
340
|
-
var objectIs = typeof Object.is === "function" ? Object.is : is2;
|
|
341
|
-
var useSyncExternalStore = shim.useSyncExternalStore;
|
|
342
|
-
var useRef14 = React29.useRef, useEffect17 = React29.useEffect, useMemo6 = React29.useMemo, useDebugValue3 = React29.useDebugValue;
|
|
343
|
-
function useSyncExternalStoreWithSelector2(subscribe, getSnapshot, getServerSnapshot, selector, isEqual) {
|
|
344
|
-
var instRef = useRef14(null);
|
|
345
|
-
var inst;
|
|
346
|
-
if (instRef.current === null) {
|
|
347
|
-
inst = {
|
|
348
|
-
hasValue: false,
|
|
349
|
-
value: null
|
|
350
|
-
};
|
|
351
|
-
instRef.current = inst;
|
|
352
|
-
} else {
|
|
353
|
-
inst = instRef.current;
|
|
354
|
-
}
|
|
355
|
-
var _useMemo = useMemo6(function() {
|
|
356
|
-
var hasMemo = false;
|
|
357
|
-
var memoizedSnapshot;
|
|
358
|
-
var memoizedSelection;
|
|
359
|
-
var memoizedSelector = function(nextSnapshot) {
|
|
360
|
-
if (!hasMemo) {
|
|
361
|
-
hasMemo = true;
|
|
362
|
-
memoizedSnapshot = nextSnapshot;
|
|
363
|
-
var _nextSelection = selector(nextSnapshot);
|
|
364
|
-
if (isEqual !== void 0) {
|
|
365
|
-
if (inst.hasValue) {
|
|
366
|
-
var currentSelection = inst.value;
|
|
367
|
-
if (isEqual(currentSelection, _nextSelection)) {
|
|
368
|
-
memoizedSelection = currentSelection;
|
|
369
|
-
return currentSelection;
|
|
370
|
-
}
|
|
371
|
-
}
|
|
372
|
-
}
|
|
373
|
-
memoizedSelection = _nextSelection;
|
|
374
|
-
return _nextSelection;
|
|
375
|
-
}
|
|
376
|
-
var prevSnapshot = memoizedSnapshot;
|
|
377
|
-
var prevSelection = memoizedSelection;
|
|
378
|
-
if (objectIs(prevSnapshot, nextSnapshot)) {
|
|
379
|
-
return prevSelection;
|
|
380
|
-
}
|
|
381
|
-
var nextSelection = selector(nextSnapshot);
|
|
382
|
-
if (isEqual !== void 0 && isEqual(prevSelection, nextSelection)) {
|
|
383
|
-
return prevSelection;
|
|
384
|
-
}
|
|
385
|
-
memoizedSnapshot = nextSnapshot;
|
|
386
|
-
memoizedSelection = nextSelection;
|
|
387
|
-
return nextSelection;
|
|
388
|
-
};
|
|
389
|
-
var maybeGetServerSnapshot = getServerSnapshot === void 0 ? null : getServerSnapshot;
|
|
390
|
-
var getSnapshotWithSelector = function() {
|
|
391
|
-
return memoizedSelector(getSnapshot());
|
|
392
|
-
};
|
|
393
|
-
var getServerSnapshotWithSelector = maybeGetServerSnapshot === null ? void 0 : function() {
|
|
394
|
-
return memoizedSelector(maybeGetServerSnapshot());
|
|
395
|
-
};
|
|
396
|
-
return [getSnapshotWithSelector, getServerSnapshotWithSelector];
|
|
397
|
-
}, [getSnapshot, getServerSnapshot, selector, isEqual]), getSelection = _useMemo[0], getServerSelection = _useMemo[1];
|
|
398
|
-
var value = useSyncExternalStore(subscribe, getSelection, getServerSelection);
|
|
399
|
-
useEffect17(function() {
|
|
400
|
-
inst.hasValue = true;
|
|
401
|
-
inst.value = value;
|
|
402
|
-
}, [value]);
|
|
403
|
-
useDebugValue3(value);
|
|
404
|
-
return value;
|
|
405
|
-
}
|
|
406
|
-
exports.useSyncExternalStoreWithSelector = useSyncExternalStoreWithSelector2;
|
|
407
|
-
if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== "undefined" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop === "function") {
|
|
408
|
-
__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());
|
|
409
|
-
}
|
|
410
|
-
})();
|
|
411
|
-
}
|
|
412
|
-
}
|
|
413
|
-
});
|
|
414
|
-
|
|
415
|
-
// node_modules/.pnpm/use-sync-external-store@1.2.0_react@18.3.1/node_modules/use-sync-external-store/shim/with-selector.js
|
|
416
|
-
var require_with_selector = __commonJS({
|
|
417
|
-
"node_modules/.pnpm/use-sync-external-store@1.2.0_react@18.3.1/node_modules/use-sync-external-store/shim/with-selector.js"(exports, module) {
|
|
418
|
-
if (process.env.NODE_ENV === "production") {
|
|
419
|
-
module.exports = require_with_selector_production_min();
|
|
420
|
-
} else {
|
|
421
|
-
module.exports = require_with_selector_development();
|
|
422
|
-
}
|
|
423
|
-
}
|
|
424
|
-
});
|
|
425
|
-
|
|
426
94
|
// node_modules/.pnpm/lodash.debounce@4.0.8/node_modules/lodash.debounce/index.js
|
|
427
95
|
var require_lodash2 = __commonJS({
|
|
428
96
|
"node_modules/.pnpm/lodash.debounce@4.0.8/node_modules/lodash.debounce/index.js"(exports, module) {
|
|
@@ -5525,81 +5193,11 @@ var Content2 = PopoverContent;
|
|
|
5525
5193
|
var Arrow22 = PopoverArrow;
|
|
5526
5194
|
var import_lodash = __toESM(require_lodash(), 1);
|
|
5527
5195
|
var import_fuzzy = __toESM(require_fuzzy(), 1);
|
|
5528
|
-
|
|
5529
|
-
// node_modules/.pnpm/zustand@4.5.2_@types+react@18.3.1_react@18.3.1/node_modules/zustand/esm/vanilla.mjs
|
|
5530
|
-
var createStoreImpl = (createState) => {
|
|
5531
|
-
let state;
|
|
5532
|
-
const listeners = /* @__PURE__ */ new Set();
|
|
5533
|
-
const setState = (partial, replace) => {
|
|
5534
|
-
const nextState = typeof partial === "function" ? partial(state) : partial;
|
|
5535
|
-
if (!Object.is(nextState, state)) {
|
|
5536
|
-
const previousState = state;
|
|
5537
|
-
state = (replace != null ? replace : typeof nextState !== "object" || nextState === null) ? nextState : Object.assign({}, state, nextState);
|
|
5538
|
-
listeners.forEach((listener) => listener(state, previousState));
|
|
5539
|
-
}
|
|
5540
|
-
};
|
|
5541
|
-
const getState2 = () => state;
|
|
5542
|
-
const getInitialState = () => initialState;
|
|
5543
|
-
const subscribe = (listener) => {
|
|
5544
|
-
listeners.add(listener);
|
|
5545
|
-
return () => listeners.delete(listener);
|
|
5546
|
-
};
|
|
5547
|
-
const destroy = () => {
|
|
5548
|
-
if ((import.meta.env ? import.meta.env.MODE : void 0) !== "production") {
|
|
5549
|
-
console.warn(
|
|
5550
|
-
"[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."
|
|
5551
|
-
);
|
|
5552
|
-
}
|
|
5553
|
-
listeners.clear();
|
|
5554
|
-
};
|
|
5555
|
-
const api = { setState, getState: getState2, getInitialState, subscribe, destroy };
|
|
5556
|
-
const initialState = state = createState(setState, getState2, api);
|
|
5557
|
-
return api;
|
|
5558
|
-
};
|
|
5559
|
-
var createStore2 = (createState) => createState ? createStoreImpl(createState) : createStoreImpl;
|
|
5560
|
-
|
|
5561
|
-
// node_modules/.pnpm/zustand@4.5.2_@types+react@18.3.1_react@18.3.1/node_modules/zustand/esm/index.mjs
|
|
5562
|
-
var import_with_selector = __toESM(require_with_selector(), 1);
|
|
5563
|
-
var { useDebugValue: useDebugValue2 } = React25__default;
|
|
5564
|
-
var { useSyncExternalStoreWithSelector } = import_with_selector.default;
|
|
5565
|
-
var didWarnAboutEqualityFn = false;
|
|
5566
|
-
var identity = (arg) => arg;
|
|
5567
|
-
function useStore2(api, selector = identity, equalityFn) {
|
|
5568
|
-
if ((import.meta.env ? import.meta.env.MODE : void 0) !== "production" && equalityFn && !didWarnAboutEqualityFn) {
|
|
5569
|
-
console.warn(
|
|
5570
|
-
"[DEPRECATED] Use `createWithEqualityFn` instead of `create` or use `useStoreWithEqualityFn` instead of `useStore`. They can be imported from 'zustand/traditional'. https://github.com/pmndrs/zustand/discussions/1937"
|
|
5571
|
-
);
|
|
5572
|
-
didWarnAboutEqualityFn = true;
|
|
5573
|
-
}
|
|
5574
|
-
const slice = useSyncExternalStoreWithSelector(
|
|
5575
|
-
api.subscribe,
|
|
5576
|
-
api.getState,
|
|
5577
|
-
api.getServerState || api.getInitialState,
|
|
5578
|
-
selector,
|
|
5579
|
-
equalityFn
|
|
5580
|
-
);
|
|
5581
|
-
useDebugValue2(slice);
|
|
5582
|
-
return slice;
|
|
5583
|
-
}
|
|
5584
|
-
var createImpl = (createState) => {
|
|
5585
|
-
if ((import.meta.env ? import.meta.env.MODE : void 0) !== "production" && typeof createState !== "function") {
|
|
5586
|
-
console.warn(
|
|
5587
|
-
"[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`."
|
|
5588
|
-
);
|
|
5589
|
-
}
|
|
5590
|
-
const api = typeof createState === "function" ? createStore2(createState) : createState;
|
|
5591
|
-
const useBoundStore = (selector, equalityFn) => useStore2(api, selector, equalityFn);
|
|
5592
|
-
Object.assign(useBoundStore, api);
|
|
5593
|
-
return useBoundStore;
|
|
5594
|
-
};
|
|
5595
|
-
var create = (createState) => createState ? createImpl(createState) : createImpl;
|
|
5596
|
-
|
|
5597
|
-
// node_modules/.pnpm/tunnel-rat@0.1.2_@types+react@18.3.1_react@18.3.1/node_modules/tunnel-rat/dist/index.js
|
|
5598
5196
|
var _window$document;
|
|
5599
5197
|
var _window$navigator;
|
|
5600
5198
|
var useIsomorphicLayoutEffect2 = typeof window !== "undefined" && ((_window$document = window.document) != null && _window$document.createElement || ((_window$navigator = window.navigator) == null ? void 0 : _window$navigator.product) === "ReactNative") ? React25__default.useLayoutEffect : React25__default.useEffect;
|
|
5601
5199
|
function tunnel() {
|
|
5602
|
-
const
|
|
5200
|
+
const useStore2 = create((set) => ({
|
|
5603
5201
|
current: new Array(),
|
|
5604
5202
|
version: 0,
|
|
5605
5203
|
set
|
|
@@ -5608,8 +5206,8 @@ function tunnel() {
|
|
|
5608
5206
|
In: ({
|
|
5609
5207
|
children
|
|
5610
5208
|
}) => {
|
|
5611
|
-
const set =
|
|
5612
|
-
const version =
|
|
5209
|
+
const set = useStore2((state) => state.set);
|
|
5210
|
+
const version = useStore2((state) => state.version);
|
|
5613
5211
|
useIsomorphicLayoutEffect2(() => {
|
|
5614
5212
|
set((state) => ({
|
|
5615
5213
|
version: state.version + 1
|
|
@@ -5630,7 +5228,7 @@ function tunnel() {
|
|
|
5630
5228
|
return null;
|
|
5631
5229
|
},
|
|
5632
5230
|
Out: () => {
|
|
5633
|
-
const current =
|
|
5231
|
+
const current = useStore2((state) => state.current);
|
|
5634
5232
|
return /* @__PURE__ */ React25__default.createElement(React25__default.Fragment, null, current);
|
|
5635
5233
|
}
|
|
5636
5234
|
};
|
|
@@ -14193,53 +13791,7 @@ function WhiteboardEditor({ value, onSave, onCancel }) {
|
|
|
14193
13791
|
) })
|
|
14194
13792
|
] });
|
|
14195
13793
|
}
|
|
14196
|
-
/*! Bundled license information:
|
|
14197
|
-
|
|
14198
|
-
use-sync-external-store/cjs/use-sync-external-store-shim.production.min.js:
|
|
14199
|
-
(**
|
|
14200
|
-
* @license React
|
|
14201
|
-
* use-sync-external-store-shim.production.min.js
|
|
14202
|
-
*
|
|
14203
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
14204
|
-
*
|
|
14205
|
-
* This source code is licensed under the MIT license found in the
|
|
14206
|
-
* LICENSE file in the root directory of this source tree.
|
|
14207
|
-
*)
|
|
14208
|
-
|
|
14209
|
-
use-sync-external-store/cjs/use-sync-external-store-shim.development.js:
|
|
14210
|
-
(**
|
|
14211
|
-
* @license React
|
|
14212
|
-
* use-sync-external-store-shim.development.js
|
|
14213
|
-
*
|
|
14214
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
14215
|
-
*
|
|
14216
|
-
* This source code is licensed under the MIT license found in the
|
|
14217
|
-
* LICENSE file in the root directory of this source tree.
|
|
14218
|
-
*)
|
|
14219
|
-
|
|
14220
|
-
use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.production.min.js:
|
|
14221
|
-
(**
|
|
14222
|
-
* @license React
|
|
14223
|
-
* use-sync-external-store-shim/with-selector.production.min.js
|
|
14224
|
-
*
|
|
14225
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
14226
|
-
*
|
|
14227
|
-
* This source code is licensed under the MIT license found in the
|
|
14228
|
-
* LICENSE file in the root directory of this source tree.
|
|
14229
|
-
*)
|
|
14230
|
-
|
|
14231
|
-
use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.development.js:
|
|
14232
|
-
(**
|
|
14233
|
-
* @license React
|
|
14234
|
-
* use-sync-external-store-shim/with-selector.development.js
|
|
14235
|
-
*
|
|
14236
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
14237
|
-
*
|
|
14238
|
-
* This source code is licensed under the MIT license found in the
|
|
14239
|
-
* LICENSE file in the root directory of this source tree.
|
|
14240
|
-
*)
|
|
14241
|
-
*/
|
|
14242
13794
|
|
|
14243
13795
|
export { WhiteboardEditor as default };
|
|
14244
|
-
//# sourceMappingURL=WhiteboardEditor-
|
|
14245
|
-
//# sourceMappingURL=WhiteboardEditor-
|
|
13796
|
+
//# sourceMappingURL=WhiteboardEditor-ZNZ7DSSC.mjs.map
|
|
13797
|
+
//# sourceMappingURL=WhiteboardEditor-ZNZ7DSSC.mjs.map
|