@plitzi/sdk-shared 0.38.16 → 0.38.17

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.
Files changed (81) hide show
  1. package/CHANGELOG.md +41 -0
  2. package/dist/actions/cron.mjs +5 -9
  3. package/dist/actions/validateDocument.mjs +24 -50
  4. package/dist/connectors/validateManifest.mjs +28 -73
  5. package/dist/dataSource/helpers/index.mjs +1 -2
  6. package/dist/dataSource/index.d.ts +1 -1
  7. package/dist/dataSource/index.mjs +6 -8
  8. package/dist/dataSource/utility/index.d.ts +1 -0
  9. package/dist/dataSource/utility/index.mjs +16 -15
  10. package/dist/devTools/utils/PlitziConsole.mjs +8 -12
  11. package/dist/elements/index.mjs +1 -2
  12. package/dist/flags/index.d.ts +2 -0
  13. package/dist/flags/index.mjs +2 -1
  14. package/dist/flags/useFlagResolution.mjs +6 -6
  15. package/dist/helpers/index.d.ts +8 -0
  16. package/dist/helpers/index.mjs +21 -13
  17. package/dist/helpers/keys.mjs +4 -8
  18. package/dist/helpers/twigWrapper/Evaluator/index.mjs +1 -2
  19. package/dist/helpers/twigWrapper/Parser/ExpressionParser.mjs +12 -26
  20. package/dist/helpers/twigWrapper/Parser/index.mjs +1 -2
  21. package/dist/helpers/twigWrapper/TemplateCache/index.mjs +1 -2
  22. package/dist/helpers/twigWrapper/charClass.mjs +2 -6
  23. package/dist/helpers/twigWrapper/filters/index.mjs +1 -2
  24. package/dist/helpers/twigWrapper/templateRoots.mjs +3 -8
  25. package/dist/hooks/useNetwork.mjs +1 -4
  26. package/dist/index.d.ts +5 -19
  27. package/dist/index.mjs +3 -99
  28. package/dist/network/graphql/builder/Mutations/index.d.ts +1 -0
  29. package/dist/network/graphql/builder/Mutations/index.mjs +148 -148
  30. package/dist/network/graphql/builder/Queries/index.mjs +4 -4
  31. package/dist/network/index.mjs +8 -8
  32. package/dist/plugins/{bundle.mjs → bundle/bundle.mjs} +1 -1
  33. package/dist/plugins/bundle/index.d.ts +2 -0
  34. package/dist/plugins/bundle/index.mjs +1 -0
  35. package/dist/plugins/index.d.ts +4 -0
  36. package/dist/plugins/index.mjs +3 -0
  37. package/dist/project/index.d.ts +8 -0
  38. package/dist/project/index.mjs +5 -0
  39. package/dist/project/layout.mjs +4 -4
  40. package/dist/queries/queryCache.mjs +1 -7
  41. package/dist/realtime/client.mjs +3 -12
  42. package/dist/schema/index.d.ts +5 -0
  43. package/dist/schema/index.mjs +12 -7
  44. package/dist/server/actions/useActionsSync.mjs +1 -1
  45. package/dist/server/actions/useImagesSync.mjs +1 -1
  46. package/dist/server/actions/useRealtimeSync.mjs +1 -1
  47. package/dist/server/index.d.ts +4 -0
  48. package/dist/server/index.mjs +8 -4
  49. package/dist/server/rsc/refreshRsc.mjs +11 -11
  50. package/dist/server/rsc/useRscSync.mjs +1 -1
  51. package/dist/server/usePluginRoute.mjs +1 -1
  52. package/dist/state/runtimeStatePersist.mjs +9 -15
  53. package/dist/store/index.d.ts +1 -193
  54. package/dist/store/index.mjs +6 -9
  55. package/dist/store/renderSettings.mjs +1 -1
  56. package/dist/store/storeHooks.d.ts +193 -0
  57. package/dist/store/storeHooks.mjs +5 -0
  58. package/dist/store/tracing/tracingCollector.mjs +1 -5
  59. package/dist/style/fonts.mjs +17 -25
  60. package/dist/style/index.d.ts +4 -0
  61. package/dist/style/index.mjs +19 -15
  62. package/dist/style/stylePseudos.mjs +2 -5
  63. package/dist/style/styleTarget.mjs +6 -6
  64. package/dist/theme/ThemeProvider.mjs +1 -1
  65. package/dist/theme/index.d.ts +1 -0
  66. package/dist/theme/index.mjs +4 -4
  67. package/dist/types/SchemaTypes.d.ts +2 -1
  68. package/dist/websockets/index.mjs +1 -2
  69. package/package.json +21 -1607
  70. package/vite.config.ts +20 -4
  71. package/dist/auth/authFailureLink.d.ts +0 -9
  72. package/dist/auth/authFailureLink.mjs +0 -20
  73. package/dist/dataSource/hooks/index.d.ts +0 -4
  74. package/dist/dataSource/hooks/index.mjs +0 -3
  75. package/dist/dataSource/hooks/useRegisterSource.d.ts +0 -9
  76. package/dist/dataSource/hooks/useRegisterSource.mjs +0 -40
  77. package/dist/dataSource/hooks/useResolvedVariables.d.ts +0 -12
  78. package/dist/dataSource/hooks/useResolvedVariables.mjs +0 -28
  79. package/dist/helpers/stripTypename.d.ts +0 -15
  80. package/dist/helpers/stripTypename.mjs +0 -41
  81. /package/dist/plugins/{bundle.d.ts → bundle/bundle.d.ts} +0 -0
