@plitzi/sdk-shared 0.38.17 → 0.38.18

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 (66) hide show
  1. package/CHANGELOG.md +66 -0
  2. package/dist/dataSource/utility/dateConverter.mjs +1 -1
  3. package/dist/{helpers → dates}/formatDate.mjs +1 -1
  4. package/dist/dates/index.d.ts +6 -0
  5. package/dist/dates/index.mjs +3 -0
  6. package/dist/{helpers → dates}/isDate.mjs +1 -1
  7. package/dist/devTools/index.d.ts +1 -3
  8. package/dist/devTools/index.mjs +5 -6
  9. package/dist/devTools/{DevToolsContext.d.ts → react/DevToolsContext.d.ts} +1 -1
  10. package/dist/devTools/{DevToolsContext.mjs → react/DevToolsContext.mjs} +1 -1
  11. package/dist/devTools/react/index.d.ts +3 -0
  12. package/dist/devTools/react/index.mjs +1 -0
  13. package/dist/flags/flagsCookie.mjs +4 -4
  14. package/dist/flags/index.d.ts +0 -2
  15. package/dist/flags/index.mjs +2 -3
  16. package/dist/flags/react/index.d.ts +3 -0
  17. package/dist/flags/react/index.mjs +1 -0
  18. package/dist/flags/{useFlagResolution.d.ts → react/useFlagResolution.d.ts} +2 -4
  19. package/dist/flags/react/useFlagResolution.mjs +35 -0
  20. package/dist/flags/resolveFlags.d.ts +3 -1
  21. package/dist/flags/resolveFlags.mjs +16 -8
  22. package/dist/helpers/index.d.ts +0 -2
  23. package/dist/helpers/index.mjs +17 -19
  24. package/dist/plugins/index.d.ts +0 -3
  25. package/dist/plugins/index.mjs +1 -3
  26. package/dist/plugins/{PluginsContext.d.ts → react/PluginsContext.d.ts} +1 -1
  27. package/dist/plugins/{PluginsContext.mjs → react/PluginsContext.mjs} +1 -1
  28. package/dist/plugins/react/index.d.ts +3 -0
  29. package/dist/plugins/react/index.mjs +1 -0
  30. package/dist/project/index.mjs +5 -5
  31. package/dist/project/layout.mjs +1 -1
  32. package/dist/project/{paths.d.ts → paths/index.d.ts} +8 -1
  33. package/dist/project/paths/index.mjs +4 -0
  34. package/dist/project/root.mjs +1 -1
  35. package/dist/schema/index.d.ts +0 -3
  36. package/dist/schema/index.mjs +10 -11
  37. package/dist/schema/{SchemaContext.d.ts → react/SchemaContext.d.ts} +1 -1
  38. package/dist/schema/{SchemaContext.mjs → react/SchemaContext.mjs} +1 -1
  39. package/dist/schema/react/index.d.ts +3 -0
  40. package/dist/schema/react/index.mjs +1 -0
  41. package/dist/server/index.d.ts +0 -1
  42. package/dist/server/index.mjs +2 -3
  43. package/dist/store/storeHooks.d.ts +33 -33
  44. package/dist/style/index.d.ts +0 -2
  45. package/dist/style/index.mjs +2 -4
  46. package/dist/style/react/index.d.ts +5 -0
  47. package/dist/style/react/index.mjs +3 -0
  48. package/dist/style/{useDisplayMode.d.ts → react/useDisplayMode.d.ts} +1 -1
  49. package/dist/style/{useDisplayMode.mjs → react/useDisplayMode.mjs} +2 -2
  50. package/dist/style/{useElementSize.mjs → react/useElementSize.mjs} +1 -1
  51. package/dist/theme/ThemeProvider.mjs +1 -1
  52. package/dist/theme/cookie/index.d.ts +1 -0
  53. package/dist/theme/cookie/index.mjs +1 -0
  54. package/dist/theme/{themeCookie.d.ts → cookie/themeCookie.d.ts} +1 -1
  55. package/dist/theme/{themeCookie.mjs → cookie/themeCookie.mjs} +2 -2
  56. package/dist/theme/index.d.ts +1 -1
  57. package/dist/theme/index.mjs +1 -1
  58. package/dist/types/ServerTypes.d.ts +27 -11
  59. package/package.json +1 -1
  60. package/dist/flags/useFlagResolution.mjs +0 -43
  61. package/dist/project/paths.mjs +0 -4
  62. package/dist/server/rsc/projectData.d.ts +0 -6
  63. package/dist/server/rsc/projectData.mjs +0 -4
  64. /package/dist/{helpers → dates}/formatDate.d.ts +0 -0
  65. /package/dist/{helpers → dates}/isDate.d.ts +0 -0
  66. /package/dist/style/{useElementSize.d.ts → react/useElementSize.d.ts} +0 -0
