@plitzi/sdk-shared 0.38.17 → 0.38.19

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 (72) hide show
  1. package/CHANGELOG.md +90 -0
  2. package/dist/dataSource/getBindingsDetails.mjs +1 -1
  3. package/dist/dataSource/resolveVariables.mjs +1 -1
  4. package/dist/dataSource/utility/dateConverter.mjs +1 -1
  5. package/dist/{helpers → dates}/formatDate.mjs +1 -1
  6. package/dist/dates/index.d.ts +6 -0
  7. package/dist/dates/index.mjs +3 -0
  8. package/dist/{helpers → dates}/isDate.mjs +1 -1
  9. package/dist/devTools/index.d.ts +1 -3
  10. package/dist/devTools/index.mjs +5 -6
  11. package/dist/devTools/{DevToolsContext.d.ts → react/DevToolsContext.d.ts} +1 -1
  12. package/dist/devTools/{DevToolsContext.mjs → react/DevToolsContext.mjs} +1 -1
  13. package/dist/devTools/react/index.d.ts +3 -0
  14. package/dist/devTools/react/index.mjs +1 -0
  15. package/dist/flags/flagsCookie.mjs +4 -4
  16. package/dist/flags/index.d.ts +0 -2
  17. package/dist/flags/index.mjs +2 -3
  18. package/dist/flags/react/index.d.ts +3 -0
  19. package/dist/flags/react/index.mjs +1 -0
  20. package/dist/flags/{useFlagResolution.d.ts → react/useFlagResolution.d.ts} +2 -4
  21. package/dist/flags/react/useFlagResolution.mjs +35 -0
  22. package/dist/flags/resolveFlags.d.ts +3 -1
  23. package/dist/flags/resolveFlags.mjs +16 -8
  24. package/dist/helpers/generateFacade.mjs +1 -1
  25. package/dist/helpers/index.d.ts +0 -2
  26. package/dist/helpers/index.mjs +17 -19
  27. package/dist/helpers/ruleEvaluator.d.ts +4 -4
  28. package/dist/helpers/ruleEvaluator.mjs +1 -1
  29. package/dist/helpers/utils.mjs +1 -1
  30. package/dist/plugins/index.d.ts +0 -3
  31. package/dist/plugins/index.mjs +1 -3
  32. package/dist/plugins/{PluginsContext.d.ts → react/PluginsContext.d.ts} +1 -1
  33. package/dist/plugins/{PluginsContext.mjs → react/PluginsContext.mjs} +1 -1
  34. package/dist/plugins/react/index.d.ts +3 -0
  35. package/dist/plugins/react/index.mjs +1 -0
  36. package/dist/project/index.mjs +5 -5
  37. package/dist/project/layout.mjs +1 -1
  38. package/dist/project/{paths.d.ts → paths/index.d.ts} +8 -1
  39. package/dist/project/paths/index.mjs +4 -0
  40. package/dist/project/root.mjs +1 -1
  41. package/dist/schema/index.d.ts +0 -3
  42. package/dist/schema/index.mjs +10 -11
  43. package/dist/schema/{SchemaContext.d.ts → react/SchemaContext.d.ts} +1 -1
  44. package/dist/schema/{SchemaContext.mjs → react/SchemaContext.mjs} +1 -1
  45. package/dist/schema/react/index.d.ts +3 -0
  46. package/dist/schema/react/index.mjs +1 -0
  47. package/dist/server/index.d.ts +0 -1
  48. package/dist/server/index.mjs +2 -3
  49. package/dist/store/storeHooks.d.ts +33 -33
  50. package/dist/style/index.d.ts +0 -2
  51. package/dist/style/index.mjs +2 -4
  52. package/dist/style/react/index.d.ts +5 -0
  53. package/dist/style/react/index.mjs +3 -0
  54. package/dist/style/{useDisplayMode.d.ts → react/useDisplayMode.d.ts} +1 -1
  55. package/dist/style/{useDisplayMode.mjs → react/useDisplayMode.mjs} +2 -2
  56. package/dist/style/{useElementSize.mjs → react/useElementSize.mjs} +1 -1
  57. package/dist/theme/ThemeProvider.mjs +1 -1
  58. package/dist/theme/cookie/index.d.ts +1 -0
  59. package/dist/theme/cookie/index.mjs +1 -0
  60. package/dist/theme/{themeCookie.d.ts → cookie/themeCookie.d.ts} +1 -1
  61. package/dist/theme/{themeCookie.mjs → cookie/themeCookie.mjs} +2 -2
  62. package/dist/theme/index.d.ts +1 -1
  63. package/dist/theme/index.mjs +1 -1
  64. package/dist/types/ServerTypes.d.ts +27 -11
  65. package/package.json +2 -2
  66. package/dist/flags/useFlagResolution.mjs +0 -43
  67. package/dist/project/paths.mjs +0 -4
  68. package/dist/server/rsc/projectData.d.ts +0 -6
  69. package/dist/server/rsc/projectData.mjs +0 -4
  70. /package/dist/{helpers → dates}/formatDate.d.ts +0 -0
  71. /package/dist/{helpers → dates}/isDate.d.ts +0 -0
  72. /package/dist/style/{useElementSize.d.ts → react/useElementSize.d.ts} +0 -0
