@tanstack/redact 0.0.20 → 0.1.0
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/core/attributes.js +2 -1
- package/dist/core/attributes.js.map +2 -2
- package/dist/core/browser.d.ts +9 -0
- package/dist/core/browser.js +35 -0
- package/dist/core/browser.js.map +7 -0
- package/dist/core/index.d.ts +2 -2
- package/dist/core/index.js +3 -3
- package/dist/core/internal.d.ts +31 -8
- package/dist/core/internal.js +3 -1
- package/dist/core/internal.js.map +2 -2
- package/dist/core/resource-hints.d.ts +7 -0
- package/dist/core/resource-hints.js +19 -0
- package/dist/core/resource-hints.js.map +7 -0
- package/dist/core/types.js +1 -1
- package/dist/dom/_all.d.ts +11 -16
- package/dist/dom/_all.js +9 -20
- package/dist/dom/_all.js.map +2 -2
- package/dist/dom/client.d.ts +4 -4
- package/dist/dom/client.js +4 -4
- package/dist/dom/commit.d.ts +23 -0
- package/dist/dom/commit.js +191 -0
- package/dist/dom/commit.js.map +7 -0
- package/dist/dom/dispatcher.d.ts +4 -22
- package/dist/dom/dispatcher.js +184 -126
- package/dist/dom/dispatcher.js.map +3 -3
- package/dist/dom/dom.d.ts +2 -0
- package/dist/dom/dom.js +72 -52
- package/dist/dom/dom.js.map +2 -2
- package/dist/dom/error-info.d.ts +2 -0
- package/dist/dom/error-info.js +16 -0
- package/dist/dom/error-info.js.map +7 -0
- package/dist/dom/event-replay.js +1 -1
- package/dist/dom/features/activity/full.d.ts +1 -0
- package/dist/dom/features/activity/full.js +162 -0
- package/dist/dom/features/activity/full.js.map +7 -0
- package/dist/dom/features/activity/index.d.ts +1 -0
- package/dist/dom/features/activity/index.js +3 -0
- package/dist/dom/features/activity/index.js.map +7 -0
- package/dist/dom/features/activity/stub.d.ts +1 -0
- package/dist/dom/features/activity/stub.js +12 -0
- package/dist/dom/features/activity/stub.js.map +7 -0
- package/dist/dom/features/class/full.js +87 -21
- package/dist/dom/features/class/full.js.map +2 -2
- package/dist/dom/features/class/index.d.ts +1 -1
- package/dist/dom/features/class/index.js +2 -2
- package/dist/dom/features/class/stub.js +3 -3
- package/dist/dom/features/context/full.d.ts +4 -1
- package/dist/dom/features/context/full.js +69 -9
- package/dist/dom/features/context/full.js.map +2 -2
- package/dist/dom/features/context/index.d.ts +1 -1
- package/dist/dom/features/context/index.js +2 -2
- package/dist/dom/features/context/stub.d.ts +4 -1
- package/dist/dom/features/context/stub.js +15 -4
- package/dist/dom/features/context/stub.js.map +2 -2
- package/dist/dom/features/forward-ref/full.js +12 -21
- package/dist/dom/features/forward-ref/full.js.map +2 -2
- package/dist/dom/features/forward-ref/index.d.ts +1 -1
- package/dist/dom/features/forward-ref/index.js +2 -2
- package/dist/dom/features/forward-ref/stub.js +4 -4
- package/dist/dom/features/fragment-refs/index.d.ts +1 -0
- package/dist/dom/features/fragment-refs/index.js +8 -0
- package/dist/dom/features/fragment-refs/index.js.map +7 -0
- package/dist/dom/features/fragment-refs/stub.d.ts +3 -0
- package/dist/dom/features/fragment-refs/stub.js +14 -0
- package/dist/dom/features/fragment-refs/stub.js.map +7 -0
- package/dist/dom/features/hydration/full.d.ts +11 -6
- package/dist/dom/features/hydration/full.js +76 -76
- package/dist/dom/features/hydration/full.js.map +2 -2
- package/dist/dom/features/hydration/index.d.ts +1 -1
- package/dist/dom/features/hydration/index.js +2 -2
- package/dist/dom/features/hydration/stub.d.ts +7 -2
- package/dist/dom/features/hydration/stub.js +1 -1
- package/dist/dom/features/hydration/stub.js.map +1 -1
- package/dist/dom/features/index.d.ts +8 -7
- package/dist/dom/features/index.js +9 -8
- package/dist/dom/features/index.js.map +2 -2
- package/dist/dom/features/lazy/full.js +4 -4
- package/dist/dom/features/lazy/index.d.ts +1 -1
- package/dist/dom/features/lazy/index.js +2 -2
- package/dist/dom/features/lazy/stub.js +4 -4
- package/dist/dom/features/memo/full.js +8 -6
- package/dist/dom/features/memo/full.js.map +2 -2
- package/dist/dom/features/memo/index.d.ts +1 -1
- package/dist/dom/features/memo/index.js +2 -2
- package/dist/dom/features/memo/stub.js +4 -4
- package/dist/dom/features/portal/full.js +4 -4
- package/dist/dom/features/portal/index.d.ts +1 -1
- package/dist/dom/features/portal/index.js +2 -2
- package/dist/dom/features/portal/stub.js +4 -4
- package/dist/dom/features/suspense/full.js +192 -47
- package/dist/dom/features/suspense/full.js.map +2 -2
- package/dist/dom/features/suspense/index.d.ts +1 -1
- package/dist/dom/features/suspense/index.js +2 -2
- package/dist/dom/features/suspense/stub.js +4 -4
- package/dist/dom/features/view-transition/full.d.ts +6 -0
- package/dist/dom/features/view-transition/full.js +280 -0
- package/dist/dom/features/view-transition/full.js.map +7 -0
- package/dist/dom/features/view-transition/index.d.ts +1 -0
- package/dist/dom/features/view-transition/index.js +3 -0
- package/dist/dom/features/view-transition/index.js.map +7 -0
- package/dist/dom/features/view-transition/resources.d.ts +11 -0
- package/dist/dom/features/view-transition/resources.js +108 -0
- package/dist/dom/features/view-transition/resources.js.map +7 -0
- package/dist/dom/features/view-transition/stub.d.ts +6 -0
- package/dist/dom/features/view-transition/stub.js +22 -0
- package/dist/dom/features/view-transition/stub.js.map +7 -0
- package/dist/dom/features/view-transition/visual.d.ts +14 -0
- package/dist/dom/features/view-transition/visual.js +356 -0
- package/dist/dom/features/view-transition/visual.js.map +7 -0
- package/dist/dom/fragment-instance.d.ts +40 -0
- package/dist/dom/fragment-instance.js +324 -0
- package/dist/dom/fragment-instance.js.map +7 -0
- package/dist/dom/index.d.ts +11 -11
- package/dist/dom/index.js +11 -18
- package/dist/dom/index.js.map +3 -3
- package/dist/dom/portal.d.ts +2 -2
- package/dist/dom/portal.js +2 -2
- package/dist/dom/portal.js.map +1 -1
- package/dist/dom/reconcile.d.ts +32 -3
- package/dist/dom/reconcile.js +686 -222
- package/dist/dom/reconcile.js.map +2 -2
- package/dist/dom/resource-hints.d.ts +6 -0
- package/dist/dom/resource-hints.js +115 -0
- package/dist/dom/resource-hints.js.map +7 -0
- package/dist/dom/resource-store.d.ts +13 -0
- package/dist/dom/resource-store.js +43 -0
- package/dist/dom/resource-store.js.map +7 -0
- package/dist/dom/resources.d.ts +1 -0
- package/dist/dom/resources.js +44 -0
- package/dist/dom/resources.js.map +7 -0
- package/dist/dom/retained-effects.d.ts +6 -0
- package/dist/dom/retained-effects.js +49 -0
- package/dist/dom/retained-effects.js.map +7 -0
- package/dist/dom/root-internal.d.ts +4 -4
- package/dist/dom/root-internal.js +2 -2
- package/dist/dom/root-internal.js.map +2 -2
- package/dist/dom/root.d.ts +5 -5
- package/dist/dom/root.js +11 -11
- package/dist/dom/root.js.map +2 -2
- package/dist/dom/test-utils.js +1 -1
- package/dist/react/activity.d.ts +7 -0
- package/dist/react/activity.js +8 -0
- package/dist/react/activity.js.map +7 -0
- package/dist/react/children.d.ts +1 -1
- package/dist/react/children.js +3 -3
- package/dist/react/children.js.map +1 -1
- package/dist/react/class.d.ts +1 -1
- package/dist/react/class.js +3 -3
- package/dist/react/class.js.map +1 -1
- package/dist/react/compiler-runtime.js +2 -2
- package/dist/react/context.d.ts +1 -1
- package/dist/react/context.js +3 -3
- package/dist/react/context.js.map +1 -1
- package/dist/react/element.d.ts +6 -3
- package/dist/react/element.js +2 -2
- package/dist/react/element.js.map +2 -2
- package/dist/react/hooks.d.ts +26 -7
- package/dist/react/hooks.js +13 -3
- package/dist/react/hooks.js.map +2 -2
- package/dist/react/index.d.ts +39 -24
- package/dist/react/index.js +39 -19
- package/dist/react/index.js.map +3 -3
- package/dist/react/jsx-runtime.d.ts +2 -2
- package/dist/react/jsx-runtime.js +3 -3
- package/dist/react/memo.d.ts +1 -1
- package/dist/react/memo.js +1 -1
- package/dist/react/portal.js +1 -1
- package/dist/react/shared-internals.d.ts +15 -5
- package/dist/react/shared-internals.js +2 -3
- package/dist/react/shared-internals.js.map +2 -2
- package/dist/react/suspense.js +1 -1
- package/dist/react/view-transition.d.ts +32 -0
- package/dist/react/view-transition.js +13 -0
- package/dist/react/view-transition.js.map +7 -0
- package/dist/scheduler/index.js +1 -1
- package/dist/server/bootstrap-script.d.ts +1 -23
- package/dist/server/bootstrap-script.js +7 -6
- package/dist/server/bootstrap-script.js.map +2 -2
- package/dist/server/dispatcher.d.ts +28 -6
- package/dist/server/dispatcher.js +33 -15
- package/dist/server/dispatcher.js.map +2 -2
- package/dist/server/escape.js +16 -15
- package/dist/server/escape.js.map +2 -2
- package/dist/server/index.d.ts +6 -6
- package/dist/server/index.js +7 -7
- package/dist/server/renderToString.d.ts +1 -1
- package/dist/server/renderToString.js +12 -8
- package/dist/server/renderToString.js.map +2 -2
- package/dist/server/resource-hints.d.ts +22 -0
- package/dist/server/resource-hints.js +148 -0
- package/dist/server/resource-hints.js.map +7 -0
- package/dist/server/stream.d.ts +15 -2
- package/dist/server/stream.js +155 -63
- package/dist/server/stream.js.map +2 -2
- package/dist/server/walk.d.ts +15 -2
- package/dist/server/walk.js +143 -96
- package/dist/server/walk.js.map +2 -2
- package/dist/vite/index.d.ts +6 -0
- package/dist/vite/index.js +22 -6
- package/dist/vite/index.js.map +2 -2
- package/package.json +1 -1
- package/src/core/attributes.ts +1 -0
- package/src/core/browser.ts +33 -0
- package/src/core/internal.ts +24 -6
- package/src/core/resource-hints.ts +36 -0
- package/src/dom/_all.ts +1 -7
- package/src/dom/commit.ts +186 -0
- package/src/dom/dispatcher.ts +190 -134
- package/src/dom/dom.ts +70 -54
- package/src/dom/error-info.ts +15 -0
- package/src/dom/features/activity/full.ts +166 -0
- package/src/dom/features/activity/index.ts +1 -0
- package/src/dom/features/activity/stub.ts +14 -0
- package/src/dom/features/class/full.ts +72 -21
- package/src/dom/features/context/full.ts +66 -4
- package/src/dom/features/context/stub.ts +6 -0
- package/src/dom/features/forward-ref/full.ts +9 -19
- package/src/dom/features/fragment-refs/index.ts +1 -0
- package/src/dom/features/fragment-refs/stub.ts +3 -0
- package/src/dom/features/hydration/full.ts +84 -82
- package/src/dom/features/hydration/stub.ts +1 -1
- package/src/dom/features/index.ts +1 -0
- package/src/dom/features/memo/full.ts +4 -3
- package/src/dom/features/suspense/full.ts +187 -50
- package/src/dom/features/view-transition/full.ts +288 -0
- package/src/dom/features/view-transition/index.ts +1 -0
- package/src/dom/features/view-transition/resources.ts +107 -0
- package/src/dom/features/view-transition/stub.ts +7 -0
- package/src/dom/features/view-transition/visual.ts +406 -0
- package/src/dom/fragment-instance.ts +337 -0
- package/src/dom/index.ts +6 -7
- package/src/dom/portal.ts +1 -1
- package/src/dom/reconcile.ts +691 -244
- package/src/dom/resource-hints.ts +115 -0
- package/src/dom/resource-store.ts +52 -0
- package/src/dom/resources.ts +39 -0
- package/src/dom/retained-effects.ts +38 -0
- package/src/dom/root-internal.ts +4 -4
- package/src/dom/root.ts +12 -14
- package/src/react/activity.ts +10 -0
- package/src/react/element.ts +6 -2
- package/src/react/hooks.ts +12 -3
- package/src/react/index.ts +18 -0
- package/src/react/shared-internals.ts +3 -3
- package/src/react/view-transition.ts +41 -0
- package/src/server/bootstrap-script.ts +36 -5
- package/src/server/dispatcher.ts +35 -13
- package/src/server/escape.ts +15 -12
- package/src/server/renderToString.ts +7 -5
- package/src/server/resource-hints.ts +165 -0
- package/src/server/stream.ts +154 -62
- package/src/server/walk.ts +72 -11
- package/src/vite/index.ts +30 -13
package/dist/core/attributes.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//
|
|
1
|
+
// src/core/attributes.ts
|
|
2
2
|
var STRING_BOOLEAN_ATTRS = /* @__PURE__ */ new Set([
|
|
3
3
|
"contenteditable",
|
|
4
4
|
"draggable",
|
|
@@ -14,6 +14,7 @@ function attributeName(name, isSvg = false) {
|
|
|
14
14
|
if (name === "acceptCharset") return "accept-charset";
|
|
15
15
|
if (name === "crossOrigin") return "crossorigin";
|
|
16
16
|
if (name === "noModule") return "nomodule";
|
|
17
|
+
if (name === "maskType") return "mask-type";
|
|
17
18
|
if (name === "viewBox") return "viewBox";
|
|
18
19
|
return name.startsWith("aria-") || name.startsWith("data-") ? name : name.toLowerCase();
|
|
19
20
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/core/attributes.ts"],
|
|
4
|
-
"sourcesContent": ["export const STRING_BOOLEAN_ATTRS = new Set([\n 'contenteditable',\n 'draggable',\n 'spellcheck',\n])\n\nexport function attributeName(name: string, isSvg = false): string {\n if (isSvg && name !== 'viewBox' && SVG_KEBAB_PREFIX.test(name)) {\n return name.replace(/[A-Z]/g, (m) => '-' + m.toLowerCase())\n }\n if (name === 'className') return 'class'\n if (name === 'htmlFor') return 'for'\n if (name === 'httpEquiv') return 'http-equiv'\n if (name === 'acceptCharset') return 'accept-charset'\n if (name === 'crossOrigin') return 'crossorigin'\n if (name === 'noModule') return 'nomodule'\n if (name === 'viewBox') return 'viewBox'\n return name.startsWith('aria-') || name.startsWith('data-')\n ? name\n : name.toLowerCase()\n}\n\nconst SVG_KEBAB_PREFIX = /^(?:clip|fill|stroke)/\n"],
|
|
5
|
-
"mappings": ";AAAO,IAAM,uBAAuB,oBAAI,IAAI;AAAA,EAC1C;AAAA,EACA;AAAA,EACA;AACF,CAAC;AAEM,SAAS,cAAc,MAAc,QAAQ,OAAe;AACjE,MAAI,SAAS,SAAS,aAAa,iBAAiB,KAAK,IAAI,GAAG;AAC9D,WAAO,KAAK,QAAQ,UAAU,CAAC,MAAM,MAAM,EAAE,YAAY,CAAC;AAAA,EAC5D;AACA,MAAI,SAAS,YAAa,QAAO;AACjC,MAAI,SAAS,UAAW,QAAO;AAC/B,MAAI,SAAS,YAAa,QAAO;AACjC,MAAI,SAAS,gBAAiB,QAAO;AACrC,MAAI,SAAS,cAAe,QAAO;AACnC,MAAI,SAAS,WAAY,QAAO;AAChC,MAAI,SAAS,UAAW,QAAO;AAC/B,SAAO,KAAK,WAAW,OAAO,KAAK,KAAK,WAAW,OAAO,IACtD,OACA,KAAK,YAAY;AACvB;AAEA,IAAM,mBAAmB;",
|
|
4
|
+
"sourcesContent": ["export const STRING_BOOLEAN_ATTRS = new Set([\n 'contenteditable',\n 'draggable',\n 'spellcheck',\n])\n\nexport function attributeName(name: string, isSvg = false): string {\n if (isSvg && name !== 'viewBox' && SVG_KEBAB_PREFIX.test(name)) {\n return name.replace(/[A-Z]/g, (m) => '-' + m.toLowerCase())\n }\n if (name === 'className') return 'class'\n if (name === 'htmlFor') return 'for'\n if (name === 'httpEquiv') return 'http-equiv'\n if (name === 'acceptCharset') return 'accept-charset'\n if (name === 'crossOrigin') return 'crossorigin'\n if (name === 'noModule') return 'nomodule'\n if (name === 'maskType') return 'mask-type'\n if (name === 'viewBox') return 'viewBox'\n return name.startsWith('aria-') || name.startsWith('data-')\n ? name\n : name.toLowerCase()\n}\n\nconst SVG_KEBAB_PREFIX = /^(?:clip|fill|stroke)/\n"],
|
|
5
|
+
"mappings": ";AAAO,IAAM,uBAAuB,oBAAI,IAAI;AAAA,EAC1C;AAAA,EACA;AAAA,EACA;AACF,CAAC;AAEM,SAAS,cAAc,MAAc,QAAQ,OAAe;AACjE,MAAI,SAAS,SAAS,aAAa,iBAAiB,KAAK,IAAI,GAAG;AAC9D,WAAO,KAAK,QAAQ,UAAU,CAAC,MAAM,MAAM,EAAE,YAAY,CAAC;AAAA,EAC5D;AACA,MAAI,SAAS,YAAa,QAAO;AACjC,MAAI,SAAS,UAAW,QAAO;AAC/B,MAAI,SAAS,YAAa,QAAO;AACjC,MAAI,SAAS,gBAAiB,QAAO;AACrC,MAAI,SAAS,cAAe,QAAO;AACnC,MAAI,SAAS,WAAY,QAAO;AAChC,MAAI,SAAS,WAAY,QAAO;AAChC,MAAI,SAAS,UAAW,QAAO;AAC/B,SAAO,KAAK,WAAW,OAAO,KAAK,KAAK,WAAW,OAAO,IACtD,OACA,KAAK,YAAY;AACvB;AAEA,IAAM,mBAAmB;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare const REACT_RECOVERABLE_TYPE: unique symbol;
|
|
2
|
+
export interface BrowserToken {
|
|
3
|
+
readonly $$typeof: typeof REACT_RECOVERABLE_TYPE;
|
|
4
|
+
readonly _reason: string | (() => unknown) | undefined;
|
|
5
|
+
}
|
|
6
|
+
export declare function browser(reason?: string | (() => unknown)): BrowserToken;
|
|
7
|
+
export declare function isBrowserToken(value: any): value is BrowserToken;
|
|
8
|
+
export declare function browserError(token: BrowserToken): Error;
|
|
9
|
+
export declare function isBrowserError(error: any): error is Error;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
// src/core/browser.ts
|
|
2
|
+
var REACT_RECOVERABLE_TYPE = /* @__PURE__ */ Symbol.for("react.recoverable");
|
|
3
|
+
function browser(reason) {
|
|
4
|
+
return { $$typeof: REACT_RECOVERABLE_TYPE, _reason: reason };
|
|
5
|
+
}
|
|
6
|
+
function isBrowserToken(value) {
|
|
7
|
+
return value?.$$typeof === REACT_RECOVERABLE_TYPE;
|
|
8
|
+
}
|
|
9
|
+
function browserError(token) {
|
|
10
|
+
let cause = token._reason;
|
|
11
|
+
if (typeof cause === "function") {
|
|
12
|
+
try {
|
|
13
|
+
cause = cause();
|
|
14
|
+
} catch {
|
|
15
|
+
cause = "The reason for browser-only rendering could not be determined because its initializer threw.";
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
const error = new Error(
|
|
19
|
+
"Browser-only rendering was requested by `browser()`.",
|
|
20
|
+
token._reason === void 0 ? void 0 : { cause }
|
|
21
|
+
);
|
|
22
|
+
Object.defineProperty(error, REACT_RECOVERABLE_TYPE, { value: true });
|
|
23
|
+
return error;
|
|
24
|
+
}
|
|
25
|
+
function isBrowserError(error) {
|
|
26
|
+
return error?.[REACT_RECOVERABLE_TYPE] === true;
|
|
27
|
+
}
|
|
28
|
+
export {
|
|
29
|
+
REACT_RECOVERABLE_TYPE,
|
|
30
|
+
browser,
|
|
31
|
+
browserError,
|
|
32
|
+
isBrowserError,
|
|
33
|
+
isBrowserToken
|
|
34
|
+
};
|
|
35
|
+
//# sourceMappingURL=browser.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/core/browser.ts"],
|
|
4
|
+
"sourcesContent": ["export const REACT_RECOVERABLE_TYPE = Symbol.for('react.recoverable')\n\nexport interface BrowserToken {\n readonly $$typeof: typeof REACT_RECOVERABLE_TYPE\n readonly _reason: string | (() => unknown) | undefined\n}\n\nexport function browser(reason?: string | (() => unknown)): BrowserToken {\n return { $$typeof: REACT_RECOVERABLE_TYPE, _reason: reason }\n}\n\nexport function isBrowserToken(value: any): value is BrowserToken {\n return value?.$$typeof === REACT_RECOVERABLE_TYPE\n}\n\nexport function browserError(token: BrowserToken): Error {\n let cause: unknown = token._reason\n if (typeof cause === 'function') {\n try {\n cause = cause()\n } catch {\n cause = 'The reason for browser-only rendering could not be determined because its initializer threw.'\n }\n }\n const error = new Error('Browser-only rendering was requested by `browser()`.',\n token._reason === undefined ? undefined : { cause })\n Object.defineProperty(error, REACT_RECOVERABLE_TYPE, { value: true })\n return error\n}\n\nexport function isBrowserError(error: any): error is Error {\n return error?.[REACT_RECOVERABLE_TYPE] === true\n}\n"],
|
|
5
|
+
"mappings": ";AAAO,IAAM,yBAAyB,uBAAO,IAAI,mBAAmB;AAO7D,SAAS,QAAQ,QAAiD;AACvE,SAAO,EAAE,UAAU,wBAAwB,SAAS,OAAO;AAC7D;AAEO,SAAS,eAAe,OAAmC;AAChE,SAAO,OAAO,aAAa;AAC7B;AAEO,SAAS,aAAa,OAA4B;AACvD,MAAI,QAAiB,MAAM;AAC3B,MAAI,OAAO,UAAU,YAAY;AAC/B,QAAI;AACF,cAAQ,MAAM;AAAA,IAChB,QAAQ;AACN,cAAQ;AAAA,IACV;AAAA,EACF;AACA,QAAM,QAAQ,IAAI;AAAA,IAAM;AAAA,IACtB,MAAM,YAAY,SAAY,SAAY,EAAE,MAAM;AAAA,EAAC;AACrD,SAAO,eAAe,OAAO,wBAAwB,EAAE,OAAO,KAAK,CAAC;AACpE,SAAO;AACT;AAEO,SAAS,eAAe,OAA4B;AACzD,SAAO,QAAQ,sBAAsB,MAAM;AAC7C;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
package/dist/core/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
1
|
+
export * from "./types.js";
|
|
2
|
+
export * from "./internal.js";
|
package/dist/core/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//
|
|
2
|
-
export * from "./types";
|
|
3
|
-
export * from "./internal";
|
|
1
|
+
// src/core/index.ts
|
|
2
|
+
export * from "./types.js";
|
|
3
|
+
export * from "./internal.js";
|
|
4
4
|
//# sourceMappingURL=index.js.map
|
package/dist/core/internal.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ReactElement, ReactNode, Ref } from
|
|
1
|
+
import type { ReactElement, ReactNode, Ref } from "./types.js";
|
|
2
2
|
export declare const enum FiberTag {
|
|
3
3
|
Host = 0,
|
|
4
4
|
Text = 1,
|
|
@@ -12,18 +12,21 @@ export declare const enum FiberTag {
|
|
|
12
12
|
Memo = 9,
|
|
13
13
|
Lazy = 10,
|
|
14
14
|
Suspense = 11,
|
|
15
|
-
Root = 12
|
|
15
|
+
Root = 12,
|
|
16
|
+
Activity = 13,
|
|
17
|
+
Resource = 14
|
|
16
18
|
}
|
|
17
19
|
export interface Hook {
|
|
18
20
|
s: any;
|
|
19
21
|
q: any;
|
|
20
22
|
d: any;
|
|
21
23
|
c: any;
|
|
22
|
-
n: Hook | null;
|
|
23
24
|
}
|
|
24
25
|
export interface Effect {
|
|
25
|
-
t: 0 | 1;
|
|
26
|
+
t: 0 | 1 | 2;
|
|
26
27
|
c: () => any;
|
|
28
|
+
d?: () => void;
|
|
29
|
+
s?: boolean;
|
|
27
30
|
}
|
|
28
31
|
export interface Fiber {
|
|
29
32
|
tag: FiberTag;
|
|
@@ -38,23 +41,43 @@ export interface Fiber {
|
|
|
38
41
|
parent: Fiber | null;
|
|
39
42
|
child: Fiber | null;
|
|
40
43
|
sibling: Fiber | null;
|
|
41
|
-
hooks: Hook | null;
|
|
44
|
+
hooks: Hook[] | null;
|
|
42
45
|
cu: Array<() => void> | null;
|
|
43
46
|
dy: boolean;
|
|
44
47
|
um: boolean;
|
|
48
|
+
pd?: boolean;
|
|
49
|
+
su?: Fiber | null;
|
|
50
|
+
ld?: boolean;
|
|
45
51
|
root: FiberRoot | null;
|
|
52
|
+
depth?: number;
|
|
53
|
+
cx?: Map<any, any> | null;
|
|
54
|
+
cr?: Ref<any> | null;
|
|
55
|
+
rc?: (() => void) | null;
|
|
46
56
|
}
|
|
57
|
+
export type RecoverableErrorHandler = (error: unknown, info: {
|
|
58
|
+
componentStack: string | null;
|
|
59
|
+
errorBoundary?: unknown;
|
|
60
|
+
}) => void;
|
|
47
61
|
export interface FiberRoot {
|
|
48
62
|
c: Element | DocumentFragment;
|
|
49
63
|
r: Fiber;
|
|
50
64
|
p: Set<Fiber>;
|
|
51
65
|
s: boolean;
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
66
|
+
u?: (() => void) | undefined;
|
|
67
|
+
er?: Array<{
|
|
68
|
+
error: unknown;
|
|
69
|
+
stack: string;
|
|
70
|
+
}> | undefined;
|
|
71
|
+
eb?: boolean;
|
|
72
|
+
sp?: boolean;
|
|
73
|
+
re?: RecoverableErrorHandler | undefined;
|
|
74
|
+
ce?: RecoverableErrorHandler | undefined;
|
|
75
|
+
ue?: RecoverableErrorHandler | undefined;
|
|
55
76
|
i: string | undefined;
|
|
56
77
|
ic: number;
|
|
57
78
|
h: boolean;
|
|
79
|
+
a?: boolean;
|
|
80
|
+
fr?: boolean;
|
|
58
81
|
}
|
|
59
82
|
export declare function createFiber(tag: FiberTag, type: any, key: string | null): Fiber;
|
|
60
83
|
export type ChildNode = ReactElement | string | number | boolean | null | undefined | ChildNode[];
|
package/dist/core/internal.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//
|
|
1
|
+
// src/core/internal.ts
|
|
2
2
|
var FiberTag = /* @__PURE__ */ ((FiberTag2) => {
|
|
3
3
|
FiberTag2[FiberTag2["Host"] = 0] = "Host";
|
|
4
4
|
FiberTag2[FiberTag2["Text"] = 1] = "Text";
|
|
@@ -13,6 +13,8 @@ var FiberTag = /* @__PURE__ */ ((FiberTag2) => {
|
|
|
13
13
|
FiberTag2[FiberTag2["Lazy"] = 10] = "Lazy";
|
|
14
14
|
FiberTag2[FiberTag2["Suspense"] = 11] = "Suspense";
|
|
15
15
|
FiberTag2[FiberTag2["Root"] = 12] = "Root";
|
|
16
|
+
FiberTag2[FiberTag2["Activity"] = 13] = "Activity";
|
|
17
|
+
FiberTag2[FiberTag2["Resource"] = 14] = "Resource";
|
|
16
18
|
return FiberTag2;
|
|
17
19
|
})(FiberTag || {});
|
|
18
20
|
function createFiber(tag, type, key) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/core/internal.ts"],
|
|
4
|
-
"sourcesContent": ["import type { ReactElement, ReactNode, Ref } from './types'\n\nexport const enum FiberTag {\n Host = 0,\n Text = 1,\n Function = 2,\n Class = 3,\n Fragment = 4,\n Portal = 5,\n Provider = 6,\n Consumer = 7,\n ForwardRef = 8,\n Memo = 9,\n Lazy = 10,\n Suspense = 11,\n Root = 12,\n}\n\nexport interface Hook {\n s: any\n q: any\n d: any\n c: any\n
|
|
5
|
-
"mappings": ";AAEO,IAAW,WAAX,kBAAWA,cAAX;AACL,EAAAA,oBAAA,UAAO,KAAP;AACA,EAAAA,oBAAA,UAAO,KAAP;AACA,EAAAA,oBAAA,cAAW,KAAX;AACA,EAAAA,oBAAA,WAAQ,KAAR;AACA,EAAAA,oBAAA,cAAW,KAAX;AACA,EAAAA,oBAAA,YAAS,KAAT;AACA,EAAAA,oBAAA,cAAW,KAAX;AACA,EAAAA,oBAAA,cAAW,KAAX;AACA,EAAAA,oBAAA,gBAAa,KAAb;AACA,EAAAA,oBAAA,UAAO,KAAP;AACA,EAAAA,oBAAA,UAAO,MAAP;AACA,EAAAA,oBAAA,cAAW,MAAX;AACA,EAAAA,oBAAA,UAAO,MAAP;
|
|
4
|
+
"sourcesContent": ["import type { ReactElement, ReactNode, Ref } from './types'\n\nexport const enum FiberTag {\n Host = 0,\n Text = 1,\n Function = 2,\n Class = 3,\n Fragment = 4,\n Portal = 5,\n Provider = 6,\n Consumer = 7,\n ForwardRef = 8,\n Memo = 9,\n Lazy = 10,\n Suspense = 11,\n Root = 12,\n Activity = 13,\n Resource = 14,\n}\n\nexport interface Hook {\n s: any\n q: any\n d: any\n c: any\n}\n\nexport interface Effect {\n t: 0 | 1 | 2\n c: () => any\n d?: () => void\n s?: boolean // Store subscriptions run in layout but stay connected in Suspense.\n}\n\nexport interface Fiber {\n tag: FiberTag\n type: any\n key: string | null\n ref: Ref<any> | null\n pp: any\n mp: any\n ms: any\n sn: any\n dom: Node | null\n parent: Fiber | null\n child: Fiber | null\n sibling: Fiber | null\n hooks: Hook[] | null\n cu: Array<() => void> | null\n dy: boolean\n um: boolean\n pd?: boolean\n su?: Fiber | null // Retained Suspense primary update target.\n ld?: boolean // Layout effects and refs are disconnected, not passive effects.\n root: FiberRoot | null\n depth?: number\n cx?: Map<any, any> | null\n cr?: Ref<any> | null\n rc?: (() => void) | null\n}\n\nexport type RecoverableErrorHandler = (error: unknown, info: { componentStack: string | null; errorBoundary?: unknown }) => void\n\nexport interface FiberRoot {\n c: Element | DocumentFragment\n r: Fiber\n p: Set<Fiber>\n s: boolean\n u?: (() => void) | undefined\n er?: Array<{ error: unknown; stack: string }> | undefined\n eb?: boolean\n sp?: boolean\n re?: RecoverableErrorHandler | undefined\n ce?: RecoverableErrorHandler | undefined\n ue?: RecoverableErrorHandler | undefined\n i: string | undefined\n ic: number\n h: boolean\n a?: boolean\n fr?: boolean\n}\n\nexport function createFiber(tag: FiberTag, type: any, key: string | null): Fiber {\n return {\n tag,\n type,\n key,\n ref: null,\n pp: null,\n mp: null,\n ms: null,\n sn: null,\n dom: null,\n parent: null,\n child: null,\n sibling: null,\n hooks: null,\n cu: null,\n dy: false,\n um: false,\n root: null,\n }\n}\n\nexport type ChildNode = ReactElement | string | number | boolean | null | undefined | ChildNode[]\nexport type { ReactElement, ReactNode }\n"],
|
|
5
|
+
"mappings": ";AAEO,IAAW,WAAX,kBAAWA,cAAX;AACL,EAAAA,oBAAA,UAAO,KAAP;AACA,EAAAA,oBAAA,UAAO,KAAP;AACA,EAAAA,oBAAA,cAAW,KAAX;AACA,EAAAA,oBAAA,WAAQ,KAAR;AACA,EAAAA,oBAAA,cAAW,KAAX;AACA,EAAAA,oBAAA,YAAS,KAAT;AACA,EAAAA,oBAAA,cAAW,KAAX;AACA,EAAAA,oBAAA,cAAW,KAAX;AACA,EAAAA,oBAAA,gBAAa,KAAb;AACA,EAAAA,oBAAA,UAAO,KAAP;AACA,EAAAA,oBAAA,UAAO,MAAP;AACA,EAAAA,oBAAA,cAAW,MAAX;AACA,EAAAA,oBAAA,UAAO,MAAP;AACA,EAAAA,oBAAA,cAAW,MAAX;AACA,EAAAA,oBAAA,cAAW,MAAX;AAfgB,SAAAA;AAAA,GAAA;AAgFX,SAAS,YAAY,KAAe,MAAW,KAA2B;AAC/E,SAAO;AAAA,IACL;AAAA,IACA;AAAA,IACA;AAAA,IACA,KAAK;AAAA,IACL,IAAI;AAAA,IACJ,IAAI;AAAA,IACJ,IAAI;AAAA,IACJ,IAAI;AAAA,IACJ,KAAK;AAAA,IACL,QAAQ;AAAA,IACR,OAAO;AAAA,IACP,SAAS;AAAA,IACT,OAAO;AAAA,IACP,IAAI;AAAA,IACJ,IAAI;AAAA,IACJ,IAAI;AAAA,IACJ,MAAM;AAAA,EACR;AACF;",
|
|
6
6
|
"names": ["FiberTag"]
|
|
7
7
|
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export type ResourceHintKind = 'dns-prefetch' | 'preconnect' | 'preload' | 'modulepreload' | 'stylesheet' | 'script' | 'module-script';
|
|
2
|
+
export type ResourceHintOptions = Record<string, string>;
|
|
3
|
+
export declare const resourceHintDispatcher: {
|
|
4
|
+
emit?: (kind: ResourceHintKind, href: string, options: ResourceHintOptions) => boolean;
|
|
5
|
+
};
|
|
6
|
+
export declare function resourceKind(type: string, props: any): 'style' | 'stylesheet' | 'script' | undefined;
|
|
7
|
+
export declare function resourceURL(value: string): string;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
// src/core/resource-hints.ts
|
|
2
|
+
var resourceHintDispatcher = {};
|
|
3
|
+
function resourceKind(type, props) {
|
|
4
|
+
if (props.itemProp != null) return;
|
|
5
|
+
if (type === "style") {
|
|
6
|
+
if (typeof props.precedence === "string" && typeof props.href === "string" && props.href) return "style";
|
|
7
|
+
} else if (type === "link") {
|
|
8
|
+
if (props.rel === "stylesheet" && typeof props.href === "string" && props.href && typeof props.precedence === "string" && props.disabled == null && !props.onLoad && !props.onError) return "stylesheet";
|
|
9
|
+
} else if (type === "script" && props.async && typeof props.async !== "function" && typeof props.async !== "symbol" && typeof props.src === "string" && props.src && !props.onLoad && !props.onError) return "script";
|
|
10
|
+
}
|
|
11
|
+
function resourceURL(value) {
|
|
12
|
+
return /^[\u0000-\u0020]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i.test(value) ? "javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')" : value;
|
|
13
|
+
}
|
|
14
|
+
export {
|
|
15
|
+
resourceHintDispatcher,
|
|
16
|
+
resourceKind,
|
|
17
|
+
resourceURL
|
|
18
|
+
};
|
|
19
|
+
//# sourceMappingURL=resource-hints.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/core/resource-hints.ts"],
|
|
4
|
+
"sourcesContent": ["export type ResourceHintKind =\n | 'dns-prefetch'\n | 'preconnect'\n | 'preload'\n | 'modulepreload'\n | 'stylesheet'\n | 'script'\n | 'module-script'\n\n// Only supported string options reach the dispatcher, using the public camelCase\n// names. Fonts have crossOrigin: ''. Stylesheet precedence defaults to 'default'.\n// Module preloads omit as for the implicit script destination. href is non-empty.\n// A server renderer returns true to consume a hint in its current request, even\n// when deduplication means no new output. Returning false falls through to the DOM.\nexport type ResourceHintOptions = Record<string, string>\n\nexport const resourceHintDispatcher: {\n emit?: (kind: ResourceHintKind, href: string, options: ResourceHintOptions) => boolean\n} = {}\n\n// The renderer excludes SVG before calling this. A ref does not opt a resource\n// out of sharing, but event ownership, disabled sheets and itemProp do.\nexport function resourceKind(type: string, props: any): 'style' | 'stylesheet' | 'script' | undefined {\n if (props.itemProp != null) return\n if (type === 'style') {\n if (typeof props.precedence === 'string' && typeof props.href === 'string' && props.href) return 'style'\n } else if (type === 'link') {\n if (props.rel === 'stylesheet' && typeof props.href === 'string' && props.href && typeof props.precedence === 'string' && props.disabled == null && !props.onLoad && !props.onError) return 'stylesheet'\n } else if (type === 'script' && props.async && typeof props.async !== 'function' && typeof props.async !== 'symbol' && typeof props.src === 'string' && props.src && !props.onLoad && !props.onError) return 'script'\n}\n\nexport function resourceURL(value: string): string {\n return /^[\\u0000-\\u0020]*j[\\r\\n\\t]*a[\\r\\n\\t]*v[\\r\\n\\t]*a[\\r\\n\\t]*s[\\r\\n\\t]*c[\\r\\n\\t]*r[\\r\\n\\t]*i[\\r\\n\\t]*p[\\r\\n\\t]*t[\\r\\n\\t]*:/i.test(value)\n ? \"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')\"\n : value\n}\n"],
|
|
5
|
+
"mappings": ";AAgBO,IAAM,yBAET,CAAC;AAIE,SAAS,aAAa,MAAc,OAA2D;AACpG,MAAI,MAAM,YAAY,KAAM;AAC5B,MAAI,SAAS,SAAS;AACpB,QAAI,OAAO,MAAM,eAAe,YAAY,OAAO,MAAM,SAAS,YAAY,MAAM,KAAM,QAAO;AAAA,EACnG,WAAW,SAAS,QAAQ;AAC1B,QAAI,MAAM,QAAQ,gBAAgB,OAAO,MAAM,SAAS,YAAY,MAAM,QAAQ,OAAO,MAAM,eAAe,YAAY,MAAM,YAAY,QAAQ,CAAC,MAAM,UAAU,CAAC,MAAM,QAAS,QAAO;AAAA,EAC9L,WAAW,SAAS,YAAY,MAAM,SAAS,OAAO,MAAM,UAAU,cAAc,OAAO,MAAM,UAAU,YAAY,OAAO,MAAM,QAAQ,YAAY,MAAM,OAAO,CAAC,MAAM,UAAU,CAAC,MAAM,QAAS,QAAO;AAC/M;AAEO,SAAS,YAAY,OAAuB;AACjD,SAAO,0HAA0H,KAAK,KAAK,IACvI,gGACA;AACN;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
package/dist/core/types.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//
|
|
1
|
+
// src/core/types.ts
|
|
2
2
|
var REACT_ELEMENT_TYPE = /* @__PURE__ */ Symbol.for("react.transitional.element");
|
|
3
3
|
var REACT_LEGACY_ELEMENT_TYPE = /* @__PURE__ */ Symbol.for("react.element");
|
|
4
4
|
var REACT_FRAGMENT_TYPE = /* @__PURE__ */ Symbol.for("react.fragment");
|
package/dist/dom/_all.d.ts
CHANGED
|
@@ -1,17 +1,12 @@
|
|
|
1
|
-
import
|
|
2
|
-
export { flushSync, batchedUpdates as unstable_batchedUpdates } from
|
|
3
|
-
export { createRoot, hydrateRoot } from
|
|
4
|
-
export type { Root, RootOptions } from
|
|
5
|
-
export { createPortal } from
|
|
6
|
-
export { act } from
|
|
7
|
-
export
|
|
8
|
-
export declare function prefetchDNS(_href: string): void;
|
|
9
|
-
export declare function preload(_href: string, _opts?: any): void;
|
|
10
|
-
export declare function preinit(_href: string, _opts?: any): void;
|
|
11
|
-
export declare function preloadModule(_href: string, _opts?: any): void;
|
|
12
|
-
export declare function preinitModule(_href: string, _opts?: any): void;
|
|
1
|
+
import "./features/index.js";
|
|
2
|
+
export { flushSync, batchedUpdates as unstable_batchedUpdates } from "./root.js";
|
|
3
|
+
export { createRoot, hydrateRoot } from "./root.js";
|
|
4
|
+
export type { Root, RootOptions } from "./root.js";
|
|
5
|
+
export { createPortal } from "./portal.js";
|
|
6
|
+
export { act } from "./test-utils.js";
|
|
7
|
+
export { preconnect, prefetchDNS, preload, preinit, preloadModule, preinitModule } from "./resource-hints.js";
|
|
13
8
|
export declare const version = "19.2.3";
|
|
14
|
-
export { registerRenderer, registerTypeMatcher, registerElementMarker, installCapability, reconcileChildren, childrenToArray, } from
|
|
15
|
-
export type { RenderFn, TypeMatcher, Capabilities, } from
|
|
16
|
-
export { FiberTag } from
|
|
17
|
-
export type { Fiber, FiberRoot, ReactNode, ReactElement } from
|
|
9
|
+
export { registerRenderer, registerTypeMatcher, registerElementMarker, installCapability, reconcileChildren, childrenToArray, } from "./reconcile.js";
|
|
10
|
+
export type { RenderFn, TypeMatcher, Capabilities, } from "./reconcile.js";
|
|
11
|
+
export { FiberTag } from "../core/index.js";
|
|
12
|
+
export type { Fiber, FiberRoot, ReactNode, ReactElement } from "../core/index.js";
|
package/dist/dom/_all.js
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
//
|
|
2
|
-
import "./features";
|
|
3
|
-
import { flushSync, batchedUpdates } from "./root";
|
|
4
|
-
import { createRoot, hydrateRoot } from "./root";
|
|
5
|
-
import { createPortal } from "./portal";
|
|
6
|
-
import { act } from "./test-utils";
|
|
1
|
+
// src/dom/_all.ts
|
|
2
|
+
import "./features/index.js";
|
|
3
|
+
import { flushSync, batchedUpdates } from "./root.js";
|
|
4
|
+
import { createRoot, hydrateRoot } from "./root.js";
|
|
5
|
+
import { createPortal } from "./portal.js";
|
|
6
|
+
import { act } from "./test-utils.js";
|
|
7
|
+
import { preconnect, prefetchDNS, preload, preinit, preloadModule, preinitModule } from "./resource-hints.js";
|
|
7
8
|
import {
|
|
8
9
|
registerRenderer,
|
|
9
10
|
registerTypeMatcher,
|
|
@@ -11,20 +12,8 @@ import {
|
|
|
11
12
|
installCapability,
|
|
12
13
|
reconcileChildren,
|
|
13
14
|
childrenToArray
|
|
14
|
-
} from "./reconcile";
|
|
15
|
-
import { FiberTag } from "../core";
|
|
16
|
-
function preconnect(_href, _opts) {
|
|
17
|
-
}
|
|
18
|
-
function prefetchDNS(_href) {
|
|
19
|
-
}
|
|
20
|
-
function preload(_href, _opts) {
|
|
21
|
-
}
|
|
22
|
-
function preinit(_href, _opts) {
|
|
23
|
-
}
|
|
24
|
-
function preloadModule(_href, _opts) {
|
|
25
|
-
}
|
|
26
|
-
function preinitModule(_href, _opts) {
|
|
27
|
-
}
|
|
15
|
+
} from "./reconcile.js";
|
|
16
|
+
import { FiberTag } from "../core/index.js";
|
|
28
17
|
var version = "19.2.3";
|
|
29
18
|
export {
|
|
30
19
|
FiberTag,
|
package/dist/dom/_all.js.map
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/dom/_all.ts"],
|
|
4
|
-
"sourcesContent": ["// Unified entry exposing both top-level public API (createRoot, hydrateRoot,\n// createPortal, \u2026) and the registration primitives that custom features and\n// custom bundler plugins need to hook into the reconciler. Reachable as\n// `@tanstack/redact/_all` via the package's subpath exports. Single-instance\n// state for things like the hydration CLAIMED WeakSet, scheduler queue,\n// dispatcher H slot, etc. is preserved because every public entry funnels\n// through this module.\n\n// Side-effect import: registers all opt-in features (renderers, type matchers,\n// element markers) with the reconciler. A vite plugin may alias individual\n// feature modules to ./features/<name>/stub to strip them from the bundle.\nimport './features'\n\n// Top-level public API (mirrors the surface of /, /dom, /dom-client).\nexport { flushSync, batchedUpdates as unstable_batchedUpdates } from './root'\nexport { createRoot, hydrateRoot } from './root'\nexport type { Root, RootOptions } from './root'\nexport { createPortal } from './portal'\nexport { act } from './test-utils'\n\
|
|
5
|
-
"mappings": ";AAWA,OAAO;AAGP,SAAS,WAA6B,sBAA+B;AACrE,SAAS,YAAY,mBAAmB;AAExC,SAAS,oBAAoB;AAC7B,SAAS,WAAW;
|
|
4
|
+
"sourcesContent": ["// Unified entry exposing both top-level public API (createRoot, hydrateRoot,\n// createPortal, \u2026) and the registration primitives that custom features and\n// custom bundler plugins need to hook into the reconciler. Reachable as\n// `@tanstack/redact/_all` via the package's subpath exports. Single-instance\n// state for things like the hydration CLAIMED WeakSet, scheduler queue,\n// dispatcher H slot, etc. is preserved because every public entry funnels\n// through this module.\n\n// Side-effect import: registers all opt-in features (renderers, type matchers,\n// element markers) with the reconciler. A vite plugin may alias individual\n// feature modules to ./features/<name>/stub to strip them from the bundle.\nimport './features'\n\n// Top-level public API (mirrors the surface of /, /dom, /dom-client).\nexport { flushSync, batchedUpdates as unstable_batchedUpdates } from './root'\nexport { createRoot, hydrateRoot } from './root'\nexport type { Root, RootOptions } from './root'\nexport { createPortal } from './portal'\nexport { act } from './test-utils'\n\nexport { preconnect, prefetchDNS, preload, preinit, preloadModule, preinitModule } from './resource-hints'\n\nexport const version = '19.2.3'\n\n// Registration primitives \u2014 needed by custom features\n// (`registerRenderer`, `registerTypeMatcher`, `registerElementMarker`) and by\n// anything that wants to override a cross-cutting concern like Suspense's\n// `handleSuspended` or Context's `readContext` (`installCapability`). The\n// built-in features in `./features/*/{full,stub}.ts` use these via relative\n// imports; external authors reach them through this entry. Order-of-\n// registration matters: later calls overwrite earlier ones.\nexport {\n registerRenderer,\n registerTypeMatcher,\n registerElementMarker,\n installCapability,\n reconcileChildren,\n childrenToArray,\n} from './reconcile'\nexport type {\n RenderFn,\n TypeMatcher,\n Capabilities,\n} from './reconcile'\n\n// Core types most custom features need.\nexport { FiberTag } from '../core'\nexport type { Fiber, FiberRoot, ReactNode, ReactElement } from '../core'\n"],
|
|
5
|
+
"mappings": ";AAWA,OAAO;AAGP,SAAS,WAA6B,sBAA+B;AACrE,SAAS,YAAY,mBAAmB;AAExC,SAAS,oBAAoB;AAC7B,SAAS,WAAW;AAEpB,SAAS,YAAY,aAAa,SAAS,SAAS,eAAe,qBAAqB;AAWxF;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AAQP,SAAS,gBAAgB;AAxBlB,IAAM,UAAU;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
package/dist/dom/client.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
export { createRoot, hydrateRoot } from
|
|
3
|
-
export type { Root, RootOptions } from
|
|
4
|
-
import { createRoot, hydrateRoot } from
|
|
1
|
+
import "./features/index.js";
|
|
2
|
+
export { createRoot, hydrateRoot } from "./root.js";
|
|
3
|
+
export type { Root, RootOptions } from "./root.js";
|
|
4
|
+
import { createRoot, hydrateRoot } from "./root.js";
|
|
5
5
|
declare const _default: {
|
|
6
6
|
createRoot: typeof createRoot;
|
|
7
7
|
hydrateRoot: typeof hydrateRoot;
|
package/dist/dom/client.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
//
|
|
2
|
-
import "./features";
|
|
3
|
-
import { createRoot, hydrateRoot } from "./root";
|
|
4
|
-
import { createRoot as createRoot2, hydrateRoot as hydrateRoot2 } from "./root";
|
|
1
|
+
// src/dom/client.ts
|
|
2
|
+
import "./features/index.js";
|
|
3
|
+
import { createRoot, hydrateRoot } from "./root.js";
|
|
4
|
+
import { createRoot as createRoot2, hydrateRoot as hydrateRoot2 } from "./root.js";
|
|
5
5
|
var client_default = {
|
|
6
6
|
createRoot: createRoot2,
|
|
7
7
|
hydrateRoot: hydrateRoot2
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { type Fiber } from "../core/index.js";
|
|
2
|
+
export interface CommitPlan {
|
|
3
|
+
q: any[][];
|
|
4
|
+
c: number[][];
|
|
5
|
+
b: number;
|
|
6
|
+
m: boolean;
|
|
7
|
+
}
|
|
8
|
+
export declare let currentCommit: CommitPlan | null;
|
|
9
|
+
export declare function prepareCommit(render: () => void, plan?: CommitPlan): CommitPlan;
|
|
10
|
+
export declare function queueMutation(work: () => void): void;
|
|
11
|
+
export declare function queueText(node: Text, value: string): void;
|
|
12
|
+
export declare function queueProp(node: Element, key: string, value: any, previous: any, svg: boolean): void;
|
|
13
|
+
export declare function queueBeforeMutation(work: () => void): void;
|
|
14
|
+
export declare function queueCommitEffects(work: () => void): void;
|
|
15
|
+
export declare function onCommitRollback(work: () => void): void;
|
|
16
|
+
export declare function onCommitFailure(work: () => void): void;
|
|
17
|
+
export declare function rememberChildList(parent: Fiber, children?: Fiber[]): void;
|
|
18
|
+
export declare function setCommitCheckpointHook(hook: () => void): void;
|
|
19
|
+
export declare function checkpointCommit(fiber?: Fiber): number;
|
|
20
|
+
export declare function rewindCommit(checkpoint: number): void;
|
|
21
|
+
export declare function commitBeforeMutation(plan: CommitPlan): void;
|
|
22
|
+
export declare function commitMutation(plan: CommitPlan): void;
|
|
23
|
+
export declare function commitSynchronously(render: () => void): void;
|
|
@@ -0,0 +1,191 @@
|
|
|
1
|
+
// src/dom/commit.ts
|
|
2
|
+
import { FiberTag } from "../core/index.js";
|
|
3
|
+
import { setProp } from "./dom.js";
|
|
4
|
+
var currentCommit = null;
|
|
5
|
+
var activeCommit = null;
|
|
6
|
+
var reusableCommit;
|
|
7
|
+
var checkpointHook;
|
|
8
|
+
function createCommit() {
|
|
9
|
+
return { q: [[], [], [], [], []], c: [], b: 0, m: false };
|
|
10
|
+
}
|
|
11
|
+
function prepareCommit(render, plan = createCommit()) {
|
|
12
|
+
const previous = currentCommit;
|
|
13
|
+
currentCommit = plan;
|
|
14
|
+
try {
|
|
15
|
+
render();
|
|
16
|
+
} catch (error) {
|
|
17
|
+
currentCommit = null;
|
|
18
|
+
const failed = plan.q[4];
|
|
19
|
+
for (let i = 0; i < failed.length; i++) {
|
|
20
|
+
const work = failed[i];
|
|
21
|
+
if (typeof work === "function") work();
|
|
22
|
+
else {
|
|
23
|
+
const children = failed[++i];
|
|
24
|
+
work.child = children?.[0] ?? null;
|
|
25
|
+
if (children) for (let j = 0; j < children.length; j++) children[j].sibling = children[j + 1] ?? null;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
throw error;
|
|
29
|
+
} finally {
|
|
30
|
+
currentCommit = previous;
|
|
31
|
+
}
|
|
32
|
+
return plan;
|
|
33
|
+
}
|
|
34
|
+
function queueMutation(work) {
|
|
35
|
+
if (!currentCommit) {
|
|
36
|
+
work();
|
|
37
|
+
return;
|
|
38
|
+
}
|
|
39
|
+
currentCommit.q[1].push(work);
|
|
40
|
+
}
|
|
41
|
+
function queueText(node, value) {
|
|
42
|
+
if (currentCommit) currentCommit.q[1].push(value, node);
|
|
43
|
+
else node.data = value;
|
|
44
|
+
}
|
|
45
|
+
function queueProp(node, key, value, previous, svg) {
|
|
46
|
+
if (currentCommit) currentCommit.q[1].push(node, key, value, previous, svg);
|
|
47
|
+
else setProp(node, key, value, previous, svg);
|
|
48
|
+
}
|
|
49
|
+
function queueBeforeMutation(work) {
|
|
50
|
+
if (currentCommit) currentCommit.q[0].push(work);
|
|
51
|
+
else work();
|
|
52
|
+
}
|
|
53
|
+
function queueCommitEffects(work) {
|
|
54
|
+
const plan = currentCommit || activeCommit;
|
|
55
|
+
if (plan) plan.q[2].push(work);
|
|
56
|
+
else work();
|
|
57
|
+
}
|
|
58
|
+
function onCommitRollback(work) {
|
|
59
|
+
currentCommit?.q[3].push(work);
|
|
60
|
+
}
|
|
61
|
+
function onCommitFailure(work) {
|
|
62
|
+
if (currentCommit) currentCommit.q[4].push(work);
|
|
63
|
+
else work();
|
|
64
|
+
}
|
|
65
|
+
function rememberChildList(parent, children) {
|
|
66
|
+
currentCommit?.q[4].push(parent, children);
|
|
67
|
+
}
|
|
68
|
+
function setCommitCheckpointHook(hook) {
|
|
69
|
+
checkpointHook = hook;
|
|
70
|
+
}
|
|
71
|
+
function checkpointCommit(fiber) {
|
|
72
|
+
if (!currentCommit) return -1;
|
|
73
|
+
const checkpoint = currentCommit.c.length;
|
|
74
|
+
currentCommit.c.push(currentCommit.q.map((queue) => queue.length));
|
|
75
|
+
if (fiber) rememberSubtree(fiber);
|
|
76
|
+
checkpointHook?.();
|
|
77
|
+
return checkpoint;
|
|
78
|
+
}
|
|
79
|
+
function rememberSubtree(fiber) {
|
|
80
|
+
const saved = { ...fiber };
|
|
81
|
+
const instance = fiber.sn?._fiber === fiber ? fiber.sn : null;
|
|
82
|
+
const hooks = fiber.hooks && [];
|
|
83
|
+
if (hooks) for (const hook of fiber.hooks) {
|
|
84
|
+
const queue = hook.q;
|
|
85
|
+
hooks.push(hook, hook.s, queue, hook.d, hook.c, queue && typeof queue === "object" ? { ...queue } : null);
|
|
86
|
+
}
|
|
87
|
+
const memoized = fiber.ms && (instance || fiber.tag === FiberTag.Suspense || fiber.tag === FiberTag.Fragment) ? { ...fiber.ms } : null;
|
|
88
|
+
if (fiber.cx) saved.cx = new Map(fiber.cx);
|
|
89
|
+
if (fiber.cu) saved.cu = fiber.cu.slice();
|
|
90
|
+
const props = instance?.props, state = instance?.state, context = instance?.context;
|
|
91
|
+
onCommitRollback(() => {
|
|
92
|
+
Object.assign(fiber, saved);
|
|
93
|
+
if (memoized) {
|
|
94
|
+
for (const key in fiber.ms) if (!(key in memoized)) delete fiber.ms[key];
|
|
95
|
+
Object.assign(fiber.ms, memoized);
|
|
96
|
+
}
|
|
97
|
+
if (hooks) {
|
|
98
|
+
fiber.hooks.length = hooks.length / 6;
|
|
99
|
+
for (let index = 0; index < hooks.length; index += 6) {
|
|
100
|
+
const hook = fiber.hooks[index / 6] = hooks[index];
|
|
101
|
+
hook.s = hooks[index + 1];
|
|
102
|
+
hook.q = hooks[index + 2];
|
|
103
|
+
hook.d = hooks[index + 3];
|
|
104
|
+
hook.c = hooks[index + 4];
|
|
105
|
+
const queue = hooks[index + 5];
|
|
106
|
+
if (queue) Object.assign(hook.q, queue);
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
if (instance) {
|
|
110
|
+
instance.props = props;
|
|
111
|
+
instance.state = state;
|
|
112
|
+
instance.context = context;
|
|
113
|
+
}
|
|
114
|
+
});
|
|
115
|
+
for (let child = fiber.child; child; child = child.sibling) rememberSubtree(child);
|
|
116
|
+
if (fiber.tag === FiberTag.Suspense && fiber.ms?.f) rememberSubtree(fiber.ms.f);
|
|
117
|
+
}
|
|
118
|
+
function rewindCommit(checkpoint) {
|
|
119
|
+
if (!currentCommit || checkpoint < 0) return;
|
|
120
|
+
const lengths = currentCommit.c[checkpoint];
|
|
121
|
+
const undo = currentCommit.q[3];
|
|
122
|
+
for (let index = undo.length - 1; index >= lengths[3]; index--) undo[index]();
|
|
123
|
+
currentCommit.q.forEach((queue, index) => {
|
|
124
|
+
queue.length = lengths[index];
|
|
125
|
+
});
|
|
126
|
+
currentCommit.c.length = checkpoint;
|
|
127
|
+
}
|
|
128
|
+
function commitBeforeMutation(plan) {
|
|
129
|
+
const queue = plan.q[0];
|
|
130
|
+
while (plan.b < queue.length) queue[plan.b++]();
|
|
131
|
+
}
|
|
132
|
+
function commitMutation(plan) {
|
|
133
|
+
if (plan.m) return;
|
|
134
|
+
commitBeforeMutation(plan);
|
|
135
|
+
if (plan.m) return;
|
|
136
|
+
plan.m = true;
|
|
137
|
+
const previous = activeCommit;
|
|
138
|
+
activeCommit = plan;
|
|
139
|
+
try {
|
|
140
|
+
const mutations = plan.q[1];
|
|
141
|
+
for (let index = 0; index < mutations.length; index++) {
|
|
142
|
+
const work = mutations[index];
|
|
143
|
+
if (typeof work === "function") work();
|
|
144
|
+
else if (typeof work === "string") mutations[++index].data = work;
|
|
145
|
+
else setProp(work, mutations[++index], mutations[++index], mutations[++index], mutations[++index]);
|
|
146
|
+
}
|
|
147
|
+
for (const work of plan.q[2]) work();
|
|
148
|
+
} finally {
|
|
149
|
+
activeCommit = previous;
|
|
150
|
+
for (const queue of plan.q) queue.length = 0;
|
|
151
|
+
plan.c.length = 0;
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
function commitSynchronously(render) {
|
|
155
|
+
if (currentCommit) {
|
|
156
|
+
render();
|
|
157
|
+
return;
|
|
158
|
+
}
|
|
159
|
+
const plan = reusableCommit || createCommit();
|
|
160
|
+
reusableCommit = void 0;
|
|
161
|
+
plan.b = 0;
|
|
162
|
+
plan.m = false;
|
|
163
|
+
try {
|
|
164
|
+
commitMutation(prepareCommit(render, plan));
|
|
165
|
+
} finally {
|
|
166
|
+
if (!plan.m) {
|
|
167
|
+
for (const queue of plan.q) queue.length = 0;
|
|
168
|
+
plan.c.length = 0;
|
|
169
|
+
}
|
|
170
|
+
reusableCommit = plan;
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
export {
|
|
174
|
+
checkpointCommit,
|
|
175
|
+
commitBeforeMutation,
|
|
176
|
+
commitMutation,
|
|
177
|
+
commitSynchronously,
|
|
178
|
+
currentCommit,
|
|
179
|
+
onCommitFailure,
|
|
180
|
+
onCommitRollback,
|
|
181
|
+
prepareCommit,
|
|
182
|
+
queueBeforeMutation,
|
|
183
|
+
queueCommitEffects,
|
|
184
|
+
queueMutation,
|
|
185
|
+
queueProp,
|
|
186
|
+
queueText,
|
|
187
|
+
rememberChildList,
|
|
188
|
+
rewindCommit,
|
|
189
|
+
setCommitCheckpointHook
|
|
190
|
+
};
|
|
191
|
+
//# sourceMappingURL=commit.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/dom/commit.ts"],
|
|
4
|
+
"sourcesContent": ["import { FiberTag, type Fiber, type Hook } from '../core'\nimport { setProp } from './dom'\n\nexport interface CommitPlan {\n q: any[][] // Before-mutation, mutation, effect, rollback and failure queues.\n c: number[][] // Queue lengths saved at each rollback checkpoint.\n b: number // Next before-mutation callback, including reentrant commits.\n m: boolean // Mutation phase has started, preventing duplicate commits.\n}\n\nexport let currentCommit: CommitPlan | null = null\nlet activeCommit: CommitPlan | null = null\nlet reusableCommit: CommitPlan | undefined\nlet checkpointHook: (() => void) | undefined\n\nfunction createCommit(): CommitPlan {\n return { q: [[], [], [], [], []], c: [], b: 0, m: false }\n}\n\nexport function prepareCommit(render: () => void, plan = createCommit()): CommitPlan {\n const previous = currentCommit\n currentCommit = plan\n try { render() } catch (error) {\n currentCommit = null\n const failed = plan.q[4]!\n for (let i = 0; i < failed.length; i++) {\n const work = failed[i]\n if (typeof work === 'function') work()\n else {\n const children = failed[++i] as Fiber[] | undefined\n work.child = children?.[0] ?? null\n if (children) for (let j = 0; j < children.length; j++) children[j]!.sibling = children[j + 1] ?? null\n }\n }\n throw error\n } finally { currentCommit = previous }\n return plan\n}\n\nexport function queueMutation(work: () => void): void {\n if (!currentCommit) { work(); return }\n currentCommit.q[1]!.push(work)\n}\n\nexport function queueText(node: Text, value: string): void {\n if (currentCommit) currentCommit.q[1]!.push(value, node)\n else node.data = value\n}\n\nexport function queueProp(node: Element, key: string, value: any, previous: any, svg: boolean): void {\n if (currentCommit) currentCommit.q[1]!.push(node, key, value, previous, svg)\n else setProp(node, key, value, previous, svg)\n}\n\nexport function queueBeforeMutation(work: () => void): void {\n if (currentCommit) currentCommit.q[0]!.push(work)\n else work()\n}\n\nexport function queueCommitEffects(work: () => void): void {\n const plan = currentCommit || activeCommit\n if (plan) plan.q[2]!.push(work)\n else work()\n}\n\nexport function onCommitRollback(work: () => void): void {\n currentCommit?.q[3]!.push(work)\n}\n\nexport function onCommitFailure(work: () => void): void {\n if (currentCommit) currentCommit.q[4]!.push(work)\n else work()\n}\n\n// Structural reconciliation already builds the previous child list. Keep\n// that list for a failed preparation without allocating per-fiber closures.\nexport function rememberChildList(parent: Fiber, children?: Fiber[]): void {\n currentCommit?.q[4]!.push(parent, children)\n}\n\nexport function setCommitCheckpointHook(hook: () => void): void {\n checkpointHook = hook\n}\n\nexport function checkpointCommit(fiber?: Fiber): number {\n if (!currentCommit) return -1\n const checkpoint = currentCommit.c.length\n currentCommit.c.push(currentCommit.q.map(queue => queue.length))\n if (fiber) rememberSubtree(fiber)\n checkpointHook?.()\n return checkpoint\n}\n\nfunction rememberSubtree(fiber: Fiber): void {\n const saved = { ...fiber }\n // Memo and lazy preserve their wrapper tag around the same class instance.\n const instance = fiber.sn?._fiber === fiber ? fiber.sn : null\n // Hook has four fields. One flat snapshot preserves slot and dispatch\n // identity without a tuple and object clone for every hook.\n const hooks: any[] | null = fiber.hooks && []\n if (hooks) for (const hook of fiber.hooks!) {\n const queue = hook.q\n hooks.push(hook, hook.s, queue, hook.d, hook.c, queue && typeof queue === 'object' ? { ...queue } : null)\n }\n const memoized = fiber.ms && (instance || fiber.tag === FiberTag.Suspense || fiber.tag === FiberTag.Fragment)\n ? { ...fiber.ms } : null\n if (fiber.cx) saved.cx = new Map(fiber.cx)\n if (fiber.cu) saved.cu = fiber.cu.slice()\n const props = instance?.props, state = instance?.state, context = instance?.context\n onCommitRollback(() => {\n Object.assign(fiber, saved)\n if (memoized) {\n for (const key in fiber.ms) if (!(key in memoized)) delete fiber.ms[key]\n Object.assign(fiber.ms, memoized)\n }\n if (hooks) {\n fiber.hooks!.length = hooks.length / 6\n for (let index = 0; index < hooks.length; index += 6) {\n const hook: Hook = fiber.hooks![index / 6] = hooks[index]\n hook.s = hooks[index + 1]\n hook.q = hooks[index + 2]\n hook.d = hooks[index + 3]\n hook.c = hooks[index + 4]\n const queue = hooks[index + 5]\n if (queue) Object.assign(hook.q, queue)\n }\n }\n if (instance) { instance.props = props; instance.state = state; instance.context = context }\n })\n for (let child = fiber.child; child; child = child.sibling) rememberSubtree(child)\n if (fiber.tag === FiberTag.Suspense && fiber.ms?.f) rememberSubtree(fiber.ms.f)\n}\n\nexport function rewindCommit(checkpoint: number): void {\n if (!currentCommit || checkpoint < 0) return\n const lengths = currentCommit.c[checkpoint]!\n const undo = currentCommit.q[3]!\n for (let index = undo.length - 1; index >= lengths[3]!; index--) undo[index]!()\n currentCommit.q.forEach((queue, index) => { queue.length = lengths[index]! })\n currentCommit.c.length = checkpoint\n}\n\nexport function commitBeforeMutation(plan: CommitPlan): void {\n const queue = plan.q[0]!\n while (plan.b < queue.length) queue[plan.b++]!()\n}\n\nexport function commitMutation(plan: CommitPlan): void {\n if (plan.m) return\n commitBeforeMutation(plan)\n if (plan.m) return\n plan.m = true\n const previous = activeCommit\n activeCommit = plan\n try {\n const mutations = plan.q[1]!\n for (let index = 0; index < mutations.length; index++) {\n const work = mutations[index]\n if (typeof work === 'function') work()\n else if (typeof work === 'string') mutations[++index].data = work\n else setProp(work, mutations[++index], mutations[++index], mutations[++index], mutations[++index])\n }\n for (const work of plan.q[2]!) work()\n } finally {\n activeCommit = previous\n for (const queue of plan.q) queue.length = 0\n plan.c.length = 0\n }\n}\n\nexport function commitSynchronously(render: () => void): void {\n if (currentCommit) { render(); return }\n const plan = reusableCommit || createCommit()\n reusableCommit = undefined\n plan.b = 0\n plan.m = false\n try { commitMutation(prepareCommit(render, plan)) }\n finally {\n // Failed preparation must not leave work for a later synchronous root.\n if (!plan.m) {\n for (const queue of plan.q) queue.length = 0\n plan.c.length = 0\n }\n reusableCommit = plan\n }\n}\n"],
|
|
5
|
+
"mappings": ";AAAA,SAAS,gBAAuC;AAChD,SAAS,eAAe;AASjB,IAAI,gBAAmC;AAC9C,IAAI,eAAkC;AACtC,IAAI;AACJ,IAAI;AAEJ,SAAS,eAA2B;AAClC,SAAO,EAAE,GAAG,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,GAAG,GAAG,CAAC,GAAG,GAAG,GAAG,GAAG,MAAM;AAC1D;AAEO,SAAS,cAAc,QAAoB,OAAO,aAAa,GAAe;AACnF,QAAM,WAAW;AACjB,kBAAgB;AAChB,MAAI;AAAE,WAAO;AAAA,EAAE,SAAS,OAAO;AAC7B,oBAAgB;AAChB,UAAM,SAAS,KAAK,EAAE,CAAC;AACvB,aAAS,IAAI,GAAG,IAAI,OAAO,QAAQ,KAAK;A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