@@ -0,0 +1,8 @@
1
+ /**
2
+ * A project on disk — its layout, its paths, its root — as the CLI and the page server read it. Node only, so never
3
+ * part of the package's root, which a browser imports.
4
+ */
5
+ export * from './layout';
6
+ export * from './network';
7
+ export * from './paths';
8
+ export * from './root';
@@ -0,0 +1,5 @@
1
+ import { AUTHOR_FILE as e, BUILD_DIR as t, CLI_DIR as n, DATA_DIR as r, DEV_SERVER_FILE as i, FUNCTIONS_DIR as a, KV_FILE as o, PLUGINS_DIR as s, PLUGIN_DECLARATION_FILE as c, PLUGIN_ENTRIES as l, PLUGIN_FUNCTIONS_DIR as u, PLUGIN_MANIFEST_FILE as d, PROJECT_STATE as f, PROJECT_TMP as p, PUBLIC_DIR as m, RUNTIME_BUNDLE as h, RUNTIME_DIR as g, RUNTIME_ENTRY as _, SOURCE_DIR as v, SPACE_DIR as y, SPACE_ENTRY as b, VENDOR_PLUGINS_DIR as x } from "./paths.mjs";
2
+ import { PROJECT_LAYOUT_CODES as S, ProjectLayoutError as C, assertProjectLayout as w, checkPluginFolder as T, checkProjectLayout as E, elementEntry as D, layoutFindingText as O, pluginEntry as k, pluginTypeOf as A, readVendorPlugin as j } from "./layout.mjs";
3
+ import { localNetworkName as M, networkAddresses as N } from "./network.mjs";
4
+ import { ProjectRootError as P, checkProjectRoot as F, projectModule as I, projectRoot as L } from "./root.mjs";
5
+ export { e as AUTHOR_FILE, t as BUILD_DIR, n as CLI_DIR, r as DATA_DIR, i as DEV_SERVER_FILE, a as FUNCTIONS_DIR, o as KV_FILE, s as PLUGINS_DIR, c as PLUGIN_DECLARATION_FILE, l as PLUGIN_ENTRIES, u as PLUGIN_FUNCTIONS_DIR, d as PLUGIN_MANIFEST_FILE, S as PROJECT_LAYOUT_CODES, f as PROJECT_STATE, p as PROJECT_TMP, m as PUBLIC_DIR, C as ProjectLayoutError, P as ProjectRootError, h as RUNTIME_BUNDLE, g as RUNTIME_DIR, _ as RUNTIME_ENTRY, v as SOURCE_DIR, y as SPACE_DIR, b as SPACE_ENTRY, x as VENDOR_PLUGINS_DIR, w as assertProjectLayout, T as checkPluginFolder, E as checkProjectLayout, F as checkProjectRoot, D as elementEntry, O as layoutFindingText, M as localNetworkName, N as networkAddresses, k as pluginEntry, A as pluginTypeOf, I as projectModule, L as projectRoot, j as readVendorPlugin };
@@ -309,7 +309,7 @@ var v = {
309
309
  };
310
310
  return a ? y("folder-misplaced", `${i}/`, `${i}/ holds ${a}, and nothing reads it there — ${s}`, c, l) : y("folder-near-miss", `${i}/`, `${i}/ is read by nothing — ${s}`, c, l);