@@ -16,6 +16,4 @@ export * from './styleStates';
16
16
  export * from './styleTarget';
17
17
  export { styleConstants };
18
18
  export * from './notifications';
19
- export { default as useDisplayMode } from './useDisplayMode';
20
- export { default as useElementSize } from './useElementSize';
21
19
  export * from './keyframes';
@@ -14,7 +14,5 @@ import { mergeSnippetStyle as te, sameSelector as ne, selectorsOf as re } from "
14
14
  import { MOTION_CONDITIONS as ie, STYLE_CONDITION_LABELS as ae, STYLE_MOTION_CONDITIONS as oe, canonicalCondition as se, conditionAtRule as ce, conditionLabel as le, conditionOfAtRule as ue, isStyleCondition as de, parseContainerCondition as fe } from "./styleConditions.mjs";
15
15
  import { isStyleRules as pe, setAtKeys as me, styleTargetKeys as he, styleTargetProblem as ge, styleTargetRules as _e, valueAtKeys as ve } from "./styleTarget.mjs";
16
16
  import { NOTIFICATIONS_FIELDS as ye, notificationsCss as be, notificationsProblem as xe, splitNotificationsCss as Se, withNotificationsCss as Ce } from "./notifications.mjs";
17
- import we from "./useDisplayMode.mjs";
18
- import Te from "./useElementSize.mjs";
19
- import { SDK_KEYFRAMES_PREFIX as Ee, animationNamesIn as De, isFrameSelector as Oe, isKeyframesName as ke, keyframesCss as Ae, keyframesNamesIn as je, splitKeyframesCss as Me, withKeyframesCss as Ne } from "./keyframes.mjs";
20
- export { n as CONTENT_PSEUDOS, d as CURRENT_SELECTOR, e as DISPLAY_MODES, D as DISPLAY_MODE_MIN_WIDTH, C as EMPTY_STYLE_SCHEMA, f as EXPANDED_SELECTOR, W as FontValidationError, r as GENERATED_PSEUDOS, p as HIDDEN_CLASS, J as LAYOUT_GRIDS, ie as MOTION_CONDITIONS, ye as NOTIFICATIONS_FIELDS, m as PARENT_ANCESTOR, A as PLUGIN_CSS_LAYER, i as PSEUDO_PROPERTIES, j as RUNTIME_CSS_LAYER, Z as RUNTIME_STYLE_ID, Ee as SDK_KEYFRAMES_PREFIX, ae as STYLE_CONDITION_LABELS, oe as STYLE_MOTION_CONDITIONS, a as STYLE_PSEUDOS, o as STYLE_PSEUDO_LABELS, h as STYLE_STATES, g as STYLE_STATE_LABELS, P as SYSTEM_FONTS, w as StyleBindingsAllowed, De as animationNamesIn, F as availableFonts, T as baseDefaultValue, se as canonicalCondition, ce as conditionAtRule, le as conditionLabel, ue as conditionOfAtRule, O as displayModeAt, k as displayModeWidthRem, K as fallbackForFamily, I as familiesInCss, L as fontFamilyStack, N as fontLinkAssets, R as fontUrlResolver, q as fontsFromCss, z as fontsToHead, B as googleCss2Url, V as googleTextSubsetUrl, _ as inCascadeOrder, M as inPluginLayer, E as inheritableAttributesBase, s as isContentValue, t as isDisplayMode, Oe as isFrameSelector, ke as isKeyframesName, v as isKnownState, y as isParentAncestor, H as isSafeFontUrl, b as isStartingState, de as isStyleCondition, c as isStylePseudo, pe as isStyleRules, Ae as keyframesCss, je as keyframesNamesIn, Y as layoutGridCss, X as layoutGridLook, Q as markStyleCache, te as mergeSnippetStyle, be as notificationsCss, xe as notificationsProblem, fe as parseContainerCondition, G as parseSpaceFont, U as primaryFamily, l as pseudoHonours, u as pseudoSuffix, ne as sameSelector, re as selectorsOf, me as setAtKeys, Me as splitKeyframesCss, Se as splitNotificationsCss, x as stateSuffix, $ as styleCacheFromDocument, ee as styleCacheTravelsInDocument, S as styleConstants, he as styleTargetKeys, ge as styleTargetProblem, _e as styleTargetRules, we as useDisplayMode, Te as useElementSize, ve as valueAtKeys, Ne as withKeyframesCss, Ce as withNotificationsCss };
17
+ import { SDK_KEYFRAMES_PREFIX as we, animationNamesIn as Te, isFrameSelector as Ee, isKeyframesName as De, keyframesCss as Oe, keyframesNamesIn as ke, splitKeyframesCss as Ae, withKeyframesCss as je } from "./keyframes.mjs";
18
+ export { n as CONTENT_PSEUDOS, d as CURRENT_SELECTOR, e as DISPLAY_MODES, D as DISPLAY_MODE_MIN_WIDTH, C as EMPTY_STYLE_SCHEMA, f as EXPANDED_SELECTOR, W as FontValidationError, r as GENERATED_PSEUDOS, p as HIDDEN_CLASS, J as LAYOUT_GRIDS, ie as MOTION_CONDITIONS, ye as NOTIFICATIONS_FIELDS, m as PARENT_ANCESTOR, A as PLUGIN_CSS_LAYER, i as PSEUDO_PROPERTIES, j as RUNTIME_CSS_LAYER, Z as RUNTIME_STYLE_ID, we as SDK_KEYFRAMES_PREFIX, ae as STYLE_CONDITION_LABELS, oe as STYLE_MOTION_CONDITIONS, a as STYLE_PSEUDOS, o as STYLE_PSEUDO_LABELS, h as STYLE_STATES, g as STYLE_STATE_LABELS, P as SYSTEM_FONTS, w as StyleBindingsAllowed, Te as animationNamesIn, F as availableFonts, T as baseDefaultValue, se as canonicalCondition, ce as conditionAtRule, le as conditionLabel, ue as conditionOfAtRule, O as displayModeAt, k as displayModeWidthRem, K as fallbackForFamily, I as familiesInCss, L as fontFamilyStack, N as fontLinkAssets, R as fontUrlResolver, q as fontsFromCss, z as fontsToHead, B as googleCss2Url, V as googleTextSubsetUrl, _ as inCascadeOrder, M as inPluginLayer, E as inheritableAttributesBase, s as isContentValue, t as isDisplayMode, Ee as isFrameSelector, De as isKeyframesName, v as isKnownState, y as isParentAncestor, H as isSafeFontUrl, b as isStartingState, de as isStyleCondition, c as isStylePseudo, pe as isStyleRules, Oe as keyframesCss, ke as keyframesNamesIn, Y as layoutGridCss, X as layoutGridLook, Q as markStyleCache, te as mergeSnippetStyle, be as notificationsCss, xe as notificationsProblem, fe as parseContainerCondition, G as parseSpaceFont, U as primaryFamily, l as pseudoHonours, u as pseudoSuffix, ne as sameSelector, re as selectorsOf, me as setAtKeys, Ae as splitKeyframesCss, Se as splitNotificationsCss, x as stateSuffix, $ as styleCacheFromDocument, ee as styleCacheTravelsInDocument, S as styleConstants, he as styleTargetKeys, ge as styleTargetProblem, _e as styleTargetRules, ve as valueAtKeys, je as withKeyframesCss, Ce as withNotificationsCss };
@@ -0,0 +1,5 @@
1
+ /** style's React bindings — apart from `@plitzi/sdk-shared/style`, which a server imports without React's hooks and contexts. */
2
+ export { default as useDisplayMode } from './useDisplayMode';
3
+ export * from './useDisplayMode';
4
+ export { default as useElementSize } from './useElementSize';
5
+ export * from './useElementSize';
@@ -0,0 +1,3 @@
1
+ import e from "./useDisplayMode.mjs";
2
+ import t from "./useElementSize.mjs";
3
+ export { e as useDisplayMode, t as useElementSize };
@@ -1,4 +1,4 @@
1
- import { DisplayMode } from '../types';
1
+ import { DisplayMode } from '../../types';
2
2
  /**
3
3
  * Which of the space's breakpoints the page is showing — `desktop`, `tablet` or `mobile` — kept current as the window
4
4
  * or the builder's canvas is resized. For a plugin that decides by layout (a dock only where there is room for one)
@@ -1,6 +1,6 @@
1
- import { displayModeWidthRem as e } from "./breakpoints.mjs";
1
+ import { displayModeWidthRem as e } from "../breakpoints.mjs";
2
2
  import { useSyncExternalStore as t } from "react";
3
- //#region src/style/useDisplayMode.ts
3
+ //#region src/style/react/useDisplayMode.ts
4
4
  var n = {
5
5
  mobile: `(max-width: ${e("tablet")})`,
6
6
  tablet: `(max-width: ${e("desktop")})`
@@ -1,5 +1,5 @@
1
1
  import { useEffect as e, useState as t } from "react";
2
- //#region src/style/useElementSize.ts
2
+ //#region src/style/react/useElementSize.ts
3
3
  var n = (n) => {
4
4
  let [r, i] = t(void 0);
5
5
  return e(() => {
@@ -1,5 +1,5 @@
1
1
  import { useCommonStoreSync as e } from "../store/storeHooks.mjs";
2
- import { THEME_COOKIE_NAME as t, applyThemeClass as n, readThemeCookie as r, writeThemeCookie as i } from "./themeCookie.mjs";
2
+ import { THEME_COOKIE_NAME as t, applyThemeClass as n, readThemeCookie as r, writeThemeCookie as i } from "./cookie/themeCookie.mjs";
3
3
  import a, { createThemeStore as o, resolveScheme as s, setMachineScheme as c, setThemeMode as l } from "./themeStore.mjs";
4
4
  import u, { ThemeStartContext as d, useThemeState as f } from "./ThemeScope.mjs";
5
5
  import { use as p, useEffect as m, useId as h, useRef as g, useState as _ } from "react";
@@ -0,0 +1 @@
1
+ export * from './themeCookie';
@@ -0,0 +1 @@
1
+ export { THEME_CLASSES, THEME_COOKIE_NAME, applyThemeClass, isTheme, readThemeCookie, themeFromCookies, writeThemeCookie } from "./themeCookie.mjs";
@@ -1,4 +1,4 @@
1
- import { Theme } from '../types';
1
+ import { Theme } from '../../types';
2
2
  /** The name the choice is kept under, and the one a server reads it back with. */