@@ -1,12 +1,11 @@
1
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 };
2
+ import { ANCHOR_PATTERN as r, anchorOf as i, isAnchor as a, uniqueAnchor as o } from "./anchor.mjs";
3
+ import { COMPONENT_PROPS_SOURCE as s, EMPTY_SCHEMA as c, VARIABLE_REGEX as l } from "./schemaConstants.mjs";
4
+ import { findLayoutCycle as u, resolveLayoutChain as d } from "./layoutChain.mjs";
5
+ import { collectServerElements as f, hasServerElements as p, notFoundProvider as m, pageNotFound as h, pageSeoText as g, pageServerContext as _ } from "./serverElements.mjs";
6
+ import { isSnippet as v } from "./snippet.mjs";
7
+ import { MOTION_DEFAULT_DURATION as y, MOTION_ENTERS as b, MOTION_ENTER_EASING as x, MOTION_ENTER_FRAMES as S, MOTION_ENTER_FROM as C, MOTION_LOOPS as w, MOTION_LOOP_FRAMES as T, MOTION_MAX_MS as E, MOTION_PLAY_CSS as D, MOTION_SEEN_ATTRIBUTE as O, MOTION_SEEN_CSS as k, MOTION_STILL_CSS as A, MOTION_TRIGGERS as j, MOTION_VIEW_SELECTOR as M, MOVING_SELECTOR as N, isMotion as P, isMotionAnimation as F, motionAttributes as I, motionProblems as L } from "./motion.mjs";
8
+ import { revealOnView as R } from "./motionReveal.mjs";
9
+ import { pageElementTypes as z } from "./pageElements.mjs";
10
+ import { headingText as B, markdownHeadings as V } from "./markdownHeadings.mjs";
11
+ export { r as ANCHOR_PATTERN, s as COMPONENT_PROPS_SOURCE, c as EMPTY_SCHEMA, y as MOTION_DEFAULT_DURATION, b as MOTION_ENTERS, x as MOTION_ENTER_EASING, S as MOTION_ENTER_FRAMES, C as MOTION_ENTER_FROM, w as MOTION_LOOPS, T as MOTION_LOOP_FRAMES, E as MOTION_MAX_MS, D as MOTION_PLAY_CSS, O as MOTION_SEEN_ATTRIBUTE, k as MOTION_SEEN_CSS, A as MOTION_STILL_CSS, j as MOTION_TRIGGERS, M as MOTION_VIEW_SELECTOR, N as MOVING_SELECTOR, l as VARIABLE_REGEX, i as anchorOf, f as collectServerElements, e as elementFromWire, u as findLayoutCycle, p as hasServerElements, B as headingText, a as isAnchor, P as isMotion, F as isMotionAnimation, v as isSnippet, V as markdownHeadings, I as motionAttributes, L as motionProblems, m as notFoundProvider, z as pageElementTypes, h as pageNotFound, g as pageSeoText, _ as pageServerContext, d as resolveLayoutChain, R as revealOnView, t as schemaFromWire, n as schemaToWire, o as uniqueAnchor };
@@ -1,3 +1,3 @@
1
- import { SchemaContextValue } from '../types';
1
+ import { SchemaContextValue } from '../../types';
2
2
  declare const SchemaContext: import('react').Context<SchemaContextValue>;
3
3
  export default SchemaContext;
@@ -1,4 +1,4 @@
1
- import { sharedContext as e } from "../helpers/sharedContext.mjs";
1
+ import { sharedContext as e } from "../../helpers/sharedContext.mjs";
2
2
  var t = e("SchemaContext", { definition: { rootId: "" } });
3
3
  //#endregion
4
4
  export { t as default };
@@ -0,0 +1,3 @@
1
+ /** schema's React bindings — apart from `@plitzi/sdk-shared/schema`, which a server imports without React's hooks and contexts. */
2
+ export { default as SchemaContext } from './SchemaContext';
3
+ export * from './SchemaContext';
@@ -0,0 +1 @@
1
+ export { default as SchemaContext } from "./SchemaContext.mjs";
@@ -4,7 +4,6 @@ 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
7
  export { default as usePluginRoute } from './usePluginRoute';
9
8
  export { default as useImagesSync } from './actions/useImagesSync';
10
9
  export { default as useRealtimeSync } from './actions/useRealtimeSync';
@@ -4,6 +4,5 @@ import n from "./actions/useRealtimeSync.mjs";
4
4
  import r, { cancelRsc as i, currentRscLocation as a, releaseRscRequests as o, rscDataPath as s } from "./rsc/refreshRsc.mjs";
5
5
  import c from "./rsc/useRscRefresh.mjs";
6
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 };
7
+ import u from "./usePluginRoute.mjs";
8
+ export { i as cancelRsc, a as currentRscLocation, r as refreshRsc, o as releaseRscRequests, s as rscDataPath, e as useActionsSync, t as useImagesSync, u as usePluginRoute, n as useRealtimeSync, c as useRscRefresh, l as useRscSync };