octane 0.4.2 → 0.4.3
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/cjs/context-identity.cjs +29 -0
- package/dist/cjs/dom-stage.cjs +24 -18
- package/dist/cjs/error-codes.server.generated.cjs +5 -0
- package/dist/cjs/hydration-markers.cjs +12 -0
- package/dist/cjs/index.cjs +2 -0
- package/dist/cjs/runtime.cjs +253 -393
- package/dist/cjs/runtime.server.cjs +137 -35
- package/dist/cjs/server/index.cjs +2 -0
- package/dist/cjs/server/streamed-signals.cjs +41 -9
- package/dist/cjs/signals/client.cjs +1 -6
- package/dist/cjs/signals/engine.cjs +1 -12
- package/dist/cjs/version.cjs +1 -1
- package/dist/compiler/client-only-server.js +1 -28
- package/dist/compiler/compile-renderer-boundaries.js +1 -22
- package/dist/compiler/compile-universal.js +1 -22
- package/dist/compiler/compile.js +782 -359
- package/dist/compiler/dom-binding-fixed-props.js +11 -1
- package/dist/compiler/generated-origin.js +46 -0
- package/dist/compiler/hydrate-boundaries.js +88 -52
- package/dist/compiler/plain-hook-memo.js +5 -1
- package/dist/compiler/pure-factories.js +66 -0
- package/dist/compiler/register.js +4 -1
- package/dist/compiler/slot-hooks.js +113 -186
- package/dist/compiler/typescript-lowering.js +763 -0
- package/dist/compiler/void-roots.js +239 -0
- package/dist/compiler/volar.js +91 -38
- package/dist/context-identity.d.ts +14 -0
- package/dist/context-identity.js +28 -0
- package/dist/dom-stage.js +24 -18
- package/dist/error-codes.server.generated.d.ts +1 -0
- package/dist/error-codes.server.generated.js +5 -0
- package/dist/hydration/idle.js +1 -0
- package/dist/hydration/independent-island.js +53 -2
- package/dist/hydration/media.js +1 -0
- package/dist/hydration/types.d.ts +5 -0
- package/dist/hydration/visible.js +1 -0
- package/dist/hydration-markers.d.ts +8 -0
- package/dist/hydration-markers.js +8 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +2 -0
- package/dist/runtime.d.ts +25 -40
- package/dist/runtime.js +254 -398
- package/dist/runtime.server.d.ts +23 -2
- package/dist/runtime.server.js +142 -36
- package/dist/server/index.d.ts +1 -1
- package/dist/server/index.js +2 -0
- package/dist/server/streamed-signals.js +41 -9
- package/dist/signals/client.js +3 -8
- package/dist/signals/engine.d.ts +0 -2
- package/dist/signals/engine.js +1 -13
- package/dist/universal-core.js +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/dist/cjs/signals/diagnostic-local-hook.cjs +0 -37
- package/dist/compiler/local-void-roots.js +0 -154
- package/dist/signals/diagnostic-local-hook.d.ts +0 -8
- package/dist/signals/diagnostic-local-hook.js +0 -12
package/dist/runtime.js
CHANGED
|
@@ -159,7 +159,7 @@ import {
|
|
|
159
159
|
rendererRangeClose
|
|
160
160
|
} from "./stream-protocol.js";
|
|
161
161
|
import { isRendererContext, registerClientRendererBridge } from "./renderer-bridge.js";
|
|
162
|
-
import { registerContext } from "./context-identity.js";
|
|
162
|
+
import { defineRemovedContextMembers, registerContext } from "./context-identity.js";
|
|
163
163
|
import { createNativeReadDriver } from "./signals/native-read-client.js";
|
|
164
164
|
import {
|
|
165
165
|
validateNativeReadWitness
|
|
@@ -180,14 +180,9 @@ import {
|
|
|
180
180
|
registerNativeActionResolver,
|
|
181
181
|
runNativeBatch,
|
|
182
182
|
setNativeCandidateResolver,
|
|
183
|
-
setNativeAdoptionResolver
|
|
184
|
-
beginNativeWriteGuard,
|
|
185
|
-
endNativeWriteGuard
|
|
183
|
+
setNativeAdoptionResolver
|
|
186
184
|
} from "./signals/read-protocol.js";
|
|
187
185
|
import { beginNativeEventBatch, endNativeEventBatch } from "./signals/native-read-events.js";
|
|
188
|
-
import {
|
|
189
|
-
isNativeSignalDiagnosticInitializer
|
|
190
|
-
} from "./signals/diagnostic-local-hook.js";
|
|
191
186
|
import {
|
|
192
187
|
createNativeAdoptionState,
|
|
193
188
|
NATIVE_SIGNAL_SEED_ATTR,
|
|
@@ -451,10 +446,34 @@ function enableSignalBindings(abi = 1, potentialOnly = false) {
|
|
|
451
446
|
SIGNAL_BINDINGS_ENABLED = true;
|
|
452
447
|
if (!potentialOnly) enableSignalDocument(abi);
|
|
453
448
|
}
|
|
454
|
-
function
|
|
449
|
+
function signalIdentityToken(value, position) {
|
|
455
450
|
if (value === null) return "null";
|
|
456
451
|
const kind = typeof value;
|
|
457
|
-
return kind === "string" || kind === "number" || kind === "bigint" || kind === "boolean" ? kind.charCodeAt(0).toString(36) + ":" + String(value) : kind === "undefined" ? "u:" :
|
|
452
|
+
return kind === "string" || kind === "number" || kind === "bigint" || kind === "boolean" ? kind.charCodeAt(0).toString(36) + ":" + String(value) : kind === "undefined" ? "u:" : { value, position };
|
|
453
|
+
}
|
|
454
|
+
function signalIdentityKey(token, base, site, parents, componentKey, ids) {
|
|
455
|
+
if (typeof token === "string") return token;
|
|
456
|
+
const namespace = base + JSON.stringify([site ?? "legacy", parents, componentKey]);
|
|
457
|
+
const state = ids.signalState ??= { prefix: ids.prefix, next: 0 };
|
|
458
|
+
const namespaces = state.opaqueKeys ??= /* @__PURE__ */ new Map();
|
|
459
|
+
let keys = namespaces.get(namespace);
|
|
460
|
+
if (keys === void 0) {
|
|
461
|
+
keys = { objects: /* @__PURE__ */ new WeakMap(), symbols: /* @__PURE__ */ new Map(), used: /* @__PURE__ */ new Set(), next: 0 };
|
|
462
|
+
namespaces.set(namespace, keys);
|
|
463
|
+
}
|
|
464
|
+
const value = token.value;
|
|
465
|
+
let id = typeof value === "symbol" ? keys.symbols.get(value) : keys.objects.get(value);
|
|
466
|
+
if (id === void 0) {
|
|
467
|
+
id = token.position;
|
|
468
|
+
if (id === void 0 || keys.used.has(id)) {
|
|
469
|
+
while (keys.used.has(keys.next)) keys.next++;
|
|
470
|
+
id = keys.next++;
|
|
471
|
+
}
|
|
472
|
+
keys.used.add(id);
|
|
473
|
+
if (typeof value === "symbol") keys.symbols.set(value, id);
|
|
474
|
+
else keys.objects.set(value, id);
|
|
475
|
+
}
|
|
476
|
+
return "o:" + id.toString(36);
|
|
458
477
|
}
|
|
459
478
|
function rootSignalInstanceKey(ids) {
|
|
460
479
|
return JSON.stringify([ids.signalState?.prefix ?? ids.prefix, "root"]);
|
|
@@ -486,14 +505,14 @@ function stampSignalInstanceKey(scope, key) {
|
|
|
486
505
|
}
|
|
487
506
|
function structuralSignalInstanceKey(parentScope, invocationSite, key, hasKey) {
|
|
488
507
|
let base = resolveSignalInstanceKey(parentScope);
|
|
489
|
-
const
|
|
508
|
+
const itemTokens = [];
|
|
490
509
|
const visited = /* @__PURE__ */ new Set();
|
|
491
510
|
let scope = parentScope;
|
|
492
511
|
while (base === void 0 && scope !== null) {
|
|
493
512
|
const block2 = scope.block;
|
|
494
513
|
if (!visited.has(block2)) {
|
|
495
514
|
visited.add(block2);
|
|
496
|
-
if (block2.forSlot !== null)
|
|
515
|
+
if (block2.forSlot !== null) itemTokens.push(signalIdentityToken(block2.key, block2.itemIndex));
|
|
497
516
|
base = resolveSignalInstanceKey(block2);
|
|
498
517
|
}
|
|
499
518
|
scope = scope.parent;
|
|
@@ -503,14 +522,28 @@ function structuralSignalInstanceKey(parentScope, invocationSite, key, hasKey) {
|
|
|
503
522
|
while (base === void 0 && block !== null) {
|
|
504
523
|
if (!visited.has(block)) {
|
|
505
524
|
visited.add(block);
|
|
506
|
-
if (block.forSlot !== null)
|
|
525
|
+
if (block.forSlot !== null) itemTokens.push(signalIdentityToken(block.key, block.itemIndex));
|
|
507
526
|
}
|
|
508
527
|
base = resolveSignalInstanceKey(block);
|
|
509
528
|
block = block.parentBlock;
|
|
510
529
|
}
|
|
511
530
|
base ??= rootSignalInstanceKey(parentScope.block.idState);
|
|
512
|
-
|
|
513
|
-
|
|
531
|
+
itemTokens.reverse();
|
|
532
|
+
const ids = parentScope.block.idState;
|
|
533
|
+
let itemKeys = itemTokens;
|
|
534
|
+
for (const token of itemTokens) {
|
|
535
|
+
if (typeof token === "string") continue;
|
|
536
|
+
itemKeys = [];
|
|
537
|
+
for (const entry of itemTokens) {
|
|
538
|
+
itemKeys.push(signalIdentityKey(entry, base, invocationSite, itemKeys, false, ids));
|
|
539
|
+
}
|
|
540
|
+
break;
|
|
541
|
+
}
|
|
542
|
+
return base + JSON.stringify([
|
|
543
|
+
invocationSite ?? "legacy",
|
|
544
|
+
itemKeys,
|
|
545
|
+
hasKey ? signalIdentityKey(signalIdentityToken(key), base, invocationSite, itemKeys, true, ids) : ""
|
|
546
|
+
]);
|
|
514
547
|
}
|
|
515
548
|
function stampSignalInstance(scope, parentScope, invocationSite, key, hasKey) {
|
|
516
549
|
if (SIGNAL_BINDINGS_ENABLED || signalDocumentEnabled) {
|
|
@@ -531,6 +564,19 @@ function scopeSignalOwner(scope) {
|
|
|
531
564
|
}
|
|
532
565
|
if (documentOwner === void 0) return;
|
|
533
566
|
let owner = SCOPE_SIGNAL_OWNERS.get(scope);
|
|
567
|
+
if ((owner === void 0 || owner === false) && scope.block.forSlot === null && scope.signalInstanceParent === null && scope.signalInstanceResolved === void 0) {
|
|
568
|
+
let parent = scope.parent ?? scope.block.parentBlock;
|
|
569
|
+
while (parent !== null) {
|
|
570
|
+
if (parent instanceof LiteBlockImpl) break;
|
|
571
|
+
if (parent.signalInstanceParent !== null || parent.signalInstanceResolved !== void 0)
|
|
572
|
+
break;
|
|
573
|
+
if (parent.block.forSlot?.signalSite !== void 0) {
|
|
574
|
+
SCOPE_SIGNAL_OWNERS.set(scope, false);
|
|
575
|
+
return scopeSignalOwner(parent);
|
|
576
|
+
}
|
|
577
|
+
parent = parent.parent ?? parent.block.parentBlock;
|
|
578
|
+
}
|
|
579
|
+
}
|
|
534
580
|
const retired = owner === null;
|
|
535
581
|
if (!owner || owner.documentOwner !== documentOwner) {
|
|
536
582
|
const ids = scope.block.idState;
|
|
@@ -552,7 +598,7 @@ function scopeSignalOwner(scope) {
|
|
|
552
598
|
scopeKey: documentOwner.scopeKey,
|
|
553
599
|
documentOwner,
|
|
554
600
|
instanceOwner: scope,
|
|
555
|
-
instanceKey: resolveSignalInstanceKey(scope) ?? rootSignalInstanceKey(ids)
|
|
601
|
+
instanceKey: resolveSignalInstanceKey(scope) ?? (scope.block.forSlot?.signalSite !== void 0 ? structuralSignalInstanceKey(scope, scope.block.forSlot.signalSite, void 0, false) : rootSignalInstanceKey(ids))
|
|
556
602
|
};
|
|
557
603
|
identity.instanceOwner = identity;
|
|
558
604
|
owner = Object.freeze(identity);
|
|
@@ -565,8 +611,7 @@ function scopeSignalOwner(scope) {
|
|
|
565
611
|
}
|
|
566
612
|
function runWithBlockSignalOwner(scope, callback) {
|
|
567
613
|
const owner = scopeSignalOwner(scope);
|
|
568
|
-
if (owner !== void 0
|
|
569
|
-
STREAMED_SIGNAL_OWNER_ACTIVATOR?.(owner);
|
|
614
|
+
if (owner !== void 0) STREAMED_SIGNAL_OWNER_ACTIVATOR?.(owner);
|
|
570
615
|
return owner === void 0 || currentSignalOwner() === owner ? callback() : runWithSignalOwner(owner, callback);
|
|
571
616
|
}
|
|
572
617
|
import { readNativeDomStyle as readNativeDomStyle2, readNativeDomProps } from "./signals/read-protocol.js";
|
|
@@ -580,9 +625,49 @@ function nativeStyleBody(props, scope) {
|
|
|
580
625
|
journalRootProperty(scope.slots, 0, scope.slots[0]);
|
|
581
626
|
scope.slots[0] = value;
|
|
582
627
|
}
|
|
583
|
-
function nativeStyleBinding(owner, slotIndex, el, value) {
|
|
628
|
+
function nativeStyleBinding(owner, slotIndex, el, value, literal) {
|
|
629
|
+
if (literal === 1) {
|
|
630
|
+
const binding = owner.slots[slotIndex];
|
|
631
|
+
if ((binding === void 0 || binding.block === null) && isScalarStyleLiteral(value)) {
|
|
632
|
+
writeScalarNativeStyle(owner, slotIndex, binding, el, value);
|
|
633
|
+
return;
|
|
634
|
+
}
|
|
635
|
+
}
|
|
584
636
|
nativePresentationBinding(owner, slotIndex, el, nativeStyleBody, { el, value });
|
|
585
637
|
}
|
|
638
|
+
function isScalarStyleLiteral(value) {
|
|
639
|
+
for (const name in value) {
|
|
640
|
+
const item = value[name];
|
|
641
|
+
if (item !== null && (typeof item === "object" || typeof item === "function")) return false;
|
|
642
|
+
}
|
|
643
|
+
return true;
|
|
644
|
+
}
|
|
645
|
+
function writeScalarNativeStyle(owner, slotIndex, binding, el, value) {
|
|
646
|
+
if (binding === void 0) {
|
|
647
|
+
binding = {
|
|
648
|
+
__kind: "nativeStyleBinding",
|
|
649
|
+
__flags: SLOT_FLAG_TEARDOWN,
|
|
650
|
+
__teardown: disposeNativeStyleBinding,
|
|
651
|
+
block: null,
|
|
652
|
+
el,
|
|
653
|
+
style: void 0
|
|
654
|
+
};
|
|
655
|
+
if (owner.slots.length === 0) owner.slots.push(void 0);
|
|
656
|
+
owner.slots[slotIndex] = binding;
|
|
657
|
+
registerSlot(owner, binding);
|
|
658
|
+
} else if (binding.el !== el) {
|
|
659
|
+
if (TRANSITION_JOURNAL !== null) {
|
|
660
|
+
TRANSITION_JOURNAL.push(JOURNAL_PROP, binding, "el", binding.el);
|
|
661
|
+
TRANSITION_JOURNAL.push(JOURNAL_PROP, binding, "style", binding.style);
|
|
662
|
+
}
|
|
663
|
+
binding.el = el;
|
|
664
|
+
binding.style = void 0;
|
|
665
|
+
}
|
|
666
|
+
setStyle(el, value, binding.style);
|
|
667
|
+
if (TRANSITION_JOURNAL !== null)
|
|
668
|
+
TRANSITION_JOURNAL.push(JOURNAL_PROP, binding, "style", binding.style);
|
|
669
|
+
binding.style = value;
|
|
670
|
+
}
|
|
586
671
|
function prepareNativeProjection(props, scope) {
|
|
587
672
|
const prepare = () => {
|
|
588
673
|
const projected = props.compute();
|
|
@@ -661,8 +746,6 @@ function nativeProjectionBinding(owner, slotIndex, el, compute, fields) {
|
|
|
661
746
|
nativePresentationBinding(owner, slotIndex, el, nativeProjectionBody, { el, compute, fields });
|
|
662
747
|
}
|
|
663
748
|
function nativePresentationBinding(owner, slotIndex, el, body, props) {
|
|
664
|
-
if (process.env.NODE_ENV !== "production" && hydrateAttributeProbe !== null && el.ownerDocument !== hydrateAttributeProbe.document)
|
|
665
|
-
throw new PresentationAdoptionMiss(void 0, false);
|
|
666
749
|
let binding = owner.slots[slotIndex];
|
|
667
750
|
if (binding === void 0) {
|
|
668
751
|
const block = createBlock("control-flow", owner.block, el, null, null, body, props);
|
|
@@ -671,11 +754,19 @@ function nativePresentationBinding(owner, slotIndex, el, body, props) {
|
|
|
671
754
|
__kind: "nativeStyleBinding",
|
|
672
755
|
__flags: SLOT_FLAG_TEARDOWN,
|
|
673
756
|
__teardown: disposeNativeStyleBinding,
|
|
674
|
-
block
|
|
757
|
+
block,
|
|
758
|
+
el: null,
|
|
759
|
+
style: void 0
|
|
675
760
|
};
|
|
676
761
|
if (owner.slots.length === 0) owner.slots.push(void 0);
|
|
677
762
|
owner.slots[slotIndex] = binding;
|
|
678
763
|
registerSlot(owner, binding);
|
|
764
|
+
} else if (binding.block === null) {
|
|
765
|
+
const block = createBlock("control-flow", owner.block, el, null, null, body, props);
|
|
766
|
+
block.parent = owner;
|
|
767
|
+
if (binding.el === el) block.slots[0] = binding.style;
|
|
768
|
+
journalRootProperty(binding, "block", binding.block);
|
|
769
|
+
binding.block = block;
|
|
679
770
|
} else {
|
|
680
771
|
const block = binding.block;
|
|
681
772
|
if (block.parentNode !== el) {
|
|
@@ -691,19 +782,16 @@ function nativePresentationBinding(owner, slotIndex, el, body, props) {
|
|
|
691
782
|
}
|
|
692
783
|
function enableNativeReadCollection(abi = 1) {
|
|
693
784
|
if (abi !== 1) throw new Error(formatClientError(58));
|
|
694
|
-
if (process.env.NODE_ENV !== "production" && hydrateAttributeProbe !== null) return;
|
|
695
785
|
ensureNativeReadDriver();
|
|
696
786
|
}
|
|
697
787
|
function beginNativeReadScope(scope, abi = 1) {
|
|
698
788
|
if (abi !== 1) throw new Error(formatClientError(58));
|
|
699
|
-
if (process.env.NODE_ENV !== "production" && hydrateAttributeProbe !== null) return -1;
|
|
700
789
|
const block = CURRENT_BLOCK;
|
|
701
790
|
const owner = scope ?? CURRENT_SCOPE;
|
|
702
791
|
if (block === null || owner === null) return -1;
|
|
703
792
|
return ensureNativeReadDriver().beginScope(owner, block);
|
|
704
793
|
}
|
|
705
794
|
function beginActiveNativeReadScope(scope) {
|
|
706
|
-
if (process.env.NODE_ENV !== "production" && hydrateAttributeProbe !== null) return -1;
|
|
707
795
|
const block = CURRENT_BLOCK;
|
|
708
796
|
return block === null ? -1 : NATIVE_READ_DRIVER.beginScope(scope, block);
|
|
709
797
|
}
|
|
@@ -812,14 +900,12 @@ function endNativeReadScope(token, _completed) {
|
|
|
812
900
|
if (token >= 0) NATIVE_READ_DRIVER.endScope(token);
|
|
813
901
|
}
|
|
814
902
|
function beginNativeReadWitness(detached = false) {
|
|
815
|
-
if (process.env.NODE_ENV !== "production" && hydrateAttributeProbe !== null) return -1;
|
|
816
903
|
return detached ? ensureNativeReadDriver().beginWitness(true) : NATIVE_READ_DRIVER?.beginWitness() ?? -1;
|
|
817
904
|
}
|
|
818
905
|
function finishNativeReadWitness(token, completed) {
|
|
819
906
|
return token < 0 ? null : NATIVE_READ_DRIVER.finishWitness(token, completed);
|
|
820
907
|
}
|
|
821
908
|
function replayNativeReadWitness(witness) {
|
|
822
|
-
if (process.env.NODE_ENV !== "production" && hydrateAttributeProbe !== null) return;
|
|
823
909
|
NATIVE_READ_DRIVER?.replay(witness);
|
|
824
910
|
}
|
|
825
911
|
function retainNativeRetryReads(block, reads) {
|
|
@@ -940,13 +1026,13 @@ function hydrationMismatchMode(el) {
|
|
|
940
1026
|
}
|
|
941
1027
|
function warnHydrationValueMismatch(loc, what, serverVal, clientVal) {
|
|
942
1028
|
if (process.env.NODE_ENV === "production") return;
|
|
943
|
-
if (!loc
|
|
1029
|
+
if (!loc) return;
|
|
944
1030
|
console.error(
|
|
945
1031
|
`Octane hydration mismatch at ${loc}: server rendered ${what} ${JSON.stringify(serverVal)} but the client rendered ${JSON.stringify(clientVal)}. The client value was used. If this difference is intentional (e.g. a timestamp or random id), add suppressHydrationWarning to the element.`
|
|
946
1032
|
);
|
|
947
1033
|
}
|
|
948
1034
|
function warnHydrationKeptServerValue(loc, what, serverVal, clientVal) {
|
|
949
|
-
if (process.env.NODE_ENV === "production" || !loc
|
|
1035
|
+
if (process.env.NODE_ENV === "production" || !loc) return;
|
|
950
1036
|
console.error(
|
|
951
1037
|
`Octane hydration mismatch at ${loc}: server rendered ${what} ${JSON.stringify(serverVal)} but the client rendered ${JSON.stringify(clientVal)}. The server value was kept. If this difference is intentional, add suppressHydrationWarning to the element.`
|
|
952
1038
|
);
|
|
@@ -965,7 +1051,7 @@ function describeHydrationNode(node) {
|
|
|
965
1051
|
}
|
|
966
1052
|
function warnHydrationStructuralMismatch(loc, expected, actual) {
|
|
967
1053
|
if (process.env.NODE_ENV === "production") return;
|
|
968
|
-
if (!loc
|
|
1054
|
+
if (!loc) return;
|
|
969
1055
|
console.error(
|
|
970
1056
|
`Octane hydration mismatch at ${loc}: the client expected ${expected} but the server rendered ${actual}. The mismatched subtree was rebuilt on the client.`
|
|
971
1057
|
);
|
|
@@ -6471,8 +6557,7 @@ function captureRenderPhaseUpdate(cell, key) {
|
|
|
6471
6557
|
function renderBlock(block) {
|
|
6472
6558
|
if (signalDocumentEnabled || block.idState.renderOwner?.signalOwner !== void 0) {
|
|
6473
6559
|
const owner = scopeSignalOwner(block);
|
|
6474
|
-
if (owner !== void 0
|
|
6475
|
-
STREAMED_SIGNAL_OWNER_ACTIVATOR?.(owner);
|
|
6560
|
+
if (owner !== void 0) STREAMED_SIGNAL_OWNER_ACTIVATOR?.(owner);
|
|
6476
6561
|
if (owner !== void 0 && currentSignalOwner() !== owner) {
|
|
6477
6562
|
runWithSignalOwner(owner, () => renderBlock(block));
|
|
6478
6563
|
return;
|
|
@@ -6649,8 +6734,7 @@ function renderBlockInner(block) {
|
|
|
6649
6734
|
let profileThrown;
|
|
6650
6735
|
let renderCompleted = false;
|
|
6651
6736
|
let renderRetry = false;
|
|
6652
|
-
|
|
6653
|
-
NATIVE_READ_DRIVER?.beginRender(block);
|
|
6737
|
+
NATIVE_READ_DRIVER?.beginRender(block);
|
|
6654
6738
|
NATIVE_BLOCK_RETRIES?.get(block)?.clear();
|
|
6655
6739
|
try {
|
|
6656
6740
|
if (urgentTransitionRender !== null)
|
|
@@ -6718,8 +6802,7 @@ function renderBlockInner(block) {
|
|
|
6718
6802
|
CURRENT_SCOPE = prevScope;
|
|
6719
6803
|
CURRENT_BLOCK = prevBlock;
|
|
6720
6804
|
try {
|
|
6721
|
-
|
|
6722
|
-
NATIVE_READ_DRIVER?.endRender(block, renderCompleted, isSuspenseException(profileThrown));
|
|
6805
|
+
NATIVE_READ_DRIVER?.endRender(block, renderCompleted, isSuspenseException(profileThrown));
|
|
6723
6806
|
} finally {
|
|
6724
6807
|
if (urgentTransitionRender !== null)
|
|
6725
6808
|
urgentTransitionDriver.endUrgent(block, urgentTransitionRender);
|
|
@@ -7032,8 +7115,7 @@ function componentSlotLite(parentScope, slotKey, host, comp, props, anchor, invo
|
|
|
7032
7115
|
try {
|
|
7033
7116
|
if (signalDocumentEnabled || scope.block.idState.renderOwner?.signalOwner !== void 0) {
|
|
7034
7117
|
const owner = scopeSignalOwner(scope);
|
|
7035
|
-
if (owner !== void 0
|
|
7036
|
-
STREAMED_SIGNAL_OWNER_ACTIVATOR?.(owner);
|
|
7118
|
+
if (owner !== void 0) STREAMED_SIGNAL_OWNER_ACTIVATOR?.(owner);
|
|
7037
7119
|
if (owner === void 0 || currentSignalOwner() === owner) {
|
|
7038
7120
|
comp(props, scope, void 0);
|
|
7039
7121
|
} else runWithSignalOwner(owner, () => comp(props, scope, void 0));
|
|
@@ -7337,20 +7419,13 @@ function resolveSlot(slot) {
|
|
|
7337
7419
|
const resolved = resolveHookPath(slotStack, slot, false);
|
|
7338
7420
|
return typeof __OCTANE_PROFILE_ENABLED__ !== "undefined" && __OCTANE_PROFILE_ENABLED__ ? __profileResolveHook(resolved, typeof slot === "symbol" ? slot : void 0) : resolved;
|
|
7339
7421
|
}
|
|
7340
|
-
function
|
|
7341
|
-
return process.env.NODE_ENV !== "production" && hydrateAttributeProbe !== null;
|
|
7342
|
-
}
|
|
7343
|
-
function nativeLocalHook(name, initialize, dispose, slot, diagnosticInitialize) {
|
|
7344
|
-
if (process.env.NODE_ENV !== "production" && hydrateAttributeProbe !== null && (name !== "useSignal$" || diagnosticInitialize === void 0 || !isNativeSignalDiagnosticInitializer(diagnosticInitialize)))
|
|
7345
|
-
throw new PresentationAdoptionMiss(void 0, false);
|
|
7422
|
+
function nativeLocalHook(name, initialize, dispose, slot) {
|
|
7346
7423
|
slot = resolveSlot(slot);
|
|
7347
7424
|
if (slot === void 0 || CURRENT_SCOPE === null) missingSlot(name);
|
|
7348
7425
|
const scope = CURRENT_SCOPE;
|
|
7349
7426
|
let cell = scope.hooks?.get(slot);
|
|
7350
7427
|
if (cell === void 0) {
|
|
7351
|
-
cell = {
|
|
7352
|
-
nativeValue: process.env.NODE_ENV !== "production" && hydrateAttributeProbe !== null ? diagnosticInitialize() : initialize()
|
|
7353
|
-
};
|
|
7428
|
+
cell = { nativeValue: initialize() };
|
|
7354
7429
|
ensureHooks(scope).set(slot, cell);
|
|
7355
7430
|
const value = cell.nativeValue;
|
|
7356
7431
|
registerHookCleanup(scope, () => dispose(value));
|
|
@@ -8379,10 +8454,7 @@ function __createCompiledContext(defaultValue) {
|
|
|
8379
8454
|
const dialect = children[CHILDREN_BODY] ?? children;
|
|
8380
8455
|
const previous = scope.hooks?.get(CHILDREN_DIALECT_SLOT);
|
|
8381
8456
|
if (previous !== dialect) {
|
|
8382
|
-
if (previous !== void 0
|
|
8383
|
-
resetScopeChildren(scope);
|
|
8384
|
-
if (scope.block.disposed) return;
|
|
8385
|
-
} else if (previous !== void 0) {
|
|
8457
|
+
if (previous !== void 0) {
|
|
8386
8458
|
invalidateSharedBodyOutput(scope);
|
|
8387
8459
|
if (TRANSITION_JOURNAL !== null && !ROOT_RENDER_ROLLBACK) {
|
|
8388
8460
|
const hooks = scope.hooks;
|
|
@@ -8401,19 +8473,7 @@ function initializeContext(ctx, defaultValue) {
|
|
|
8401
8473
|
ctx.$$version = 0;
|
|
8402
8474
|
registerContext(ctx);
|
|
8403
8475
|
if (process.env.NODE_ENV !== "production") {
|
|
8404
|
-
|
|
8405
|
-
Object.defineProperty(ctx, "Consumer", {
|
|
8406
|
-
configurable: true,
|
|
8407
|
-
get() {
|
|
8408
|
-
if (!consumerWarned) {
|
|
8409
|
-
consumerWarned = true;
|
|
8410
|
-
console.error(
|
|
8411
|
-
"Octane has no Context.Consumer. Read the context directly with use(Context) or useContext(Context) in the child component \u2014 Octane hooks are call-site keyed, so the read is legal behind any condition the render-prop form was working around."
|
|
8412
|
-
);
|
|
8413
|
-
}
|
|
8414
|
-
return void 0;
|
|
8415
|
-
}
|
|
8416
|
-
});
|
|
8476
|
+
defineRemovedContextMembers(ctx);
|
|
8417
8477
|
}
|
|
8418
8478
|
return ctx;
|
|
8419
8479
|
}
|
|
@@ -8484,28 +8544,23 @@ function provideContext(scope, context, value) {
|
|
|
8484
8544
|
if (had) values.set(context, previous);
|
|
8485
8545
|
else values.delete(context);
|
|
8486
8546
|
});
|
|
8487
|
-
if (had
|
|
8547
|
+
if (had) {
|
|
8488
8548
|
context.$$version++;
|
|
8489
8549
|
bumpContextEpoch();
|
|
8490
8550
|
}
|
|
8491
8551
|
values.set(context, value);
|
|
8492
8552
|
}
|
|
8493
8553
|
const CHILDREN_BODY = /* @__PURE__ */ Symbol.for("octane.childrenBody");
|
|
8494
|
-
const
|
|
8495
|
-
"octane.childrenDiagnosticCaptures"
|
|
8496
|
-
);
|
|
8554
|
+
const CHILDREN_CAPTURES = /* @__PURE__ */ Symbol.for("octane.childrenCaptures");
|
|
8497
8555
|
function markSingleRoot(component) {
|
|
8498
8556
|
component.$$singleRoot = true;
|
|
8499
8557
|
return component;
|
|
8500
8558
|
}
|
|
8501
|
-
function markChildrenBlock(fn, body) {
|
|
8559
|
+
function markChildrenBlock(fn, body, captures) {
|
|
8502
8560
|
if (typeof fn === "function") {
|
|
8503
8561
|
fn[CHILDREN_BLOCK] = true;
|
|
8504
8562
|
if (body !== void 0) fn[CHILDREN_BODY] = body;
|
|
8505
|
-
if (
|
|
8506
|
-
const captures = arguments[2];
|
|
8507
|
-
if (captures !== void 0) fn[CHILDREN_DIAGNOSTIC_CAPTURES] = captures;
|
|
8508
|
-
}
|
|
8563
|
+
if (captures !== void 0) fn[CHILDREN_CAPTURES] = captures;
|
|
8509
8564
|
}
|
|
8510
8565
|
return fn;
|
|
8511
8566
|
}
|
|
@@ -8655,20 +8710,7 @@ const HYDRATE_STREAM_SCAN_MASK = 1 | 128;
|
|
|
8655
8710
|
let hydrateStreamWaitCleanups = null;
|
|
8656
8711
|
let preservedHydrateActivations = null;
|
|
8657
8712
|
let preservedHydrateActivationCount = 0;
|
|
8658
|
-
|
|
8659
|
-
let hydrateAttributeProbe = null;
|
|
8660
|
-
function copyHydrateDiagnosticIds(ids) {
|
|
8661
|
-
const first = { prefix: ids.prefix, next: ids.next };
|
|
8662
|
-
let copy = first;
|
|
8663
|
-
while (true) {
|
|
8664
|
-
if (ids.limit !== void 0) copy.limit = ids.limit;
|
|
8665
|
-
if (ids.signalState !== void 0) copy.signalState = { ...ids.signalState };
|
|
8666
|
-
if (ids.overflow === void 0) return first;
|
|
8667
|
-
ids = ids.overflow;
|
|
8668
|
-
copy = copy.overflow = { prefix: ids.prefix, next: ids.next };
|
|
8669
|
-
}
|
|
8670
|
-
}
|
|
8671
|
-
function copyHydrateDiagnosticContexts(scope) {
|
|
8713
|
+
function collectHydrateContexts(scope) {
|
|
8672
8714
|
let contexts = null;
|
|
8673
8715
|
const add = (values) => {
|
|
8674
8716
|
if (values === null) return;
|
|
@@ -8683,7 +8725,7 @@ function copyHydrateDiagnosticContexts(scope) {
|
|
|
8683
8725
|
add(block.$$ctxValues);
|
|
8684
8726
|
return contexts;
|
|
8685
8727
|
}
|
|
8686
|
-
function
|
|
8728
|
+
function changedHydrateContexts(initial, next) {
|
|
8687
8729
|
if ((initial?.size ?? 0) !== (next?.size ?? 0)) return true;
|
|
8688
8730
|
if (initial !== null) {
|
|
8689
8731
|
for (const [context, value] of initial) {
|
|
@@ -8692,24 +8734,23 @@ function changedHydrateDiagnosticContexts(initial, next) {
|
|
|
8692
8734
|
}
|
|
8693
8735
|
return false;
|
|
8694
8736
|
}
|
|
8695
|
-
function
|
|
8737
|
+
function changedHydrateCaptures(initial, next) {
|
|
8738
|
+
if (initial === next) return false;
|
|
8696
8739
|
if (initial.__data === void 0 || next.__data === void 0)
|
|
8697
|
-
return
|
|
8740
|
+
return changedHydrateChildren(initial.children, next.children);
|
|
8698
8741
|
if (initial.__data.length !== next.__data.length) return true;
|
|
8699
8742
|
for (let i = 0; i < initial.__data.length; i++) {
|
|
8700
8743
|
if (!Object.is(initial.__data[i], next.__data[i])) return true;
|
|
8701
8744
|
}
|
|
8702
8745
|
return false;
|
|
8703
8746
|
}
|
|
8704
|
-
function
|
|
8747
|
+
function changedHydrateChildren(initial, next) {
|
|
8705
8748
|
if (initial === next) return false;
|
|
8706
8749
|
if (typeof initial !== "function" || typeof next !== "function") return true;
|
|
8707
8750
|
try {
|
|
8708
8751
|
const body = initial[CHILDREN_BODY];
|
|
8709
|
-
const initialCaptures = initial[
|
|
8710
|
-
const nextCaptures = next[
|
|
8711
|
-
if (initialCaptures === void 0 && nextCaptures === void 0 && isChildrenBlock(initial) && isChildrenBlock(next))
|
|
8712
|
-
return false;
|
|
8752
|
+
const initialCaptures = initial[CHILDREN_CAPTURES];
|
|
8753
|
+
const nextCaptures = next[CHILDREN_CAPTURES];
|
|
8713
8754
|
if (body === void 0 || body !== next[CHILDREN_BODY] || initialCaptures == null || nextCaptures == null)
|
|
8714
8755
|
return true;
|
|
8715
8756
|
const before = initialCaptures();
|
|
@@ -8723,177 +8764,16 @@ function changedHydrateDiagnosticChildren(initial, next) {
|
|
|
8723
8764
|
return true;
|
|
8724
8765
|
}
|
|
8725
8766
|
}
|
|
8726
|
-
function
|
|
8727
|
-
const
|
|
8728
|
-
|
|
8729
|
-
if (
|
|
8730
|
-
|
|
8731
|
-
|
|
8732
|
-
|
|
8733
|
-
values.set(name, {
|
|
8734
|
-
server: previous === void 0 ? server : previous.server,
|
|
8735
|
-
next,
|
|
8736
|
-
suppressed: isHydrationSuppressed(el),
|
|
8737
|
-
checked: false
|
|
8738
|
-
});
|
|
8739
|
-
}
|
|
8740
|
-
function checkInitialHydrateAttribute(hydration, el, name, server) {
|
|
8741
|
-
const initial = hydration.attributeBaselines?.attributes.get(el)?.get(name);
|
|
8742
|
-
if (initial === void 0) return false;
|
|
8743
|
-
if (initial.checked) return true;
|
|
8744
|
-
initial.checked = true;
|
|
8745
|
-
if (!initial.suppressed && initial.server !== initial.next && !(name !== "class" && name !== "style" && initial.next !== null && isAttributeParserNormalizedMatch(initial.server, initial.next)) && domBindingClaims.get(el)?.get(name) !== server) {
|
|
8746
|
-
warnHydrationValueMismatch(
|
|
8747
|
-
el.__oct_loc,
|
|
8748
|
-
name === "style" ? "style" : `attribute \`${name}\``,
|
|
8749
|
-
name === "style" ? initial.server ?? "" : initial.server,
|
|
8750
|
-
name === "style" ? initial.next ?? "" : initial.next
|
|
8751
|
-
);
|
|
8752
|
-
}
|
|
8753
|
-
return true;
|
|
8754
|
-
}
|
|
8755
|
-
function probeInitialHydrateAttributes(state) {
|
|
8756
|
-
const snapshot = initialHydrateAttributes?.get(state);
|
|
8757
|
-
if (snapshot === void 0 || !changedHydrateDiagnosticCaptures(snapshot.props, state.props) && !changedHydrateDiagnosticContexts(
|
|
8758
|
-
snapshot.contexts,
|
|
8759
|
-
copyHydrateDiagnosticContexts(
|
|
8767
|
+
function hydrateServerValuesStale(state) {
|
|
8768
|
+
const initial = state.initialCaptures;
|
|
8769
|
+
if (initial === null) return false;
|
|
8770
|
+
if (initial.stale || changedHydrateCaptures(initial.props, state.props)) return true;
|
|
8771
|
+
return initial.contextEpoch !== contextEpochNow() && changedHydrateContexts(
|
|
8772
|
+
initial.contexts,
|
|
8773
|
+
collectHydrateContexts(
|
|
8760
8774
|
CURRENT_SCOPE?.block === state.parentBlock ? CURRENT_SCOPE : state.parentBlock
|
|
8761
8775
|
)
|
|
8762
|
-
)
|
|
8763
|
-
return;
|
|
8764
|
-
try {
|
|
8765
|
-
return collectInitialHydrateAttributes(state, snapshot);
|
|
8766
|
-
} catch {
|
|
8767
|
-
return;
|
|
8768
|
-
}
|
|
8769
|
-
}
|
|
8770
|
-
function collectInitialHydrateAttributes(state, snapshot) {
|
|
8771
|
-
const ownerDocument = document.implementation.createHTMLDocument("");
|
|
8772
|
-
const originalWrapper = state.wrapper;
|
|
8773
|
-
const source = STAGED_DOM?.view(originalWrapper) ?? originalWrapper;
|
|
8774
|
-
const template2 = ownerDocument.createElement("template");
|
|
8775
|
-
template2.innerHTML = source.outerHTML;
|
|
8776
|
-
const wrapper = ownerDocument.adoptNode(template2.content.firstElementChild);
|
|
8777
|
-
const probe = {
|
|
8778
|
-
document: ownerDocument,
|
|
8779
|
-
originals: /* @__PURE__ */ new WeakMap(),
|
|
8780
|
-
attributes: /* @__PURE__ */ new WeakMap(),
|
|
8781
|
-
boundaries: /* @__PURE__ */ new WeakMap()
|
|
8782
|
-
};
|
|
8783
|
-
probe.originals.set(wrapper, originalWrapper);
|
|
8784
|
-
const originals = source.querySelectorAll("*");
|
|
8785
|
-
const copies = wrapper.querySelectorAll("*");
|
|
8786
|
-
if (originals.length !== copies.length) return;
|
|
8787
|
-
for (let i = 0; i < originals.length; i++) {
|
|
8788
|
-
const original = originals[i];
|
|
8789
|
-
const copy = copies[i];
|
|
8790
|
-
if (copy.localName !== original.localName || copy.namespaceURI !== original.namespaceURI || probe.originals.get(copy.parentElement) !== (STAGED_DOM?.view(original) ?? original).parentElement)
|
|
8791
|
-
return;
|
|
8792
|
-
probe.originals.set(copy, original);
|
|
8793
|
-
}
|
|
8794
|
-
const start = wrapper.firstChild;
|
|
8795
|
-
if (start === null || !isBlockOpen(start)) return;
|
|
8796
|
-
const end = findMatchingClose(start, /* @__PURE__ */ new WeakMap());
|
|
8797
|
-
const initialChild = (_props, scope, extra) => {
|
|
8798
|
-
if (state.loadedBody !== null) state.loadedBody(snapshot.props.__data, scope, extra);
|
|
8799
|
-
else childrenAsBody(snapshot.props.children)(void 0, scope, extra);
|
|
8800
|
-
};
|
|
8801
|
-
const body = (_props, scope) => {
|
|
8802
|
-
tryBlock(scope, 0, wrapper, initialChild, null, null, end);
|
|
8803
|
-
};
|
|
8804
|
-
const block = createBlock("control-flow", null, wrapper, start, end, body, void 0);
|
|
8805
|
-
block.idState = copyHydrateDiagnosticIds(snapshot.ids);
|
|
8806
|
-
block.$$ctxValues = snapshot.contexts === null ? null : new Map(snapshot.contexts);
|
|
8807
|
-
const hydration = new HydrationCapability(block, start.nextSibling, null);
|
|
8808
|
-
if (state.seedRaw !== null) hydration.seeds = hydration.parseSeeds(state.seedRaw);
|
|
8809
|
-
hydration.protectRootAnchor(end);
|
|
8810
|
-
const capture = createOffscreenCapture();
|
|
8811
|
-
const diagnosticNative = state.nativeSeedRaw === void 0 ? void 0 : createNativeAdoptionState(parseNativeSignalManifest(state.nativeSeedRaw));
|
|
8812
|
-
const previousHydration = currentHydration;
|
|
8813
|
-
const previousCapture = WIP_CAPTURE;
|
|
8814
|
-
const previousProbe = hydrateAttributeProbe;
|
|
8815
|
-
const previousTransaction = ROOT_RENDER_TRANSACTION;
|
|
8816
|
-
const previousJournal = TRANSITION_JOURNAL;
|
|
8817
|
-
const previousAttempt = ACTIVE_TRANSITION_ATTEMPT;
|
|
8818
|
-
const previousScopedReadTracking = SCOPED_READ_TRACKING;
|
|
8819
|
-
const previousScopedReads = SCOPED_READS;
|
|
8820
|
-
const previousWarm = CURRENT_WARM;
|
|
8821
|
-
const previousWarmClaims = CURRENT_WARM_CLAIMS;
|
|
8822
|
-
const previousWarmEpisode = CURRENT_WARM_EPISODE;
|
|
8823
|
-
const previousWarmPlans = ACTIVE_WARM_PLANS.splice(0);
|
|
8824
|
-
const previousStagedDom = STAGED_DOM;
|
|
8825
|
-
const previousStagedCapture = STAGED_COMMIT_CAPTURE;
|
|
8826
|
-
const previousPresentation = PRESENTATION_HYDRATION;
|
|
8827
|
-
const previousSelectSyncs = SELECT_SYNCS;
|
|
8828
|
-
const previousSelectDefaultSyncs = SELECT_DEFAULT_SYNCS;
|
|
8829
|
-
const previousFormChecks = DEV_FORM_CHECKS;
|
|
8830
|
-
const previousAutofocus = AUTOFOCUS_QUEUE;
|
|
8831
|
-
const diagnosticDriver = NATIVE_READ_DRIVER;
|
|
8832
|
-
const nativeProbeToken = diagnosticDriver?.pauseLifecycle() ?? -1;
|
|
8833
|
-
const previousWriteGuard = beginNativeWriteGuard();
|
|
8834
|
-
const previousNative = setNativeAdoptionResolver(diagnosticNative?.resolve ?? null);
|
|
8835
|
-
const refDetachCheckpoint = refDetachQueue.length;
|
|
8836
|
-
currentHydration = hydration;
|
|
8837
|
-
WIP_CAPTURE = capture;
|
|
8838
|
-
hydrateAttributeProbe = probe;
|
|
8839
|
-
ROOT_RENDER_TRANSACTION = null;
|
|
8840
|
-
TRANSITION_JOURNAL = null;
|
|
8841
|
-
ACTIVE_TRANSITION_ATTEMPT = null;
|
|
8842
|
-
SCOPED_READ_TRACKING = false;
|
|
8843
|
-
SCOPED_READS = null;
|
|
8844
|
-
CURRENT_WARM = null;
|
|
8845
|
-
CURRENT_WARM_CLAIMS = null;
|
|
8846
|
-
CURRENT_WARM_EPISODE = 0;
|
|
8847
|
-
STAGED_DOM = null;
|
|
8848
|
-
STAGED_COMMIT_CAPTURE = null;
|
|
8849
|
-
PRESENTATION_HYDRATION = null;
|
|
8850
|
-
SELECT_SYNCS = [];
|
|
8851
|
-
SELECT_DEFAULT_SYNCS = [];
|
|
8852
|
-
DEV_FORM_CHECKS = [];
|
|
8853
|
-
AUTOFOCUS_QUEUE = [];
|
|
8854
|
-
try {
|
|
8855
|
-
renderBlock(block);
|
|
8856
|
-
drainHydrationRenderPhaseUpdates(block);
|
|
8857
|
-
hydration.flushClassWrites();
|
|
8858
|
-
} catch {
|
|
8859
|
-
} finally {
|
|
8860
|
-
try {
|
|
8861
|
-
disposeWip({ block, start, end, capture, domParent: wrapper, refDetachCheckpoint });
|
|
8862
|
-
drainHydrationRenderPhaseUpdates(block);
|
|
8863
|
-
} finally {
|
|
8864
|
-
try {
|
|
8865
|
-
diagnosticNative?.release();
|
|
8866
|
-
} finally {
|
|
8867
|
-
try {
|
|
8868
|
-
setNativeAdoptionResolver(previousNative);
|
|
8869
|
-
endNativeWriteGuard(previousWriteGuard);
|
|
8870
|
-
if (nativeProbeToken >= 0) diagnosticDriver.resumeLifecycle(nativeProbeToken);
|
|
8871
|
-
} finally {
|
|
8872
|
-
currentHydration = previousHydration;
|
|
8873
|
-
WIP_CAPTURE = previousCapture;
|
|
8874
|
-
hydrateAttributeProbe = previousProbe;
|
|
8875
|
-
ROOT_RENDER_TRANSACTION = previousTransaction;
|
|
8876
|
-
TRANSITION_JOURNAL = previousJournal;
|
|
8877
|
-
ACTIVE_TRANSITION_ATTEMPT = previousAttempt;
|
|
8878
|
-
SCOPED_READ_TRACKING = previousScopedReadTracking;
|
|
8879
|
-
SCOPED_READS = previousScopedReads;
|
|
8880
|
-
CURRENT_WARM = previousWarm;
|
|
8881
|
-
CURRENT_WARM_CLAIMS = previousWarmClaims;
|
|
8882
|
-
CURRENT_WARM_EPISODE = previousWarmEpisode;
|
|
8883
|
-
ACTIVE_WARM_PLANS.length = 0;
|
|
8884
|
-
ACTIVE_WARM_PLANS.push(...previousWarmPlans);
|
|
8885
|
-
STAGED_DOM = previousStagedDom;
|
|
8886
|
-
STAGED_COMMIT_CAPTURE = previousStagedCapture;
|
|
8887
|
-
PRESENTATION_HYDRATION = previousPresentation;
|
|
8888
|
-
SELECT_SYNCS = previousSelectSyncs;
|
|
8889
|
-
SELECT_DEFAULT_SYNCS = previousSelectDefaultSyncs;
|
|
8890
|
-
DEV_FORM_CHECKS = previousFormChecks;
|
|
8891
|
-
AUTOFOCUS_QUEUE = previousAutofocus;
|
|
8892
|
-
}
|
|
8893
|
-
}
|
|
8894
|
-
}
|
|
8895
|
-
}
|
|
8896
|
-
return probe;
|
|
8776
|
+
);
|
|
8897
8777
|
}
|
|
8898
8778
|
function releasePreservedHydrateActivation(state) {
|
|
8899
8779
|
if (preservedHydrateActivations?.delete(state)) preservedHydrateActivationCount--;
|
|
@@ -9077,7 +8957,7 @@ function createHydrateBoundaryBody(state, renderChild, pendingBody) {
|
|
|
9077
8957
|
}
|
|
9078
8958
|
function failHydrateBoundary(state, error) {
|
|
9079
8959
|
if (state.hasError || state.block.disposed) return;
|
|
9080
|
-
|
|
8960
|
+
state.initialCaptures = null;
|
|
9081
8961
|
cleanupHydrateStreamWait(state);
|
|
9082
8962
|
state.hasError = true;
|
|
9083
8963
|
state.error = error;
|
|
@@ -9195,7 +9075,7 @@ function teardownHydrateBoundary(state) {
|
|
|
9195
9075
|
}
|
|
9196
9076
|
if (DEFERRED_LAYOUT_DRIVER?.stageAction(() => teardownHydrateBoundary(state), true) === true)
|
|
9197
9077
|
return;
|
|
9198
|
-
|
|
9078
|
+
state.initialCaptures = null;
|
|
9199
9079
|
cleanupHydrateInstallers(state);
|
|
9200
9080
|
cleanupHydrateStreamWait(state);
|
|
9201
9081
|
if (preserved !== void 0) {
|
|
@@ -9573,25 +9453,22 @@ function createHydrateSlot(props, scope, boundaryId, boundaryBody) {
|
|
|
9573
9453
|
hasError: false,
|
|
9574
9454
|
error: void 0,
|
|
9575
9455
|
replays: [],
|
|
9576
|
-
independent: props.__independent !== void 0
|
|
9456
|
+
independent: props.__independent !== void 0,
|
|
9457
|
+
initialCaptures: null
|
|
9577
9458
|
};
|
|
9578
9459
|
if (nativeSeedRaw !== null) state.nativeSeedRaw = nativeSeedRaw;
|
|
9579
|
-
if (
|
|
9580
|
-
|
|
9581
|
-
const inherited = hydration?.attributeBaselines?.boundaries.get(wrapper);
|
|
9582
|
-
const snapshot = inherited ?? {
|
|
9460
|
+
if (serverPreserved && !state.independent) {
|
|
9461
|
+
state.initialCaptures = {
|
|
9583
9462
|
props,
|
|
9584
|
-
|
|
9585
|
-
|
|
9463
|
+
contexts: collectHydrateContexts(scope),
|
|
9464
|
+
contextEpoch: contextEpochNow(),
|
|
9465
|
+
stale: hydration.staleServerValues
|
|
9586
9466
|
};
|
|
9587
|
-
(initialHydrateAttributes ??= /* @__PURE__ */ new WeakMap()).set(state, snapshot);
|
|
9588
|
-
if (original !== void 0) hydrateAttributeProbe.boundaries.set(original, snapshot);
|
|
9589
9467
|
}
|
|
9590
9468
|
scope.slots[0] = state;
|
|
9591
9469
|
registerSlot(scope, state);
|
|
9592
9470
|
if (!state.independent) registerHydrationIntentBoundary(wrapper, intentBoundary);
|
|
9593
9471
|
block.body = boundaryBody(state);
|
|
9594
|
-
if (process.env.NODE_ENV !== "production" && hydrateAttributeProbe !== null) return state;
|
|
9595
9472
|
const initialStrategy = resolveHydrateStrategy(state);
|
|
9596
9473
|
const pendingIntents = state.independent ? void 0 : takePendingHydrationIntents(wrapper);
|
|
9597
9474
|
if (state.independent) {
|
|
@@ -9618,9 +9495,9 @@ function activateHydrateBoundary(state) {
|
|
|
9618
9495
|
return;
|
|
9619
9496
|
}
|
|
9620
9497
|
const hydration = preserved?.hydration ?? new HydrationCapability(block, getNextSibling(state.start), null);
|
|
9498
|
+
if (!hydration.staleServerValues && hydrateServerValuesStale(state))
|
|
9499
|
+
hydration.staleServerValues = true;
|
|
9621
9500
|
if (preserved === void 0) {
|
|
9622
|
-
if (process.env.NODE_ENV !== "production")
|
|
9623
|
-
hydration.attributeBaselines = probeInitialHydrateAttributes(state);
|
|
9624
9501
|
if (state.seedRaw !== null) hydration.seeds = hydration.parseSeeds(state.seedRaw);
|
|
9625
9502
|
hydration.protectRootAnchor(state.end);
|
|
9626
9503
|
}
|
|
@@ -9695,7 +9572,7 @@ function activateHydrateBoundary(state) {
|
|
|
9695
9572
|
if (nativeRecovery !== void 0) {
|
|
9696
9573
|
noteRecoverableHydrationError(() => nativeRecovery, block);
|
|
9697
9574
|
state.serverPreserved = false;
|
|
9698
|
-
|
|
9575
|
+
state.initialCaptures = null;
|
|
9699
9576
|
state.serverActivationStarted = false;
|
|
9700
9577
|
state.seedRaw = null;
|
|
9701
9578
|
state.nativeSeedRaw = void 0;
|
|
@@ -9726,7 +9603,7 @@ function activateHydrateBoundary(state) {
|
|
|
9726
9603
|
return;
|
|
9727
9604
|
}
|
|
9728
9605
|
if (completed) {
|
|
9729
|
-
|
|
9606
|
+
state.initialCaptures = null;
|
|
9730
9607
|
releasePreservedHydrateActivation(state);
|
|
9731
9608
|
spliceOffscreenCapture(capture);
|
|
9732
9609
|
}
|
|
@@ -9836,7 +9713,7 @@ function notifyHydrateBoundary(state, scope) {
|
|
|
9836
9713
|
return;
|
|
9837
9714
|
}
|
|
9838
9715
|
state.didNotify = true;
|
|
9839
|
-
|
|
9716
|
+
state.initialCaptures = null;
|
|
9840
9717
|
cleanupHydrateInstallers(state);
|
|
9841
9718
|
state.props.onHydrated?.();
|
|
9842
9719
|
domNode(state.wrapper).removeAttribute(HYDRATE_WHEN_ATTR);
|
|
@@ -11341,6 +11218,8 @@ class HydrationCapability {
|
|
|
11341
11218
|
rootBlock;
|
|
11342
11219
|
node;
|
|
11343
11220
|
seeds;
|
|
11221
|
+
/** Parent captures changed before this dormant boundary activated. */
|
|
11222
|
+
staleServerValues = false;
|
|
11344
11223
|
depth = 0;
|
|
11345
11224
|
seedCursor = 0;
|
|
11346
11225
|
hasAdjacentRangePair = false;
|
|
@@ -11411,6 +11290,7 @@ class HydrationCapability {
|
|
|
11411
11290
|
warnHydrationStructuralMismatch(loc, expected, actual);
|
|
11412
11291
|
}
|
|
11413
11292
|
recordTextMismatch(node, loc, server) {
|
|
11293
|
+
if (this.staleServerValues) return;
|
|
11414
11294
|
if (process.env.NODE_ENV === "production" && ROOT_ERROR_HANDLERS === null) return;
|
|
11415
11295
|
if (!this.textWarnings.has(node)) this.textWarnings.set(node, { loc, server });
|
|
11416
11296
|
}
|
|
@@ -11634,6 +11514,9 @@ class HydrationCapability {
|
|
|
11634
11514
|
describeHydrationNode(cursor)
|
|
11635
11515
|
);
|
|
11636
11516
|
if (isBlockClose(cursor)) return this.freshClone(template2);
|
|
11517
|
+
const target = CURRENT_BLOCK?.parentNode;
|
|
11518
|
+
if (!claimsRoot && target != null && (STAGED_DOM?.view(cursor) ?? cursor).parentNode !== target)
|
|
11519
|
+
return this.freshClone(template2);
|
|
11637
11520
|
if (isBlockOpen(cursor)) {
|
|
11638
11521
|
const close = this.close(cursor);
|
|
11639
11522
|
this.node = getNextSibling(close);
|
|
@@ -11715,6 +11598,11 @@ class HydrationCapability {
|
|
|
11715
11598
|
return created;
|
|
11716
11599
|
}
|
|
11717
11600
|
htextSwap(posNode, text) {
|
|
11601
|
+
if (isEmptyTextSlot(posNode)) {
|
|
11602
|
+
const empty = (STAGED_DOM?.view(document) ?? document).createTextNode("");
|
|
11603
|
+
domNode((STAGED_DOM?.view(posNode) ?? posNode).parentNode).replaceChild(empty, posNode);
|
|
11604
|
+
posNode = empty;
|
|
11605
|
+
}
|
|
11718
11606
|
if (posNode !== null && posNode.nodeType === 3) {
|
|
11719
11607
|
const server = (STAGED_DOM?.view(posNode) ?? posNode).nodeValue;
|
|
11720
11608
|
if (server !== text && !isTextParserNormalizedMatch(server, text)) {
|
|
@@ -11756,7 +11644,8 @@ class HydrationCapability {
|
|
|
11756
11644
|
cursor = getNextSibling(cursor);
|
|
11757
11645
|
if (isTextSeparator(cursor)) {
|
|
11758
11646
|
const after = getNextSibling(cursor);
|
|
11759
|
-
if (after !== null && (after.nodeType === 3 || isTextSeparator(after)
|
|
11647
|
+
if (after !== null && (after.nodeType === 3 || isTextSeparator(after) || isEmptyTextSlot(after)))
|
|
11648
|
+
cursor = after;
|
|
11760
11649
|
}
|
|
11761
11650
|
}
|
|
11762
11651
|
return cursor;
|
|
@@ -11767,20 +11656,13 @@ class HydrationCapability {
|
|
|
11767
11656
|
ns,
|
|
11768
11657
|
name.indexOf(":") >= 0 ? name.slice(name.indexOf(":") + 1) : name
|
|
11769
11658
|
) : (STAGED_DOM?.view(el) ?? el).getAttribute(name);
|
|
11770
|
-
if (process.env.NODE_ENV !== "production") {
|
|
11771
|
-
if (hydrateAttributeProbe !== null) {
|
|
11772
|
-
recordInitialHydrateAttribute(el, name, server, next);
|
|
11773
|
-
} else {
|
|
11774
|
-
checkInitialHydrateAttribute(this, el, name, server);
|
|
11775
|
-
}
|
|
11776
|
-
}
|
|
11777
11659
|
if (server === next) return false;
|
|
11778
11660
|
if (domBindingClaims.get(el)?.get(name) === server) return false;
|
|
11779
11661
|
if (next !== null && isAttributeParserNormalizedMatch(server, next)) return false;
|
|
11780
11662
|
const mode = hydrationMismatchMode(el);
|
|
11781
11663
|
if (mode === 0) return true;
|
|
11782
11664
|
if (mode === 1) return false;
|
|
11783
|
-
if (process.env.NODE_ENV !== "production" && !
|
|
11665
|
+
if (process.env.NODE_ENV !== "production" && !this.staleServerValues)
|
|
11784
11666
|
warnHydrationValueMismatch(el.__oct_loc, `attribute \`${name}\``, server, next);
|
|
11785
11667
|
return true;
|
|
11786
11668
|
}
|
|
@@ -11788,15 +11670,11 @@ class HydrationCapability {
|
|
|
11788
11670
|
const mode = hydrationMismatchMode(el);
|
|
11789
11671
|
const rawServer = (STAGED_DOM?.view(el) ?? el).getAttribute("class");
|
|
11790
11672
|
const server = absentIsEmpty && rawServer === null ? "" : rawServer;
|
|
11791
|
-
if (process.env.NODE_ENV !== "production") {
|
|
11792
|
-
if (hydrateAttributeProbe !== null) recordInitialHydrateAttribute(el, "class", server, next);
|
|
11793
|
-
else checkInitialHydrateAttribute(this, el, "class", rawServer);
|
|
11794
|
-
}
|
|
11795
11673
|
if (server === next) return true;
|
|
11796
11674
|
if (domBindingClaims.get(el)?.get("class") === rawServer) return false;
|
|
11797
11675
|
if (mode === 0) return true;
|
|
11798
11676
|
if (mode === 1) return false;
|
|
11799
|
-
if (process.env.NODE_ENV !== "production" && !
|
|
11677
|
+
if (process.env.NODE_ENV !== "production" && !this.staleServerValues)
|
|
11800
11678
|
warnHydrationValueMismatch(el.__oct_loc, "attribute `class`", server, next);
|
|
11801
11679
|
return true;
|
|
11802
11680
|
}
|
|
@@ -11807,11 +11685,7 @@ class HydrationCapability {
|
|
|
11807
11685
|
try {
|
|
11808
11686
|
for (const [el, write] of this.classWrites) {
|
|
11809
11687
|
const rawTarget = write.remove ? null : write.next;
|
|
11810
|
-
if ((STAGED_DOM?.view(el) ?? el).getAttribute("class") === rawTarget)
|
|
11811
|
-
if (process.env.NODE_ENV !== "production")
|
|
11812
|
-
this.allowClass(el, write.next, write.absentIsEmpty);
|
|
11813
|
-
continue;
|
|
11814
|
-
}
|
|
11688
|
+
if ((STAGED_DOM?.view(el) ?? el).getAttribute("class") === rawTarget) continue;
|
|
11815
11689
|
if (!this.allowClass(el, write.next, write.absentIsEmpty)) continue;
|
|
11816
11690
|
if (write.remove) (STAGED_DOM?.view(el) ?? el).removeAttribute("class");
|
|
11817
11691
|
else if (write.useAttribute)
|
|
@@ -11824,21 +11698,7 @@ class HydrationCapability {
|
|
|
11824
11698
|
}
|
|
11825
11699
|
applyStyle(el, value, _prev, staticCss, entries) {
|
|
11826
11700
|
const mode = hydrationMismatchMode(el);
|
|
11827
|
-
if (mode === 1)
|
|
11828
|
-
if (process.env.NODE_ENV !== "production") {
|
|
11829
|
-
if (hydrateAttributeProbe !== null) recordInitialHydrateAttribute(el, "style", null, null);
|
|
11830
|
-
else {
|
|
11831
|
-
const current = STAGED_DOM?.view(el) ?? el;
|
|
11832
|
-
checkInitialHydrateAttribute(
|
|
11833
|
-
this,
|
|
11834
|
-
el,
|
|
11835
|
-
"style",
|
|
11836
|
-
current.hasAttribute("style") ? current.style.cssText : null
|
|
11837
|
-
);
|
|
11838
|
-
}
|
|
11839
|
-
}
|
|
11840
|
-
return true;
|
|
11841
|
-
}
|
|
11701
|
+
if (mode === 1) return true;
|
|
11842
11702
|
const style = (STAGED_DOM?.view(el) ?? el).style;
|
|
11843
11703
|
const hadStyleAttribute = (STAGED_DOM?.view(el) ?? el).hasAttribute("style");
|
|
11844
11704
|
const before = style.cssText;
|
|
@@ -11854,11 +11714,7 @@ class HydrationCapability {
|
|
|
11854
11714
|
applyStyleProperty(el, expectedStyle, entries[i], entry);
|
|
11855
11715
|
}
|
|
11856
11716
|
}
|
|
11857
|
-
|
|
11858
|
-
if (process.env.NODE_ENV !== "production" && hydrateAttributeProbe !== null) {
|
|
11859
|
-
const original = hydrateAttributeProbe.originals.get(el);
|
|
11860
|
-
if (original !== void 0) claims = domBindingClaims.get(original);
|
|
11861
|
-
}
|
|
11717
|
+
const claims = domBindingClaims.get(el);
|
|
11862
11718
|
if (claims !== void 0) {
|
|
11863
11719
|
for (const [channel, published] of claims) {
|
|
11864
11720
|
if (!channel.startsWith("style:")) continue;
|
|
@@ -11872,20 +11728,10 @@ class HydrationCapability {
|
|
|
11872
11728
|
}
|
|
11873
11729
|
const expected = expectedStyle.cssText;
|
|
11874
11730
|
const expectsStyleAttribute = expected !== "";
|
|
11875
|
-
if (process.env.NODE_ENV !== "production") {
|
|
11876
|
-
if (hydrateAttributeProbe !== null)
|
|
11877
|
-
recordInitialHydrateAttribute(
|
|
11878
|
-
el,
|
|
11879
|
-
"style",
|
|
11880
|
-
hadStyleAttribute ? before : null,
|
|
11881
|
-
expectsStyleAttribute ? expected : null
|
|
11882
|
-
);
|
|
11883
|
-
else checkInitialHydrateAttribute(this, el, "style", hadStyleAttribute ? before : null);
|
|
11884
|
-
}
|
|
11885
11731
|
if (before === expected && hadStyleAttribute === expectsStyleAttribute) return true;
|
|
11886
11732
|
if (expectsStyleAttribute) style.cssText = expected;
|
|
11887
11733
|
else (STAGED_DOM?.view(el) ?? el).removeAttribute("style");
|
|
11888
|
-
if (mode === 2 && process.env.NODE_ENV !== "production" && !
|
|
11734
|
+
if (mode === 2 && process.env.NODE_ENV !== "production" && !this.staleServerValues) {
|
|
11889
11735
|
warnHydrationValueMismatch(el.__oct_loc, "style", before, expected);
|
|
11890
11736
|
}
|
|
11891
11737
|
return true;
|
|
@@ -12399,7 +12245,7 @@ function endPresentationHydration(frame, completed = true) {
|
|
|
12399
12245
|
}
|
|
12400
12246
|
function preparedPresentationAttribute(el, name, value, kind) {
|
|
12401
12247
|
if (kind === "class") return value == null || value === false ? null : normalizeClass(value);
|
|
12402
|
-
if (kind === "booleanAttr")
|
|
12248
|
+
if (kind === "booleanAttr" || kind === setBooleanAttribute)
|
|
12403
12249
|
return !!value && typeof value !== "function" && typeof value !== "symbol";
|
|
12404
12250
|
const result = coerceAttrValue(el, name, value);
|
|
12405
12251
|
return result === "" && BOOLEAN_ATTR_PROPS.has(name.toLowerCase()) ? true : result;
|
|
@@ -12409,7 +12255,7 @@ function preparePresentationSignalBinding(args, frame, text = false) {
|
|
|
12409
12255
|
const name = text ? void 0 : args[3];
|
|
12410
12256
|
const value = args[text ? 3 : 4];
|
|
12411
12257
|
const site = args[text ? 4 : 5];
|
|
12412
|
-
const attributeKind = text ? void 0 : args[6]
|
|
12258
|
+
const attributeKind = text ? void 0 : args[6];
|
|
12413
12259
|
const policy = text ? args[5] ? DIRECT_SIGNAL_TEXT_ONLY_POLICY : DIRECT_SIGNAL_TEXT_POLICY : DIRECT_SIGNAL_ATTRIBUTE_POLICY;
|
|
12414
12260
|
return runWithBlockSignalOwner(scope, () => {
|
|
12415
12261
|
const handle = isSignalHandle(value) ? value : null;
|
|
@@ -12774,6 +12620,9 @@ function isBlockClose(node) {
|
|
|
12774
12620
|
function isTextSeparator(node) {
|
|
12775
12621
|
return node !== null && node.nodeType === 8 && (STAGED_DOM?.view(node) ?? node).data === HYDRATION_TEXT_SEP;
|
|
12776
12622
|
}
|
|
12623
|
+
function isEmptyTextSlot(node) {
|
|
12624
|
+
return node !== null && node.nodeType === 8 && (STAGED_DOM?.view(node) ?? node).data === "";
|
|
12625
|
+
}
|
|
12777
12626
|
function findMatchingClose(open, matches) {
|
|
12778
12627
|
let nested = null;
|
|
12779
12628
|
let node = getNextSibling(open);
|
|
@@ -12969,23 +12818,10 @@ function writeDirectSignalText(target, value, kind, previous) {
|
|
|
12969
12818
|
}
|
|
12970
12819
|
function writeDirectSignalAttribute(target, value, _kind, _previous, name, attributeKind) {
|
|
12971
12820
|
const element = target;
|
|
12972
|
-
|
|
12973
|
-
|
|
12974
|
-
|
|
12975
|
-
|
|
12976
|
-
break;
|
|
12977
|
-
case "booleanAttr":
|
|
12978
|
-
setBooleanAttribute(element, name, value);
|
|
12979
|
-
break;
|
|
12980
|
-
case "ariaAttr":
|
|
12981
|
-
setAriaAttribute(element, name, value);
|
|
12982
|
-
break;
|
|
12983
|
-
case "stringData":
|
|
12984
|
-
setStringData(element, name, value);
|
|
12985
|
-
break;
|
|
12986
|
-
default:
|
|
12987
|
-
setAttribute(element, name, value);
|
|
12988
|
-
}
|
|
12821
|
+
if (attributeKind === "class") {
|
|
12822
|
+
if (element.namespaceURI === HTML_NS) setClassName(element, value);
|
|
12823
|
+
else setClassAttr(element, value);
|
|
12824
|
+
} else attributeKind(element, name, value);
|
|
12989
12825
|
return value;
|
|
12990
12826
|
}
|
|
12991
12827
|
function writeDirectSignalValue(target, value, _kind, _previous, _name, _attributeKind) {
|
|
@@ -13023,6 +12859,7 @@ const DIRECT_SIGNAL_CONTROL_POLICY = {
|
|
|
13023
12859
|
if (snapshot !== null) validateDirectSignalControl(target, site);
|
|
13024
12860
|
return snapshot;
|
|
13025
12861
|
},
|
|
12862
|
+
restored: (target, value) => isRestoredHydrationTextarea(target, value),
|
|
13026
12863
|
activate(binding, revision) {
|
|
13027
12864
|
installDirectSignalControl(binding);
|
|
13028
12865
|
if (!binding.pendingControl) consumeHydrationControl(binding.target, revision);
|
|
@@ -13131,7 +12968,9 @@ function createDirectSignalBinding(scope, target, value, site, policy, name, att
|
|
|
13131
12968
|
if (text !== void 0) binding.text = text;
|
|
13132
12969
|
const controlSnapshot = policy.control?.snapshot(target, site) ?? null;
|
|
13133
12970
|
const initial = handle === null ? value : readSignalBinding(handle);
|
|
13134
|
-
binding.pendingControl = activeHydration() !== null && isWritableSignal(handle) && controlSnapshot !== null &&
|
|
12971
|
+
binding.pendingControl = activeHydration() !== null && isWritableSignal(handle) && controlSnapshot !== null && // Only control policies snapshot, so text/attribute bindings never retain
|
|
12972
|
+
// the restored-textarea adoption graph.
|
|
12973
|
+
(controlSnapshot.editRevision > 0 || policy.control.restored(target, initial));
|
|
13135
12974
|
if (binding.pendingControl) binding.value = initial;
|
|
13136
12975
|
if (!binding.pendingControl) writeDirectSignalBinding(binding, initial);
|
|
13137
12976
|
if (STAGED_COMMIT_CAPTURE !== null) {
|
|
@@ -13151,14 +12990,14 @@ function bindDirectSignal(scope, previous, target, value, site, policy, name, at
|
|
|
13151
12990
|
const kind = policy.kind;
|
|
13152
12991
|
const prior = typeof previous === "object" && previous !== null && previous[DIRECT_SIGNAL_BINDING] === true ? previous : null;
|
|
13153
12992
|
const handle = isSignalHandle(value) ? value : null;
|
|
13154
|
-
if (process.env.NODE_ENV !== "production" && hydrateAttributeProbe !== null && handle !== null)
|
|
13155
|
-
throw new PresentationAdoptionMiss(void 0, false);
|
|
13156
12993
|
if (handle !== null && (!signalDocumentEnabled || currentSignalOwner() !== SCOPE_SIGNAL_OWNERS.get(scope))) {
|
|
13157
12994
|
if (!signalDocumentEnabled) enableSignalBindings();
|
|
13158
|
-
|
|
13159
|
-
|
|
13160
|
-
|
|
13161
|
-
|
|
12995
|
+
if (currentSignalOwner() !== scopeSignalOwner(scope)) {
|
|
12996
|
+
return runWithBlockSignalOwner(
|
|
12997
|
+
scope,
|
|
12998
|
+
() => bindDirectSignal(scope, previous, target, value, site, policy, name, attributeKind)
|
|
12999
|
+
);
|
|
13000
|
+
}
|
|
13162
13001
|
}
|
|
13163
13002
|
if (handle === null && prior === null) {
|
|
13164
13003
|
if (kind === "attribute" && previous === value) {
|
|
@@ -13241,7 +13080,7 @@ function bindSignalText(scope, previous, position, value, site, onlyChild = fals
|
|
|
13241
13080
|
onlyChild ? DIRECT_SIGNAL_TEXT_ONLY_POLICY : DIRECT_SIGNAL_TEXT_POLICY
|
|
13242
13081
|
);
|
|
13243
13082
|
}
|
|
13244
|
-
function bindSignalAttribute(scope, previous, element, name, value, site, attributeKind
|
|
13083
|
+
function bindSignalAttribute(scope, previous, element, name, value, site, attributeKind) {
|
|
13245
13084
|
if (previous === value && value !== void 0 && (value === null || typeof value !== "object" && typeof value !== "function"))
|
|
13246
13085
|
return previous;
|
|
13247
13086
|
return bindDirectSignal(
|
|
@@ -13351,7 +13190,15 @@ function setHTML(el, value) {
|
|
|
13351
13190
|
if (hydration !== null && !hydration.isFresh(el)) {
|
|
13352
13191
|
const server = el.localName === "script" ? (STAGED_DOM?.view(el) ?? el).textContent ?? "" : (STAGED_DOM?.view(el) ?? el).innerHTML;
|
|
13353
13192
|
const expected = el.localName === "script" ? normalizeScriptTextForHydration(escapeInlineScriptContentForHydration(next)) : normalizeHTMLForHydration(el, next);
|
|
13354
|
-
if (server === expected
|
|
13193
|
+
if (server === expected) {
|
|
13194
|
+
if (el.localName !== "script") {
|
|
13195
|
+
const host2 = STAGED_DOM?.view(el) ?? el;
|
|
13196
|
+
journalRootProperty(el, DANGER_HTML_VALUE, host2[DANGER_HTML_VALUE]);
|
|
13197
|
+
host2[DANGER_HTML_VALUE] = next;
|
|
13198
|
+
}
|
|
13199
|
+
return;
|
|
13200
|
+
}
|
|
13201
|
+
if (isHydrationSuppressed(el)) return;
|
|
13355
13202
|
warnHydrationKeptServerValue(
|
|
13356
13203
|
el.__oct_loc,
|
|
13357
13204
|
"`dangerouslySetInnerHTML` content",
|
|
@@ -13360,8 +13207,14 @@ function setHTML(el, value) {
|
|
|
13360
13207
|
);
|
|
13361
13208
|
return;
|
|
13362
13209
|
}
|
|
13363
|
-
if (el.localName === "script")
|
|
13364
|
-
|
|
13210
|
+
if (el.localName === "script") {
|
|
13211
|
+
setScriptText(el, next);
|
|
13212
|
+
return;
|
|
13213
|
+
}
|
|
13214
|
+
const host = STAGED_DOM?.view(el) ?? el;
|
|
13215
|
+
if (host[DANGER_HTML_VALUE] === next) return;
|
|
13216
|
+
journalRootProperty(el, DANGER_HTML_VALUE, host[DANGER_HTML_VALUE]);
|
|
13217
|
+
if (ROOT_RENDER_TRANSACTION !== null && !ROOT_RENDER_ROLLBACK) {
|
|
13365
13218
|
journalBag();
|
|
13366
13219
|
journalRootRange(el, null, null);
|
|
13367
13220
|
deferRootRange(el, getFirstChild(el), (STAGED_DOM?.view(el) ?? el).lastChild);
|
|
@@ -13370,7 +13223,9 @@ function setHTML(el, value) {
|
|
|
13370
13223
|
while (getFirstChild(fresh) !== null)
|
|
13371
13224
|
(STAGED_DOM?.view(el) ?? el).appendChild(getFirstChild(fresh));
|
|
13372
13225
|
} else (STAGED_DOM?.view(el) ?? el).innerHTML = next;
|
|
13226
|
+
host[DANGER_HTML_VALUE] = next;
|
|
13373
13227
|
}
|
|
13228
|
+
const DANGER_HTML_VALUE = /* @__PURE__ */ Symbol("octane.dangerHTMLValue");
|
|
13374
13229
|
const DANGER_HTML_ACTIVE = "__oct_dangerHTML";
|
|
13375
13230
|
let DANGER_HTML_EVER_ACTIVE = false;
|
|
13376
13231
|
const DANGER_HTML_STATIC_CHILD = "__oct_dangerChild";
|
|
@@ -13395,7 +13250,14 @@ function setDangerouslySetInnerHTML(el, value) {
|
|
|
13395
13250
|
const wasActive = (STAGED_DOM?.view(el) ?? el)[DANGER_HTML_ACTIVE] === true;
|
|
13396
13251
|
if (value == null) {
|
|
13397
13252
|
(STAGED_DOM?.view(el) ?? el)[DANGER_HTML_ACTIVE] = false;
|
|
13398
|
-
if (wasActive)
|
|
13253
|
+
if (wasActive) {
|
|
13254
|
+
setHTML(el, null);
|
|
13255
|
+
const host = STAGED_DOM?.view(el) ?? el;
|
|
13256
|
+
if (host[DANGER_HTML_VALUE] !== void 0) {
|
|
13257
|
+
journalRootProperty(el, DANGER_HTML_VALUE, host[DANGER_HTML_VALUE]);
|
|
13258
|
+
host[DANGER_HTML_VALUE] = void 0;
|
|
13259
|
+
}
|
|
13260
|
+
}
|
|
13399
13261
|
return;
|
|
13400
13262
|
}
|
|
13401
13263
|
if (value != null && VOID_ELEMENTS.has(el.localName)) {
|
|
@@ -15476,7 +15338,6 @@ function namespaceHeadElement(headKey, tag, attrs, text, authoredKey) {
|
|
|
15476
15338
|
return createElement(namespaceHead, config);
|
|
15477
15339
|
}
|
|
15478
15340
|
function injectStyle(id, css, nonce) {
|
|
15479
|
-
if (process.env.NODE_ENV !== "production" && hydrateAttributeProbe !== null) return;
|
|
15480
15341
|
if (typeof document === "undefined") {
|
|
15481
15342
|
_injectedStyles.add(id);
|
|
15482
15343
|
return;
|
|
@@ -17690,8 +17551,6 @@ function registerValuePortalFragmentOwners(portal2, parentBlock, anchor) {
|
|
|
17690
17551
|
}
|
|
17691
17552
|
}
|
|
17692
17553
|
function renderPortalState(prev, parentBlock, target, rawBody, rawProps, host, env, key = null) {
|
|
17693
|
-
if (process.env.NODE_ENV !== "production" && hydrateAttributeProbe !== null && target.ownerDocument !== hydrateAttributeProbe.document)
|
|
17694
|
-
target = hydrateAttributeProbe.document.createDocumentFragment();
|
|
17695
17554
|
const hydration = activeHydration();
|
|
17696
17555
|
if (hydration !== null) {
|
|
17697
17556
|
return hydration.suspend(
|
|
@@ -20412,7 +20271,8 @@ function renderPreparedChildList(state, parentBlock, domParent, preparedList, hy
|
|
|
20412
20271
|
adopt: null,
|
|
20413
20272
|
plainDeopt: false,
|
|
20414
20273
|
mappedNative: void 0,
|
|
20415
|
-
selectionItems: void 0
|
|
20274
|
+
selectionItems: void 0,
|
|
20275
|
+
signalSite: void 0
|
|
20416
20276
|
};
|
|
20417
20277
|
if (upgradeArmed) {
|
|
20418
20278
|
state.forSlot.adopt = buildDeoptAdoptQueue(upgradeChildren, state.start, state.end);
|
|
@@ -21597,7 +21457,7 @@ function shallowEqualProps(a, b) {
|
|
|
21597
21457
|
let count = 0;
|
|
21598
21458
|
for (const k in a) {
|
|
21599
21459
|
const v = a[k];
|
|
21600
|
-
if (!
|
|
21460
|
+
if (!hasOwnProp.call(b, k) || !Object.is(v, b[k])) return false;
|
|
21601
21461
|
count++;
|
|
21602
21462
|
}
|
|
21603
21463
|
for (const _k in b) count--;
|
|
@@ -21695,8 +21555,7 @@ function hmr(fn) {
|
|
|
21695
21555
|
}
|
|
21696
21556
|
};
|
|
21697
21557
|
function wrapper(props, scope, extra) {
|
|
21698
|
-
if (scope !== void 0
|
|
21699
|
-
meta.liveBlocks.add(scope.block);
|
|
21558
|
+
if (scope !== void 0) meta.liveBlocks.add(scope.block);
|
|
21700
21559
|
return meta.fn(props, scope, extra);
|
|
21701
21560
|
}
|
|
21702
21561
|
Object.defineProperty(wrapper, HMR, {
|
|
@@ -22095,8 +21954,7 @@ function mountPassthroughPending(state, thenable) {
|
|
|
22095
21954
|
setTryBranch(state, -1);
|
|
22096
21955
|
scheduleRender(state.parentBlock);
|
|
22097
21956
|
};
|
|
22098
|
-
|
|
22099
|
-
thenable.then(retry, retry);
|
|
21957
|
+
thenable.then(retry, retry);
|
|
22100
21958
|
}
|
|
22101
21959
|
function renderPassthroughTry(state) {
|
|
22102
21960
|
if (state.branch === 0 && state.block !== null) {
|
|
@@ -22600,10 +22458,10 @@ function takeInitialSuspenseHydration(state, hydration) {
|
|
|
22600
22458
|
if (payload === void 0) {
|
|
22601
22459
|
payload = {
|
|
22602
22460
|
seedRaw: typeof stash?.[boundaryId] === "string" ? stash[boundaryId] : null,
|
|
22603
|
-
nativeRaw:
|
|
22461
|
+
nativeRaw: typeof stash?.[boundaryId + "$signals"] === "string" ? stash[boundaryId + "$signals"] : null
|
|
22604
22462
|
};
|
|
22605
22463
|
(initialStreamedPayloads ??= /* @__PURE__ */ new WeakMap()).set(owner, payload);
|
|
22606
|
-
if (stash !== void 0
|
|
22464
|
+
if (stash !== void 0) {
|
|
22607
22465
|
delete stash[boundaryId];
|
|
22608
22466
|
delete stash[boundaryId + "$signals"];
|
|
22609
22467
|
}
|
|
@@ -22641,8 +22499,7 @@ function takeInitialSuspenseHydration(state, hydration) {
|
|
|
22641
22499
|
continue;
|
|
22642
22500
|
if (attr === SUSPENSE_RESOLVED_SEED_ATTR)
|
|
22643
22501
|
seedRaw = (STAGED_DOM?.view(script) ?? script).textContent;
|
|
22644
|
-
else
|
|
22645
|
-
nativeRaw = (STAGED_DOM?.view(script) ?? script).textContent;
|
|
22502
|
+
else nativeRaw = (STAGED_DOM?.view(script) ?? script).textContent;
|
|
22646
22503
|
sidecars.push(script);
|
|
22647
22504
|
cursor = getNextSibling(script);
|
|
22648
22505
|
}
|
|
@@ -22683,8 +22540,7 @@ function renderInitialSuspenseHydration(state, initial) {
|
|
|
22683
22540
|
hydration.claimRootRemainder(initial.end);
|
|
22684
22541
|
hydration.protectRootAnchor(initial.end);
|
|
22685
22542
|
const previousHydration = currentHydration;
|
|
22686
|
-
if (
|
|
22687
|
-
hydration.attributeBaselines = previousHydration?.attributeBaselines;
|
|
22543
|
+
if (previousHydration?.staleServerValues) hydration.staleServerValues = true;
|
|
22688
22544
|
if (previousHydration?.retryPresentation !== void 0)
|
|
22689
22545
|
hydration.retryPresentation = previousHydration.retryPresentation;
|
|
22690
22546
|
const previousCapture = WIP_CAPTURE;
|
|
@@ -22753,8 +22609,7 @@ function renderInitialSuspenseHydration(state, initial) {
|
|
|
22753
22609
|
return;
|
|
22754
22610
|
scheduleRender(state.parentBlock);
|
|
22755
22611
|
};
|
|
22756
|
-
|
|
22757
|
-
suspended.then(resume, resume);
|
|
22612
|
+
suspended.then(resume, resume);
|
|
22758
22613
|
return;
|
|
22759
22614
|
}
|
|
22760
22615
|
initialSuspenseHydrations?.delete(state);
|
|
@@ -22821,8 +22676,7 @@ function mountTry(state) {
|
|
|
22821
22676
|
const raw = stash !== void 0 ? stash[streamedBoundaryId] : void 0;
|
|
22822
22677
|
if (typeof raw === "string") scopedSeeds = hydration.parseSeeds(raw);
|
|
22823
22678
|
const nativeRaw = stash?.[streamedBoundaryId + "$signals"];
|
|
22824
|
-
if (typeof nativeRaw === "string"
|
|
22825
|
-
scopedNativeRaw = nativeRaw;
|
|
22679
|
+
if (typeof nativeRaw === "string") scopedNativeRaw = nativeRaw;
|
|
22826
22680
|
adoptCursor = getNextSibling(adoptCursor);
|
|
22827
22681
|
} else if (
|
|
22828
22682
|
// A shell hydrated before its streamed segment swaps still has the
|
|
@@ -23784,7 +23638,6 @@ function flushStagedReveals() {
|
|
|
23784
23638
|
}
|
|
23785
23639
|
}
|
|
23786
23640
|
function attachResume(state, thenable) {
|
|
23787
|
-
if (process.env.NODE_ENV !== "production" && hydrateAttributeProbe !== null) return;
|
|
23788
23641
|
if (state.pendingThenable === thenable) return;
|
|
23789
23642
|
state.pendingThenable = thenable;
|
|
23790
23643
|
const retry = () => {
|
|
@@ -25132,7 +24985,6 @@ function queueCurrentActivityRefs(activity) {
|
|
|
25132
24985
|
}
|
|
25133
24986
|
}
|
|
25134
24987
|
function suspendHiddenActivity(state, thenable) {
|
|
25135
|
-
if (process.env.NODE_ENV !== "production" && hydrateAttributeProbe !== null) return;
|
|
25136
24988
|
if (state.pendingThenable === thenable) return;
|
|
25137
24989
|
state.pendingThenable = thenable;
|
|
25138
24990
|
const block = state.block;
|
|
@@ -25527,7 +25379,7 @@ function switchBlock(parentScope, slotKey, domParent, discriminant, cases, defau
|
|
|
25527
25379
|
}
|
|
25528
25380
|
renderBranchSlot(parentScope, slotKey, state, domParent, nextIdx, body, "switch", env);
|
|
25529
25381
|
}
|
|
25530
|
-
function forBlock(parentScope, slotKey, domParent, inputItems, getKey, itemBody, flags, deps, emptyBody, anchor, ownEnd) {
|
|
25382
|
+
function forBlock(parentScope, slotKey, domParent, inputItems, getKey, itemBody, flags, deps, emptyBody, anchor, ownEnd, signalSite) {
|
|
25531
25383
|
if (CURRENT_BLOCK?.pending && !CURRENT_BLOCK.crossRenderUpdate) return;
|
|
25532
25384
|
const items = Array.isArray(inputItems) ? inputItems : Array.from(inputItems);
|
|
25533
25385
|
const parentBlock = parentScope.block;
|
|
@@ -25573,7 +25425,8 @@ function forBlock(parentScope, slotKey, domParent, inputItems, getKey, itemBody,
|
|
|
25573
25425
|
// one hidden class and the stamp in childSlot transitions nothing.
|
|
25574
25426
|
plainDeopt: false,
|
|
25575
25427
|
mappedNative: void 0,
|
|
25576
|
-
selectionItems: void 0
|
|
25428
|
+
selectionItems: void 0,
|
|
25429
|
+
signalSite
|
|
25577
25430
|
};
|
|
25578
25431
|
parentScope.slots[slotKey] = state;
|
|
25579
25432
|
registerSlot(parentScope, state);
|
|
@@ -25689,7 +25542,7 @@ function forBlock(parentScope, slotKey, domParent, inputItems, getKey, itemBody,
|
|
|
25689
25542
|
}
|
|
25690
25543
|
if (hydration !== null) hydration.node = getNextSibling(state.end);
|
|
25691
25544
|
}
|
|
25692
|
-
function keyedForBlock(parentScope, slotKey, domParent, items, getKey, itemBody, flags, deps, emptyBody, anchor, ownEnd, selectionBody) {
|
|
25545
|
+
function keyedForBlock(parentScope, slotKey, domParent, items, getKey, itemBody, flags, deps, emptyBody, anchor, ownEnd, selectionBody, signalSite) {
|
|
25693
25546
|
if (CURRENT_BLOCK?.pending && !CURRENT_BLOCK.crossRenderUpdate) return;
|
|
25694
25547
|
const state = parentScope.slots[slotKey];
|
|
25695
25548
|
if (TRANSITION_JOURNAL !== null && ROOT_RENDER_TRANSACTION === null) {
|
|
@@ -25720,7 +25573,8 @@ function keyedForBlock(parentScope, slotKey, domParent, items, getKey, itemBody,
|
|
|
25720
25573
|
deps,
|
|
25721
25574
|
emptyBody,
|
|
25722
25575
|
anchor,
|
|
25723
|
-
ownEnd
|
|
25576
|
+
ownEnd,
|
|
25577
|
+
signalSite
|
|
25724
25578
|
);
|
|
25725
25579
|
if (TRANSITION_JOURNAL === null || ROOT_RENDER_TRANSACTION !== null) {
|
|
25726
25580
|
const rendered = parentScope.slots[slotKey];
|
|
@@ -27104,7 +26958,7 @@ function coalesceHydratedRanges(rootBlock, liteRanges) {
|
|
|
27104
26958
|
mergeExactRanges(outer, inner);
|
|
27105
26959
|
}
|
|
27106
26960
|
}
|
|
27107
|
-
function visitSlot(state) {
|
|
26961
|
+
function visitSlot(state, scope) {
|
|
27108
26962
|
const kind = state.__kind;
|
|
27109
26963
|
if (kind === "componentSlotSlot") {
|
|
27110
26964
|
if (state.block !== null) visitBlock(state.block, state);
|
|
@@ -27113,6 +26967,11 @@ function coalesceHydratedRanges(rootBlock, liteRanges) {
|
|
|
27113
26967
|
if (kind === "childSlot") {
|
|
27114
26968
|
const child2 = state;
|
|
27115
26969
|
if (child2.block !== null) visitBlock(child2.block, child2);
|
|
26970
|
+
else if (child2.borrowed) {
|
|
26971
|
+
const own = blockGroups.get(scope.block);
|
|
26972
|
+
if (own !== void 0 && child2.start === own.start && child2.end === own.end)
|
|
26973
|
+
attachOwner(own, child2);
|
|
26974
|
+
}
|
|
27116
26975
|
if (child2.forSlot !== null) visitForSlot(child2.forSlot);
|
|
27117
26976
|
if (child2.portal?.block != null) visitBlock(child2.portal.block);
|
|
27118
26977
|
return;
|
|
@@ -27144,7 +27003,7 @@ function coalesceHydratedRanges(rootBlock, liteRanges) {
|
|
|
27144
27003
|
for (let i = 0; i < children.length; i++) visitNestedScope(children[i].scope);
|
|
27145
27004
|
const registered = scope._slots;
|
|
27146
27005
|
if (registered === null) return;
|
|
27147
|
-
for (let i = 0; i < registered.length; i++) visitSlot(registered[i]);
|
|
27006
|
+
for (let i = 0; i < registered.length; i++) visitSlot(registered[i], scope);
|
|
27148
27007
|
}
|
|
27149
27008
|
visitBlock(rootBlock);
|
|
27150
27009
|
for (let i = 0; i < groups.length; i++) {
|
|
@@ -27739,6 +27598,7 @@ function makeRoot(container, rootBlock, currentBody, currentKey, idState, output
|
|
|
27739
27598
|
currentKey = null;
|
|
27740
27599
|
}
|
|
27741
27600
|
} finally {
|
|
27601
|
+
idState.signalState?.opaqueKeys?.clear();
|
|
27742
27602
|
NATIVE_READ_DRIVER?.clearDeferredRefs(renderOwner);
|
|
27743
27603
|
renderOwner.current = null;
|
|
27744
27604
|
renderOwner.retry = noop;
|
|
@@ -27791,6 +27651,10 @@ function createRoot(container, options) {
|
|
|
27791
27651
|
function __createVoidRoot(container, options) {
|
|
27792
27652
|
return createRootWithOutputHandler(container, options, null);
|
|
27793
27653
|
}
|
|
27654
|
+
function __voidRootProps(type, props) {
|
|
27655
|
+
applyElementDefaultProps(type, props);
|
|
27656
|
+
return props;
|
|
27657
|
+
}
|
|
27794
27658
|
function hydrateRoot(container, bodyOrElement, propsOrOptions, rootOptions) {
|
|
27795
27659
|
return hydrateRootWithOutputHandler(
|
|
27796
27660
|
container,
|
|
@@ -28090,6 +27954,7 @@ function createIndependentHydrateActivator(body) {
|
|
|
28090
27954
|
if (notify !== null) useEffect(notify, [scope], HYDRATE_NOTIFY_SLOT);
|
|
28091
27955
|
};
|
|
28092
27956
|
const framed = (_props, scope) => {
|
|
27957
|
+
stampSignalInstanceKey(scope, rootSignalInstanceKey(scope.block.idState));
|
|
28093
27958
|
tryBlock(scope, 0, scope.block.parentNode, content, null, null, scope.block.endMarker);
|
|
28094
27959
|
};
|
|
28095
27960
|
const adapter = (_props, scope) => {
|
|
@@ -28185,7 +28050,6 @@ function applyHintAttrs(el, opts) {
|
|
|
28185
28050
|
}
|
|
28186
28051
|
}
|
|
28187
28052
|
function preload(href, options) {
|
|
28188
|
-
if (process.env.NODE_ENV !== "production" && hydrateAttributeProbe !== null) return;
|
|
28189
28053
|
if (process.env.NODE_ENV !== "production") {
|
|
28190
28054
|
const warning = resourceHintWarning("preload", href, options);
|
|
28191
28055
|
if (warning !== null) console.error(warning);
|
|
@@ -28223,7 +28087,6 @@ function preload(href, options) {
|
|
|
28223
28087
|
});
|
|
28224
28088
|
}
|
|
28225
28089
|
function preinit(href, options) {
|
|
28226
|
-
if (process.env.NODE_ENV !== "production" && hydrateAttributeProbe !== null) return;
|
|
28227
28090
|
if (process.env.NODE_ENV !== "production") {
|
|
28228
28091
|
const warning = resourceHintWarning("preinit", href, options);
|
|
28229
28092
|
if (warning !== null) console.error(warning);
|
|
@@ -28248,7 +28111,6 @@ function preinit(href, options) {
|
|
|
28248
28111
|
}
|
|
28249
28112
|
}
|
|
28250
28113
|
function preconnect(href, options) {
|
|
28251
|
-
if (process.env.NODE_ENV !== "production" && hydrateAttributeProbe !== null) return;
|
|
28252
28114
|
if (process.env.NODE_ENV !== "production") {
|
|
28253
28115
|
const warning = resourceHintWarning("preconnect", href, options);
|
|
28254
28116
|
if (warning !== null) console.error(warning);
|
|
@@ -28270,7 +28132,6 @@ function preconnect(href, options) {
|
|
|
28270
28132
|
});
|
|
28271
28133
|
}
|
|
28272
28134
|
function prefetchDNS(href) {
|
|
28273
|
-
if (process.env.NODE_ENV !== "production" && hydrateAttributeProbe !== null) return;
|
|
28274
28135
|
if (process.env.NODE_ENV !== "production") {
|
|
28275
28136
|
const warning = resourceHintWarning("prefetchDNS", href, arguments[1], arguments.length > 1);
|
|
28276
28137
|
if (warning !== null) console.error(warning);
|
|
@@ -28286,7 +28147,6 @@ function prefetchDNS(href) {
|
|
|
28286
28147
|
});
|
|
28287
28148
|
}
|
|
28288
28149
|
function preloadModule(href, options) {
|
|
28289
|
-
if (process.env.NODE_ENV !== "production" && hydrateAttributeProbe !== null) return;
|
|
28290
28150
|
if (process.env.NODE_ENV !== "production") {
|
|
28291
28151
|
const warning = resourceHintWarning("preloadModule", href, options);
|
|
28292
28152
|
if (warning !== null) console.error(warning);
|
|
@@ -28308,7 +28168,6 @@ function preloadModule(href, options) {
|
|
|
28308
28168
|
});
|
|
28309
28169
|
}
|
|
28310
28170
|
function preinitModule(href, options) {
|
|
28311
|
-
if (process.env.NODE_ENV !== "production" && hydrateAttributeProbe !== null) return;
|
|
28312
28171
|
if (process.env.NODE_ENV !== "production") {
|
|
28313
28172
|
const warning = resourceHintWarning("preinitModule", href, options);
|
|
28314
28173
|
if (warning !== null) console.error(warning);
|
|
@@ -28417,7 +28276,6 @@ function warnInvalidStylesheetResource(reason) {
|
|
|
28417
28276
|
);
|
|
28418
28277
|
}
|
|
28419
28278
|
function stylesheetResource(attrs, invalidReason) {
|
|
28420
|
-
if (process.env.NODE_ENV !== "production" && hydrateAttributeProbe !== null) return;
|
|
28421
28279
|
if (process.env.NODE_ENV !== "production" && invalidReason !== void 0) {
|
|
28422
28280
|
warnInvalidStylesheetResource(invalidReason);
|
|
28423
28281
|
return;
|
|
@@ -28437,7 +28295,6 @@ function stylesheetResource(attrs, invalidReason) {
|
|
|
28437
28295
|
state.sheets.add(href);
|
|
28438
28296
|
}
|
|
28439
28297
|
function styleResource(attrs, css, development) {
|
|
28440
|
-
if (process.env.NODE_ENV !== "production" && hydrateAttributeProbe !== null) return;
|
|
28441
28298
|
if (typeof document === "undefined" || attrs == null) return;
|
|
28442
28299
|
const href = attrs.href;
|
|
28443
28300
|
if (typeof href !== "string" || href === "") return;
|
|
@@ -28468,7 +28325,6 @@ function resetFloatResourceState() {
|
|
|
28468
28325
|
if (typeof window !== "undefined") delete window.$OCTFR;
|
|
28469
28326
|
}
|
|
28470
28327
|
function scriptResource(attrs) {
|
|
28471
|
-
if (process.env.NODE_ENV !== "production" && hydrateAttributeProbe !== null) return;
|
|
28472
28328
|
if (typeof document === "undefined" || attrs == null) return;
|
|
28473
28329
|
const src = attrs.src;
|
|
28474
28330
|
if (typeof src !== "string" || src === "") return;
|
|
@@ -28503,6 +28359,7 @@ export {
|
|
|
28503
28359
|
__useLinkedStateWithGetter,
|
|
28504
28360
|
__useReducerWithGetter,
|
|
28505
28361
|
__useStateWithGetter,
|
|
28362
|
+
__voidRootProps,
|
|
28506
28363
|
__vtSeen,
|
|
28507
28364
|
act,
|
|
28508
28365
|
activityBlock,
|
|
@@ -28623,7 +28480,6 @@ export {
|
|
|
28623
28480
|
isChildrenBlock,
|
|
28624
28481
|
isHydratingStyle,
|
|
28625
28482
|
isInActScope,
|
|
28626
|
-
isNativeSignalDiagnosticProbe,
|
|
28627
28483
|
isValidElement,
|
|
28628
28484
|
keyedForBlock,
|
|
28629
28485
|
lazy,
|