311
311
  })), re = (e, n) => {
312
- if (!C(e, f, "file")) return n.some((e) => e.code === "folder-misplaced" && e.autofix?.action === "move" && e.autofix.to === "src/space/") ? [] : L(e, {
312
+ if (!C(e, "src/space/index.ts", "file")) return n.some((e) => e.code === "folder-misplaced" && e.autofix?.action === "move" && e.autofix.to === "src/space/") ? [] : L(e, {
313
313
  folder: d,
314
314
  accepted: ["index.ts"],
315
315
  code: "space-entry-missing",
@@ -347,9 +347,9 @@ var v = {
347
347
  } catch {
348
348
  return !1;
349
349
  }
350
- }, le = (e, n) => ({
351
- mode: n.mode ?? (Z(e) ? "server" : "client"),
352
- space: n.space ?? (C(e, "src/space", "folder") || C(e, t, "file") ? "local" : "cloud")
350
+ }, le = (e, t) => ({
351
+ mode: t.mode ?? (Z(e) ? "server" : "client"),
352
+ space: t.space ?? (C(e, "src/space", "folder") || C(e, "plitzi/author.ts", "file") ? "local" : "cloud")
353
353
  }), Q = (e, t = {}) => {
354
354
  let n = le(e, t), i = X(e, n), a = [
355
355
  ...W(e),
@@ -179,13 +179,7 @@ var t = 3e5, n = (e) => {
179
179
  clearTimeout(e.gcTimer), e.gcTimer = void 0, e.collectAt = void 0;
180
180
  }
181
181
  scheduleGc(e) {
182
- if (!(e.holds > 0 || e.observers.size > 0)) {
183
- if (this.cancelGc(e), e.gcTime <= 0) {
184
- this.collect(e);
185
- return;
186
- }
187
- e.collectAt = Date.now() + e.gcTime, e.gcTimer = setTimeout(() => this.collect(e), e.gcTime);
188
- }
182
+ e.holds > 0 || e.observers.size > 0 || (this.cancelGc(e), e.gcTime <= 0 ? this.collect(e) : (e.collectAt = Date.now() + e.gcTime, e.gcTimer = setTimeout(() => this.collect(e), e.gcTime)));
189
183
  }
190
184
  collect(e) {
191
185
  let t = n(e.key);
@@ -103,11 +103,8 @@ var t = 30, n = [
103
103
  credentials: "same-origin",
104
104
  signal: r.signal
105
105
  }).then(async (e) => {
106
- if (!e.ok) {
107
- y = /* @__PURE__ */ new Map(), E(t.split(",").map((t) => [t, `http_${String(e.status)}`])), T("closed");
108
- return;
109
- }
110
- throw await l(e), Error("The realtime stream ended");
106
+ if (!e.ok) y = /* @__PURE__ */ new Map(), E(t.split(",").map((t) => [t, `http_${String(e.status)}`])), T("closed");
107
+ else throw await l(e), Error("The realtime stream ended");
111
108
  }).catch(() => {
112
109
  r.signal.aborted || A(c);
113
110
  }), c;
@@ -144,13 +141,7 @@ var t = 30, n = [
144
141
  let t = c(e.data);
145
142
  t?.event === "ready" && i(t.data) ? (f = !0, k(g, t.data)) : t?.event === "message" && a(t.data) ? O(t.data) : t?.event === "ack" && o(t.data) && (u.get(t.data.id)?.(t.data.ok), u.delete(t.data.id));
146
143
  }, s.onclose = () => {
147
- if (h(), !(m || v !== g)) {
148
- if (!f) {
149
- C = !1, N();
150
- return;
151
- }
152
- A(g);
153
- }
144
+ h(), !(m || v !== g) && (f ? A(g) : (C = !1, N()));
154
145
  }, g;
155
146
  };
156
147
  function N() {
@@ -6,3 +6,8 @@ export * from './layoutChain';
6
6
  export * from './serverElements';
7
7
  export * from './snippet';
8
8
  export { SchemaContext };
9
+ export * from './motion';
10
+ export * from './motionReveal';
11
+ export * from './wire';
12
+ export * from './pageElements';
13
+ export * from './markdownHeadings';
@@ -1,7 +1,12 @@
1
- import e from "./SchemaContext.mjs";
2
- import { ANCHOR_PATTERN as t, anchorOf as n, isAnchor as r, uniqueAnchor as i } from "./anchor.mjs";
3
- import { COMPONENT_PROPS_SOURCE as a, EMPTY_SCHEMA as o, VARIABLE_REGEX as s } from "./schemaConstants.mjs";
4
- import { findLayoutCycle as c, resolveLayoutChain as l } from "./layoutChain.mjs";
5
- import { collectServerElements as u, hasServerElements as d, notFoundProvider as f, pageNotFound as p, pageSeoText as m, pageServerContext as h } from "./serverElements.mjs";
6
- import { isSnippet as g } from "./snippet.mjs";
7
- export { t as ANCHOR_PATTERN, a as COMPONENT_PROPS_SOURCE, o as EMPTY_SCHEMA, e as SchemaContext, s as VARIABLE_REGEX, n as anchorOf, u as collectServerElements, c as findLayoutCycle, d as hasServerElements, r as isAnchor, g as isSnippet, f as notFoundProvider, p as pageNotFound, m as pageSeoText, h as pageServerContext, l as resolveLayoutChain, i as uniqueAnchor };
1
+ import { elementFromWire as e, schemaFromWire as t, schemaToWire as n } from "./wire.mjs";
2
+ import r from "./SchemaContext.mjs";
3
+ import { ANCHOR_PATTERN as i, anchorOf as a, isAnchor as o, uniqueAnchor as s } from "./anchor.mjs";
4
+ import { COMPONENT_PROPS_SOURCE as c, EMPTY_SCHEMA as l, VARIABLE_REGEX as u } from "./schemaConstants.mjs";
5
+ import { findLayoutCycle as d, resolveLayoutChain as f } from "./layoutChain.mjs";
6
+ import { collectServerElements as p, hasServerElements as m, notFoundProvider as h, pageNotFound as g, pageSeoText as _, pageServerContext as v } from "./serverElements.mjs";
7
+ import { isSnippet as y } from "./snippet.mjs";
8
+ import { MOTION_DEFAULT_DURATION as b, MOTION_ENTERS as x, MOTION_ENTER_EASING as S, MOTION_ENTER_FRAMES as C, MOTION_ENTER_FROM as w, MOTION_LOOPS as T, MOTION_LOOP_FRAMES as E, MOTION_MAX_MS as D, MOTION_PLAY_CSS as O, MOTION_SEEN_ATTRIBUTE as k, MOTION_SEEN_CSS as A, MOTION_STILL_CSS as j, MOTION_TRIGGERS as M, MOTION_VIEW_SELECTOR as N, MOVING_SELECTOR as P, isMotion as F, isMotionAnimation as I, motionAttributes as L, motionProblems as R } from "./motion.mjs";
9
+ import { revealOnView as z } from "./motionReveal.mjs";
10
+ import { pageElementTypes as B } from "./pageElements.mjs";
11
+ import { headingText as V, markdownHeadings as H } from "./markdownHeadings.mjs";
12
+ export { i as ANCHOR_PATTERN, c as COMPONENT_PROPS_SOURCE, l as EMPTY_SCHEMA, b as MOTION_DEFAULT_DURATION, x as MOTION_ENTERS, S as MOTION_ENTER_EASING, C as MOTION_ENTER_FRAMES, w as MOTION_ENTER_FROM, T as MOTION_LOOPS, E as MOTION_LOOP_FRAMES, D as MOTION_MAX_MS, O as MOTION_PLAY_CSS, k as MOTION_SEEN_ATTRIBUTE, A as MOTION_SEEN_CSS, j as MOTION_STILL_CSS, M as MOTION_TRIGGERS, N as MOTION_VIEW_SELECTOR, P as MOVING_SELECTOR, r as SchemaContext, u as VARIABLE_REGEX, a as anchorOf, p as collectServerElements, e as elementFromWire, d as findLayoutCycle, m as hasServerElements, V as headingText, o as isAnchor, F as isMotion, I as isMotionAnimation, y as isSnippet, H as markdownHeadings, L as motionAttributes, R as motionProblems, h as notFoundProvider, B as pageElementTypes, g as pageNotFound, _ as pageSeoText, v as pageServerContext, f as resolveLayoutChain, z as revealOnView, t as schemaFromWire, n as schemaToWire, s as uniqueAnchor };
@@ -1,4 +1,4 @@
1
- import { useCommonStoreSync as e } from "../../store/index.mjs";
1
+ import { useCommonStoreSync as e } from "../../store/storeHooks.mjs";
2
2
  //#region src/server/actions/useActionsSync.ts
3
3
  var t = (t) => {
4
4
  e(["actions.endpoint"], [t?.actionPath]);
@@ -1,4 +1,4 @@
1
- import { useCommonStoreSync as e } from "../../store/index.mjs";
1
+ import { useCommonStoreSync as e } from "../../store/storeHooks.mjs";
2
2
  //#region src/server/actions/useImagesSync.ts
3
3
  var t = (t) => {
4
4
  e(["images.endpoint"], [t?.imagePath]);
@@ -1,4 +1,4 @@
1
- import { useCommonStoreSync as e } from "../../store/index.mjs";
1
+ import { useCommonStoreSync as e } from "../../store/storeHooks.mjs";
2
2
  //#region src/server/actions/useRealtimeSync.ts
3
3
  var t = (t) => {
4
4
  e(["realtime.endpoint", "realtime.transport"], [t?.realtimePath, t?.realtimeTransport]);
@@ -4,3 +4,7 @@ import { default as useRscRefresh } from './rsc/useRscRefresh';
4
4
  import { default as useRscSync } from './rsc/useRscSync';
5
5
  export * from './rsc/refreshRsc';
6
6
  export { refreshRsc, useActionsSync, useRscRefresh, useRscSync };
7
+ export * from './rsc/projectData';
8
+ export { default as usePluginRoute } from './usePluginRoute';
9
+ export { default as useImagesSync } from './actions/useImagesSync';
10
+ export { default as useRealtimeSync } from './actions/useRealtimeSync';
@@ -1,5 +1,9 @@
1
1
  import e from "./actions/useActionsSync.mjs";
2
- import t, { cancelRsc as n, currentRscLocation as r, releaseRscRequests as i, rscDataPath as a } from "./rsc/refreshRsc.mjs";
3
- import o from "./rsc/useRscRefresh.mjs";
4
- import s from "./rsc/useRscSync.mjs";
5
- export { n as cancelRsc, r as currentRscLocation, t as refreshRsc, i as releaseRscRequests, a as rscDataPath, e as useActionsSync, o as useRscRefresh, s as useRscSync };
2
+ import t from "./actions/useImagesSync.mjs";
3
+ import n from "./actions/useRealtimeSync.mjs";
4
+ import r, { cancelRsc as i, currentRscLocation as a, releaseRscRequests as o, rscDataPath as s } from "./rsc/refreshRsc.mjs";
5
+ import c from "./rsc/useRscRefresh.mjs";
6
+ import l from "./rsc/useRscSync.mjs";
7
+ import { PROJECT_DATA_PREFIX as u } from "./rsc/projectData.mjs";
8
+ import d from "./usePluginRoute.mjs";
9
+ export { u as PROJECT_DATA_PREFIX, i as cancelRsc, a as currentRscLocation, r as refreshRsc, o as releaseRscRequests, s as rscDataPath, e as useActionsSync, t as useImagesSync, d as usePluginRoute, n as useRealtimeSync, c as useRscRefresh, l as useRscSync };
@@ -1,15 +1,15 @@
1
1
  import { authFailureFromResponse as e, reportAuthFailure as t } from "../../auth/failureChannel.mjs";
2
2
  import { recordRenderActionRuns as n } from "../../store/actionRuns/actionRunsRecorder.mjs";
3
- import { collectServerElements as r, hasServerElements as i } from "../../schema/serverElements.mjs";
4
- import { getPaths as a, matchRoutePath as o } from "../../navigation/routes.mjs";
3
+ import { getPaths as r, matchRoutePath as i } from "../../navigation/routes.mjs";
4
+ import { collectServerElements as a, hasServerElements as o } from "../../schema/serverElements.mjs";
5
5
  //#region src/server/rsc/refreshRsc.ts
6
6
  var s = (e, t, n) => {
7
7
  if (!e) return;
8
- let r = e.pages.reduce((t, n) => (n in e.flat && (t[n] = e.flat[n]), t), {});
9
- return o(a(r, e.pageFolders, n), t.split("?")[0], n).pageId;
10
- }, c = (e, t, n, i) => {
11
- let a = new Set(r(e, t, [...n], i).map(({ id: e }) => e));
12
- return n.filter((e) => a.has(e));
8
+ let a = e.pages.reduce((t, n) => (n in e.flat && (t[n] = e.flat[n]), t), {});
9
+ return i(r(a, e.pageFolders, n), t.split("?")[0], n).pageId;
10
+ }, c = (e, t, n, r) => {
11
+ let i = new Set(a(e, t, [...n], r).map(({ id: e }) => e));
12
+ return n.filter((e) => i.has(e));
13
13
  }, l = (e) => `rsc.data.${e}`, u = () => typeof window > "u" ? "" : `${window.location.pathname}${window.location.search}`, d = "*", f = /* @__PURE__ */ new Map(), p = /* @__PURE__ */ new WeakMap(), m = () => ({
14
14
  seq: 0,
15
15
  inFlight: /* @__PURE__ */ new Set(),
@@ -51,15 +51,15 @@ var s = (e, t, n) => {
51
51
  }
52
52
  e.set("rsc.loaded", !0), e.set("rsc.stale", !1), e.set("rsc.location", i);
53
53
  });
54
- }, x = async (r, a, o, { location: l, fresh: f = !1 } = {}) => {
54
+ }, x = async (r, i, a, { location: l, fresh: f = !1 } = {}) => {
55
55
  let { enabled: p, endpoint: m } = r.get("rsc") ?? {};
56
56
  if (!p || !m || typeof window > "u") return;
57
57
  let v = l ?? u(), y = r.get("schema"), x = r.get("runtime.sources.auth"), S = l ? s(y, l, !!x?.details) : r.get("navigation.currentPageId"), C = l ? void 0 : r.get("runtime.sources.flags");
58
58
  if (!y) return;
59
- let w = a?.length ? c(y, S, a, C) : void 0;
60
- if (w ? !w.length : !i(y, S, C)) return;
59
+ let w = i?.length ? c(y, S, i, C) : void 0;
60
+ if (w ? !w.length : !o(y, S, C)) return;
61
61
  let T = new URLSearchParams({ location: v });
62
- w?.length && T.set("ids", w.join(",")), Object.entries(o ?? {}).forEach(([e, t]) => T.set(e, t));
62
+ w?.length && T.set("ids", w.join(",")), Object.entries(a ?? {}).forEach(([e, t]) => T.set(e, t));
63
63
  let E = `${m}?${T.toString()}`, D = h(r), O = [...D.inFlight].find((e) => e.url === E && (e.fresh || !f));
64
64
  if (O) return O.promise;
65
65
  D.inFlight.forEach((e) => {
@@ -1,4 +1,4 @@
1
- import { useCommonStore as e, useCommonStoreSync as t } from "../../store/index.mjs";
1
+ import { useCommonStore as e, useCommonStoreSync as t } from "../../store/storeHooks.mjs";
2
2
  import n, { currentRscLocation as r, releaseRscRequests as i } from "./refreshRsc.mjs";
3
3
  import { useEffect as a, useId as o } from "react";
4
4
  import { useStoreById as s } from "@plitzi/nexus/react";
@@ -1,5 +1,5 @@
1
1
  import { pluginRoutePath as e } from "../actions/functions.mjs";
2
- import { useCommonStore as t } from "../store/index.mjs";
2
+ import { useCommonStore as t } from "../store/storeHooks.mjs";
3
3
  import { useCallback as n } from "react";
4
4
  //#region src/server/usePluginRoute.ts
5
5
  var r = (r) => {
@@ -61,21 +61,15 @@ var l = /* @__PURE__ */ new Set([
61
61
  h = t?.owner === y ? JSON.stringify(a(t.values, _)) : void 0;
62
62
  }
63
63
  let x = a(b, _), S = JSON.stringify(x);
64
- if (S !== h) {
65
- if (h = S, Object.keys(x).length === 0) {
66
- n(f);
67
- return;
68
- }
69
- s(f, {
70
- owner: y,
71
- values: x
72
- }) === "too-large" && t.warning("store", `settings.paintedState holds more than a cookie can carry — the first paint uses the space's defaults for ${[..._].join(", ")}. Declare only what the first paint shows.`, {
73
- storeName: "runtime",
74
- path: "runtime.state",
75
- prev: void 0,
76
- next: x
77
- });
78
- }
64
+ S !== h && (h = S, Object.keys(x).length === 0 ? n(f) : s(f, {
65
+ owner: y,
66
+ values: x
67
+ }) === "too-large" && t.warning("store", `settings.paintedState holds more than a cookie can carry — the first paint uses the space's defaults for ${[..._].join(", ")}. Declare only what the first paint shows.`, {
68
+ storeName: "runtime",
69
+ path: "runtime.state",
70
+ prev: void 0,
71
+ next: x
72
+ }));
79
73
  };
80
74
  }, b = (t) => {
81
75
  let n = c({