3
3
  export declare const THEME_COOKIE_NAME = "theme";
4
4
  /** The two a document may WEAR. `system` writes nothing — the absence is what lets the media queries answer. */
@@ -1,5 +1,5 @@
1
- import { cookieFromHeader as e } from "../helpers/cookies.mjs";
2
- //#region src/theme/themeCookie.ts
1
+ import { cookieFromHeader as e } from "../../helpers/cookies.mjs";
2
+ //#region src/theme/cookie/themeCookie.ts
3
3
  var t = "theme", n = ["dark", "light"], r = [...n, "system"], i = 31536e3, a = (e) => r.includes(e), o = (e, t) => {
4
4
  for (let r of n) t.classList.toggle(r, e === r);
5
5
  }, s = (n, r = t) => {
@@ -2,7 +2,7 @@ import { default as ThemeProvider } from './ThemeProvider';
2
2
  import { default as useTheme } from './useTheme';
3
3
  export * from './ThemeProvider';
4
4
  export * from './ThemeScope';
5
- export * from './themeCookie';
5
+ export * from './cookie';
6
6
  export * from './themeStore';
7
7
  export * from './useTheme';
8
8
  export { default as themeStore } from './themeStore';
@@ -1,4 +1,4 @@
1
- import { THEME_CLASSES as e, THEME_COOKIE_NAME as t, applyThemeClass as n, isTheme as r, readThemeCookie as i, themeFromCookies as a, writeThemeCookie as o } from "./themeCookie.mjs";
1
+ import { THEME_CLASSES as e, THEME_COOKIE_NAME as t, applyThemeClass as n, isTheme as r, readThemeCookie as i, themeFromCookies as a, writeThemeCookie as o } from "./cookie/themeCookie.mjs";
2
2
  import s, { createThemeState as c, createThemeStore as l, resolveScheme as u, setAreaTheme as d, setMachineScheme as f, setThemeMode as p, startingThemeState as m, themeFor as h } from "./themeStore.mjs";
3
3
  import g, { ThemeStartContext as _, useThemeState as v, useThemeStore as y } from "./ThemeScope.mjs";
4
4
  import b from "./ThemeProvider.mjs";
@@ -151,8 +151,12 @@ export type SSRTemplateProps = {
151
151
  reactCompilerRuntime?: string;
152
152
  /** When true the client-side <script> block is omitted — useful for inspecting raw SSR HTML. */
153
153
  ssrOnly?: boolean;
154
- /** The page listens for the server saying the space changed, and loads again — with `devReload` on (`reloadPages`). */
155
- devReload?: boolean;
154
+ /** The page listens for what the server tells it changed — with `livePages` on (`updatePages`, `reloadPages`). */
155
+ livePages?: boolean;
156
+ /** The draft the page shows (`?__pt=<id>`), named in its listening address so it hears its own changes alone. */
157
+ liveDraft?: string;
158
+ /** The page's plugins can be swapped where they are drawn — a server developing (`devMode`) with `livePages` on. */
159
+ hotPlugins?: boolean;
156
160
  debugMode?: boolean;
157
161
  /**
158
162
  * The theme class this document wears on `<html>` — `dark`, `light`, or nothing at all.
@@ -962,11 +966,13 @@ export type SSRServerConfig = {
962
966
  static?: Record<string, string>;
963
967
  devMode?: boolean;
964
968
  /**
965
- * Every page this server renders listens for `reloadPages` and loads again — the edit loop of a project that authors
966
- * its space in code and re-authors it on save. Off unless asked for, `devMode` included: each open page holds a
967
- * connection to the server for it, which a server that never calls `reloadPages` would only pay for.
969
+ * Every page this server renders listens for what changes under it: new documents for the space it shows, swapped
970
+ * where it stands (`updatePages`), or everything loaded again (`reloadPages`) — the edit loop of a project that
971
+ * authors its space in code, a page an agent keeps rewriting (`createAuthoringHost`). Off unless asked for, `devMode`
972
+ * included: each open page holds a connection to the server for it, which a server whose space never changes under
973
+ * it would only pay for.
968
974
  */
969
- devReload?: boolean;
975
+ livePages?: boolean;
970
976
  /** Authorizes debugging on the pages this server renders. An SSR page loads the very same SDK, so this is the
971
977
  * server-side face of the SDK's `debugMode` prop: the page decides, and the visitor's 'plitzi_debug' cookie can
972
978
  * only narrow it. Left unset, `devMode` authorizes it — a development server debugs without being told to — and
@@ -1050,8 +1056,9 @@ export type SSRServerConfig = {
1050
1056
  /** Realtime channels the spaces declare — see {@link SSRRealtimeConfig}. On, in memory, when absent. */
1051
1057
  realtime?: SSRRealtimeConfig;
1052
1058
  /**
1053
- * The writes a page on another site may cause here. None, by default: a browser's POST, PUT, PATCH or DELETE that it
1054
- * says another site caused (`Sec-Fetch-Site: cross-site`, or a foreign `Origin`) is refused 403 `reason: 'foreign'` —
1059
+ * The writes a page of another origin may cause here. None, by default: a browser's POST, PUT, PATCH or DELETE that it
1060
+ * says a page of another origin caused (`Sec-Fetch-Site` `cross-site` or `same-site` — another port of this host, a
1061
+ * sibling sub-domain — or a foreign `Origin`) is refused 403 `reason: 'foreign'` —
1055
1062
  * a session cookie or none, because a server holding credentials of its own, or a tool nobody signs in to, acts for
1056
1063
  * whoever reaches it. A request with `Authorization`, and one that is not a browser's (a webhook, a script), are never
1057
1064
  * asked. With `auth`, the deployment's `identity.platformOrigins` count as its own too.
@@ -1059,7 +1066,7 @@ export type SSRServerConfig = {
1059
1066
  crossSiteWrites?: {
1060
1067
  /** Origins whose pages may write here, exactly as a browser sends them — `https://app.example.com`. */
1061
1068
  origins?: string[];
1062
- /** Paths any site may post to: a form other sites embed by design. */
1069
+ /** Paths any origin may post to: a form other sites embed by design. */
1063
1070
  paths?: (path: string) => boolean;
1064
1071
  };
1065
1072
  /** Connector manifest and credential lookups — see {@link ConnectorLookupsConfig}. They serve the RSC read path
@@ -1224,10 +1231,19 @@ export type SSRServer = {
1224
1231
  readonly cache: CacheManager | null;
1225
1232
  readonly plugins: PluginRegistry;
1226
1233
  /**
1227
- * With `devReload` on, every page open on this server loads again — what a project that authors its space in code
1228
- * calls once it serves the new documents (`serveProject`), instead of restarting the server. Nothing otherwise.
1234
+ * With `livePages` on, every page open on this server loads again — what a change the pages cannot be handed as
1235
+ * documents calls (the server's own code, its plugins' declarations). Nothing otherwise.
1229
1236
  */
1230
1237
  reloadPages: () => void;
1238
+ /**
1239
+ * With `livePages` on, every page open on this server showing its own space — or, with `draft`, that draft — swaps it
1240
+ * for `documents` where it stands, its state, scroll and focus kept; a page that cannot (one with elements the server
1241
+ * draws) loads again. What a project that authors its space in code calls once it serves the new documents
1242
+ * (`serveProject`), instead of restarting the server. How many pages were told; none without `livePages`.
1243
+ */
1244
+ updatePages: (documents: OfflineDataRaw, options?: {
1245
+ draft?: string;
1246
+ }) => number;
1231
1247
  /**
1232
1248
  * The server halves of the plugins this server ships (`functions.plugins`), replaced while it runs: what a development
1233
1249
  * server does when a plugin's `functions/` change. `definition` is what `loadFunctions` loads; none takes it away.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plitzi/sdk-shared",
3
- "version": "0.38.17",
3
+ "version": "0.38.18",
4
4
  "license": "AGPL-3.0",
5
5
  "files": [
6
6
  "dist",
@@ -1,43 +0,0 @@
1
- import { resolveFlags as e } from "./resolveFlags.mjs";
2
- import t from "../hooks/useStableValue.mjs";
3
- import { useCommonStore as n } from "../store/storeHooks.mjs";
4
- import r from "../store/renderSettings.mjs";
5
- import { useMemo as i } from "react";
6
- //#region src/flags/useFlagResolution.ts
7
- var a = ({ authenticated: e, user: t }) => {
8
- let n = t?.details, r = { authenticated: e === !0 };
9
- return n ? {
10
- ...r,
11
- email: n.email,
12
- username: n.username,
13
- roles: n.roles
14
- } : r;
15
- }, o = (o) => {
16
- let { environment: s } = r(), [[c, l, u, d, f]] = n([
17
- "schema.flags",
18
- "navigation.routeParams",
19
- "navigation.queryParams",
20
- "navigation.hostname",
21
- "flags.overrides"
22
- ]), { authenticated: p, user: m } = o, h = i(() => a({
23
- authenticated: p,
24
- user: m
25
- }), [p, m]);
26
- return t(i(() => e(c, {
27
- environment: s,
28
- hostname: d,
29
- routeParams: l,
30
- queryParams: u,
31
- user: h
32
- }, f), [
33
- c,
34
- s,
35
- d,
36
- l,
37
- u,
38
- h,
39
- f
40
- ]));
41
- };
42
- //#endregion
43
- export { o as default, a as flagUserFrom };
@@ -1,4 +0,0 @@
1
- //#region src/project/paths.ts
2
- var e = "tmp", t = "src", n = "plitzi", r = `${n}/author.ts`, i = "src/space", a = `${i}/index.ts`, o = "src/plugins", s = ["index.ts", "index.tsx"], c = "declaration.ts", l = "functions", u = "vendor/plugins", d = "plugin-manifest.json", f = "vendor/runtime.bundle", p = "public", m = "src/data", h = "src/functions", g = "src/runtime", _ = `${g}/index.ts`, v = "dist", y = "state", b = `${y}/kv.json`, x = "tmp/dev-server.json";
3
- //#endregion
4
- export { r as AUTHOR_FILE, v as BUILD_DIR, n as CLI_DIR, m as DATA_DIR, x as DEV_SERVER_FILE, h as FUNCTIONS_DIR, b as KV_FILE, o as PLUGINS_DIR, c as PLUGIN_DECLARATION_FILE, s as PLUGIN_ENTRIES, l as PLUGIN_FUNCTIONS_DIR, d as PLUGIN_MANIFEST_FILE, y as PROJECT_STATE, e as PROJECT_TMP, p as PUBLIC_DIR, f as RUNTIME_BUNDLE, g as RUNTIME_DIR, _ as RUNTIME_ENTRY, t as SOURCE_DIR, i as SPACE_DIR, a as SPACE_ENTRY, u as VENDOR_PLUGINS_DIR };
@@ -1,6 +0,0 @@
1
- /**
2
- * Where a project's own data answers: a provider whose `query` is `/data/<file>` reads `<file>` from the folder the
3
- * server keeps it in (`dataDir`), which is never served — so only a provider resolved on the server reads it. The
4
- * server's resolver and the authoring check that refuses a browser read hold the same prefix.
5
- */
6
- export declare const PROJECT_DATA_PREFIX = "/data/";
@@ -1,4 +0,0 @@
1
- //#region src/server/rsc/projectData.ts
2
- var e = "/data/";
3
- //#endregion
4
- export { e as PROJECT_DATA_PREFIX };
File without changes
File without changes