@inditextech/weave-react 5.2.0 → 5.2.2
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/react.d.ts +27 -18
- package/dist/react.js +62 -132
- package/dist/react.stats.html +388 -33
- package/package.json +5 -5
package/dist/react.d.ts
CHANGED
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { Weave, WeaveAction, WeaveConnectedUsers, WeaveFontsPreloadFunction, WeaveNode, WeavePerformanceConfig, WeavePlugin, WeaveRenderer, WeaveStore } from "@inditextech/weave-sdk";
|
|
3
3
|
import { WeaveChildLoggerLevel, WeaveFont, WeaveSelection, WeaveState, WeaveStateElement, WeaveStatus } from "@inditextech/weave-types";
|
|
4
|
-
import { StoreApi, UseBoundStore } from "zustand";
|
|
5
|
-
|
|
6
4
|
//#region src/components/provider.d.ts
|
|
7
5
|
type WeaveProviderType = {
|
|
8
6
|
getContainer: () => HTMLElement;
|
|
@@ -17,20 +15,33 @@ type WeaveProviderType = {
|
|
|
17
15
|
logLevel?: "debug" | "info" | "warn" | "error";
|
|
18
16
|
logModules?: WeaveChildLoggerLevel[];
|
|
19
17
|
};
|
|
20
|
-
declare const WeaveProvider: ({
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
18
|
+
declare const WeaveProvider: ({ getContainer, store, renderer, nodes, actions, plugins, fonts, logLevel, logModules, performance, children }: Readonly<WeaveProviderType>) => React.JSX.Element;
|
|
19
|
+
//#endregion
|
|
20
|
+
//#region ../../node_modules/zustand/esm/vanilla.d.mts
|
|
21
|
+
type SetStateInternal<T> = {
|
|
22
|
+
_(partial: T | Partial<T> | {
|
|
23
|
+
_(state: T): T | Partial<T>;
|
|
24
|
+
}['_'], replace?: false): void;
|
|
25
|
+
_(state: T | {
|
|
26
|
+
_(state: T): T;
|
|
27
|
+
}['_'], replace: true): void;
|
|
28
|
+
}['_'];
|
|
29
|
+
interface StoreApi<T> {
|
|
30
|
+
setState: SetStateInternal<T>;
|
|
31
|
+
getState: () => T;
|
|
32
|
+
getInitialState: () => T;
|
|
33
|
+
subscribe: (listener: (state: T, prevState: T) => void) => () => void;
|
|
34
|
+
}
|
|
35
|
+
type ExtractState<S> = S extends {
|
|
36
|
+
getState: () => infer T;
|
|
37
|
+
} ? T : never;
|
|
38
|
+
//#endregion
|
|
39
|
+
//#region ../../node_modules/zustand/esm/react.d.mts
|
|
40
|
+
type ReadonlyStoreApi<T> = Pick<StoreApi<T>, 'getState' | 'getInitialState' | 'subscribe'>;
|
|
41
|
+
type UseBoundStore<S extends ReadonlyStoreApi<unknown>> = {
|
|
42
|
+
(): ExtractState<S>;
|
|
43
|
+
<U>(selector: (state: ExtractState<S>) => U): U;
|
|
44
|
+
} & S;
|
|
34
45
|
//#endregion
|
|
35
46
|
//#region src/components/store.d.ts
|
|
36
47
|
interface WeaveRuntimeState {
|
|
@@ -96,10 +107,8 @@ interface WeaveRuntimeActions {
|
|
|
96
107
|
}
|
|
97
108
|
interface WeaveStore$1 extends WeaveRuntimeState, WeaveRuntimeActions {}
|
|
98
109
|
declare const useWeave: UseBoundStore<StoreApi<WeaveStore$1>>;
|
|
99
|
-
|
|
100
110
|
//#endregion
|
|
101
111
|
//#region src/hooks/events.d.ts
|
|
102
112
|
declare const useWeaveEvents: () => void;
|
|
103
|
-
|
|
104
113
|
//#endregion
|
|
105
114
|
export { WeaveProvider, useWeave, useWeaveEvents };
|
package/dist/react.js
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { Weave } from "@inditextech/weave-sdk";
|
|
3
3
|
import { WEAVE_INSTANCE_STATUS } from "@inditextech/weave-types";
|
|
4
|
-
|
|
5
4
|
//#region ../../node_modules/zustand/esm/vanilla.mjs
|
|
6
5
|
const createStoreImpl = (createState) => {
|
|
7
6
|
let state;
|
|
@@ -30,7 +29,6 @@ const createStoreImpl = (createState) => {
|
|
|
30
29
|
return api;
|
|
31
30
|
};
|
|
32
31
|
const createStore = (createState) => createState ? createStoreImpl(createState) : createStoreImpl;
|
|
33
|
-
|
|
34
32
|
//#endregion
|
|
35
33
|
//#region ../../node_modules/zustand/esm/react.mjs
|
|
36
34
|
const identity = (arg) => arg;
|
|
@@ -46,7 +44,6 @@ const createImpl = (createState) => {
|
|
|
46
44
|
return useBoundStore;
|
|
47
45
|
};
|
|
48
46
|
const create = (createState) => createState ? createImpl(createState) : createImpl;
|
|
49
|
-
|
|
50
47
|
//#endregion
|
|
51
48
|
//#region src/components/store.tsx
|
|
52
49
|
const defaultAppState = {
|
|
@@ -219,7 +216,6 @@ const useWeave = create()((set) => ({
|
|
|
219
216
|
})),
|
|
220
217
|
reset: () => set(() => defaultAppState)
|
|
221
218
|
}));
|
|
222
|
-
|
|
223
219
|
//#endregion
|
|
224
220
|
//#region src/components/provider.tsx
|
|
225
221
|
const WeaveProvider = ({ getContainer, store, renderer, nodes = [], actions = [], plugins = [], fonts = [], logLevel = "info", logModules = [], performance, children }) => {
|
|
@@ -236,72 +232,36 @@ const WeaveProvider = ({ getContainer, store, renderer, nodes = [], actions = []
|
|
|
236
232
|
const setConnectionStatus = useWeave((state) => state.setConnectionStatus);
|
|
237
233
|
const setAsyncElements = useWeave((state) => state.setAsyncElements);
|
|
238
234
|
const setAsyncElementsState = useWeave((state) => state.setAsyncElementsState);
|
|
239
|
-
const onInstanceStatusHandler = React.useCallback(
|
|
240
|
-
(status)
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
)
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
(
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
)
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
)
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
const { canUndo, canRedo } = undoManagerStatus;
|
|
270
|
-
setCanUndo(canUndo);
|
|
271
|
-
setCanRedo(canRedo);
|
|
272
|
-
},
|
|
273
|
-
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
274
|
-
[]
|
|
275
|
-
);
|
|
276
|
-
const onActiveActionChangeHandler = React.useCallback(
|
|
277
|
-
(actionName) => {
|
|
278
|
-
setActualAction(actionName);
|
|
279
|
-
},
|
|
280
|
-
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
281
|
-
[selectedNodes]
|
|
282
|
-
);
|
|
283
|
-
const onAsyncElementsIdleHandler = React.useCallback(
|
|
284
|
-
() => {
|
|
285
|
-
setAsyncElementsState("idle");
|
|
286
|
-
},
|
|
287
|
-
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
288
|
-
[selectedNodes]
|
|
289
|
-
);
|
|
290
|
-
const onAsyncElementsLoadingHandler = React.useCallback(
|
|
291
|
-
({ loaded, total }) => {
|
|
292
|
-
setAsyncElementsState("loading");
|
|
293
|
-
setAsyncElements(loaded, total);
|
|
294
|
-
},
|
|
295
|
-
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
296
|
-
[selectedNodes]
|
|
297
|
-
);
|
|
298
|
-
const onAsyncElementsLoadedHandler = React.useCallback(
|
|
299
|
-
() => {
|
|
300
|
-
setAsyncElementsState("loaded");
|
|
301
|
-
},
|
|
302
|
-
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
303
|
-
[selectedNodes]
|
|
304
|
-
);
|
|
235
|
+
const onInstanceStatusHandler = React.useCallback((status) => {
|
|
236
|
+
setStatus(status);
|
|
237
|
+
}, []);
|
|
238
|
+
const onStoreConnectionStatusChangeHandler = React.useCallback((status) => {
|
|
239
|
+
setConnectionStatus(status);
|
|
240
|
+
}, []);
|
|
241
|
+
const onRoomLoadedHandler = React.useCallback((status) => {
|
|
242
|
+
setRoomLoaded(status);
|
|
243
|
+
}, []);
|
|
244
|
+
const onStateChangeHandler = React.useCallback((state) => {
|
|
245
|
+
setAppState(state);
|
|
246
|
+
}, [selectedNodes]);
|
|
247
|
+
const onUndoManagerStatusChangeHandler = React.useCallback((undoManagerStatus) => {
|
|
248
|
+
const { canUndo, canRedo } = undoManagerStatus;
|
|
249
|
+
setCanUndo(canUndo);
|
|
250
|
+
setCanRedo(canRedo);
|
|
251
|
+
}, []);
|
|
252
|
+
const onActiveActionChangeHandler = React.useCallback((actionName) => {
|
|
253
|
+
setActualAction(actionName);
|
|
254
|
+
}, [selectedNodes]);
|
|
255
|
+
const onAsyncElementsIdleHandler = React.useCallback(() => {
|
|
256
|
+
setAsyncElementsState("idle");
|
|
257
|
+
}, [selectedNodes]);
|
|
258
|
+
const onAsyncElementsLoadingHandler = React.useCallback(({ loaded, total }) => {
|
|
259
|
+
setAsyncElementsState("loading");
|
|
260
|
+
setAsyncElements(loaded, total);
|
|
261
|
+
}, [selectedNodes]);
|
|
262
|
+
const onAsyncElementsLoadedHandler = React.useCallback(() => {
|
|
263
|
+
setAsyncElementsState("loaded");
|
|
264
|
+
}, [selectedNodes]);
|
|
305
265
|
React.useEffect(() => {
|
|
306
266
|
async function initWeave() {
|
|
307
267
|
const weaveEle = getContainer();
|
|
@@ -362,7 +322,6 @@ const WeaveProvider = ({ getContainer, store, renderer, nodes = [], actions = []
|
|
|
362
322
|
}, []);
|
|
363
323
|
return /* @__PURE__ */ React.createElement(React.Fragment, null, children);
|
|
364
324
|
};
|
|
365
|
-
|
|
366
325
|
//#endregion
|
|
367
326
|
//#region src/hooks/events.tsx
|
|
368
327
|
const useWeaveEvents = () => {
|
|
@@ -378,68 +337,40 @@ const useWeaveEvents = () => {
|
|
|
378
337
|
const setNode = useWeave((state) => state.setNode);
|
|
379
338
|
const setUsers = useWeave((state) => state.setUsers);
|
|
380
339
|
const setUsersLocks = useWeave((state) => state.setUsersLocks);
|
|
381
|
-
const onStoreRoomChangedHandler = React.useCallback(
|
|
382
|
-
(
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
)
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
setRoomSwitching(true);
|
|
391
|
-
},
|
|
392
|
-
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
393
|
-
[]
|
|
394
|
-
);
|
|
395
|
-
const onRoomSwitchingEndHandler = React.useCallback(
|
|
396
|
-
() => {
|
|
397
|
-
setRoomSwitching(false);
|
|
398
|
-
},
|
|
399
|
-
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
400
|
-
[]
|
|
401
|
-
);
|
|
340
|
+
const onStoreRoomChangedHandler = React.useCallback(({ room }) => {
|
|
341
|
+
setRoomId(room);
|
|
342
|
+
}, []);
|
|
343
|
+
const onRoomSwitchingStartHandler = React.useCallback(() => {
|
|
344
|
+
setRoomSwitching(true);
|
|
345
|
+
}, []);
|
|
346
|
+
const onRoomSwitchingEndHandler = React.useCallback(() => {
|
|
347
|
+
setRoomSwitching(false);
|
|
348
|
+
}, []);
|
|
402
349
|
const onSelectionStateHandler = React.useCallback((active) => {
|
|
403
350
|
setSelectionActive(active);
|
|
404
351
|
}, []);
|
|
405
|
-
const onZoomChangeHandler = React.useCallback(
|
|
406
|
-
(zoomInfo)
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
);
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
}
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
);
|
|
424
|
-
|
|
425
|
-
(
|
|
426
|
-
|
|
427
|
-
},
|
|
428
|
-
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
429
|
-
[]
|
|
430
|
-
);
|
|
431
|
-
const onMutexLockChangeHandler = React.useCallback(
|
|
432
|
-
({ locks }) => {
|
|
433
|
-
const actUsersLocks = {};
|
|
434
|
-
for (const lockKey of locks) {
|
|
435
|
-
const mutexInfo = instance?.getLockDetails(lockKey);
|
|
436
|
-
if (mutexInfo) actUsersLocks[lockKey] = mutexInfo;
|
|
437
|
-
}
|
|
438
|
-
setUsersLocks(actUsersLocks);
|
|
439
|
-
},
|
|
440
|
-
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
441
|
-
[instance]
|
|
442
|
-
);
|
|
352
|
+
const onZoomChangeHandler = React.useCallback((zoomInfo) => {
|
|
353
|
+
setZoom(zoomInfo.scale);
|
|
354
|
+
setCanZoomIn(zoomInfo.canZoomIn);
|
|
355
|
+
setCanZoomOut(zoomInfo.canZoomOut);
|
|
356
|
+
}, []);
|
|
357
|
+
const onNodesChangeHandler = React.useCallback((nodes) => {
|
|
358
|
+
if (nodes.length === 1 && node?.key !== nodes[0].node?.key) setNode(nodes[0].node);
|
|
359
|
+
if (nodes.length === 0) setNode(void 0);
|
|
360
|
+
if (nodes.length > 1) setNode(void 0);
|
|
361
|
+
setSelectedNodes(nodes);
|
|
362
|
+
}, [node]);
|
|
363
|
+
const onConnectedUsersChangedHandler = React.useCallback((users) => {
|
|
364
|
+
setUsers(users);
|
|
365
|
+
}, []);
|
|
366
|
+
const onMutexLockChangeHandler = React.useCallback(({ locks }) => {
|
|
367
|
+
const actUsersLocks = {};
|
|
368
|
+
for (const lockKey of locks) {
|
|
369
|
+
const mutexInfo = instance?.getLockDetails(lockKey);
|
|
370
|
+
if (mutexInfo) actUsersLocks[lockKey] = mutexInfo;
|
|
371
|
+
}
|
|
372
|
+
setUsersLocks(actUsersLocks);
|
|
373
|
+
}, [instance]);
|
|
443
374
|
React.useEffect(() => {
|
|
444
375
|
if (!instance) return;
|
|
445
376
|
instance.addEventListener("onStoreRoomChanged", onStoreRoomChangedHandler);
|
|
@@ -462,6 +393,5 @@ const useWeaveEvents = () => {
|
|
|
462
393
|
};
|
|
463
394
|
}, [instance]);
|
|
464
395
|
};
|
|
465
|
-
|
|
466
396
|
//#endregion
|
|
467
|
-
export { WeaveProvider, useWeave, useWeaveEvents };
|
|
397
|
+
export { WeaveProvider, useWeave, useWeaveEvents };
|
package/dist/react.stats.html
CHANGED
|
@@ -149,7 +149,7 @@ main {
|
|
|
149
149
|
var drawChart = (function (exports) {
|
|
150
150
|
'use strict';
|
|
151
151
|
|
|
152
|
-
var n,l$1,u$2,i$1,r$1,o$1,e$1,f$2,c$1,s$1,a$1,h$1,p$1={},v$1=[],y$1=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,d$1=Array.isArray;function w$1(n,l){for(var u in l)n[u]=l[u];return n}function g(n){n&&n.parentNode&&n.parentNode.removeChild(n);}function _$1(l,u,t){var i,r,o,e={};for(o in u)"key"==o?i=u[o]:"ref"==o?r=u[o]:e[o]=u[o];if(arguments.length>2&&(e.children=arguments.length>3?n.call(arguments,2):t),"function"==typeof l&&null!=l.defaultProps)for(o in l.defaultProps) void 0===e[o]&&(e[o]=l.defaultProps[o]);return m$1(l,e,i,r,null)}function m$1(n,t,i,r,o){var e={type:n,props:t,key:i,ref:r,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:null==o?++u$2:o,__i:-1,__u:0};return null==o&&null!=l$1.vnode&&l$1.vnode(e),e}function k$1(n){return n.children}function x$1(n,l){this.props=n,this.context=l;}function S(n,l){if(null==l)return n.__?S(n.__,n.__i+1):null;for(var u;l<n.__k.length;l++)if(null!=(u=n.__k[l])&&null!=u.__e)return u.__e;return "function"==typeof n.type?S(n):null}function C$1(n){if(n.__P&&n.__d){var u=n.__v,t=u.__e,i=[],r=[],o=w$1({},u);o.__v=u.__v+1,l$1.vnode&&l$1.vnode(o),z$1(n.__P,o,u,n.__n,n.__P.namespaceURI,32&u.__u?[t]:null,i,null==t?S(u):t,!!(32&u.__u),r),o.__v=u.__v,o.__.__k[o.__i]=o,V(i,o,r),u.__e=u.__=null,o.__e!=t&&M(o);}}function M(n){if(null!=(n=n.__)&&null!=n.__c)return n.__e=n.__c.base=null,n.__k.some(function(l){if(null!=l&&null!=l.__e)return n.__e=n.__c.base=l.__e}),M(n)}function $(n){(!n.__d&&(n.__d=true)&&i$1.push(n)&&!I.__r++||r$1!=l$1.debounceRendering)&&((r$1=l$1.debounceRendering)||o$1)(I);}function I(){for(var n,l=1;i$1.length;)i$1.length>l&&i$1.sort(e$1),n=i$1.shift(),l=i$1.length,C$1(n);I.__r=0;}function P(n,l,u,t,i,r,o,e,f,c,s){var a,h,y,d,w,g,_,m=t&&t.__k||v$1,b=l.length;for(f=A$1(u,l,m,f,b),a=0;a<b;a++)null!=(y=u.__k[a])&&(h=-1!=y.__i&&m[y.__i]||p$1,y.__i=a,g=z$1(n,y,h,i,r,o,e,f,c,s),d=y.__e,y.ref&&h.ref!=y.ref&&(h.ref&&D$1(h.ref,null,y),s.push(y.ref,y.__c||d,y)),null==w&&null!=d&&(w=d),(_=!!(4&y.__u))||h.__k===y.__k?f=H(y,f,n,_):"function"==typeof y.type&&void 0!==g?f=g:d&&(f=d.nextSibling),y.__u&=-7);return u.__e=w,f}function A$1(n,l,u,t,i){var r,o,e,f,c,s=u.length,a=s,h=0;for(n.__k=new Array(i),r=0;r<i;r++)null!=(o=l[r])&&"boolean"!=typeof o&&"function"!=typeof o?("string"==typeof o||"number"==typeof o||"bigint"==typeof o||o.constructor==String?o=n.__k[r]=m$1(null,o,null,null,null):d$1(o)?o=n.__k[r]=m$1(k$1,{children:o},null,null,null):void 0===o.constructor&&o.__b>0?o=n.__k[r]=m$1(o.type,o.props,o.key,o.ref?o.ref:null,o.__v):n.__k[r]=o,f=r+h,o.__=n,o.__b=n.__b+1,e=null,-1!=(c=o.__i=T$1(o,u,f,a))&&(a--,(e=u[c])&&(e.__u|=2)),null==e||null==e.__v?(-1==c&&(i>s?h--:i<s&&h++),"function"!=typeof o.type&&(o.__u|=4)):c!=f&&(c==f-1?h--:c==f+1?h++:(c>f?h--:h++,o.__u|=4))):n.__k[r]=null;if(a)for(r=0;r<s;r++)null!=(e=u[r])&&0==(2&e.__u)&&(e.__e==t&&(t=S(e)),E(e,e));return t}function H(n,l,u,t){var i,r;if("function"==typeof n.type){for(i=n.__k,r=0;i&&r<i.length;r++)i[r]&&(i[r].__=n,l=H(i[r],l,u,t));return l}n.__e!=l&&(t&&(l&&n.type&&!l.parentNode&&(l=S(n)),u.insertBefore(n.__e,l||null)),l=n.__e);do{l=l&&l.nextSibling;}while(null!=l&&8==l.nodeType);return l}function T$1(n,l,u,t){var i,r,o,e=n.key,f=n.type,c=l[u],s=null!=c&&0==(2&c.__u);if(null===c&&null==e||s&&e==c.key&&f==c.type)return u;if(t>(s?1:0))for(i=u-1,r=u+1;i>=0||r<l.length;)if(null!=(c=l[o=i>=0?i--:r++])&&0==(2&c.__u)&&e==c.key&&f==c.type)return o;return -1}function j$1(n,l,u){"-"==l[0]?n.setProperty(l,null==u?"":u):n[l]=null==u?"":"number"!=typeof u||y$1.test(l)?u:u+"px";}function F(n,l,u,t,i){var r,o;n:if("style"==l)if("string"==typeof u)n.style.cssText=u;else {if("string"==typeof t&&(n.style.cssText=t=""),t)for(l in t)u&&l in u||j$1(n.style,l,"");if(u)for(l in u)t&&u[l]==t[l]||j$1(n.style,l,u[l]);}else if("o"==l[0]&&"n"==l[1])r=l!=(l=l.replace(f$2,"$1")),o=l.toLowerCase(),l=o in n||"onFocusOut"==l||"onFocusIn"==l?o.slice(2):l.slice(2),n.l||(n.l={}),n.l[l+r]=u,u?t?u.u=t.u:(u.u=c$1,n.addEventListener(l,r?a$1:s$1,r)):n.removeEventListener(l,r?a$1:s$1,r);else {if("http://www.w3.org/2000/svg"==i)l=l.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!=l&&"height"!=l&&"href"!=l&&"list"!=l&&"form"!=l&&"tabIndex"!=l&&"download"!=l&&"rowSpan"!=l&&"colSpan"!=l&&"role"!=l&&"popover"!=l&&l in n)try{n[l]=null==u?"":u;break n}catch(n){}"function"==typeof u||(null==u||false===u&&"-"!=l[4]?n.removeAttribute(l):n.setAttribute(l,"popover"==l&&1==u?"":u));}}function O(n){return function(u){if(this.l){var t=this.l[u.type+n];if(null==u.t)u.t=c$1++;else if(u.t<t.u)return;return t(l$1.event?l$1.event(u):u)}}}function z$1(n,u,t,i,r,o,e,f,c,s){var a,h,p,y,_,m,b,S,C,M,$,I,A,H,L,T=u.type;if(void 0!==u.constructor)return null;128&t.__u&&(c=!!(32&t.__u),o=[f=u.__e=t.__e]),(a=l$1.__b)&&a(u);n:if("function"==typeof T)try{if(S=u.props,C="prototype"in T&&T.prototype.render,M=(a=T.contextType)&&i[a.__c],$=a?M?M.props.value:a.__:i,t.__c?b=(h=u.__c=t.__c).__=h.__E:(C?u.__c=h=new T(S,$):(u.__c=h=new x$1(S,$),h.constructor=T,h.render=G),M&&M.sub(h),h.state||(h.state={}),h.__n=i,p=h.__d=!0,h.__h=[],h._sb=[]),C&&null==h.__s&&(h.__s=h.state),C&&null!=T.getDerivedStateFromProps&&(h.__s==h.state&&(h.__s=w$1({},h.__s)),w$1(h.__s,T.getDerivedStateFromProps(S,h.__s))),y=h.props,_=h.state,h.__v=u,p)C&&null==T.getDerivedStateFromProps&&null!=h.componentWillMount&&h.componentWillMount(),C&&null!=h.componentDidMount&&h.__h.push(h.componentDidMount);else {if(C&&null==T.getDerivedStateFromProps&&S!==y&&null!=h.componentWillReceiveProps&&h.componentWillReceiveProps(S,$),u.__v==t.__v||!h.__e&&null!=h.shouldComponentUpdate&&!1===h.shouldComponentUpdate(S,h.__s,$)){u.__v!=t.__v&&(h.props=S,h.state=h.__s,h.__d=!1),u.__e=t.__e,u.__k=t.__k,u.__k.some(function(n){n&&(n.__=u);}),v$1.push.apply(h.__h,h._sb),h._sb=[],h.__h.length&&e.push(h);break n}null!=h.componentWillUpdate&&h.componentWillUpdate(S,h.__s,$),C&&null!=h.componentDidUpdate&&h.__h.push(function(){h.componentDidUpdate(y,_,m);});}if(h.context=$,h.props=S,h.__P=n,h.__e=!1,I=l$1.__r,A=0,C)h.state=h.__s,h.__d=!1,I&&I(u),a=h.render(h.props,h.state,h.context),v$1.push.apply(h.__h,h._sb),h._sb=[];else do{h.__d=!1,I&&I(u),a=h.render(h.props,h.state,h.context),h.state=h.__s;}while(h.__d&&++A<25);h.state=h.__s,null!=h.getChildContext&&(i=w$1(w$1({},i),h.getChildContext())),C&&!p&&null!=h.getSnapshotBeforeUpdate&&(m=h.getSnapshotBeforeUpdate(y,_)),H=null!=a&&a.type===k$1&&null==a.key?q$1(a.props.children):a,f=P(n,d$1(H)?H:[H],u,t,i,r,o,e,f,c,s),h.base=u.__e,u.__u&=-161,h.__h.length&&e.push(h),b&&(h.__E=h.__=null);}catch(n){if(u.__v=null,c||null!=o)if(n.then){for(u.__u|=c?160:128;f&&8==f.nodeType&&f.nextSibling;)f=f.nextSibling;o[o.indexOf(f)]=null,u.__e=f;}else {for(L=o.length;L--;)g(o[L]);N(u);}else u.__e=t.__e,u.__k=t.__k,n.then||N(u);l$1.__e(n,u,t);}else null==o&&u.__v==t.__v?(u.__k=t.__k,u.__e=t.__e):f=u.__e=B$1(t.__e,u,t,i,r,o,e,c,s);return (a=l$1.diffed)&&a(u),128&u.__u?void 0:f}function N(n){n&&(n.__c&&(n.__c.__e=true),n.__k&&n.__k.some(N));}function V(n,u,t){for(var i=0;i<t.length;i++)D$1(t[i],t[++i],t[++i]);l$1.__c&&l$1.__c(u,n),n.some(function(u){try{n=u.__h,u.__h=[],n.some(function(n){n.call(u);});}catch(n){l$1.__e(n,u.__v);}});}function q$1(n){return "object"!=typeof n||null==n||n.__b>0?n:d$1(n)?n.map(q$1):w$1({},n)}function B$1(u,t,i,r,o,e,f,c,s){var a,h,v,y,w,_,m,b=i.props||p$1,k=t.props,x=t.type;if("svg"==x?o="http://www.w3.org/2000/svg":"math"==x?o="http://www.w3.org/1998/Math/MathML":o||(o="http://www.w3.org/1999/xhtml"),null!=e)for(a=0;a<e.length;a++)if((w=e[a])&&"setAttribute"in w==!!x&&(x?w.localName==x:3==w.nodeType)){u=w,e[a]=null;break}if(null==u){if(null==x)return document.createTextNode(k);u=document.createElementNS(o,x,k.is&&k),c&&(l$1.__m&&l$1.__m(t,e),c=false),e=null;}if(null==x)b===k||c&&u.data==k||(u.data=k);else {if(e=e&&n.call(u.childNodes),!c&&null!=e)for(b={},a=0;a<u.attributes.length;a++)b[(w=u.attributes[a]).name]=w.value;for(a in b)w=b[a],"dangerouslySetInnerHTML"==a?v=w:"children"==a||a in k||"value"==a&&"defaultValue"in k||"checked"==a&&"defaultChecked"in k||F(u,a,null,w,o);for(a in k)w=k[a],"children"==a?y=w:"dangerouslySetInnerHTML"==a?h=w:"value"==a?_=w:"checked"==a?m=w:c&&"function"!=typeof w||b[a]===w||F(u,a,w,b[a],o);if(h)c||v&&(h.__html==v.__html||h.__html==u.innerHTML)||(u.innerHTML=h.__html),t.__k=[];else if(v&&(u.innerHTML=""),P("template"==t.type?u.content:u,d$1(y)?y:[y],t,i,r,"foreignObject"==x?"http://www.w3.org/1999/xhtml":o,e,f,e?e[0]:i.__k&&S(i,0),c,s),null!=e)for(a=e.length;a--;)g(e[a]);c||(a="value","progress"==x&&null==_?u.removeAttribute("value"):null!=_&&(_!==u[a]||"progress"==x&&!_||"option"==x&&_!=b[a])&&F(u,a,_,b[a],o),a="checked",null!=m&&m!=u[a]&&F(u,a,m,b[a],o));}return u}function D$1(n,u,t){try{if("function"==typeof n){var i="function"==typeof n.__u;i&&n.__u(),i&&null==u||(n.__u=n(u));}else n.current=u;}catch(n){l$1.__e(n,t);}}function E(n,u,t){var i,r;if(l$1.unmount&&l$1.unmount(n),(i=n.ref)&&(i.current&&i.current!=n.__e||D$1(i,null,u)),null!=(i=n.__c)){if(i.componentWillUnmount)try{i.componentWillUnmount();}catch(n){l$1.__e(n,u);}i.base=i.__P=null;}if(i=n.__k)for(r=0;r<i.length;r++)i[r]&&E(i[r],u,t||"function"!=typeof n.type);t||g(n.__e),n.__c=n.__=n.__e=void 0;}function G(n,l,u){return this.constructor(n,u)}function J(u,t,i){var r,o,e,f;t==document&&(t=document.documentElement),l$1.__&&l$1.__(u,t),o=(r="function"=="undefined")?null:t.__k,e=[],f=[],z$1(t,u=(t).__k=_$1(k$1,null,[u]),o||p$1,p$1,t.namespaceURI,o?null:t.firstChild?n.call(t.childNodes):null,e,o?o.__e:t.firstChild,r,f),V(e,u,f);}function R(n){function l(n){var u,t;return this.getChildContext||(u=new Set,(t={})[l.__c]=this,this.getChildContext=function(){return t},this.componentWillUnmount=function(){u=null;},this.shouldComponentUpdate=function(n){this.props.value!=n.value&&u.forEach(function(n){n.__e=true,$(n);});},this.sub=function(n){u.add(n);var l=n.componentWillUnmount;n.componentWillUnmount=function(){u&&u.delete(n),l&&l.call(n);};}),n.children}return l.__c="__cC"+h$1++,l.__=n,l.Provider=l.__l=(l.Consumer=function(n,l){return n.children(l)}).contextType=l,l}n=v$1.slice,l$1={__e:function(n,l,u,t){for(var i,r,o;l=l.__;)if((i=l.__c)&&!i.__)try{if((r=i.constructor)&&null!=r.getDerivedStateFromError&&(i.setState(r.getDerivedStateFromError(n)),o=i.__d),null!=i.componentDidCatch&&(i.componentDidCatch(n,t||{}),o=i.__d),o)return i.__E=i}catch(l){n=l;}throw n}},u$2=0,x$1.prototype.setState=function(n,l){var u;u=null!=this.__s&&this.__s!=this.state?this.__s:this.__s=w$1({},this.state),"function"==typeof n&&(n=n(w$1({},u),this.props)),n&&w$1(u,n),null!=n&&this.__v&&(l&&this._sb.push(l),$(this));},x$1.prototype.forceUpdate=function(n){this.__v&&(this.__e=true,n&&this.__h.push(n),$(this));},x$1.prototype.render=k$1,i$1=[],o$1="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,e$1=function(n,l){return n.__v.__b-l.__v.__b},I.__r=0,f$2=/(PointerCapture)$|Capture$/i,c$1=0,s$1=O(false),a$1=O(true),h$1=0;
|
|
152
|
+
var n,l$1,u$2,i$1,r$1,o$1,e$1,f$2,c$1,a$1,s$1,h$1,p$1,v$1,y$1,d$1={},w$1=[],_$1=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,g=Array.isArray;function m$1(n,l){for(var u in l)n[u]=l[u];return n}function b(n){n&&n.parentNode&&n.parentNode.removeChild(n);}function k$1(l,u,t){var i,r,o,e={};for(o in u)"key"==o?i=u[o]:"ref"==o?r=u[o]:e[o]=u[o];if(arguments.length>2&&(e.children=arguments.length>3?n.call(arguments,2):t),"function"==typeof l&&null!=l.defaultProps)for(o in l.defaultProps) void 0===e[o]&&(e[o]=l.defaultProps[o]);return x$1(l,e,i,r,null)}function x$1(n,t,i,r,o){var e={type:n,props:t,key:i,ref:r,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:null==o?++u$2:o,__i:-1,__u:0};return null==o&&null!=l$1.vnode&&l$1.vnode(e),e}function S(n){return n.children}function C$1(n,l){this.props=n,this.context=l;}function $(n,l){if(null==l)return n.__?$(n.__,n.__i+1):null;for(var u;l<n.__k.length;l++)if(null!=(u=n.__k[l])&&null!=u.__e)return u.__e;return "function"==typeof n.type?$(n):null}function I(n){if(n.__P&&n.__d){var u=n.__v,t=u.__e,i=[],r=[],o=m$1({},u);o.__v=u.__v+1,l$1.vnode&&l$1.vnode(o),q$1(n.__P,o,u,n.__n,n.__P.namespaceURI,32&u.__u?[t]:null,i,null==t?$(u):t,!!(32&u.__u),r),o.__v=u.__v,o.__.__k[o.__i]=o,D$1(i,o,r),u.__e=u.__=null,o.__e!=t&&P(o);}}function P(n){if(null!=(n=n.__)&&null!=n.__c)return n.__e=n.__c.base=null,n.__k.some(function(l){if(null!=l&&null!=l.__e)return n.__e=n.__c.base=l.__e}),P(n)}function A$1(n){(!n.__d&&(n.__d=true)&&i$1.push(n)&&!H.__r++||r$1!=l$1.debounceRendering)&&((r$1=l$1.debounceRendering)||o$1)(H);}function H(){try{for(var n,l=1;i$1.length;)i$1.length>l&&i$1.sort(e$1),n=i$1.shift(),l=i$1.length,I(n);}finally{i$1.length=H.__r=0;}}function L(n,l,u,t,i,r,o,e,f,c,a){var s,h,p,v,y,_,g=t&&t.__k||w$1,m=l.length;for(f=T$1(u,l,g,f,m),s=0;s<m;s++)null!=(p=u.__k[s])&&(h=-1!=p.__i&&g[p.__i]||d$1,p.__i=s,_=q$1(n,p,h,i,r,o,e,f,c,a),v=p.__e,p.ref&&h.ref!=p.ref&&(h.ref&&J(h.ref,null,p),a.push(p.ref,p.__c||v,p)),null==y&&null!=v&&(y=v),4&p.__u?(f=j$1(p,f,n),h.__e&&(h.__e=null)):"function"==typeof p.type&&void 0!==_?f=_:v&&(f=v.nextSibling),p.__u&=-7);return u.__e=y,f}function T$1(n,l,u,t,i){var r,o,e,f,c,a=u.length,s=a,h=0;for(n.__k=new Array(i),r=0;r<i;r++)null!=(o=l[r])&&"boolean"!=typeof o&&"function"!=typeof o?("string"==typeof o||"number"==typeof o||"bigint"==typeof o||o.constructor==String?o=n.__k[r]=x$1(null,o,null,null,null):g(o)?o=n.__k[r]=x$1(S,{children:o},null,null,null):void 0===o.constructor&&o.__b>0?o=n.__k[r]=x$1(o.type,o.props,o.key,o.ref?o.ref:null,o.__v):n.__k[r]=o,f=r+h,o.__=n,o.__b=n.__b+1,e=null,-1!=(c=o.__i=O(o,u,f,s))&&(s--,(e=u[c])&&(e.__u|=2)),null==e||null==e.__v?(-1==c&&(i>a?h--:i<a&&h++),"function"!=typeof o.type&&(o.__u|=4)):c!=f&&(c==f-1?h--:c==f+1?h++:(c>f?h--:h++,o.__u|=4))):n.__k[r]=null;if(s)for(r=0;r<a;r++)null!=(e=u[r])&&0==(2&e.__u)&&(e.__e==t&&(t=$(e)),K(e,e));return t}function j$1(n,l,u){var t,i;if("function"==typeof n.type){for(t=n.__k,i=0;t&&i<t.length;i++)t[i]&&(t[i].__=n,l=j$1(t[i],l,u));return l}n.__e!=l&&(l&&n.type&&!l.parentNode&&(l=$(n)),l=u.insertBefore(n.__e,l||null));do{l=l&&l.nextSibling;}while(null!=l&&8==l.nodeType);return l}function O(n,l,u,t){var i,r,o,e=n.key,f=n.type,c=l[u],a=null!=c&&0==(2&c.__u);if(null===c&&null==e||a&&e==c.key&&f==c.type)return u;if(t>(a?1:0))for(i=u-1,r=u+1;i>=0||r<l.length;)if(null!=(c=l[o=i>=0?i--:r++])&&0==(2&c.__u)&&e==c.key&&f==c.type)return o;return -1}function z$1(n,l,u){"-"==l[0]?n.setProperty(l,null==u?"":u):n[l]=null==u?"":"number"!=typeof u||_$1.test(l)?u:u+"px";}function N(n,l,u,t,i){var r,o;n:if("style"==l)if("string"==typeof u)n.style.cssText=u;else {if("string"==typeof t&&(n.style.cssText=t=""),t)for(l in t)u&&l in u||z$1(n.style,l,"");if(u)for(l in u)t&&u[l]==t[l]||z$1(n.style,l,u[l]);}else if("o"==l[0]&&"n"==l[1])r=l!=(l=l.replace(s$1,"$1")),o=l.toLowerCase(),l=o in n||"onFocusOut"==l||"onFocusIn"==l?o.slice(2):l.slice(2),n.l||(n.l={}),n.l[l+r]=u,u?t?u[a$1]=t[a$1]:(u[a$1]=h$1,n.addEventListener(l,r?v$1:p$1,r)):n.removeEventListener(l,r?v$1:p$1,r);else {if("http://www.w3.org/2000/svg"==i)l=l.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!=l&&"height"!=l&&"href"!=l&&"list"!=l&&"form"!=l&&"tabIndex"!=l&&"download"!=l&&"rowSpan"!=l&&"colSpan"!=l&&"role"!=l&&"popover"!=l&&l in n)try{n[l]=null==u?"":u;break n}catch(n){}"function"==typeof u||(null==u||false===u&&"-"!=l[4]?n.removeAttribute(l):n.setAttribute(l,"popover"==l&&1==u?"":u));}}function V(n){return function(u){if(this.l){var t=this.l[u.type+n];if(null==u[c$1])u[c$1]=h$1++;else if(u[c$1]<t[a$1])return;return t(l$1.event?l$1.event(u):u)}}}function q$1(n,u,t,i,r,o,e,f,c,a){var s,h,p,v,y,d,_,k,x,M,I,P,A,H,T,j,F=u.type;if(void 0!==u.constructor)return null;128&t.__u&&(c=!!(32&t.__u),o=[f=u.__e=t.__e]),(s=l$1.__b)&&s(u);n:if("function"==typeof F){h=e.length;try{if(x=u.props,M=F.prototype&&F.prototype.render,I=(s=F.contextType)&&i[s.__c],P=s?I?I.props.value:s.__:i,t.__c?k=(p=u.__c=t.__c).__=p.__E:(M?u.__c=p=new F(x,P):(u.__c=p=new C$1(x,P),p.constructor=F,p.render=Q),I&&I.sub(p),p.state||(p.state={}),p.__n=i,v=p.__d=!0,p.__h=[],p._sb=[]),M&&null==p.__s&&(p.__s=p.state),M&&null!=F.getDerivedStateFromProps&&(p.__s==p.state&&(p.__s=m$1({},p.__s)),m$1(p.__s,F.getDerivedStateFromProps(x,p.__s))),y=p.props,d=p.state,p.__v=u,v)M&&null==F.getDerivedStateFromProps&&null!=p.componentWillMount&&p.componentWillMount(),M&&null!=p.componentDidMount&&p.__h.push(p.componentDidMount);else {if(M&&null==F.getDerivedStateFromProps&&x!==y&&null!=p.componentWillReceiveProps&&p.componentWillReceiveProps(x,P),u.__v==t.__v||!p.__e&&null!=p.shouldComponentUpdate&&!1===p.shouldComponentUpdate(x,p.__s,P)){u.__v!=t.__v&&(p.props=x,p.state=p.__s,p.__d=!1),u.__e=t.__e,u.__k=t.__k,u.__k.some(function(n){n&&(n.__=u);}),w$1.push.apply(p.__h,p._sb),p._sb=[],p.__h.length&&e.push(p),f=$(t);break n}null!=p.componentWillUpdate&&p.componentWillUpdate(x,p.__s,P),M&&null!=p.componentDidUpdate&&p.__h.push(function(){p.componentDidUpdate(y,d,_);});}if(p.context=P,p.props=x,p.__P=n,p.__e=!1,A=l$1.__r,H=0,M)p.state=p.__s,p.__d=!1,A&&A(u),s=p.render(p.props,p.state,p.context),w$1.push.apply(p.__h,p._sb),p._sb=[];else do{p.__d=!1,A&&A(u),s=p.render(p.props,p.state,p.context),p.state=p.__s;}while(p.__d&&++H<25);p.state=p.__s,null!=p.getChildContext&&(i=m$1(m$1({},i),p.getChildContext())),M&&!v&&null!=p.getSnapshotBeforeUpdate&&(_=p.getSnapshotBeforeUpdate(y,d)),T=null!=s&&s.type===S&&null==s.key?E(s.props.children):s,f=L(n,g(T)?T:[T],u,t,i,r,o,e,f,c,a),p.base=u.__e,u.__u&=-161,p.__h.length&&e.push(p),k&&(p.__E=p.__=null);}catch(n){if(e.length=h,u.__v=null,c||null!=o){if(n.then){for(u.__u|=c?160:128;f&&8==f.nodeType&&f.nextSibling;)f=f.nextSibling;null!=o&&(o[o.indexOf(f)]=null),u.__e=f;}else if(null!=o)for(j=o.length;j--;)b(o[j]);}else u.__e=t.__e;null==u.__k&&(u.__k=t.__k||[]),n.then||B$1(u),l$1.__e(n,u,t);}}else null==o&&u.__v==t.__v?(u.__k=t.__k,u.__e=t.__e):f=u.__e=G(t.__e,u,t,i,r,o,e,c,a);return (s=l$1.diffed)&&s(u),128&u.__u?void 0:f}function B$1(n){n&&(n.__c&&(n.__c.__e=true),n.__k&&n.__k.some(B$1));}function D$1(n,u,t){for(var i=0;i<t.length;i++)J(t[i],t[++i],t[++i]);l$1.__c&&l$1.__c(u,n),n.some(function(u){try{n=u.__h,u.__h=[],n.some(function(n){n.call(u);});}catch(n){l$1.__e(n,u.__v);}});}function E(n){return "object"!=typeof n||null==n||n.__b>0?n:g(n)?n.map(E):void 0!==n.constructor?null:m$1({},n)}function G(u,t,i,r,o,e,f,c,a){var s,h,p,v,y,w,_,m=i.props||d$1,k=t.props,x=t.type;if("svg"==x?o="http://www.w3.org/2000/svg":"math"==x?o="http://www.w3.org/1998/Math/MathML":o||(o="http://www.w3.org/1999/xhtml"),null!=e)for(s=0;s<e.length;s++)if((y=e[s])&&"setAttribute"in y==!!x&&(x?y.localName==x:3==y.nodeType)){u=y,e[s]=null;break}if(null==u){if(null==x)return document.createTextNode(k);u=document.createElementNS(o,x,k.is&&k),c&&(l$1.__m&&l$1.__m(t,e),c=false),e=null;}if(null==x)m===k||c&&u.data==k||(u.data=k);else {if(e="textarea"==x&&null!=k.defaultValue?null:e&&n.call(u.childNodes),!c&&null!=e)for(m={},s=0;s<u.attributes.length;s++)m[(y=u.attributes[s]).name]=y.value;for(s in m)y=m[s],"dangerouslySetInnerHTML"==s?p=y:"children"==s||s in k||"value"==s&&"defaultValue"in k||"checked"==s&&"defaultChecked"in k||N(u,s,null,y,o);for(s in k)y=k[s],"children"==s?v=y:"dangerouslySetInnerHTML"==s?h=y:"value"==s?w=y:"checked"==s?_=y:c&&"function"!=typeof y||m[s]===y||N(u,s,y,m[s],o);if(h)c||p&&(h.__html==p.__html||h.__html==u.innerHTML)||(u.innerHTML=h.__html),t.__k=[];else if(p&&(u.innerHTML=""),L("template"==t.type?u.content:u,g(v)?v:[v],t,i,r,"foreignObject"==x?"http://www.w3.org/1999/xhtml":o,e,f,e?e[0]:i.__k&&$(i,0),c,a),null!=e)for(s=e.length;s--;)b(e[s]);c&&"textarea"!=x||(s="value","progress"==x&&null==w?u.removeAttribute("value"):null!=w&&(w!==u[s]||"progress"==x&&!w||"option"==x&&w!=m[s])&&N(u,s,w,m[s],o),s="checked",null!=_&&_!=u[s]&&N(u,s,_,m[s],o));}return u}function J(n,u,t){try{if("function"==typeof n){var i="function"==typeof n.__u;i&&n.__u(),i&&null==u||(n.__u=n(u));}else n.current=u;}catch(n){l$1.__e(n,t);}}function K(n,u,t){var i,r;if(l$1.unmount&&l$1.unmount(n),(i=n.ref)&&(i.current&&i.current!=n.__e||J(i,null,u)),null!=(i=n.__c)){if(i.componentWillUnmount)try{i.componentWillUnmount();}catch(n){l$1.__e(n,u);}i.base=i.__P=i.__n=null;}if(i=n.__k)for(r=0;r<i.length;r++)i[r]&&K(i[r],u,t||"function"!=typeof n.type);t||b(n.__e),n.__c=n.__=n.__e=void 0;}function Q(n,l,u){return this.constructor(n,u)}function R(u,t,i){var r,o,e,f;t==document&&(t=document.documentElement),l$1.__&&l$1.__(u,t),o=(r="function"=="undefined")?null:t.__k,e=[],f=[],q$1(t,u=(t).__k=k$1(S,null,[u]),o||d$1,d$1,t.namespaceURI,o?null:t.firstChild?n.call(t.childNodes):null,e,o?o.__e:t.firstChild,r,f),D$1(e,u,f),u.props.children=null;}function X(n){function l(n){var u,t;return this.getChildContext||(u=new Set,(t={})[l.__c]=this,this.getChildContext=function(){return t},this.componentWillUnmount=function(){u=null;},this.shouldComponentUpdate=function(n){this.props.value!=n.value&&u.forEach(function(n){n.__e=true,A$1(n);});},this.sub=function(n){u.add(n);var l=n.componentWillUnmount;n.componentWillUnmount=function(){u&&u.delete(n),l&&l.call(n);};}),n.children}return l.__c="__cC"+y$1++,l.__=n,l.Provider=l.__l=(l.Consumer=function(n,l){return n.children(l)}).contextType=l,l}n=w$1.slice,l$1={__e:function(n,l,u,t){for(var i,r,o;l=l.__;)if((i=l.__c)&&!i.__)try{if((r=i.constructor)&&null!=r.getDerivedStateFromError&&(i.setState(r.getDerivedStateFromError(n)),o=i.__d),null!=i.componentDidCatch&&(i.componentDidCatch(n,t||{}),o=i.__d),o)return i.__E=i}catch(l){n=l;}throw n}},u$2=0,C$1.prototype.setState=function(n,l){var u;u=null!=this.__s&&this.__s!=this.state?this.__s:this.__s=m$1({},this.state),"function"==typeof n&&(n=n(m$1({},u),this.props)),n&&m$1(u,n),null!=n&&this.__v&&(l&&this._sb.push(l),A$1(this));},C$1.prototype.forceUpdate=function(n){this.__v&&(this.__e=true,n&&this.__h.push(n),A$1(this));},C$1.prototype.render=S,i$1=[],o$1="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,e$1=function(n,l){return n.__v.__b-l.__v.__b},H.__r=0,f$2=Math.random().toString(8),c$1="__d"+f$2,a$1="__a"+f$2,s$1=/(PointerCapture)$|Capture$/i,h$1=0,p$1=V(false),v$1=V(true),y$1=0;
|
|
153
153
|
|
|
154
154
|
var f$1=0;function u$1(e,t,n,o,i,u){t||(t={});var a,c,p=t;if("ref"in p)for(c in p={},t)"ref"==c?a=t[c]:p[c]=t[c];var l={type:e,props:p,key:n,ref:a,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--f$1,__i:-1,__u:0,__source:i,__self:u};if("function"==typeof e&&(a=e.defaultProps))for(c in a) void 0===p[c]&&(p[c]=a[c]);return l$1.vnode&&l$1.vnode(l),l}
|
|
155
155
|
|
|
@@ -626,16 +626,16 @@ var drawChart = (function (exports) {
|
|
|
626
626
|
let count = 0;
|
|
627
627
|
class Id {
|
|
628
628
|
constructor(id) {
|
|
629
|
-
this.
|
|
629
|
+
this.idValue = id;
|
|
630
630
|
const url = new URL(window.location.href);
|
|
631
631
|
url.hash = id;
|
|
632
|
-
this.
|
|
632
|
+
this.hrefValue = url.toString();
|
|
633
633
|
}
|
|
634
634
|
get id() {
|
|
635
|
-
return this.
|
|
635
|
+
return this.idValue;
|
|
636
636
|
}
|
|
637
637
|
get href() {
|
|
638
|
-
return this.
|
|
638
|
+
return this.hrefValue;
|
|
639
639
|
}
|
|
640
640
|
toString() {
|
|
641
641
|
return `url(${this.href})`;
|
|
@@ -663,7 +663,7 @@ var drawChart = (function (exports) {
|
|
|
663
663
|
return availableSizeProperties;
|
|
664
664
|
};
|
|
665
665
|
|
|
666
|
-
var t,r,u,i,o=0,f=[],c=l$1,e=c.__b,a=c.__r,v=c.diffed,l=c.__c,m=c.unmount,
|
|
666
|
+
var t,r,u,i,o=0,f=[],c=l$1,e=c.__b,a=c.__r,v=c.diffed,l=c.__c,m=c.unmount,p=c.__;function s(n,t){c.__h&&c.__h(r,n,o||t),o=0;var u=r.__H||(r.__H={__:[],__h:[]});return n>=u.__.length&&u.__.push({}),u.__[n]}function d(n){return o=1,y(D,n)}function y(n,u,i){var o=s(t++,2);if(o.t=n,!o.__c&&(o.__=[D(void 0,u),function(n){var t=o.__N?o.__N[0]:o.__[0],r=o.t(t,n);t!==r&&(o.__N=[r,o.__[1]],o.__c.setState({}));}],o.__c=r,!r.__f)){var f=function(n,t,r){if(!o.__c.__H)return true;var u=false,i=o.__c.props!==n;if(o.__c.__H.__.some(function(n){if(n.__N){u=true;var t=n.__[0];n.__=n.__N,n.__N=void 0,t!==n.__[0]&&(i=true);}}),c){var f=c.call(this,n,t,r);return u?f||i:f}return !u||i};r.__f=true;var c=r.shouldComponentUpdate,e=r.componentWillUpdate;r.componentWillUpdate=function(n,t,r){if(this.__e){var u=c;c=void 0,f(n,t,r),c=u;}e&&e.call(this,n,t,r);},r.shouldComponentUpdate=f;}return o.__N||o.__}function h(n,u){var i=s(t++,3);!c.__s&&C(i.__H,u)&&(i.__=n,i.u=u,r.__H.__h.push(i));}function _(n,u){var i=s(t++,4);!c.__s&&C(i.__H,u)&&(i.__=n,i.u=u,r.__h.push(i));}function A(n){return o=5,T(function(){return {current:n}},[])}function T(n,r){var u=s(t++,7);return C(u.__H,r)&&(u.__=n(),u.__H=r,u.__h=n),u.__}function q(n,t){return o=8,T(function(){return n},t)}function x(n){var u=r.context[n.__c],i=s(t++,9);return i.c=n,u?(null==i.__&&(i.__=true,u.sub(r)),u.props.value):n.__}function j(){for(var n;n=f.shift();){var t=n.__H;if(n.__P&&t)try{t.__h.some(z),t.__h.some(B),t.__h=[];}catch(r){t.__h=[],c.__e(r,n.__v);}}}c.__b=function(n){r=null,e&&e(n);},c.__=function(n,t){n&&t.__k&&t.__k.__m&&(n.__m=t.__k.__m),p&&p(n,t);},c.__r=function(n){a&&a(n),t=0;var i=(r=n.__c).__H;i&&(u===r?(i.__h=[],r.__h=[],i.__.some(function(n){n.__N&&(n.__=n.__N),n.u=n.__N=void 0;})):(i.__h.some(z),i.__h.some(B),i.__h=[],t=0)),u=r;},c.diffed=function(n){v&&v(n);var t=n.__c;t&&t.__H&&(t.__H.__h.length&&(1!==f.push(t)&&i===c.requestAnimationFrame||((i=c.requestAnimationFrame)||w)(j)),t.__H.__.some(function(n){n.u&&(n.__H=n.u,n.u=void 0);})),u=r=null;},c.__c=function(n,t){t.some(function(n){try{n.__h.some(z),n.__h=n.__h.filter(function(n){return !n.__||B(n)});}catch(r){t.some(function(n){n.__h&&(n.__h=[]);}),t=[],c.__e(r,n.__v);}}),l&&l(n,t);},c.unmount=function(n){m&&m(n);var t,r=n.__c;r&&r.__H&&(r.__H.__.some(function(n){try{z(n);}catch(n){t=n;}}),r.__H=void 0,t&&c.__e(t,r.__v));};var k="function"==typeof requestAnimationFrame;function w(n){var t,r=function(){clearTimeout(u),k&&cancelAnimationFrame(t),setTimeout(n);},u=setTimeout(r,35);k&&(t=requestAnimationFrame(r));}function z(n){var t=r,u=n.__c;"function"==typeof u&&(n.__c=void 0,u()),r=t;}function B(n){var t=r;n.__c=n.__(),r=t;}function C(n,t){return !n||n.length!==t.length||t.some(function(t,r){return t!==n[r]})}function D(n,t){return "function"==typeof t?t(n):t}
|
|
667
667
|
|
|
668
668
|
const PLACEHOLDER = "*/**/file.js";
|
|
669
669
|
const SideBar = ({ availableSizeProperties, sizeProperty, setSizeProperty, onExcludeChange, onIncludeChange, }) => {
|
|
@@ -707,6 +707,8 @@ var drawChart = (function (exports) {
|
|
|
707
707
|
const WIN_SLASH = '\\\\/';
|
|
708
708
|
const WIN_NO_SLASH = `[^${WIN_SLASH}]`;
|
|
709
709
|
|
|
710
|
+
const DEFAULT_MAX_EXTGLOB_RECURSION = 0;
|
|
711
|
+
|
|
710
712
|
/**
|
|
711
713
|
* Posix glob regex
|
|
712
714
|
*/
|
|
@@ -773,6 +775,7 @@ var drawChart = (function (exports) {
|
|
|
773
775
|
*/
|
|
774
776
|
|
|
775
777
|
const POSIX_REGEX_SOURCE = {
|
|
778
|
+
__proto__: null,
|
|
776
779
|
alnum: 'a-zA-Z0-9',
|
|
777
780
|
alpha: 'a-zA-Z',
|
|
778
781
|
ascii: '\\x00-\\x7F',
|
|
@@ -790,6 +793,7 @@ var drawChart = (function (exports) {
|
|
|
790
793
|
};
|
|
791
794
|
|
|
792
795
|
constants$1 = {
|
|
796
|
+
DEFAULT_MAX_EXTGLOB_RECURSION,
|
|
793
797
|
MAX_LENGTH: 1024 * 64,
|
|
794
798
|
POSIX_REGEX_SOURCE,
|
|
795
799
|
|
|
@@ -892,7 +896,7 @@ var drawChart = (function (exports) {
|
|
|
892
896
|
function requireUtils () {
|
|
893
897
|
if (hasRequiredUtils) return utils;
|
|
894
898
|
hasRequiredUtils = 1;
|
|
895
|
-
(function (exports
|
|
899
|
+
(function (exports) {
|
|
896
900
|
|
|
897
901
|
const {
|
|
898
902
|
REGEX_BACKSLASH,
|
|
@@ -901,13 +905,13 @@ var drawChart = (function (exports) {
|
|
|
901
905
|
REGEX_SPECIAL_CHARS_GLOBAL
|
|
902
906
|
} = /*@__PURE__*/ requireConstants();
|
|
903
907
|
|
|
904
|
-
exports
|
|
905
|
-
exports
|
|
906
|
-
exports
|
|
907
|
-
exports
|
|
908
|
-
exports
|
|
908
|
+
exports.isObject = val => val !== null && typeof val === 'object' && !Array.isArray(val);
|
|
909
|
+
exports.hasRegexChars = str => REGEX_SPECIAL_CHARS.test(str);
|
|
910
|
+
exports.isRegexChar = str => str.length === 1 && exports.hasRegexChars(str);
|
|
911
|
+
exports.escapeRegex = str => str.replace(REGEX_SPECIAL_CHARS_GLOBAL, '\\$1');
|
|
912
|
+
exports.toPosixSlashes = str => str.replace(REGEX_BACKSLASH, '/');
|
|
909
913
|
|
|
910
|
-
exports
|
|
914
|
+
exports.isWindows = () => {
|
|
911
915
|
if (typeof navigator !== 'undefined' && navigator.platform) {
|
|
912
916
|
const platform = navigator.platform.toLowerCase();
|
|
913
917
|
return platform === 'win32' || platform === 'windows';
|
|
@@ -920,20 +924,20 @@ var drawChart = (function (exports) {
|
|
|
920
924
|
return false;
|
|
921
925
|
};
|
|
922
926
|
|
|
923
|
-
exports
|
|
927
|
+
exports.removeBackslashes = str => {
|
|
924
928
|
return str.replace(REGEX_REMOVE_BACKSLASH, match => {
|
|
925
929
|
return match === '\\' ? '' : match;
|
|
926
930
|
});
|
|
927
931
|
};
|
|
928
932
|
|
|
929
|
-
exports
|
|
933
|
+
exports.escapeLast = (input, char, lastIdx) => {
|
|
930
934
|
const idx = input.lastIndexOf(char, lastIdx);
|
|
931
935
|
if (idx === -1) return input;
|
|
932
|
-
if (input[idx - 1] === '\\') return exports
|
|
936
|
+
if (input[idx - 1] === '\\') return exports.escapeLast(input, char, idx - 1);
|
|
933
937
|
return `${input.slice(0, idx)}\\${input.slice(idx)}`;
|
|
934
938
|
};
|
|
935
939
|
|
|
936
|
-
exports
|
|
940
|
+
exports.removePrefix = (input, state = {}) => {
|
|
937
941
|
let output = input;
|
|
938
942
|
if (output.startsWith('./')) {
|
|
939
943
|
output = output.slice(2);
|
|
@@ -942,7 +946,7 @@ var drawChart = (function (exports) {
|
|
|
942
946
|
return output;
|
|
943
947
|
};
|
|
944
948
|
|
|
945
|
-
exports
|
|
949
|
+
exports.wrapOutput = (input, state = {}, options = {}) => {
|
|
946
950
|
const prepend = options.contains ? '' : '^';
|
|
947
951
|
const append = options.contains ? '' : '$';
|
|
948
952
|
|
|
@@ -953,7 +957,7 @@ var drawChart = (function (exports) {
|
|
|
953
957
|
return output;
|
|
954
958
|
};
|
|
955
959
|
|
|
956
|
-
exports
|
|
960
|
+
exports.basename = (path, { windows } = {}) => {
|
|
957
961
|
const segs = path.split(windows ? /[\\/]/ : '/');
|
|
958
962
|
const last = segs[segs.length - 1];
|
|
959
963
|
|
|
@@ -1418,6 +1422,307 @@ var drawChart = (function (exports) {
|
|
|
1418
1422
|
return `Missing ${type}: "${char}" - use "\\\\${char}" to match literal characters`;
|
|
1419
1423
|
};
|
|
1420
1424
|
|
|
1425
|
+
const splitTopLevel = input => {
|
|
1426
|
+
const parts = [];
|
|
1427
|
+
let bracket = 0;
|
|
1428
|
+
let paren = 0;
|
|
1429
|
+
let quote = 0;
|
|
1430
|
+
let value = '';
|
|
1431
|
+
let escaped = false;
|
|
1432
|
+
|
|
1433
|
+
for (const ch of input) {
|
|
1434
|
+
if (escaped === true) {
|
|
1435
|
+
value += ch;
|
|
1436
|
+
escaped = false;
|
|
1437
|
+
continue;
|
|
1438
|
+
}
|
|
1439
|
+
|
|
1440
|
+
if (ch === '\\') {
|
|
1441
|
+
value += ch;
|
|
1442
|
+
escaped = true;
|
|
1443
|
+
continue;
|
|
1444
|
+
}
|
|
1445
|
+
|
|
1446
|
+
if (ch === '"') {
|
|
1447
|
+
quote = quote === 1 ? 0 : 1;
|
|
1448
|
+
value += ch;
|
|
1449
|
+
continue;
|
|
1450
|
+
}
|
|
1451
|
+
|
|
1452
|
+
if (quote === 0) {
|
|
1453
|
+
if (ch === '[') {
|
|
1454
|
+
bracket++;
|
|
1455
|
+
} else if (ch === ']' && bracket > 0) {
|
|
1456
|
+
bracket--;
|
|
1457
|
+
} else if (bracket === 0) {
|
|
1458
|
+
if (ch === '(') {
|
|
1459
|
+
paren++;
|
|
1460
|
+
} else if (ch === ')' && paren > 0) {
|
|
1461
|
+
paren--;
|
|
1462
|
+
} else if (ch === '|' && paren === 0) {
|
|
1463
|
+
parts.push(value);
|
|
1464
|
+
value = '';
|
|
1465
|
+
continue;
|
|
1466
|
+
}
|
|
1467
|
+
}
|
|
1468
|
+
}
|
|
1469
|
+
|
|
1470
|
+
value += ch;
|
|
1471
|
+
}
|
|
1472
|
+
|
|
1473
|
+
parts.push(value);
|
|
1474
|
+
return parts;
|
|
1475
|
+
};
|
|
1476
|
+
|
|
1477
|
+
const isPlainBranch = branch => {
|
|
1478
|
+
let escaped = false;
|
|
1479
|
+
|
|
1480
|
+
for (const ch of branch) {
|
|
1481
|
+
if (escaped === true) {
|
|
1482
|
+
escaped = false;
|
|
1483
|
+
continue;
|
|
1484
|
+
}
|
|
1485
|
+
|
|
1486
|
+
if (ch === '\\') {
|
|
1487
|
+
escaped = true;
|
|
1488
|
+
continue;
|
|
1489
|
+
}
|
|
1490
|
+
|
|
1491
|
+
if (/[?*+@!()[\]{}]/.test(ch)) {
|
|
1492
|
+
return false;
|
|
1493
|
+
}
|
|
1494
|
+
}
|
|
1495
|
+
|
|
1496
|
+
return true;
|
|
1497
|
+
};
|
|
1498
|
+
|
|
1499
|
+
const normalizeSimpleBranch = branch => {
|
|
1500
|
+
let value = branch.trim();
|
|
1501
|
+
let changed = true;
|
|
1502
|
+
|
|
1503
|
+
while (changed === true) {
|
|
1504
|
+
changed = false;
|
|
1505
|
+
|
|
1506
|
+
if (/^@\([^\\()[\]{}|]+\)$/.test(value)) {
|
|
1507
|
+
value = value.slice(2, -1);
|
|
1508
|
+
changed = true;
|
|
1509
|
+
}
|
|
1510
|
+
}
|
|
1511
|
+
|
|
1512
|
+
if (!isPlainBranch(value)) {
|
|
1513
|
+
return;
|
|
1514
|
+
}
|
|
1515
|
+
|
|
1516
|
+
return value.replace(/\\(.)/g, '$1');
|
|
1517
|
+
};
|
|
1518
|
+
|
|
1519
|
+
const hasRepeatedCharPrefixOverlap = branches => {
|
|
1520
|
+
const values = branches.map(normalizeSimpleBranch).filter(Boolean);
|
|
1521
|
+
|
|
1522
|
+
for (let i = 0; i < values.length; i++) {
|
|
1523
|
+
for (let j = i + 1; j < values.length; j++) {
|
|
1524
|
+
const a = values[i];
|
|
1525
|
+
const b = values[j];
|
|
1526
|
+
const char = a[0];
|
|
1527
|
+
|
|
1528
|
+
if (!char || a !== char.repeat(a.length) || b !== char.repeat(b.length)) {
|
|
1529
|
+
continue;
|
|
1530
|
+
}
|
|
1531
|
+
|
|
1532
|
+
if (a === b || a.startsWith(b) || b.startsWith(a)) {
|
|
1533
|
+
return true;
|
|
1534
|
+
}
|
|
1535
|
+
}
|
|
1536
|
+
}
|
|
1537
|
+
|
|
1538
|
+
return false;
|
|
1539
|
+
};
|
|
1540
|
+
|
|
1541
|
+
const parseRepeatedExtglob = (pattern, requireEnd = true) => {
|
|
1542
|
+
if ((pattern[0] !== '+' && pattern[0] !== '*') || pattern[1] !== '(') {
|
|
1543
|
+
return;
|
|
1544
|
+
}
|
|
1545
|
+
|
|
1546
|
+
let bracket = 0;
|
|
1547
|
+
let paren = 0;
|
|
1548
|
+
let quote = 0;
|
|
1549
|
+
let escaped = false;
|
|
1550
|
+
|
|
1551
|
+
for (let i = 1; i < pattern.length; i++) {
|
|
1552
|
+
const ch = pattern[i];
|
|
1553
|
+
|
|
1554
|
+
if (escaped === true) {
|
|
1555
|
+
escaped = false;
|
|
1556
|
+
continue;
|
|
1557
|
+
}
|
|
1558
|
+
|
|
1559
|
+
if (ch === '\\') {
|
|
1560
|
+
escaped = true;
|
|
1561
|
+
continue;
|
|
1562
|
+
}
|
|
1563
|
+
|
|
1564
|
+
if (ch === '"') {
|
|
1565
|
+
quote = quote === 1 ? 0 : 1;
|
|
1566
|
+
continue;
|
|
1567
|
+
}
|
|
1568
|
+
|
|
1569
|
+
if (quote === 1) {
|
|
1570
|
+
continue;
|
|
1571
|
+
}
|
|
1572
|
+
|
|
1573
|
+
if (ch === '[') {
|
|
1574
|
+
bracket++;
|
|
1575
|
+
continue;
|
|
1576
|
+
}
|
|
1577
|
+
|
|
1578
|
+
if (ch === ']' && bracket > 0) {
|
|
1579
|
+
bracket--;
|
|
1580
|
+
continue;
|
|
1581
|
+
}
|
|
1582
|
+
|
|
1583
|
+
if (bracket > 0) {
|
|
1584
|
+
continue;
|
|
1585
|
+
}
|
|
1586
|
+
|
|
1587
|
+
if (ch === '(') {
|
|
1588
|
+
paren++;
|
|
1589
|
+
continue;
|
|
1590
|
+
}
|
|
1591
|
+
|
|
1592
|
+
if (ch === ')') {
|
|
1593
|
+
paren--;
|
|
1594
|
+
|
|
1595
|
+
if (paren === 0) {
|
|
1596
|
+
if (requireEnd === true && i !== pattern.length - 1) {
|
|
1597
|
+
return;
|
|
1598
|
+
}
|
|
1599
|
+
|
|
1600
|
+
return {
|
|
1601
|
+
type: pattern[0],
|
|
1602
|
+
body: pattern.slice(2, i),
|
|
1603
|
+
end: i
|
|
1604
|
+
};
|
|
1605
|
+
}
|
|
1606
|
+
}
|
|
1607
|
+
}
|
|
1608
|
+
};
|
|
1609
|
+
|
|
1610
|
+
const buildCharClassStar = chars => {
|
|
1611
|
+
const source = chars.length === 1
|
|
1612
|
+
? utils.escapeRegex(chars[0])
|
|
1613
|
+
: `[${chars.map(ch => utils.escapeRegex(ch)).join('')}]`;
|
|
1614
|
+
|
|
1615
|
+
return `${source}*`;
|
|
1616
|
+
};
|
|
1617
|
+
|
|
1618
|
+
const getStarExtglobSequenceChars = pattern => {
|
|
1619
|
+
let index = 0;
|
|
1620
|
+
const chars = [];
|
|
1621
|
+
|
|
1622
|
+
while (index < pattern.length) {
|
|
1623
|
+
const match = parseRepeatedExtglob(pattern.slice(index), false);
|
|
1624
|
+
|
|
1625
|
+
if (!match || match.type !== '*') {
|
|
1626
|
+
return;
|
|
1627
|
+
}
|
|
1628
|
+
|
|
1629
|
+
const branches = splitTopLevel(match.body).map(branch => branch.trim());
|
|
1630
|
+
if (branches.length !== 1) {
|
|
1631
|
+
return;
|
|
1632
|
+
}
|
|
1633
|
+
|
|
1634
|
+
const branch = normalizeSimpleBranch(branches[0]);
|
|
1635
|
+
if (!branch || branch.length !== 1) {
|
|
1636
|
+
return;
|
|
1637
|
+
}
|
|
1638
|
+
|
|
1639
|
+
chars.push(branch);
|
|
1640
|
+
index += match.end + 1;
|
|
1641
|
+
}
|
|
1642
|
+
|
|
1643
|
+
if (chars.length < 1) {
|
|
1644
|
+
return;
|
|
1645
|
+
}
|
|
1646
|
+
|
|
1647
|
+
return chars;
|
|
1648
|
+
};
|
|
1649
|
+
|
|
1650
|
+
const repeatedExtglobRecursion = pattern => {
|
|
1651
|
+
let depth = 0;
|
|
1652
|
+
let value = pattern.trim();
|
|
1653
|
+
let match = parseRepeatedExtglob(value);
|
|
1654
|
+
|
|
1655
|
+
while (match) {
|
|
1656
|
+
depth++;
|
|
1657
|
+
value = match.body.trim();
|
|
1658
|
+
match = parseRepeatedExtglob(value);
|
|
1659
|
+
}
|
|
1660
|
+
|
|
1661
|
+
return depth;
|
|
1662
|
+
};
|
|
1663
|
+
|
|
1664
|
+
const analyzeRepeatedExtglob = (body, options) => {
|
|
1665
|
+
if (options.maxExtglobRecursion === false) {
|
|
1666
|
+
return { risky: false };
|
|
1667
|
+
}
|
|
1668
|
+
|
|
1669
|
+
const max =
|
|
1670
|
+
typeof options.maxExtglobRecursion === 'number'
|
|
1671
|
+
? options.maxExtglobRecursion
|
|
1672
|
+
: constants.DEFAULT_MAX_EXTGLOB_RECURSION;
|
|
1673
|
+
|
|
1674
|
+
const branches = splitTopLevel(body).map(branch => branch.trim());
|
|
1675
|
+
|
|
1676
|
+
if (branches.length > 1) {
|
|
1677
|
+
if (
|
|
1678
|
+
branches.some(branch => branch === '') ||
|
|
1679
|
+
branches.some(branch => /^[*?]+$/.test(branch)) ||
|
|
1680
|
+
hasRepeatedCharPrefixOverlap(branches)
|
|
1681
|
+
) {
|
|
1682
|
+
return { risky: true };
|
|
1683
|
+
}
|
|
1684
|
+
}
|
|
1685
|
+
|
|
1686
|
+
// A repeated extglob is "risky" (prone to catastrophic backtracking) when a
|
|
1687
|
+
// branch is itself a `*(...)` sequence, since that nests an unbounded quantifier
|
|
1688
|
+
// inside the outer `+(...)`/`*(...)`. When *every* branch reduces to single
|
|
1689
|
+
// characters we can emit one flat, ReDoS-safe character class that preserves the
|
|
1690
|
+
// meaning of ALL branches (e.g. `+(*(a)|*(b))` -> `[ab]*`), rather than dropping
|
|
1691
|
+
// every branch but the first.
|
|
1692
|
+
const safeChars = [];
|
|
1693
|
+
let sawStarSequence = false;
|
|
1694
|
+
let combinable = true;
|
|
1695
|
+
|
|
1696
|
+
for (const branch of branches) {
|
|
1697
|
+
const chars = getStarExtglobSequenceChars(branch);
|
|
1698
|
+
if (chars) {
|
|
1699
|
+
sawStarSequence = true;
|
|
1700
|
+
safeChars.push(...chars);
|
|
1701
|
+
continue;
|
|
1702
|
+
}
|
|
1703
|
+
|
|
1704
|
+
const literal = normalizeSimpleBranch(branch);
|
|
1705
|
+
if (literal && literal.length === 1) {
|
|
1706
|
+
safeChars.push(literal);
|
|
1707
|
+
continue;
|
|
1708
|
+
}
|
|
1709
|
+
|
|
1710
|
+
combinable = false;
|
|
1711
|
+
|
|
1712
|
+
if (repeatedExtglobRecursion(branch) > max) {
|
|
1713
|
+
return { risky: true };
|
|
1714
|
+
}
|
|
1715
|
+
}
|
|
1716
|
+
|
|
1717
|
+
if (sawStarSequence) {
|
|
1718
|
+
return combinable
|
|
1719
|
+
? { risky: true, safeOutput: buildCharClassStar([...new Set(safeChars)]) }
|
|
1720
|
+
: { risky: true };
|
|
1721
|
+
}
|
|
1722
|
+
|
|
1723
|
+
return { risky: false };
|
|
1724
|
+
};
|
|
1725
|
+
|
|
1421
1726
|
/**
|
|
1422
1727
|
* Parse the given input string.
|
|
1423
1728
|
* @param {String} input
|
|
@@ -1598,6 +1903,8 @@ var drawChart = (function (exports) {
|
|
|
1598
1903
|
token.prev = prev;
|
|
1599
1904
|
token.parens = state.parens;
|
|
1600
1905
|
token.output = state.output;
|
|
1906
|
+
token.startIndex = state.index;
|
|
1907
|
+
token.tokensIndex = tokens.length;
|
|
1601
1908
|
const output = (opts.capture ? '(' : '') + token.open;
|
|
1602
1909
|
|
|
1603
1910
|
increment('parens');
|
|
@@ -1607,6 +1914,34 @@ var drawChart = (function (exports) {
|
|
|
1607
1914
|
};
|
|
1608
1915
|
|
|
1609
1916
|
const extglobClose = token => {
|
|
1917
|
+
const literal = input.slice(token.startIndex, state.index + 1);
|
|
1918
|
+
const body = input.slice(token.startIndex + 2, state.index);
|
|
1919
|
+
const analysis = analyzeRepeatedExtglob(body, opts);
|
|
1920
|
+
|
|
1921
|
+
if ((token.type === 'plus' || token.type === 'star') && analysis.risky) {
|
|
1922
|
+
const safeOutput = analysis.safeOutput
|
|
1923
|
+
? (token.output ? '' : ONE_CHAR) + (opts.capture ? `(${analysis.safeOutput})` : analysis.safeOutput)
|
|
1924
|
+
: undefined;
|
|
1925
|
+
const open = tokens[token.tokensIndex];
|
|
1926
|
+
|
|
1927
|
+
open.type = 'text';
|
|
1928
|
+
open.value = literal;
|
|
1929
|
+
open.output = safeOutput || utils.escapeRegex(literal);
|
|
1930
|
+
|
|
1931
|
+
for (let i = token.tokensIndex + 1; i < tokens.length; i++) {
|
|
1932
|
+
tokens[i].value = '';
|
|
1933
|
+
tokens[i].output = '';
|
|
1934
|
+
delete tokens[i].suffix;
|
|
1935
|
+
}
|
|
1936
|
+
|
|
1937
|
+
state.output = token.output + open.output;
|
|
1938
|
+
state.backtrack = true;
|
|
1939
|
+
|
|
1940
|
+
push({ type: 'paren', extglob: true, value, output: '' });
|
|
1941
|
+
decrement('parens');
|
|
1942
|
+
return;
|
|
1943
|
+
}
|
|
1944
|
+
|
|
1610
1945
|
let output = token.close + (opts.capture ? ')' : '');
|
|
1611
1946
|
let rest;
|
|
1612
1947
|
|
|
@@ -2486,6 +2821,18 @@ var drawChart = (function (exports) {
|
|
|
2486
2821
|
* const isMatch = picomatch('*.!(*a)');
|
|
2487
2822
|
* console.log(isMatch('a.a')); //=> false
|
|
2488
2823
|
* console.log(isMatch('a.b')); //=> true
|
|
2824
|
+
*
|
|
2825
|
+
* // For environments without `node.js`, `picomatch/posix` provides you a dependency-free matcher, without automatic OS detection.
|
|
2826
|
+
* const picomatch = require('picomatch/posix');
|
|
2827
|
+
* // the same API, defaulting to posix paths
|
|
2828
|
+
* const isMatch = picomatch('a/*');
|
|
2829
|
+
* console.log(isMatch('a\\b')); //=> false
|
|
2830
|
+
* console.log(isMatch('a/b')); //=> true
|
|
2831
|
+
*
|
|
2832
|
+
* // you can still configure the matcher function to accept windows paths
|
|
2833
|
+
* const isMatch = picomatch('a/*', { options: windows });
|
|
2834
|
+
* console.log(isMatch('a\\b')); //=> true
|
|
2835
|
+
* console.log(isMatch('a/b')); //=> true
|
|
2489
2836
|
* ```
|
|
2490
2837
|
* @name picomatch
|
|
2491
2838
|
* @param {String|Array} `globs` One or more glob patterns.
|
|
@@ -2623,9 +2970,9 @@ var drawChart = (function (exports) {
|
|
|
2623
2970
|
* @api public
|
|
2624
2971
|
*/
|
|
2625
2972
|
|
|
2626
|
-
picomatch.matchBase = (input, glob, options) => {
|
|
2973
|
+
picomatch.matchBase = (input, glob, options, posix = options && options.windows) => {
|
|
2627
2974
|
const regex = glob instanceof RegExp ? glob : picomatch.makeRe(glob, options);
|
|
2628
|
-
return regex.test(utils.basename(input));
|
|
2975
|
+
return regex.test(utils.basename(input, { windows: posix }));
|
|
2629
2976
|
};
|
|
2630
2977
|
|
|
2631
2978
|
/**
|
|
@@ -2699,6 +3046,14 @@ var drawChart = (function (exports) {
|
|
|
2699
3046
|
* Compile a regular expression from the `state` object returned by the
|
|
2700
3047
|
* [parse()](#parse) method.
|
|
2701
3048
|
*
|
|
3049
|
+
* ```js
|
|
3050
|
+
* const picomatch = require('picomatch');
|
|
3051
|
+
* const state = picomatch.parse('*.js');
|
|
3052
|
+
* // picomatch.compileRe(state[, options]);
|
|
3053
|
+
*
|
|
3054
|
+
* console.log(picomatch.compileRe(state));
|
|
3055
|
+
* //=> /^(?:(?!\.)(?=.)[^/]*?\.js)$/
|
|
3056
|
+
* ```
|
|
2702
3057
|
* @param {Object} `state`
|
|
2703
3058
|
* @param {Object} `options`
|
|
2704
3059
|
* @param {Boolean} `returnOutput` Intended for implementors, this argument allows you to return the raw output from the parser.
|
|
@@ -2734,10 +3089,10 @@ var drawChart = (function (exports) {
|
|
|
2734
3089
|
*
|
|
2735
3090
|
* ```js
|
|
2736
3091
|
* const picomatch = require('picomatch');
|
|
2737
|
-
*
|
|
2738
|
-
* // picomatch.compileRe(state[, options]);
|
|
3092
|
+
* // picomatch.makeRe(state[, options]);
|
|
2739
3093
|
*
|
|
2740
|
-
*
|
|
3094
|
+
* const result = picomatch.makeRe('*.js');
|
|
3095
|
+
* console.log(result);
|
|
2741
3096
|
* //=> /^(?:(?!\.)(?=.)[^/]*?\.js)$/
|
|
2742
3097
|
* ```
|
|
2743
3098
|
* @param {String} `state` The object returned from the `.parse` method.
|
|
@@ -3434,7 +3789,7 @@ var drawChart = (function (exports) {
|
|
|
3434
3789
|
const mainUid = data.nodeParts[node.data.uid].metaUid;
|
|
3435
3790
|
dataNode = data.nodeMetas[mainUid];
|
|
3436
3791
|
}
|
|
3437
|
-
return (u$1(
|
|
3792
|
+
return (u$1(S, { children: [u$1("div", { children: path }), availableSizeProperties.map((sizeProp) => {
|
|
3438
3793
|
if (sizeProp === sizeProperty) {
|
|
3439
3794
|
return (u$1("div", { children: [u$1("b", { children: [LABELS[sizeProp], ": ", bytesExports.format(mainSize)] }), " ", "(", percentageString, ")"] }, sizeProp));
|
|
3440
3795
|
}
|
|
@@ -3444,7 +3799,7 @@ var drawChart = (function (exports) {
|
|
|
3444
3799
|
}), u$1("br", {}), dataNode && dataNode.importedBy.length > 0 && (u$1("div", { children: [u$1("div", { children: [u$1("b", { children: "Imported By" }), ":"] }), dataNode.importedBy.map(({ uid }) => {
|
|
3445
3800
|
const id = data.nodeMetas[uid].id;
|
|
3446
3801
|
return u$1("div", { children: id }, id);
|
|
3447
|
-
})] })), u$1("br", {}), u$1("small", { children: data.options.sourcemap ? SOURCEMAP_RENDERED : RENDRED }), (data.options.gzip || data.options.brotli) && (u$1(
|
|
3802
|
+
})] })), u$1("br", {}), u$1("small", { children: data.options.sourcemap ? SOURCEMAP_RENDERED : RENDRED }), (data.options.gzip || data.options.brotli) && (u$1(S, { children: [u$1("br", {}), u$1("small", { children: COMPRESSED })] }))] }));
|
|
3448
3803
|
}, [availableSizeProperties, data, getModuleSize, node, root.data, sizeProperty]);
|
|
3449
3804
|
const updatePosition = (mouseCoords) => {
|
|
3450
3805
|
if (!ref.current)
|
|
@@ -3464,7 +3819,7 @@ var drawChart = (function (exports) {
|
|
|
3464
3819
|
}
|
|
3465
3820
|
setStyle(pos);
|
|
3466
3821
|
};
|
|
3467
|
-
|
|
3822
|
+
h(() => {
|
|
3468
3823
|
const handleMouseMove = (event) => {
|
|
3469
3824
|
updatePosition({
|
|
3470
3825
|
x: event.pageX,
|
|
@@ -3482,7 +3837,7 @@ var drawChart = (function (exports) {
|
|
|
3482
3837
|
const Chart = ({ root, sizeProperty, selectedNode, setSelectedNode, }) => {
|
|
3483
3838
|
const [showTooltip, setShowTooltip] = d(false);
|
|
3484
3839
|
const [tooltipNode, setTooltipNode] = d(undefined);
|
|
3485
|
-
|
|
3840
|
+
h(() => {
|
|
3486
3841
|
const handleMouseOut = () => {
|
|
3487
3842
|
setShowTooltip(false);
|
|
3488
3843
|
};
|
|
@@ -3491,7 +3846,7 @@ var drawChart = (function (exports) {
|
|
|
3491
3846
|
document.removeEventListener("mouseover", handleMouseOut);
|
|
3492
3847
|
};
|
|
3493
3848
|
}, []);
|
|
3494
|
-
return (u$1(
|
|
3849
|
+
return (u$1(S, { children: [u$1(TreeMap, { root: root, onNodeHover: (node) => {
|
|
3495
3850
|
setTooltipNode(node);
|
|
3496
3851
|
setShowTooltip(true);
|
|
3497
3852
|
}, selectedNode: selectedNode, onNodeClick: (node) => {
|
|
@@ -3559,7 +3914,7 @@ var drawChart = (function (exports) {
|
|
|
3559
3914
|
sizeProperty,
|
|
3560
3915
|
]);
|
|
3561
3916
|
console.timeEnd("root hierarchy compute");
|
|
3562
|
-
return (u$1(
|
|
3917
|
+
return (u$1(S, { children: [u$1(SideBar, { sizeProperty: sizeProperty, availableSizeProperties: availableSizeProperties, setSizeProperty: setSizeProperty, onExcludeChange: setExcludeFilter, onIncludeChange: setIncludeFilter }), u$1(Chart, { root: root, sizeProperty: sizeProperty, selectedNode: selectedNode, setSelectedNode: setSelectedNode })] }));
|
|
3563
3918
|
};
|
|
3564
3919
|
|
|
3565
3920
|
function initRange(domain, range) {
|
|
@@ -4860,7 +5215,7 @@ var drawChart = (function (exports) {
|
|
|
4860
5215
|
};
|
|
4861
5216
|
};
|
|
4862
5217
|
|
|
4863
|
-
const StaticContext =
|
|
5218
|
+
const StaticContext = X({});
|
|
4864
5219
|
const drawChart = (parentNode, data, width, height) => {
|
|
4865
5220
|
const availableSizeProperties = getAvailableSizeOptions(data.options);
|
|
4866
5221
|
console.time("layout create");
|
|
@@ -4904,7 +5259,7 @@ var drawChart = (function (exports) {
|
|
|
4904
5259
|
console.time("color");
|
|
4905
5260
|
const getModuleColor = createRainbowColor(rawHierarchy);
|
|
4906
5261
|
console.timeEnd("color");
|
|
4907
|
-
|
|
5262
|
+
R(u$1(StaticContext.Provider, { value: {
|
|
4908
5263
|
data,
|
|
4909
5264
|
availableSizeProperties,
|
|
4910
5265
|
width,
|
|
@@ -4930,7 +5285,7 @@ var drawChart = (function (exports) {
|
|
|
4930
5285
|
</script>
|
|
4931
5286
|
<script>
|
|
4932
5287
|
/*<!--*/
|
|
4933
|
-
const data = {"version":2,"tree":{"name":"root","children":[{"name":"react.d.ts","children":[{"name":"src","children":[{"name":"components","children":[{"uid":"
|
|
5288
|
+
const data = {"version":2,"tree":{"name":"root","children":[{"name":"react.d.ts","children":[{"name":"src","children":[{"name":"components","children":[{"uid":"9eacf5e4-1","name":"provider.d.ts"},{"uid":"9eacf5e4-7","name":"store.d.ts"}]},{"name":"hooks/events.d.ts","uid":"9eacf5e4-9"},{"uid":"9eacf5e4-11","name":"index.d.ts"}]},{"name":"home/runner/work/weavejs/weavejs/code/node_modules/zustand/esm","children":[{"uid":"9eacf5e4-3","name":"vanilla.d.mts"},{"uid":"9eacf5e4-5","name":"react.d.mts"}]}]},{"name":"react.js","children":[{"name":"home/runner/work/weavejs/weavejs/code/node_modules/zustand/esm","children":[{"uid":"9eacf5e4-13","name":"vanilla.mjs"},{"uid":"9eacf5e4-15","name":"react.mjs"}]},{"name":"src","children":[{"name":"components","children":[{"uid":"9eacf5e4-17","name":"store.tsx"},{"uid":"9eacf5e4-19","name":"provider.tsx"}]},{"name":"hooks/events.tsx","uid":"9eacf5e4-21"},{"uid":"9eacf5e4-23","name":"index.ts"}]}]}],"isRoot":true},"nodeParts":{"9eacf5e4-1":{"renderedLength":837,"gzipLength":305,"brotliLength":273,"metaUid":"9eacf5e4-0"},"9eacf5e4-3":{"renderedLength":559,"gzipLength":201,"brotliLength":177,"metaUid":"9eacf5e4-2"},"9eacf5e4-5":{"renderedLength":370,"gzipLength":201,"brotliLength":175,"metaUid":"9eacf5e4-4"},"9eacf5e4-7":{"renderedLength":1080,"gzipLength":255,"brotliLength":215,"metaUid":"9eacf5e4-6"},"9eacf5e4-9":{"renderedLength":92,"gzipLength":105,"brotliLength":79,"metaUid":"9eacf5e4-8"},"9eacf5e4-11":{"renderedLength":0,"gzipLength":0,"brotliLength":0,"metaUid":"9eacf5e4-10"},"9eacf5e4-13":{"renderedLength":1019,"gzipLength":445,"brotliLength":387,"metaUid":"9eacf5e4-12"},"9eacf5e4-15":{"renderedLength":601,"gzipLength":305,"brotliLength":279,"metaUid":"9eacf5e4-14"},"9eacf5e4-17":{"renderedLength":3202,"gzipLength":816,"brotliLength":716,"metaUid":"9eacf5e4-16"},"9eacf5e4-19":{"renderedLength":5149,"gzipLength":1144,"brotliLength":966,"metaUid":"9eacf5e4-18"},"9eacf5e4-21":{"renderedLength":3389,"gzipLength":740,"brotliLength":653,"metaUid":"9eacf5e4-20"},"9eacf5e4-23":{"renderedLength":0,"gzipLength":0,"brotliLength":0,"metaUid":"9eacf5e4-22"}},"nodeMetas":{"9eacf5e4-0":{"id":"/src/components/provider.d.ts","moduleParts":{"react.d.ts":"9eacf5e4-1"},"imported":[{"uid":"9eacf5e4-24"},{"uid":"9eacf5e4-25"},{"uid":"9eacf5e4-26"}],"importedBy":[{"uid":"9eacf5e4-10"}]},"9eacf5e4-2":{"id":"/home/runner/work/weavejs/weavejs/code/node_modules/zustand/esm/vanilla.d.mts","moduleParts":{"react.d.ts":"9eacf5e4-3"},"imported":[],"importedBy":[{"uid":"9eacf5e4-27"},{"uid":"9eacf5e4-4"}]},"9eacf5e4-4":{"id":"/home/runner/work/weavejs/weavejs/code/node_modules/zustand/esm/react.d.mts","moduleParts":{"react.d.ts":"9eacf5e4-5"},"imported":[{"uid":"9eacf5e4-2"}],"importedBy":[{"uid":"9eacf5e4-27"}]},"9eacf5e4-6":{"id":"/src/components/store.d.ts","moduleParts":{"react.d.ts":"9eacf5e4-7"},"imported":[{"uid":"9eacf5e4-25"},{"uid":"9eacf5e4-26"},{"uid":"9eacf5e4-27"}],"importedBy":[{"uid":"9eacf5e4-10"}]},"9eacf5e4-8":{"id":"/src/hooks/events.d.ts","moduleParts":{"react.d.ts":"9eacf5e4-9"},"imported":[],"importedBy":[{"uid":"9eacf5e4-10"}]},"9eacf5e4-10":{"id":"/src/index.d.ts","moduleParts":{"react.d.ts":"9eacf5e4-11"},"imported":[{"uid":"9eacf5e4-0"},{"uid":"9eacf5e4-6"},{"uid":"9eacf5e4-8"}],"importedBy":[],"isEntry":true},"9eacf5e4-12":{"id":"/home/runner/work/weavejs/weavejs/code/node_modules/zustand/esm/vanilla.mjs","moduleParts":{"react.js":"9eacf5e4-13"},"imported":[],"importedBy":[{"uid":"9eacf5e4-28"},{"uid":"9eacf5e4-14"}]},"9eacf5e4-14":{"id":"/home/runner/work/weavejs/weavejs/code/node_modules/zustand/esm/react.mjs","moduleParts":{"react.js":"9eacf5e4-15"},"imported":[{"uid":"9eacf5e4-24"},{"uid":"9eacf5e4-12"}],"importedBy":[{"uid":"9eacf5e4-28"}]},"9eacf5e4-16":{"id":"/src/components/store.tsx","moduleParts":{"react.js":"9eacf5e4-17"},"imported":[{"uid":"9eacf5e4-25"},{"uid":"9eacf5e4-26"},{"uid":"9eacf5e4-28"}],"importedBy":[{"uid":"9eacf5e4-22"},{"uid":"9eacf5e4-18"},{"uid":"9eacf5e4-20"}]},"9eacf5e4-18":{"id":"/src/components/provider.tsx","moduleParts":{"react.js":"9eacf5e4-19"},"imported":[{"uid":"9eacf5e4-24"},{"uid":"9eacf5e4-25"},{"uid":"9eacf5e4-26"},{"uid":"9eacf5e4-16"}],"importedBy":[{"uid":"9eacf5e4-22"}]},"9eacf5e4-20":{"id":"/src/hooks/events.tsx","moduleParts":{"react.js":"9eacf5e4-21"},"imported":[{"uid":"9eacf5e4-16"},{"uid":"9eacf5e4-24"}],"importedBy":[{"uid":"9eacf5e4-22"}]},"9eacf5e4-22":{"id":"/src/index.ts","moduleParts":{"react.js":"9eacf5e4-23"},"imported":[{"uid":"9eacf5e4-18"},{"uid":"9eacf5e4-16"},{"uid":"9eacf5e4-20"}],"importedBy":[],"isEntry":true},"9eacf5e4-24":{"id":"react","moduleParts":{},"imported":[],"importedBy":[{"uid":"9eacf5e4-0"},{"uid":"9eacf5e4-18"},{"uid":"9eacf5e4-20"},{"uid":"9eacf5e4-14"}]},"9eacf5e4-25":{"id":"@inditextech/weave-sdk","moduleParts":{},"imported":[],"importedBy":[{"uid":"9eacf5e4-0"},{"uid":"9eacf5e4-6"},{"uid":"9eacf5e4-18"},{"uid":"9eacf5e4-16"}]},"9eacf5e4-26":{"id":"@inditextech/weave-types","moduleParts":{},"imported":[],"importedBy":[{"uid":"9eacf5e4-0"},{"uid":"9eacf5e4-6"},{"uid":"9eacf5e4-18"},{"uid":"9eacf5e4-16"}]},"9eacf5e4-27":{"id":"/home/runner/work/weavejs/weavejs/code/node_modules/zustand/esm/index.d.mts","moduleParts":{},"imported":[{"uid":"9eacf5e4-2"},{"uid":"9eacf5e4-4"}],"importedBy":[{"uid":"9eacf5e4-6"}]},"9eacf5e4-28":{"id":"/home/runner/work/weavejs/weavejs/code/node_modules/zustand/esm/index.mjs","moduleParts":{},"imported":[{"uid":"9eacf5e4-12"},{"uid":"9eacf5e4-14"}],"importedBy":[{"uid":"9eacf5e4-16"}]}},"env":{"rollup":"4.23.0"},"options":{"gzip":true,"brotli":true,"sourcemap":false}};
|
|
4934
5289
|
|
|
4935
5290
|
const run = () => {
|
|
4936
5291
|
const width = window.innerWidth;
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@inditextech/weave-react",
|
|
3
|
-
"version": "5.2.
|
|
3
|
+
"version": "5.2.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": "Jesus Manuel Piñeiro Cid <jesusmpc@inditex.com>",
|
|
7
|
-
"homepage": "https://inditextech.github.io/weavejs",
|
|
7
|
+
"homepage": "https://inditextech.github.io/weavejs/latest/react/",
|
|
8
8
|
"repository": {
|
|
9
9
|
"url": "git+https://github.com/InditexTech/weavejs.git"
|
|
10
10
|
},
|
|
@@ -46,8 +46,8 @@
|
|
|
46
46
|
"version:release": "npm version $RELEASE_VERSION -m \"[npm-scripts] prepare release $RELEASE_VERSION\" --tag-version-prefix \"\""
|
|
47
47
|
},
|
|
48
48
|
"dependencies": {
|
|
49
|
-
"@inditextech/weave-sdk": "5.2.
|
|
50
|
-
"@inditextech/weave-types": "5.2.
|
|
49
|
+
"@inditextech/weave-sdk": "5.2.2",
|
|
50
|
+
"@inditextech/weave-types": "5.2.2"
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|
|
53
53
|
"@testing-library/jest-dom": "^6.9.1",
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
"jsdom": "^26.0.0",
|
|
65
65
|
"react-remove-attr": "0.0.6",
|
|
66
66
|
"rollup-plugin-visualizer": "^7.0.1",
|
|
67
|
-
"tsdown": "
|
|
67
|
+
"tsdown": "0.22.14",
|
|
68
68
|
"typescript-eslint": "8.22.0",
|
|
69
69
|
"vitest": "^3.2.6",
|
|
70
70
|
"vitest-canvas-mock": "^1.1.4",
|