@yakocloud/state-vocab 3.1.4 → 3.1.6
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/README.md +20 -1
- package/dist/state-vocab.cjs.js +4 -4
- package/dist/state-vocab.es.js +228 -226
- package/dist/types/state.d.ts +2 -5
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -508,4 +508,23 @@ A React context provider that initializes a `VocabStore` for its subtree. Requir
|
|
|
508
508
|
| `onSet` | `(next: T, prev: T) => void \| undefined` | Callback after state change |
|
|
509
509
|
| `bidirectional` | `true \| undefined` | Sync state across browser tabs |
|
|
510
510
|
|
|
511
|
-
Returns `[value, setValue, resetValue]`
|
|
511
|
+
Returns `[value, setValue, resetValue]`
|
|
512
|
+
|
|
513
|
+
### `node.useInitialState(options)`
|
|
514
|
+
|
|
515
|
+
Initializes state without subscribing the caller component to re-renders. Use at layout or root components that only need to seed a value — not react to its changes.
|
|
516
|
+
|
|
517
|
+
| Option | Type | Description |
|
|
518
|
+
|---|---|---|
|
|
519
|
+
| `defaultValue` | `T \| (() => T)` | Value to seed. Required. |
|
|
520
|
+
|
|
521
|
+
```tsx
|
|
522
|
+
function Page() {
|
|
523
|
+
// Seeds the value — this component will NOT re-render when pageProps changes
|
|
524
|
+
storage.demo.pageProps.useInitialState({
|
|
525
|
+
defaultValue: { title: 'Hello', count: 42 },
|
|
526
|
+
})
|
|
527
|
+
|
|
528
|
+
return <Dashboard />
|
|
529
|
+
}
|
|
530
|
+
```
|
package/dist/state-vocab.cjs.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const _=require("react");var
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const _=require("react");var Y={exports:{}},V={};var re;function Ee(){if(re)return V;re=1;var t=Symbol.for("react.transitional.element"),n=Symbol.for("react.fragment");function r(u,o,a){var l=null;if(a!==void 0&&(l=""+a),o.key!==void 0&&(l=""+o.key),"key"in o){a={};for(var c in o)c!=="key"&&(a[c]=o[c])}else a=o;return o=a.ref,{$$typeof:t,type:u,key:l,ref:o!==void 0?o:null,props:a}}return V.Fragment=n,V.jsx=r,V.jsxs=r,V}var I={};var ne;function Se(){return ne||(ne=1,process.env.NODE_ENV!=="production"&&(function(){function t(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===be?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case h:return"Fragment";case A:return"Profiler";case j:return"StrictMode";case J:return"Suspense";case i:return"SuspenseList";case P:return"Activity"}if(typeof e=="object")switch(typeof e.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),e.$$typeof){case p:return"Portal";case k:return e.displayName||"Context";case w:return(e._context.displayName||"Context")+".Consumer";case C:var s=e.render;return e=e.displayName,e||(e=s.displayName||s.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case T:return s=e.displayName||null,s!==null?s:t(e.type)||"Memo";case O:s=e._payload,e=e._init;try{return t(e(s))}catch{}}return null}function n(e){return""+e}function r(e){try{n(e);var s=!1}catch{s=!0}if(s){s=console;var b=s.error,m=typeof Symbol=="function"&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object";return b.call(s,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",m),n(e)}}function u(e){if(e===h)return"<>";if(typeof e=="object"&&e!==null&&e.$$typeof===O)return"<...>";try{var s=t(e);return s?"<"+s+">":"<...>"}catch{return"<...>"}}function o(){var e=W.A;return e===null?null:e.getOwner()}function a(){return Error("react-stack-top-frame")}function l(e){if(H.call(e,"key")){var s=Object.getOwnPropertyDescriptor(e,"key").get;if(s&&s.isReactWarning)return!1}return e.key!==void 0}function c(e,s){function b(){Z||(Z=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",s))}b.isReactWarning=!0,Object.defineProperty(e,"key",{get:b,configurable:!0})}function y(){var e=t(this.type);return Q[e]||(Q[e]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),e=this.props.ref,e!==void 0?e:null}function R(e,s,b,m,M,q){var v=b.ref;return e={$$typeof:S,type:e,key:s,props:b,_owner:m},(v!==void 0?v:null)!==null?Object.defineProperty(e,"ref",{enumerable:!1,get:y}):Object.defineProperty(e,"ref",{enumerable:!1,value:null}),e._store={},Object.defineProperty(e._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(e,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(e,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:M}),Object.defineProperty(e,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:q}),Object.freeze&&(Object.freeze(e.props),Object.freeze(e)),e}function g(e,s,b,m,M,q){var v=s.children;if(v!==void 0)if(m)if(me(v)){for(m=0;m<v.length;m++)f(v[m]);Object.freeze&&Object.freeze(v)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else f(v);if(H.call(s,"key")){v=t(e);var N=Object.keys(s).filter(function(ve){return ve!=="key"});m=0<N.length?"{key: someKey, "+N.join(": ..., ")+": ...}":"{key: someKey}",te[v+m]||(N=0<N.length?"{"+N.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
|
|
2
2
|
let props = %s;
|
|
3
3
|
<%s {...props} />
|
|
4
4
|
React keys must be passed directly to JSX without using spread:
|
|
5
5
|
let props = %s;
|
|
6
|
-
<%s key={someKey} {...props} />`,v,
|
|
7
|
-
`),r=[],u=[];for(const
|
|
8
|
-
`),...u,t)}const ue=t=>typeof t=="function",
|
|
6
|
+
<%s key={someKey} {...props} />`,m,v,N,v),te[v+m]=!0)}if(v=null,b!==void 0&&(r(b),v=""+b),l(s)&&(r(s.key),v=""+s.key),"key"in s){b={};for(var G in s)G!=="key"&&(b[G]=s[G])}else b=s;return v&&c(b,typeof e=="function"?e.displayName||e.name||"Unknown":e),R(e,v,b,o(),M,q)}function f(e){d(e)?e._store&&(e._store.validated=1):typeof e=="object"&&e!==null&&e.$$typeof===O&&(e._payload.status==="fulfilled"?d(e._payload.value)&&e._payload.value._store&&(e._payload.value._store.validated=1):e._store&&(e._store.validated=1))}function d(e){return typeof e=="object"&&e!==null&&e.$$typeof===S}var E=_,S=Symbol.for("react.transitional.element"),p=Symbol.for("react.portal"),h=Symbol.for("react.fragment"),j=Symbol.for("react.strict_mode"),A=Symbol.for("react.profiler"),w=Symbol.for("react.consumer"),k=Symbol.for("react.context"),C=Symbol.for("react.forward_ref"),J=Symbol.for("react.suspense"),i=Symbol.for("react.suspense_list"),T=Symbol.for("react.memo"),O=Symbol.for("react.lazy"),P=Symbol.for("react.activity"),be=Symbol.for("react.client.reference"),W=E.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,H=Object.prototype.hasOwnProperty,me=Array.isArray,U=console.createTask?console.createTask:function(){return null};E={react_stack_bottom_frame:function(e){return e()}};var Z,Q={},K=E.react_stack_bottom_frame.bind(E,a)(),ee=U(u(a)),te={};I.Fragment=h,I.jsx=function(e,s,b){var m=1e4>W.recentlyCreatedOwnerStacks++;return g(e,s,b,!1,m?Error("react-stack-top-frame"):K,m?U(u(e)):ee)},I.jsxs=function(e,s,b){var m=1e4>W.recentlyCreatedOwnerStacks++;return g(e,s,b,!0,m?Error("react-stack-top-frame"):K,m?U(u(e)):ee)}})()),I}var oe;function pe(){return oe||(oe=1,process.env.NODE_ENV==="production"?Y.exports=Ee():Y.exports=Se()),Y.exports}var he=pe();function L(t,n,r){if(!n)return t;const u=n.split(".");let o=t;for(const a of u)if(o!==null&&typeof o=="object"&&a in o)o=o[a];else return r;return o===void 0?r:o}function _e(t,n,r){const u=n.replace(/\[(\d+)\]/g,".$1").split(".");let o=t;for(let a=0;a<u.length-1;a++){const l=u[a],c=u[a+1];(o[l]===void 0||o[l]===null)&&(o[l]=/^\d+$/.test(c)?[]:{}),o=o[l]}return o[u[u.length-1]]=r,t}function ye(t,n=0){let r;return function(...u){r!==void 0&&clearTimeout(r),r=setTimeout(()=>{r=void 0,t.apply(this,u)},n)}}function Re(t,n,r=[]){return _.useMemo(()=>ye(t,n),r)}function se(t){const n=JSON.stringify(t,null,2).split(`
|
|
7
|
+
`),r=[],u=[];for(const o of n){const a=o.match(/^(\s*)"([^"]+)"(\s*:\s*)(.+)$/);if(a){const[,l,c,y,R]=a;r.push(`${l}%c"${c}"%c${y}%c${R}`),u.push("color: #9cdcfe; font-weight: bold","color: #cccccc","color: #ce9178")}else r.push(`%c${o}`),u.push("color: #cccccc")}console.log(r.join(`
|
|
8
|
+
`),...u,t)}const ue=t=>typeof t=="function",Te=t=>typeof t=="function",x=t=>typeof t<"u",$=t=>Te(t)?t():t;class ie{#e;#t;constructor(){this.uid=Math.random().toString(36).slice(2),this.#e={},this.#t=new Set}subscribe(n){return this.#t.add(n),()=>this.#t.delete(n)}getClientSnapshot(){return this.#e}getServerSnapshot(){return this.#e}get(n){return L(this.#e,n)}set(n,r){const u=L(this.#e,n),o=ue(r)?r(u):r,a={...this.#e};_e(a,n,o),this.#e=a,this.#t.forEach(l=>l())}}const le=_.createContext({});function ae(t={}){const n=_.useContext(le);return t.verbose&&console.log(`[Store uid]: ${n.uid}`),n}function ge({children:t}){const n=_.useMemo(()=>new ie,[]);return he.jsx(le.Provider,{value:n,children:t})}const fe=Symbol("state-def"),z=Symbol("state-path"),D=Symbol("state-verbose"),B=Symbol("state-verbose-path"),F=Symbol("state-ssr"),X=typeof window>"u",ce=X?_.useEffect:_.useLayoutEffect;function ke(t={}){return{[fe]:!0,[z]:"",[D]:!1,[B]:"",[F]:!1,useState(n){const r=X?void 0:$(t.storage),u=$(t.defaultValue),o=t.bidirectional;n??={};const a=$(n.defaultValue)??u,l=n.bidirectional??o,c=this[z],y=this[D],R=this[B],g=this[F],f=ae({verbose:y});if(!(f instanceof ie))throw new Error("Make sure your component is wrapped in VocabStateProvider");const d=t.serialize??JSON.stringify,E=t.deserialize??JSON.parse,S=(i,T,O)=>{const P=T.getItem(i);P===null?x(O)&&T.setItem(i,d(O)):f.set(i,E(P))},p=Re(n.onSet??(()=>{}),n.delayedSet,[]),h=_.useRef(void 0),j=_.useRef(!1);if(!j.current){j.current=!0;let i=f.get(c);x(i)||(i=a,x(i)&&f.set(c,i)),!g&&r&&S(c,r,i)}const A=_.useSyncExternalStore(f.subscribe.bind(f),f.getClientSnapshot.bind(f),f.getServerSnapshot.bind(f));if(y)if(R){const i=L(A,R);i&&se(i)}else se(A);const w=L(A,c,a);h.current=w,ce(()=>{!g||!r||S(c,r,w)},[]);const k=_.useEffectEvent(i=>{if(i.key!==c)return;const T=i.newValue,P=(T===null?null:E(T))??a;x(P)&&(f.set(c,P),p(P,h.current))});_.useEffect(()=>{if(l)return window.addEventListener("storage",k),()=>window.removeEventListener("storage",k)},[l]);const C=_.useCallback(i=>{const T=ue(i)?i(h.current):i;f.set(c,T),p(T,h.current),r&&r.setItem(c,d(T))},[f,c,p,r,d]),J=_.useCallback(()=>{const i=a;if(!x(i)){r?.removeItem(c);return}f.set(c,i),p(i,h.current),r&&r.setItem(c,d(i))},[a,f,c,p,r,d]);return[w,C,J]},useInitialState(n){const r=X?void 0:$(t.storage),u=$(n.defaultValue),o=this[z],a=this[D],l=this[F],c=ae({verbose:a}),y=t.serialize??JSON.stringify,R=t.deserialize??JSON.parse,g=(E,S,p)=>{const h=S.getItem(E);h===null?x(p)&&S.setItem(E,y(p)):c.set(E,R(h))},f=_.useRef(!1);let d;f.current||(f.current=!0,d=c.get(o),x(d)||(d=u,x(d)&&c.set(o,d)),!l&&r&&g(o,r,d)),ce(()=>{!l||!r||g(o,r,d)},[])},toString(){return this[z]}}}function de(t,n){const{path:r="",verbose:u,verbosePath:o,ssr:a,cache:l}=n;let c=l.proxy.get(t);c||(c=new Map,l.proxy.set(t,c));const y=c.get(r);if(y)return y;const R=new Proxy(t,{get(g,f){const d=g[f],E=r?`${r}.${String(f)}`:String(f);if(d&&typeof d=="object"&&fe in d){const S=d;let p=l.leaf.get(S);p||(p=new Map,l.leaf.set(S,p));const h=p.get(E);if(h)return h;const j=Reflect.ownKeys(S).filter(k=>typeof S[k]=="function"),A=Object.fromEntries(j.map(k=>[k,(...C)=>S[k].call({...S,[z]:E,[D]:u,[B]:o,[F]:a},...C)])),w={...S,...A};return p.set(E,w),w}return d&&typeof d=="object"?de(d,{...n,path:E}):d}});return c.set(r,R),R}function we(t,n){return de(t,{...n,verbosePath:n?.verbosePath??"",cache:{proxy:new WeakMap,leaf:new WeakMap}})}exports.VocabStateProvider=ge;exports.defineState=ke;exports.setupStorage=we;
|
package/dist/state-vocab.es.js
CHANGED
|
@@ -1,69 +1,70 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
"use client";
|
|
2
|
+
import he, { useMemo as le, createContext as _e, useContext as ye, useRef as G, useEffect as ue, useLayoutEffect as Re, useSyncExternalStore as Te, useEffectEvent as ge, useCallback as re } from "react";
|
|
3
|
+
var Y = { exports: {} }, C = {};
|
|
3
4
|
var ne;
|
|
4
|
-
function
|
|
5
|
-
if (ne) return
|
|
5
|
+
function ke() {
|
|
6
|
+
if (ne) return C;
|
|
6
7
|
ne = 1;
|
|
7
8
|
var t = Symbol.for("react.transitional.element"), n = Symbol.for("react.fragment");
|
|
8
|
-
function r(
|
|
9
|
-
var
|
|
10
|
-
if (a !== void 0 && (
|
|
9
|
+
function r(i, o, a) {
|
|
10
|
+
var u = null;
|
|
11
|
+
if (a !== void 0 && (u = "" + a), o.key !== void 0 && (u = "" + o.key), "key" in o) {
|
|
11
12
|
a = {};
|
|
12
|
-
for (var c in
|
|
13
|
-
c !== "key" && (a[c] =
|
|
14
|
-
} else a =
|
|
15
|
-
return
|
|
13
|
+
for (var c in o)
|
|
14
|
+
c !== "key" && (a[c] = o[c]);
|
|
15
|
+
} else a = o;
|
|
16
|
+
return o = a.ref, {
|
|
16
17
|
$$typeof: t,
|
|
17
|
-
type:
|
|
18
|
-
key:
|
|
19
|
-
ref:
|
|
18
|
+
type: i,
|
|
19
|
+
key: u,
|
|
20
|
+
ref: o !== void 0 ? o : null,
|
|
20
21
|
props: a
|
|
21
22
|
};
|
|
22
23
|
}
|
|
23
|
-
return
|
|
24
|
+
return C.Fragment = n, C.jsx = r, C.jsxs = r, C;
|
|
24
25
|
}
|
|
25
|
-
var
|
|
26
|
+
var V = {};
|
|
26
27
|
var oe;
|
|
27
|
-
function
|
|
28
|
+
function we() {
|
|
28
29
|
return oe || (oe = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
29
30
|
function t(e) {
|
|
30
31
|
if (e == null) return null;
|
|
31
32
|
if (typeof e == "function")
|
|
32
|
-
return e.$$typeof ===
|
|
33
|
+
return e.$$typeof === Ee ? null : e.displayName || e.name || null;
|
|
33
34
|
if (typeof e == "string") return e;
|
|
34
35
|
switch (e) {
|
|
35
|
-
case
|
|
36
|
+
case h:
|
|
36
37
|
return "Fragment";
|
|
37
|
-
case
|
|
38
|
+
case P:
|
|
38
39
|
return "Profiler";
|
|
39
|
-
case
|
|
40
|
+
case O:
|
|
40
41
|
return "StrictMode";
|
|
41
42
|
case L:
|
|
42
43
|
return "Suspense";
|
|
43
|
-
case
|
|
44
|
+
case l:
|
|
44
45
|
return "SuspenseList";
|
|
45
|
-
case
|
|
46
|
+
case w:
|
|
46
47
|
return "Activity";
|
|
47
48
|
}
|
|
48
49
|
if (typeof e == "object")
|
|
49
50
|
switch (typeof e.tag == "number" && console.error(
|
|
50
51
|
"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
|
|
51
52
|
), e.$$typeof) {
|
|
52
|
-
case
|
|
53
|
+
case p:
|
|
53
54
|
return "Portal";
|
|
54
|
-
case
|
|
55
|
+
case g:
|
|
55
56
|
return e.displayName || "Context";
|
|
56
|
-
case
|
|
57
|
+
case k:
|
|
57
58
|
return (e._context.displayName || "Context") + ".Consumer";
|
|
58
|
-
case
|
|
59
|
-
var
|
|
60
|
-
return e = e.displayName, e || (e =
|
|
59
|
+
case N:
|
|
60
|
+
var s = e.render;
|
|
61
|
+
return e = e.displayName, e || (e = s.displayName || s.name || "", e = e !== "" ? "ForwardRef(" + e + ")" : "ForwardRef"), e;
|
|
61
62
|
case R:
|
|
62
|
-
return
|
|
63
|
-
case
|
|
64
|
-
|
|
63
|
+
return s = e.displayName || null, s !== null ? s : t(e.type) || "Memo";
|
|
64
|
+
case A:
|
|
65
|
+
s = e._payload, e = e._init;
|
|
65
66
|
try {
|
|
66
|
-
return t(e(
|
|
67
|
+
return t(e(s));
|
|
67
68
|
} catch {
|
|
68
69
|
}
|
|
69
70
|
}
|
|
@@ -75,54 +76,54 @@ function ke() {
|
|
|
75
76
|
function r(e) {
|
|
76
77
|
try {
|
|
77
78
|
n(e);
|
|
78
|
-
var
|
|
79
|
+
var s = !1;
|
|
79
80
|
} catch {
|
|
80
|
-
|
|
81
|
+
s = !0;
|
|
81
82
|
}
|
|
82
|
-
if (
|
|
83
|
-
|
|
84
|
-
var
|
|
85
|
-
return
|
|
86
|
-
|
|
83
|
+
if (s) {
|
|
84
|
+
s = console;
|
|
85
|
+
var m = s.error, b = typeof Symbol == "function" && Symbol.toStringTag && e[Symbol.toStringTag] || e.constructor.name || "Object";
|
|
86
|
+
return m.call(
|
|
87
|
+
s,
|
|
87
88
|
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
88
|
-
|
|
89
|
+
b
|
|
89
90
|
), n(e);
|
|
90
91
|
}
|
|
91
92
|
}
|
|
92
|
-
function
|
|
93
|
-
if (e ===
|
|
94
|
-
if (typeof e == "object" && e !== null && e.$$typeof ===
|
|
93
|
+
function i(e) {
|
|
94
|
+
if (e === h) return "<>";
|
|
95
|
+
if (typeof e == "object" && e !== null && e.$$typeof === A)
|
|
95
96
|
return "<...>";
|
|
96
97
|
try {
|
|
97
|
-
var
|
|
98
|
-
return
|
|
98
|
+
var s = t(e);
|
|
99
|
+
return s ? "<" + s + ">" : "<...>";
|
|
99
100
|
} catch {
|
|
100
101
|
return "<...>";
|
|
101
102
|
}
|
|
102
103
|
}
|
|
103
|
-
function
|
|
104
|
+
function o() {
|
|
104
105
|
var e = J.A;
|
|
105
106
|
return e === null ? null : e.getOwner();
|
|
106
107
|
}
|
|
107
108
|
function a() {
|
|
108
109
|
return Error("react-stack-top-frame");
|
|
109
110
|
}
|
|
110
|
-
function
|
|
111
|
+
function u(e) {
|
|
111
112
|
if (H.call(e, "key")) {
|
|
112
|
-
var
|
|
113
|
-
if (
|
|
113
|
+
var s = Object.getOwnPropertyDescriptor(e, "key").get;
|
|
114
|
+
if (s && s.isReactWarning) return !1;
|
|
114
115
|
}
|
|
115
116
|
return e.key !== void 0;
|
|
116
117
|
}
|
|
117
|
-
function c(e,
|
|
118
|
-
function
|
|
118
|
+
function c(e, s) {
|
|
119
|
+
function m() {
|
|
119
120
|
Z || (Z = !0, console.error(
|
|
120
121
|
"%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
|
|
121
|
-
|
|
122
|
+
s
|
|
122
123
|
));
|
|
123
124
|
}
|
|
124
|
-
|
|
125
|
-
get:
|
|
125
|
+
m.isReactWarning = !0, Object.defineProperty(e, "key", {
|
|
126
|
+
get: m,
|
|
126
127
|
configurable: !0
|
|
127
128
|
});
|
|
128
129
|
}
|
|
@@ -132,15 +133,15 @@ function ke() {
|
|
|
132
133
|
"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
|
|
133
134
|
)), e = this.props.ref, e !== void 0 ? e : null;
|
|
134
135
|
}
|
|
135
|
-
function y(e,
|
|
136
|
-
var
|
|
136
|
+
function y(e, s, m, b, z, U) {
|
|
137
|
+
var v = m.ref;
|
|
137
138
|
return e = {
|
|
138
139
|
$$typeof: S,
|
|
139
140
|
type: e,
|
|
140
|
-
key:
|
|
141
|
-
props:
|
|
142
|
-
_owner:
|
|
143
|
-
}, (
|
|
141
|
+
key: s,
|
|
142
|
+
props: m,
|
|
143
|
+
_owner: b
|
|
144
|
+
}, (v !== void 0 ? v : null) !== null ? Object.defineProperty(e, "ref", {
|
|
144
145
|
enumerable: !1,
|
|
145
146
|
get: _
|
|
146
147
|
}) : Object.defineProperty(e, "ref", { enumerable: !1, value: null }), e._store = {}, Object.defineProperty(e._store, "validated", {
|
|
@@ -165,156 +166,156 @@ function ke() {
|
|
|
165
166
|
value: U
|
|
166
167
|
}), Object.freeze && (Object.freeze(e.props), Object.freeze(e)), e;
|
|
167
168
|
}
|
|
168
|
-
function T(e,
|
|
169
|
-
var
|
|
170
|
-
if (
|
|
171
|
-
if (
|
|
172
|
-
if (
|
|
173
|
-
for (
|
|
174
|
-
f(
|
|
175
|
-
Object.freeze && Object.freeze(
|
|
169
|
+
function T(e, s, m, b, z, U) {
|
|
170
|
+
var v = s.children;
|
|
171
|
+
if (v !== void 0)
|
|
172
|
+
if (b)
|
|
173
|
+
if (Se(v)) {
|
|
174
|
+
for (b = 0; b < v.length; b++)
|
|
175
|
+
f(v[b]);
|
|
176
|
+
Object.freeze && Object.freeze(v);
|
|
176
177
|
} else
|
|
177
178
|
console.error(
|
|
178
179
|
"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
|
|
179
180
|
);
|
|
180
|
-
else f(
|
|
181
|
-
if (H.call(
|
|
182
|
-
|
|
183
|
-
var j = Object.keys(
|
|
184
|
-
return
|
|
181
|
+
else f(v);
|
|
182
|
+
if (H.call(s, "key")) {
|
|
183
|
+
v = t(e);
|
|
184
|
+
var j = Object.keys(s).filter(function(pe) {
|
|
185
|
+
return pe !== "key";
|
|
185
186
|
});
|
|
186
|
-
|
|
187
|
+
b = 0 < j.length ? "{key: someKey, " + j.join(": ..., ") + ": ...}" : "{key: someKey}", te[v + b] || (j = 0 < j.length ? "{" + j.join(": ..., ") + ": ...}" : "{}", console.error(
|
|
187
188
|
`A props object containing a "key" prop is being spread into JSX:
|
|
188
189
|
let props = %s;
|
|
189
190
|
<%s {...props} />
|
|
190
191
|
React keys must be passed directly to JSX without using spread:
|
|
191
192
|
let props = %s;
|
|
192
193
|
<%s key={someKey} {...props} />`,
|
|
194
|
+
b,
|
|
193
195
|
v,
|
|
194
|
-
E,
|
|
195
196
|
j,
|
|
196
|
-
|
|
197
|
-
), te[
|
|
197
|
+
v
|
|
198
|
+
), te[v + b] = !0);
|
|
198
199
|
}
|
|
199
|
-
if (
|
|
200
|
-
|
|
201
|
-
for (var q in
|
|
202
|
-
q !== "key" && (
|
|
203
|
-
} else
|
|
204
|
-
return
|
|
205
|
-
|
|
200
|
+
if (v = null, m !== void 0 && (r(m), v = "" + m), u(s) && (r(s.key), v = "" + s.key), "key" in s) {
|
|
201
|
+
m = {};
|
|
202
|
+
for (var q in s)
|
|
203
|
+
q !== "key" && (m[q] = s[q]);
|
|
204
|
+
} else m = s;
|
|
205
|
+
return v && c(
|
|
206
|
+
m,
|
|
206
207
|
typeof e == "function" ? e.displayName || e.name || "Unknown" : e
|
|
207
208
|
), y(
|
|
208
209
|
e,
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
210
|
+
v,
|
|
211
|
+
m,
|
|
212
|
+
o(),
|
|
212
213
|
z,
|
|
213
214
|
U
|
|
214
215
|
);
|
|
215
216
|
}
|
|
216
217
|
function f(e) {
|
|
217
|
-
|
|
218
|
+
d(e) ? e._store && (e._store.validated = 1) : typeof e == "object" && e !== null && e.$$typeof === A && (e._payload.status === "fulfilled" ? d(e._payload.value) && e._payload.value._store && (e._payload.value._store.validated = 1) : e._store && (e._store.validated = 1));
|
|
218
219
|
}
|
|
219
|
-
function
|
|
220
|
+
function d(e) {
|
|
220
221
|
return typeof e == "object" && e !== null && e.$$typeof === S;
|
|
221
222
|
}
|
|
222
|
-
var
|
|
223
|
+
var E = he, S = Symbol.for("react.transitional.element"), p = Symbol.for("react.portal"), h = Symbol.for("react.fragment"), O = Symbol.for("react.strict_mode"), P = Symbol.for("react.profiler"), k = Symbol.for("react.consumer"), g = Symbol.for("react.context"), N = Symbol.for("react.forward_ref"), L = Symbol.for("react.suspense"), l = Symbol.for("react.suspense_list"), R = Symbol.for("react.memo"), A = Symbol.for("react.lazy"), w = Symbol.for("react.activity"), Ee = Symbol.for("react.client.reference"), J = E.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, H = Object.prototype.hasOwnProperty, Se = Array.isArray, W = console.createTask ? console.createTask : function() {
|
|
223
224
|
return null;
|
|
224
225
|
};
|
|
225
|
-
|
|
226
|
+
E = {
|
|
226
227
|
react_stack_bottom_frame: function(e) {
|
|
227
228
|
return e();
|
|
228
229
|
}
|
|
229
230
|
};
|
|
230
|
-
var Z, Q = {}, K =
|
|
231
|
-
|
|
231
|
+
var Z, Q = {}, K = E.react_stack_bottom_frame.bind(
|
|
232
|
+
E,
|
|
232
233
|
a
|
|
233
|
-
)(), ee = W(
|
|
234
|
-
|
|
235
|
-
var
|
|
234
|
+
)(), ee = W(i(a)), te = {};
|
|
235
|
+
V.Fragment = h, V.jsx = function(e, s, m) {
|
|
236
|
+
var b = 1e4 > J.recentlyCreatedOwnerStacks++;
|
|
236
237
|
return T(
|
|
237
238
|
e,
|
|
238
|
-
|
|
239
|
-
|
|
239
|
+
s,
|
|
240
|
+
m,
|
|
240
241
|
!1,
|
|
241
|
-
|
|
242
|
-
|
|
242
|
+
b ? Error("react-stack-top-frame") : K,
|
|
243
|
+
b ? W(i(e)) : ee
|
|
243
244
|
);
|
|
244
|
-
},
|
|
245
|
-
var
|
|
245
|
+
}, V.jsxs = function(e, s, m) {
|
|
246
|
+
var b = 1e4 > J.recentlyCreatedOwnerStacks++;
|
|
246
247
|
return T(
|
|
247
248
|
e,
|
|
248
|
-
|
|
249
|
-
|
|
249
|
+
s,
|
|
250
|
+
m,
|
|
250
251
|
!0,
|
|
251
|
-
|
|
252
|
-
|
|
252
|
+
b ? Error("react-stack-top-frame") : K,
|
|
253
|
+
b ? W(i(e)) : ee
|
|
253
254
|
);
|
|
254
255
|
};
|
|
255
|
-
})()),
|
|
256
|
+
})()), V;
|
|
256
257
|
}
|
|
257
258
|
var se;
|
|
258
|
-
function
|
|
259
|
-
return se || (se = 1, process.env.NODE_ENV === "production" ? Y.exports =
|
|
259
|
+
function xe() {
|
|
260
|
+
return se || (se = 1, process.env.NODE_ENV === "production" ? Y.exports = ke() : Y.exports = we()), Y.exports;
|
|
260
261
|
}
|
|
261
|
-
var
|
|
262
|
-
function
|
|
262
|
+
var Pe = xe();
|
|
263
|
+
function F(t, n, r) {
|
|
263
264
|
if (!n)
|
|
264
265
|
return t;
|
|
265
|
-
const
|
|
266
|
-
let
|
|
267
|
-
for (const a of
|
|
268
|
-
if (
|
|
269
|
-
|
|
266
|
+
const i = n.split(".");
|
|
267
|
+
let o = t;
|
|
268
|
+
for (const a of i)
|
|
269
|
+
if (o !== null && typeof o == "object" && a in o)
|
|
270
|
+
o = o[a];
|
|
270
271
|
else
|
|
271
272
|
return r;
|
|
272
|
-
return
|
|
273
|
+
return o === void 0 ? r : o;
|
|
273
274
|
}
|
|
274
|
-
function
|
|
275
|
-
const
|
|
276
|
-
let
|
|
277
|
-
for (let a = 0; a <
|
|
278
|
-
const
|
|
279
|
-
(
|
|
275
|
+
function Ae(t, n, r) {
|
|
276
|
+
const i = n.replace(/\[(\d+)\]/g, ".$1").split(".");
|
|
277
|
+
let o = t;
|
|
278
|
+
for (let a = 0; a < i.length - 1; a++) {
|
|
279
|
+
const u = i[a], c = i[a + 1];
|
|
280
|
+
(o[u] === void 0 || o[u] === null) && (o[u] = /^\d+$/.test(c) ? [] : {}), o = o[u];
|
|
280
281
|
}
|
|
281
|
-
return
|
|
282
|
+
return o[i[i.length - 1]] = r, t;
|
|
282
283
|
}
|
|
283
|
-
function
|
|
284
|
+
function Oe(t, n = 0) {
|
|
284
285
|
let r;
|
|
285
|
-
return function(...
|
|
286
|
+
return function(...i) {
|
|
286
287
|
r !== void 0 && clearTimeout(r), r = setTimeout(() => {
|
|
287
|
-
r = void 0, t.apply(this,
|
|
288
|
+
r = void 0, t.apply(this, i);
|
|
288
289
|
}, n);
|
|
289
290
|
};
|
|
290
291
|
}
|
|
291
|
-
function
|
|
292
|
-
return
|
|
293
|
-
() =>
|
|
292
|
+
function je(t, n, r = []) {
|
|
293
|
+
return le(
|
|
294
|
+
() => Oe(t, n),
|
|
294
295
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
295
296
|
r
|
|
296
297
|
);
|
|
297
298
|
}
|
|
298
299
|
function ae(t) {
|
|
299
300
|
const n = JSON.stringify(t, null, 2).split(`
|
|
300
|
-
`), r = [],
|
|
301
|
-
for (const
|
|
302
|
-
const a =
|
|
301
|
+
`), r = [], i = [];
|
|
302
|
+
for (const o of n) {
|
|
303
|
+
const a = o.match(/^(\s*)"([^"]+)"(\s*:\s*)(.+)$/);
|
|
303
304
|
if (a) {
|
|
304
|
-
const [,
|
|
305
|
-
r.push(`${
|
|
305
|
+
const [, u, c, _, y] = a;
|
|
306
|
+
r.push(`${u}%c"${c}"%c${_}%c${y}`), i.push(
|
|
306
307
|
"color: #9cdcfe; font-weight: bold",
|
|
307
308
|
"color: #cccccc",
|
|
308
309
|
"color: #ce9178"
|
|
309
310
|
);
|
|
310
311
|
} else
|
|
311
|
-
r.push(`%c${
|
|
312
|
+
r.push(`%c${o}`), i.push("color: #cccccc");
|
|
312
313
|
}
|
|
313
314
|
console.log(r.join(`
|
|
314
|
-
`), ...
|
|
315
|
+
`), ...i, t);
|
|
315
316
|
}
|
|
316
|
-
const fe = (t) => typeof t == "function",
|
|
317
|
-
class
|
|
317
|
+
const fe = (t) => typeof t == "function", Ne = (t) => typeof t == "function", x = (t) => typeof t < "u", I = (t) => Ne(t) ? t() : t;
|
|
318
|
+
class de {
|
|
318
319
|
#e;
|
|
319
320
|
#t;
|
|
320
321
|
constructor() {
|
|
@@ -330,104 +331,105 @@ class Ne {
|
|
|
330
331
|
return this.#e;
|
|
331
332
|
}
|
|
332
333
|
get(n) {
|
|
333
|
-
return
|
|
334
|
+
return F(this.#e, n);
|
|
334
335
|
}
|
|
335
336
|
set(n, r) {
|
|
336
|
-
const
|
|
337
|
-
|
|
337
|
+
const i = F(this.#e, n), o = fe(r) ? r(i) : r, a = { ...this.#e };
|
|
338
|
+
Ae(a, n, o), this.#e = a, this.#t.forEach((u) => u());
|
|
338
339
|
}
|
|
339
340
|
}
|
|
340
|
-
const
|
|
341
|
+
const me = _e({});
|
|
341
342
|
function ce(t = {}) {
|
|
342
|
-
const n =
|
|
343
|
+
const n = ye(me);
|
|
343
344
|
return t.verbose && console.log(`[Store uid]: ${n.uid}`), n;
|
|
344
345
|
}
|
|
345
346
|
function Ve({ children: t }) {
|
|
346
|
-
const n =
|
|
347
|
-
return /* @__PURE__ */
|
|
347
|
+
const n = le(() => new de(), []);
|
|
348
|
+
return /* @__PURE__ */ Pe.jsx(me.Provider, { value: n, children: t });
|
|
348
349
|
}
|
|
349
|
-
const
|
|
350
|
+
const be = Symbol("state-def"), $ = Symbol("state-path"), M = Symbol("state-verbose"), B = Symbol("state-verbose-path"), D = Symbol("state-ssr"), X = typeof window > "u", ie = X ? ue : Re;
|
|
350
351
|
function Ie(t = {}) {
|
|
351
352
|
return {
|
|
352
|
-
[
|
|
353
|
+
[be]: !0,
|
|
353
354
|
// marks this object as a leaf in the router tree
|
|
354
355
|
[$]: "",
|
|
355
356
|
// placeholder; injected at runtime by injectPaths()
|
|
356
|
-
[
|
|
357
|
+
[M]: !1,
|
|
357
358
|
// placeholder
|
|
358
359
|
[B]: "",
|
|
359
360
|
// placeholder
|
|
360
|
-
[
|
|
361
|
+
[D]: !1,
|
|
361
362
|
// placeholder
|
|
362
363
|
useState(n) {
|
|
363
|
-
const r = X ? void 0 :
|
|
364
|
+
const r = X ? void 0 : I(t.storage), i = I(t.defaultValue), o = t.bidirectional;
|
|
364
365
|
n ??= {};
|
|
365
|
-
const a =
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
366
|
+
const a = I(n.defaultValue) ?? i, u = n.bidirectional ?? o, c = this[$], _ = this[M], y = this[B], T = this[D], f = ce({ verbose: _ });
|
|
367
|
+
if (!(f instanceof de))
|
|
368
|
+
throw new Error("Make sure your component is wrapped in VocabStateProvider");
|
|
369
|
+
const d = t.serialize ?? JSON.stringify, E = t.deserialize ?? JSON.parse, S = (l, R, A) => {
|
|
370
|
+
const w = R.getItem(l);
|
|
371
|
+
w === null ? x(A) && R.setItem(l, d(A)) : f.set(l, E(w));
|
|
372
|
+
}, p = je(
|
|
369
373
|
n.onSet ?? (() => {
|
|
370
374
|
}),
|
|
371
375
|
n.delayedSet,
|
|
372
376
|
[]
|
|
373
|
-
),
|
|
374
|
-
if (!
|
|
375
|
-
|
|
376
|
-
let
|
|
377
|
-
|
|
377
|
+
), h = G(void 0), O = G(!1);
|
|
378
|
+
if (!O.current) {
|
|
379
|
+
O.current = !0;
|
|
380
|
+
let l = f.get(c);
|
|
381
|
+
x(l) || (l = a, x(l) && f.set(c, l)), !T && r && S(c, r, l);
|
|
378
382
|
}
|
|
379
|
-
const
|
|
383
|
+
const P = Te(
|
|
380
384
|
f.subscribe.bind(f),
|
|
381
385
|
f.getClientSnapshot.bind(f),
|
|
382
386
|
f.getServerSnapshot.bind(f)
|
|
383
387
|
);
|
|
384
388
|
if (_)
|
|
385
389
|
if (y) {
|
|
386
|
-
const
|
|
387
|
-
|
|
390
|
+
const l = F(P, y);
|
|
391
|
+
l && ae(l);
|
|
388
392
|
} else
|
|
389
|
-
ae(
|
|
390
|
-
const
|
|
391
|
-
|
|
392
|
-
!T || !r || S(c, r,
|
|
393
|
+
ae(P);
|
|
394
|
+
const k = F(P, c, a);
|
|
395
|
+
h.current = k, ie(() => {
|
|
396
|
+
!T || !r || S(c, r, k);
|
|
393
397
|
}, []);
|
|
394
|
-
const
|
|
395
|
-
if (
|
|
398
|
+
const g = ge((l) => {
|
|
399
|
+
if (l.key !== c)
|
|
396
400
|
return;
|
|
397
|
-
const R =
|
|
398
|
-
|
|
401
|
+
const R = l.newValue, w = (R === null ? null : E(R)) ?? a;
|
|
402
|
+
x(w) && (f.set(c, w), p(w, h.current));
|
|
399
403
|
});
|
|
400
|
-
|
|
401
|
-
if (
|
|
402
|
-
return window.addEventListener("storage",
|
|
403
|
-
}, [
|
|
404
|
-
const
|
|
405
|
-
const R = fe(
|
|
406
|
-
f.set(c, R),
|
|
407
|
-
}, [f, c,
|
|
408
|
-
const
|
|
409
|
-
if (!
|
|
404
|
+
ue(() => {
|
|
405
|
+
if (u)
|
|
406
|
+
return window.addEventListener("storage", g), () => window.removeEventListener("storage", g);
|
|
407
|
+
}, [u]);
|
|
408
|
+
const N = re((l) => {
|
|
409
|
+
const R = fe(l) ? l(h.current) : l;
|
|
410
|
+
f.set(c, R), p(R, h.current), r && r.setItem(c, d(R));
|
|
411
|
+
}, [f, c, p, r, d]), L = re(() => {
|
|
412
|
+
const l = a;
|
|
413
|
+
if (!x(l)) {
|
|
410
414
|
r?.removeItem(c);
|
|
411
415
|
return;
|
|
412
416
|
}
|
|
413
|
-
f.set(c,
|
|
414
|
-
}, [a, f, c,
|
|
417
|
+
f.set(c, l), p(l, h.current), r && r.setItem(c, d(l));
|
|
418
|
+
}, [a, f, c, p, r, d]);
|
|
415
419
|
return [
|
|
416
|
-
|
|
417
|
-
|
|
420
|
+
k,
|
|
421
|
+
N,
|
|
418
422
|
L
|
|
419
423
|
];
|
|
420
424
|
},
|
|
421
425
|
useInitialState(n) {
|
|
422
|
-
const r = X ? void 0 :
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
m.current || (m.current = !0, b = _.get(a), P(b) || (b = s, P(b) && _.set(a, b)), !c && r && f(a, r, b)), le(() => {
|
|
430
|
-
!c || !r || f(a, r, b);
|
|
426
|
+
const r = X ? void 0 : I(t.storage), i = I(n.defaultValue), o = this[$], a = this[M], u = this[D], c = ce({ verbose: a }), _ = t.serialize ?? JSON.stringify, y = t.deserialize ?? JSON.parse, T = (E, S, p) => {
|
|
427
|
+
const h = S.getItem(E);
|
|
428
|
+
h === null ? x(p) && S.setItem(E, _(p)) : c.set(E, y(h));
|
|
429
|
+
}, f = G(!1);
|
|
430
|
+
let d;
|
|
431
|
+
f.current || (f.current = !0, d = c.get(o), x(d) || (d = i, x(d) && c.set(o, d)), !u && r && T(o, r, d)), ie(() => {
|
|
432
|
+
!u || !r || T(o, r, d);
|
|
431
433
|
}, []);
|
|
432
434
|
},
|
|
433
435
|
/** Returns the fully qualified job name (dot-separated path). */
|
|
@@ -436,58 +438,58 @@ function Ie(t = {}) {
|
|
|
436
438
|
}
|
|
437
439
|
};
|
|
438
440
|
}
|
|
439
|
-
function
|
|
441
|
+
function ve(t, n) {
|
|
440
442
|
const {
|
|
441
443
|
path: r = "",
|
|
442
|
-
verbose:
|
|
443
|
-
verbosePath:
|
|
444
|
+
verbose: i,
|
|
445
|
+
verbosePath: o,
|
|
444
446
|
ssr: a,
|
|
445
|
-
cache:
|
|
447
|
+
cache: u
|
|
446
448
|
} = n;
|
|
447
|
-
let c =
|
|
448
|
-
c || (c = /* @__PURE__ */ new Map(),
|
|
449
|
+
let c = u.proxy.get(t);
|
|
450
|
+
c || (c = /* @__PURE__ */ new Map(), u.proxy.set(t, c));
|
|
449
451
|
const _ = c.get(r);
|
|
450
452
|
if (_)
|
|
451
453
|
return _;
|
|
452
454
|
const y = new Proxy(t, {
|
|
453
455
|
get(T, f) {
|
|
454
|
-
const
|
|
455
|
-
if (
|
|
456
|
-
const S =
|
|
457
|
-
let
|
|
458
|
-
|
|
459
|
-
const
|
|
460
|
-
if (
|
|
461
|
-
return
|
|
462
|
-
const
|
|
463
|
-
(
|
|
464
|
-
),
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
(...
|
|
456
|
+
const d = T[f], E = r ? `${r}.${String(f)}` : String(f);
|
|
457
|
+
if (d && typeof d == "object" && be in d) {
|
|
458
|
+
const S = d;
|
|
459
|
+
let p = u.leaf.get(S);
|
|
460
|
+
p || (p = /* @__PURE__ */ new Map(), u.leaf.set(S, p));
|
|
461
|
+
const h = p.get(E);
|
|
462
|
+
if (h)
|
|
463
|
+
return h;
|
|
464
|
+
const O = Reflect.ownKeys(S).filter(
|
|
465
|
+
(g) => typeof S[g] == "function"
|
|
466
|
+
), P = Object.fromEntries(
|
|
467
|
+
O.map((g) => [
|
|
468
|
+
g,
|
|
469
|
+
(...N) => S[g].call(
|
|
468
470
|
{
|
|
469
471
|
...S,
|
|
470
|
-
[$]:
|
|
471
|
-
[
|
|
472
|
-
[B]:
|
|
473
|
-
[
|
|
472
|
+
[$]: E,
|
|
473
|
+
[M]: i,
|
|
474
|
+
[B]: o,
|
|
475
|
+
[D]: a
|
|
474
476
|
},
|
|
475
|
-
...
|
|
477
|
+
...N
|
|
476
478
|
)
|
|
477
479
|
])
|
|
478
|
-
),
|
|
479
|
-
return
|
|
480
|
+
), k = { ...S, ...P };
|
|
481
|
+
return p.set(E, k), k;
|
|
480
482
|
}
|
|
481
|
-
return
|
|
483
|
+
return d && typeof d == "object" ? ve(d, {
|
|
482
484
|
...n,
|
|
483
|
-
path:
|
|
484
|
-
}) :
|
|
485
|
+
path: E
|
|
486
|
+
}) : d;
|
|
485
487
|
}
|
|
486
488
|
});
|
|
487
489
|
return c.set(r, y), y;
|
|
488
490
|
}
|
|
489
491
|
function $e(t, n) {
|
|
490
|
-
return
|
|
492
|
+
return ve(t, {
|
|
491
493
|
...n,
|
|
492
494
|
verbosePath: n?.verbosePath ?? "",
|
|
493
495
|
cache: {
|
package/dist/types/state.d.ts
CHANGED
|
@@ -27,11 +27,8 @@ export declare function defineState<D>(definitionOptions?: {
|
|
|
27
27
|
[STATE_PATH]: string;
|
|
28
28
|
[STATE_VERBOSE]: boolean;
|
|
29
29
|
[STATE_SSR]: boolean;
|
|
30
|
-
}, options
|
|
31
|
-
defaultValue
|
|
32
|
-
delayedSet?: number;
|
|
33
|
-
bidirectional?: true;
|
|
34
|
-
onSet?(nextValue: NoInfer<D>, prevValue: NoInfer<D>): void;
|
|
30
|
+
}, options: {
|
|
31
|
+
defaultValue: ValueOrFactory<D>;
|
|
35
32
|
}): void;
|
|
36
33
|
/** Returns the fully qualified job name (dot-separated path). */
|
|
37
34
|
toString(this: {
|