@yahoo/uds-create-config 5.98.0 → 5.99.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/configs/react-native-system.js +2 -0
- package/dist/configs/system.js +2 -0
- package/dist/entities/system/Component.d.ts +1 -0
- package/dist/entities/system/Component.js +3 -2
- package/dist/framework/Config.d.ts +1 -1
- package/dist/framework/Config.js +1 -1
- package/dist/framework/interaction-conditions.js +6 -2
- package/dist/framework/projections.d.ts +1 -1
- package/dist/framework/projections.js +2 -3
- package/dist/framework/schema-version.d.ts +1 -1
- package/dist/framework/schema-version.js +5 -5
- package/dist/migrations/20261113131930_style_set_own_rule_only.d.ts +4 -0
- package/dist/migrations/20261113131930_style_set_own_rule_only.js +10 -0
- package/dist/renderer/RendererErrorBoundary.d.ts +11 -2
- package/dist/renderer/RendererErrorBoundary.js +20 -2
- package/dist/renderer/componentEntry.js +6 -4
- package/dist/renderer/index.d.ts +2 -2
- package/dist/renderer/index.js +2 -2
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +2 -2
|
@@ -16,6 +16,7 @@ import { declarativeReanimatedMigration } from "../migrations/20261015205522_dec
|
|
|
16
16
|
import { reanimatedCubicBezierMigration } from "../migrations/20261015212722_reanimated_cubic_bezier.js";
|
|
17
17
|
import { motionJsonSchemaMigration } from "../migrations/20261015221052_motion_json_schema.js";
|
|
18
18
|
import { motionTypeOnlyMigration } from "../migrations/20261016135620_motion_type_only.js";
|
|
19
|
+
import { styleSetOwnRuleOnlyMigration } from "../migrations/20261113131930_style_set_own_rule_only.js";
|
|
19
20
|
import { CanvasRole } from "../entities/system/CanvasRole.js";
|
|
20
21
|
import { Guidance } from "../entities/system/Guidance.js";
|
|
21
22
|
import { Source } from "../entities/system/Source.js";
|
|
@@ -76,5 +77,6 @@ if (!registeredSchemaMigrations().has(20261015212722)) registerSchemaMigrations(
|
|
|
76
77
|
if (!registeredSchemaMigrations().has(20261015221052)) registerSchemaMigrations(motionJsonSchemaMigration);
|
|
77
78
|
if (!registeredSchemaMigrations().has(20261016135620)) registerSchemaMigrations(motionTypeOnlyMigration);
|
|
78
79
|
if (!registeredSchemaMigrations().has(20261015202345)) registerSchemaMigrations(componentElementSwapMigration);
|
|
80
|
+
if (!registeredSchemaMigrations().has(20261113131930)) registerSchemaMigrations(styleSetOwnRuleOnlyMigration);
|
|
79
81
|
//#endregion
|
|
80
82
|
export { ReactNativeSystem };
|
package/dist/configs/system.js
CHANGED
|
@@ -52,6 +52,7 @@ import { anatomyNodeStatesMigration } from "../migrations/20261110171151_anatomy
|
|
|
52
52
|
import { nativeLintLocationsMigration } from "../migrations/20261112145536_native_lint_locations.js";
|
|
53
53
|
import { variantBooleansMigration } from "../migrations/20261112154943_variant_booleans.js";
|
|
54
54
|
import { vendorLinkTypeMigration } from "../migrations/20261112163439_vendor_link_type.js";
|
|
55
|
+
import { styleSetOwnRuleOnlyMigration } from "../migrations/20261113131930_style_set_own_rule_only.js";
|
|
55
56
|
import { CanvasRole } from "../entities/system/CanvasRole.js";
|
|
56
57
|
import { GlobalStyle } from "../entities/system/GlobalStyle.js";
|
|
57
58
|
import { Guidance } from "../entities/system/Guidance.js";
|
|
@@ -240,5 +241,6 @@ if (!registeredSchemaMigrations().has(20261110171151)) registerSchemaMigrations(
|
|
|
240
241
|
if (!registeredSchemaMigrations().has(20261112145536)) registerSchemaMigrations(nativeLintLocationsMigration);
|
|
241
242
|
if (!registeredSchemaMigrations().has(20261112154943)) registerSchemaMigrations(variantBooleansMigration);
|
|
242
243
|
if (!registeredSchemaMigrations().has(20261112163439)) registerSchemaMigrations(vendorLinkTypeMigration);
|
|
244
|
+
if (!registeredSchemaMigrations().has(20261113131930)) registerSchemaMigrations(styleSetOwnRuleOnlyMigration);
|
|
243
245
|
//#endregion
|
|
244
246
|
export { System };
|
|
@@ -887,6 +887,7 @@ declare const ComponentEntity: EntityClass<z.ZodObject<{
|
|
|
887
887
|
when: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
|
|
888
888
|
state: z.ZodOptional<z.ZodString>;
|
|
889
889
|
modifiers: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
890
|
+
ownRuleOnly: z.ZodOptional<z.ZodBoolean>;
|
|
890
891
|
}, z.core.$strip>>;
|
|
891
892
|
}, z.core.$strip>;
|
|
892
893
|
}, z.core.$strip>;
|
|
@@ -2597,12 +2597,13 @@ count: z.number().int().min(1).max(50).optional() }).prefault({})
|
|
|
2597
2597
|
z.boolean()
|
|
2598
2598
|
])).optional(),
|
|
2599
2599
|
state: z.string().min(1).optional(),
|
|
2600
|
-
modifiers: z.array(z.string().min(1)).optional()
|
|
2600
|
+
modifiers: z.array(z.string().min(1)).optional(),
|
|
2601
|
+
ownRuleOnly: z.boolean().optional().describe("Clear only the matching rule, preserving values supplied by broader rules.")
|
|
2601
2602
|
})).min(1) })
|
|
2602
2603
|
}),
|
|
2603
2604
|
readOnly: false,
|
|
2604
2605
|
label: "Set layer styles",
|
|
2605
|
-
description: "Set or clear style properties on a component's layers for the instances a reach covers, the way the component editor's \"Apply to\" does. Each change names a `layer`, a style-prop `prop` and a `value` (`null` clears it). `when` pins variant, boolean or state props (`{ \"variant\": \"secondary\" }`) and the change lands in the rule with exactly that condition; leave it out for every instance. `state` is the state the change is made in (`\"hover\"`): an interaction becomes part of the rule's condition, any other modifier nests as a block in the layer's bag. `modifiers` nest further blocks, outermost first (`[\"dark\"]` for dark mode). Writes one `sub-update/styles` per rule touched, creating a rule its condition has none for. A clear also removes the value from a broader rule that gives those instances it, and writes it back on the conditions that rule covers and the clear does not, so only the cleared instances change.",
|
|
2606
|
+
description: "Set or clear style properties on a component's layers for the instances a reach covers, the way the component editor's \"Apply to\" does. Each change names a `layer`, a style-prop `prop` and a `value` (`null` clears it). `when` pins variant, boolean or state props (`{ \"variant\": \"secondary\" }`) and the change lands in the rule with exactly that condition; leave it out for every instance. `state` is the state the change is made in (`\"hover\"`): an interaction becomes part of the rule's condition, any other modifier nests as a block in the layer's bag. `modifiers` nest further blocks, outermost first (`[\"dark\"]` for dark mode). Writes one `sub-update/styles` per rule touched, creating a rule its condition has none for. A clear also removes the value from a broader rule that gives those instances it, and writes it back on the conditions that rule covers and the clear does not, so only the cleared instances change. Set `ownRuleOnly` to clear just the matching rule and reveal the values from broader or inherited rules.",
|
|
2606
2607
|
scope: "item",
|
|
2607
2608
|
title: (entity) => `Set ${entity} layer styles`,
|
|
2608
2609
|
handler: (input, config) => {
|
|
@@ -74,7 +74,7 @@ interface RecordedSource {
|
|
|
74
74
|
* The dense-counter `2` a short-lived scheme stamped before the chain existed reads as the mint
|
|
75
75
|
* that replaced it (see `detectedWireVersion`).
|
|
76
76
|
*/
|
|
77
|
-
declare const SERIALIZED_CONFIG_VERSION =
|
|
77
|
+
declare const SERIALIZED_CONFIG_VERSION = 20261113131930;
|
|
78
78
|
interface SerializedConfig {
|
|
79
79
|
/** See {@link SERIALIZED_CONFIG_VERSION}. Always written; a stored artifact may lack it. */
|
|
80
80
|
readonly version: number;
|
package/dist/framework/Config.js
CHANGED
|
@@ -6643,7 +6643,7 @@ var Config = class Config {
|
|
|
6643
6643
|
* links from the provided sources. A declared `linkedKind` with no provided source throws. */
|
|
6644
6644
|
hydrateFrom(stored, options) {
|
|
6645
6645
|
const claimed = schemaVersionOf(stored);
|
|
6646
|
-
if (claimed >
|
|
6646
|
+
if (claimed > 20261113131930) throw new SchemaVersionTooNew(claimed);
|
|
6647
6647
|
const wire = upgradeSerializedConfig(stored);
|
|
6648
6648
|
if (!Array.isArray(wire.ownedKinds) || typeof wire.items !== "object" || wire.items === null) throw new ConfigFormatError(`Config "${stored.name ?? "system-config"}" cannot be hydrated: this is not a serialized config-v2 config (no "ownedKinds"/"items"). A pre-cutover build artifact converts through the registered cutover migration — import the config type's module (e.g. \`configs/system\`) before hydrating.`);
|
|
6649
6649
|
const leftover = wire.options;
|
|
@@ -11,8 +11,8 @@ import { createSliceMemo } from "./memo.js";
|
|
|
11
11
|
* value names whose interaction it is: `true` is the component's own root, and a layer name is that
|
|
12
12
|
* layer (`_hover: 'closeButton'`, "while the close button is hovered").
|
|
13
13
|
*
|
|
14
|
-
*
|
|
15
|
-
* the element itself (`:hover`, `[aria-checked="true"]`), never a pseudo-element (`::placeholder`)
|
|
14
|
+
* Native state modifiers qualify directly. For web, an interaction is a selector modifier that
|
|
15
|
+
* isn't a mode and names a state of the element itself (`:hover`, `[aria-checked="true"]`), never a pseudo-element (`::placeholder`)
|
|
16
16
|
* or a relation to another element (`[data-group]:hover &`).
|
|
17
17
|
*/
|
|
18
18
|
/** Whether `modifier` (a path or leaf) can be a rule's interaction condition. */
|
|
@@ -33,6 +33,10 @@ const interactionMemo = createSliceMemo({
|
|
|
33
33
|
const paths = /* @__PURE__ */ new Set();
|
|
34
34
|
for (const modifier of config.list("modifier")) {
|
|
35
35
|
const { type, value } = modifier.toJSON() ?? {};
|
|
36
|
+
if (type === "state" && modifierCategory(config, modifier.path) === "state") {
|
|
37
|
+
paths.add(modifier.path);
|
|
38
|
+
continue;
|
|
39
|
+
}
|
|
36
40
|
if (type !== "selector" || typeof value !== "string") continue;
|
|
37
41
|
if (modifierCategory(config, modifier.path) === "mode") continue;
|
|
38
42
|
const own = value.trim().replace(/^&/, "");
|
|
@@ -760,7 +760,7 @@ declare function iconToolAxisOptions(config: Config, tool: IconTool, axis: strin
|
|
|
760
760
|
* The component that draws a library's glyphs on their own, with the prop that takes the glyph. The
|
|
761
761
|
* icon tool that covers the library when the `icon` canvas role has one ({@link iconToolFor});
|
|
762
762
|
* otherwise the component whose own prop declares the library as its domain
|
|
763
|
-
* (`name: { type: '
|
|
763
|
+
* (`name: { type: 'slot', value: Icon.ref('phosphor') }`, or a list of libraries that includes
|
|
764
764
|
* it). Derived from the components, never declared on the set: the edge runs from the component to
|
|
765
765
|
* the library. `undefined` when no component draws from it, in which case a placed glyph is the
|
|
766
766
|
* member drawn raw.
|
|
@@ -1906,7 +1906,7 @@ function iconToolFromEntry(config, entry) {
|
|
|
1906
1906
|
* The component that draws a library's glyphs on their own, with the prop that takes the glyph. The
|
|
1907
1907
|
* icon tool that covers the library when the `icon` canvas role has one ({@link iconToolFor});
|
|
1908
1908
|
* otherwise the component whose own prop declares the library as its domain
|
|
1909
|
-
* (`name: { type: '
|
|
1909
|
+
* (`name: { type: 'slot', value: Icon.ref('phosphor') }`, or a list of libraries that includes
|
|
1910
1910
|
* it). Derived from the components, never declared on the set: the edge runs from the component to
|
|
1911
1911
|
* the library. `undefined` when no component draws from it, in which case a placed glyph is the
|
|
1912
1912
|
* member drawn raw.
|
|
@@ -1923,8 +1923,7 @@ function glyphComponentOf(config, library) {
|
|
|
1923
1923
|
for (const component of config.list("component")) {
|
|
1924
1924
|
const { props = {} } = component.toJSON();
|
|
1925
1925
|
for (const [prop, declaration] of Object.entries(props)) {
|
|
1926
|
-
if (declaration?.
|
|
1927
|
-
if (!glyphLibrariesOf(declaration.value).includes(library)) continue;
|
|
1926
|
+
if (!glyphLibrariesOf(declaration?.value).includes(library)) continue;
|
|
1928
1927
|
return {
|
|
1929
1928
|
path: component.path,
|
|
1930
1929
|
prop
|
|
@@ -15,7 +15,7 @@ import { Patch, SerializedConfig } from "./Config.js";
|
|
|
15
15
|
* sets this constant to its own older timestamp; the merge ref then carries a registered migration
|
|
16
16
|
* newer than the constant, and the assertion fails until the author re-mints.
|
|
17
17
|
*/
|
|
18
|
-
declare const CURRENT_SCHEMA_VERSION =
|
|
18
|
+
declare const CURRENT_SCHEMA_VERSION = 20261113131930;
|
|
19
19
|
/** What the walkers need to see of an envelope — loose on purpose, so a typed `SerializedConfig`
|
|
20
20
|
* and a raw old-shape record both flow in without casts. */
|
|
21
21
|
interface VersionStamped {
|
|
@@ -13,7 +13,7 @@ import { ConfigFormatError } from "./rejection.js";
|
|
|
13
13
|
* sets this constant to its own older timestamp; the merge ref then carries a registered migration
|
|
14
14
|
* newer than the constant, and the assertion fails until the author re-mints.
|
|
15
15
|
*/
|
|
16
|
-
const CURRENT_SCHEMA_VERSION =
|
|
16
|
+
const CURRENT_SCHEMA_VERSION = 20261113131930;
|
|
17
17
|
/** The mint that moved `options` into the `settings` kind — restated here, rather than imported
|
|
18
18
|
* from the migration that owns it, because that migration imports this module. */
|
|
19
19
|
const SETTINGS_AS_KIND_VERSION = 20260908171448;
|
|
@@ -45,7 +45,7 @@ function registerSchemaMigrations(...migrations) {
|
|
|
45
45
|
for (const migration of migrations) {
|
|
46
46
|
if (migration.version !== 1 && !isMintTimestamp(migration.version)) throw new Error(`Schema migration version ${migration.version} is not a mint timestamp — mint one with \`date +%Y%m%d%H%M%S\`, like a supabase migration.`);
|
|
47
47
|
if (REGISTERED.has(migration.version)) throw new Error(`A schema migration at version ${migration.version} is already registered.`);
|
|
48
|
-
if (migration.version >
|
|
48
|
+
if (migration.version > 20261113131930) throw new Error(`Schema migration ${migration.version} is newer than CURRENT_SCHEMA_VERSION (${CURRENT_SCHEMA_VERSION}) — a stale branch merged, or the mint forgot to bump the constant. Re-mint: set CURRENT_SCHEMA_VERSION to the newest migration version.`);
|
|
49
49
|
REGISTERED.set(migration.version, migration);
|
|
50
50
|
}
|
|
51
51
|
}
|
|
@@ -102,7 +102,7 @@ function pendingFor(version, target, options) {
|
|
|
102
102
|
* Already-current input passes through untouched — same reference, so hot paths pay nothing.
|
|
103
103
|
*/
|
|
104
104
|
function upgradeSerializedConfig(json, options) {
|
|
105
|
-
const target = options?.target ??
|
|
105
|
+
const target = options?.target ?? 20261113131930;
|
|
106
106
|
const version = detectedWireVersion(json);
|
|
107
107
|
if (version > target) throw new SchemaVersionTooNew(version, target);
|
|
108
108
|
const raw = json;
|
|
@@ -160,7 +160,7 @@ function upgradedSources(json, options) {
|
|
|
160
160
|
* meaning under the current schema and replay skips it — reported by the caller, not swallowed here.
|
|
161
161
|
*/
|
|
162
162
|
function upgradePatch(patch, writtenAt, options) {
|
|
163
|
-
const target = options?.target ??
|
|
163
|
+
const target = options?.target ?? 20261113131930;
|
|
164
164
|
if (writtenAt > target) throw new SchemaVersionTooNew(writtenAt, target);
|
|
165
165
|
let current = patch;
|
|
166
166
|
for (const migration of pendingFor(writtenAt, target, options)) {
|
|
@@ -179,7 +179,7 @@ function upgradePatch(patch, writtenAt, options) {
|
|
|
179
179
|
* stamp would cause.
|
|
180
180
|
*/
|
|
181
181
|
function upgradeDraftEntries(draft, options) {
|
|
182
|
-
const target = options?.target ??
|
|
182
|
+
const target = options?.target ?? 20261113131930;
|
|
183
183
|
const entries = [];
|
|
184
184
|
const held = [];
|
|
185
185
|
const retired = [];
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/** The style-set operation accepts ownRuleOnly; stored configs and expanded draft patches keep their shape. */
|
|
2
|
+
import type { SchemaMigration } from '../framework/schema-version';
|
|
3
|
+
export declare const STYLE_SET_OWN_RULE_ONLY_VERSION = 20261113131930;
|
|
4
|
+
export declare const styleSetOwnRuleOnlyMigration: SchemaMigration;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
//#region src/migrations/20261113131930_style_set_own_rule_only.ts
|
|
2
|
+
const STYLE_SET_OWN_RULE_ONLY_VERSION = 20261113131930;
|
|
3
|
+
const styleSetOwnRuleOnlyMigration = {
|
|
4
|
+
version: STYLE_SET_OWN_RULE_ONLY_VERSION,
|
|
5
|
+
up(json) {
|
|
6
|
+
return json;
|
|
7
|
+
}
|
|
8
|
+
};
|
|
9
|
+
//#endregion
|
|
10
|
+
export { STYLE_SET_OWN_RULE_ONLY_VERSION, styleSetOwnRuleOnlyMigration };
|
|
@@ -1,6 +1,15 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
+
import * as _$react_jsx_runtime0 from "react/jsx-runtime";
|
|
2
3
|
|
|
3
4
|
//#region src/renderer/RendererErrorBoundary.d.ts
|
|
5
|
+
/** A change to live preview inputs retries failed entries while preserving healthy component state. */
|
|
6
|
+
declare function RendererRevisionProvider({
|
|
7
|
+
input,
|
|
8
|
+
children
|
|
9
|
+
}: {
|
|
10
|
+
input: unknown;
|
|
11
|
+
children: React.ReactNode;
|
|
12
|
+
}): _$react_jsx_runtime0.JSX.Element;
|
|
4
13
|
/**
|
|
5
14
|
* Error boundary wrapped around each component's render entry — the INNERMOST
|
|
6
15
|
* boundary, inside json-render's own per-element `ElementErrorBoundary`. That
|
|
@@ -12,7 +21,7 @@ import React from "react";
|
|
|
12
21
|
* rendering.
|
|
13
22
|
*
|
|
14
23
|
* The tile clears when `resetKey` changes by content. The entry passes the
|
|
15
|
-
* element's props, so a component that threw on one render — a node painted
|
|
24
|
+
* element's props and the live-preview revision, so a component that threw on one render — a node painted
|
|
16
25
|
* mid-stream, before the props batch that carries a required value arrived —
|
|
17
26
|
* shows a tile only until those props settle, then renders. While the props
|
|
18
27
|
* read the same it stays latched: a component that throws on the same input
|
|
@@ -50,4 +59,4 @@ declare class RendererErrorBoundary extends React.Component<{
|
|
|
50
59
|
render(): React.ReactNode;
|
|
51
60
|
}
|
|
52
61
|
//#endregion
|
|
53
|
-
export { RendererErrorBoundary };
|
|
62
|
+
export { RendererErrorBoundary, RendererRevisionProvider };
|
|
@@ -1,6 +1,24 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import React from "react";
|
|
3
|
+
import { jsx } from "react/jsx-runtime";
|
|
3
4
|
//#region src/renderer/RendererErrorBoundary.tsx
|
|
5
|
+
/** Preview inputs outside element props can retry failed entries without remounting healthy ones. */
|
|
6
|
+
const RendererRevisionContext = React.createContext(0);
|
|
7
|
+
/** A change to live preview inputs retries failed entries while preserving healthy component state. */
|
|
8
|
+
function RendererRevisionProvider({ input, children }) {
|
|
9
|
+
const current = React.useRef({
|
|
10
|
+
input,
|
|
11
|
+
revision: 0
|
|
12
|
+
});
|
|
13
|
+
if (current.current.input !== input) current.current = {
|
|
14
|
+
input,
|
|
15
|
+
revision: current.current.revision + 1
|
|
16
|
+
};
|
|
17
|
+
return /* @__PURE__ */ jsx(RendererRevisionContext.Provider, {
|
|
18
|
+
value: current.current.revision,
|
|
19
|
+
children
|
|
20
|
+
});
|
|
21
|
+
}
|
|
4
22
|
/**
|
|
5
23
|
* Error boundary wrapped around each component's render entry — the INNERMOST
|
|
6
24
|
* boundary, inside json-render's own per-element `ElementErrorBoundary`. That
|
|
@@ -12,7 +30,7 @@ import React from "react";
|
|
|
12
30
|
* rendering.
|
|
13
31
|
*
|
|
14
32
|
* The tile clears when `resetKey` changes by content. The entry passes the
|
|
15
|
-
* element's props, so a component that threw on one render — a node painted
|
|
33
|
+
* element's props and the live-preview revision, so a component that threw on one render — a node painted
|
|
16
34
|
* mid-stream, before the props batch that carries a required value arrived —
|
|
17
35
|
* shows a tile only until those props settle, then renders. While the props
|
|
18
36
|
* read the same it stays latched: a component that throws on the same input
|
|
@@ -77,4 +95,4 @@ function isPlainObject(value) {
|
|
|
77
95
|
return proto === Object.prototype || proto === null;
|
|
78
96
|
}
|
|
79
97
|
//#endregion
|
|
80
|
-
export { RendererErrorBoundary };
|
|
98
|
+
export { RendererErrorBoundary, RendererRevisionContext, RendererRevisionProvider };
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { UDS_FORCE_STATES } from "../framework/component-states.js";
|
|
2
2
|
import { forcedModifierAttributes } from "../framework/class-names.js";
|
|
3
3
|
import { registerComputed } from "./computed.js";
|
|
4
|
-
import { RendererErrorBoundary } from "./RendererErrorBoundary.js";
|
|
4
|
+
import { RendererErrorBoundary, RendererRevisionContext } from "./RendererErrorBoundary.js";
|
|
5
5
|
import { specContent } from "./spec-content.js";
|
|
6
6
|
import { useForcedModifierStamp } from "./use-forced-stamp.js";
|
|
7
7
|
import React from "react";
|
|
8
|
+
import { jsx } from "react/jsx-runtime";
|
|
8
9
|
//#region src/renderer/componentEntry.tsx
|
|
9
10
|
/**
|
|
10
11
|
* A resolved native slot fill, as the component's prop consumes it. json-render resolves the
|
|
@@ -80,10 +81,11 @@ function makeComponentEntry(options) {
|
|
|
80
81
|
component: componentPath,
|
|
81
82
|
attributes: forcedAttrs
|
|
82
83
|
}, rendered);
|
|
83
|
-
return
|
|
84
|
+
return /* @__PURE__ */ jsx(RendererRevisionContext.Consumer, { children: (revision) => /* @__PURE__ */ jsx(RendererErrorBoundary, {
|
|
84
85
|
name: label,
|
|
85
|
-
resetKey: elementProps
|
|
86
|
-
|
|
86
|
+
resetKey: [elementProps, revision],
|
|
87
|
+
children: rendered
|
|
88
|
+
}) });
|
|
87
89
|
};
|
|
88
90
|
}
|
|
89
91
|
/**
|
package/dist/renderer/index.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import { stampForcedModifiers } from "./forced-stamp.js";
|
|
|
4
4
|
import { GlyphEntriesResult, GlyphMembers, glyphRegistryEntries } from "./glyphEntries.js";
|
|
5
5
|
import { FragmentRenderer } from "./primitives/FragmentRenderer.js";
|
|
6
6
|
import { SlotRenderer } from "./primitives/SlotRenderer.js";
|
|
7
|
-
import { RendererErrorBoundary } from "./RendererErrorBoundary.js";
|
|
7
|
+
import { RendererErrorBoundary, RendererRevisionProvider } from "./RendererErrorBoundary.js";
|
|
8
8
|
import { Glyph, GlyphLibrary, ResolvedGlyph, resolveGlyph } from "./resolveGlyph.js";
|
|
9
9
|
import { RuntimeComponentFailureContext, RuntimeComponentFailureReporter, RuntimeComponentRebuildContext, RuntimeComponentRebuildReporter, RuntimeComponentScope, RuntimeComponentStatus, RuntimeComponentStore, RuntimeComponentStoreContext, installRuntimeComponentStore, runtimeComponent } from "./runtimeComponent.js";
|
|
10
10
|
import { REVEALED_LAYER_ATTR, specContent } from "./spec-content.js";
|
|
@@ -16,4 +16,4 @@ import { useForcedModifierStamp } from "./use-forced-stamp.js";
|
|
|
16
16
|
import { wrapEventBridge } from "./wrappers/event-bridge.js";
|
|
17
17
|
import { wrapNormalizeHex } from "./wrappers/hex-normalize.js";
|
|
18
18
|
import { wrapInlineStyleProps } from "./wrappers/inline-styles.js";
|
|
19
|
-
export { type ComponentEntry, type ComponentEntryFacts, FragmentRenderer, type Glyph, type GlyphEntriesResult, type GlyphLibrary, type GlyphMembers, type GlyphPropMap, type MakeComponentEntryOptions, REVEALED_LAYER_ATTR, type RegistryDescriptor, RendererErrorBoundary, type ResolvedGlyph, RuntimeComponentFailureContext, type RuntimeComponentFailureReporter, RuntimeComponentRebuildContext, type RuntimeComponentRebuildReporter, type RuntimeComponentScope, type RuntimeComponentStatus, type RuntimeComponentStore, RuntimeComponentStoreContext, SlotRenderer, UdsRenderer, type UdsRendererProps, VERBATIM_ATTRIBUTES, aliasHtmlTypes, computedFunctions, entryRenderer, glyphRegistryEntries, installRuntimeComponentStore, makeComponentEntry, registerComputed, resolveGlyph, runtimeComponent, slotFillValue, specContent, stampForcedModifiers, useForcedModifierStamp, withComputedFunctions, wrapEventBridge, wrapGlyphProps, wrapInlineStyleProps, wrapNormalizeHex, wrapRegistry };
|
|
19
|
+
export { type ComponentEntry, type ComponentEntryFacts, FragmentRenderer, type Glyph, type GlyphEntriesResult, type GlyphLibrary, type GlyphMembers, type GlyphPropMap, type MakeComponentEntryOptions, REVEALED_LAYER_ATTR, type RegistryDescriptor, RendererErrorBoundary, RendererRevisionProvider, type ResolvedGlyph, RuntimeComponentFailureContext, type RuntimeComponentFailureReporter, RuntimeComponentRebuildContext, type RuntimeComponentRebuildReporter, type RuntimeComponentScope, type RuntimeComponentStatus, type RuntimeComponentStore, RuntimeComponentStoreContext, SlotRenderer, UdsRenderer, type UdsRendererProps, VERBATIM_ATTRIBUTES, aliasHtmlTypes, computedFunctions, entryRenderer, glyphRegistryEntries, installRuntimeComponentStore, makeComponentEntry, registerComputed, resolveGlyph, runtimeComponent, slotFillValue, specContent, stampForcedModifiers, useForcedModifierStamp, withComputedFunctions, wrapEventBridge, wrapGlyphProps, wrapInlineStyleProps, wrapNormalizeHex, wrapRegistry };
|
package/dist/renderer/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { computedFunctions, registerComputed, withComputedFunctions } from "./computed.js";
|
|
2
|
-
import { RendererErrorBoundary } from "./RendererErrorBoundary.js";
|
|
2
|
+
import { RendererErrorBoundary, RendererRevisionProvider } from "./RendererErrorBoundary.js";
|
|
3
3
|
import { REVEALED_LAYER_ATTR, specContent } from "./spec-content.js";
|
|
4
4
|
import { stampForcedModifiers } from "./forced-stamp.js";
|
|
5
5
|
import { useForcedModifierStamp } from "./use-forced-stamp.js";
|
|
@@ -16,4 +16,4 @@ import { VERBATIM_ATTRIBUTES, aliasHtmlTypes } from "./wrappers/html-aliases.js"
|
|
|
16
16
|
import { wrapInlineStyleProps } from "./wrappers/inline-styles.js";
|
|
17
17
|
import { wrapRegistry } from "./wrapRegistry.js";
|
|
18
18
|
import { UdsRenderer } from "./UdsRenderer.js";
|
|
19
|
-
export { FragmentRenderer, REVEALED_LAYER_ATTR, RendererErrorBoundary, RuntimeComponentFailureContext, RuntimeComponentRebuildContext, RuntimeComponentStoreContext, SlotRenderer, UdsRenderer, VERBATIM_ATTRIBUTES, aliasHtmlTypes, computedFunctions, entryRenderer, glyphRegistryEntries, installRuntimeComponentStore, makeComponentEntry, registerComputed, resolveGlyph, runtimeComponent, slotFillValue, specContent, stampForcedModifiers, useForcedModifierStamp, withComputedFunctions, wrapEventBridge, wrapGlyphProps, wrapInlineStyleProps, wrapNormalizeHex, wrapRegistry };
|
|
19
|
+
export { FragmentRenderer, REVEALED_LAYER_ATTR, RendererErrorBoundary, RendererRevisionProvider, RuntimeComponentFailureContext, RuntimeComponentRebuildContext, RuntimeComponentStoreContext, SlotRenderer, UdsRenderer, VERBATIM_ATTRIBUTES, aliasHtmlTypes, computedFunctions, entryRenderer, glyphRegistryEntries, installRuntimeComponentStore, makeComponentEntry, registerComputed, resolveGlyph, runtimeComponent, slotFillValue, specContent, stampForcedModifiers, useForcedModifierStamp, withComputedFunctions, wrapEventBridge, wrapGlyphProps, wrapInlineStyleProps, wrapNormalizeHex, wrapRegistry };
|