@plitzi/sdk-shared 0.38.15 → 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 (91) hide show
  1. package/CHANGELOG.md +102 -0
  2. package/dist/actions/cron.mjs +5 -9
  3. package/dist/actions/validateDocument.mjs +24 -50
  4. package/dist/activity/describe.d.ts +6 -0
  5. package/dist/activity/describe.mjs +22 -0
  6. package/dist/activity/guard.d.ts +6 -0
  7. package/dist/activity/guard.mjs +13 -0
  8. package/dist/activity/index.d.ts +3 -0
  9. package/dist/activity/index.mjs +4 -0
  10. package/dist/activity/types.d.ts +94 -0
  11. package/dist/activity/types.mjs +4 -0
  12. package/dist/connectors/validateManifest.mjs +28 -73
  13. package/dist/dataSource/helpers/index.mjs +1 -2
  14. package/dist/dataSource/index.d.ts +1 -1
  15. package/dist/dataSource/index.mjs +6 -8
  16. package/dist/dataSource/utility/index.d.ts +1 -0
  17. package/dist/dataSource/utility/index.mjs +16 -15
  18. package/dist/devTools/utils/PlitziConsole.mjs +8 -12
  19. package/dist/elements/index.mjs +1 -2
  20. package/dist/flags/index.d.ts +2 -0
  21. package/dist/flags/index.mjs +2 -1
  22. package/dist/flags/useFlagResolution.mjs +6 -6
  23. package/dist/helpers/index.d.ts +8 -0
  24. package/dist/helpers/index.mjs +21 -13
  25. package/dist/helpers/keys.mjs +4 -8
  26. package/dist/helpers/twigWrapper/Evaluator/index.mjs +1 -2
  27. package/dist/helpers/twigWrapper/Parser/ExpressionParser.mjs +12 -26
  28. package/dist/helpers/twigWrapper/Parser/index.mjs +1 -2
  29. package/dist/helpers/twigWrapper/TemplateCache/index.mjs +1 -2
  30. package/dist/helpers/twigWrapper/charClass.mjs +2 -6
  31. package/dist/helpers/twigWrapper/filters/index.mjs +1 -2
  32. package/dist/helpers/twigWrapper/templateRoots.mjs +3 -8
  33. package/dist/hooks/useNetwork.mjs +1 -4
  34. package/dist/index.d.ts +5 -18
  35. package/dist/index.mjs +3 -96
  36. package/dist/network/graphql/builder/Mutations/index.d.ts +1 -0
  37. package/dist/network/graphql/builder/Mutations/index.mjs +148 -148
  38. package/dist/network/graphql/builder/Queries/index.mjs +4 -4
  39. package/dist/network/index.mjs +8 -8
  40. package/dist/plugins/{bundle.mjs → bundle/bundle.mjs} +1 -1
  41. package/dist/plugins/bundle/index.d.ts +2 -0
  42. package/dist/plugins/bundle/index.mjs +1 -0
  43. package/dist/plugins/index.d.ts +4 -0
  44. package/dist/plugins/index.mjs +3 -0
  45. package/dist/project/index.d.ts +8 -0
  46. package/dist/project/index.mjs +5 -0
  47. package/dist/project/layout.mjs +4 -4
  48. package/dist/queries/queryCache.mjs +1 -7
  49. package/dist/realtime/client.mjs +3 -12
  50. package/dist/schema/index.d.ts +5 -0
  51. package/dist/schema/index.mjs +12 -7
  52. package/dist/server/actions/useActionsSync.mjs +1 -1
  53. package/dist/server/actions/useImagesSync.mjs +1 -1
  54. package/dist/server/actions/useRealtimeSync.mjs +1 -1
  55. package/dist/server/index.d.ts +4 -0
  56. package/dist/server/index.mjs +8 -4
  57. package/dist/server/rsc/refreshRsc.mjs +11 -11
  58. package/dist/server/rsc/useRscSync.mjs +1 -1
  59. package/dist/server/usePluginRoute.mjs +1 -1
  60. package/dist/state/runtimeStatePersist.mjs +9 -15
  61. package/dist/store/index.d.ts +1 -193
  62. package/dist/store/index.mjs +6 -9
  63. package/dist/store/renderSettings.mjs +1 -1
  64. package/dist/store/storeHooks.d.ts +193 -0
  65. package/dist/store/storeHooks.mjs +5 -0
  66. package/dist/store/tracing/tracingCollector.mjs +1 -5
  67. package/dist/style/fonts.mjs +17 -25
  68. package/dist/style/index.d.ts +4 -0
  69. package/dist/style/index.mjs +19 -15
  70. package/dist/style/stylePseudos.mjs +2 -5
  71. package/dist/style/styleTarget.mjs +6 -6
  72. package/dist/theme/ThemeProvider.mjs +1 -1
  73. package/dist/theme/index.d.ts +1 -0
  74. package/dist/theme/index.mjs +4 -4
  75. package/dist/types/BuilderTypes.d.ts +8 -0
  76. package/dist/types/SchemaTypes.d.ts +2 -1
  77. package/dist/types/ServerTypes.d.ts +10 -1
  78. package/dist/websockets/index.mjs +1 -2
  79. package/package.json +21 -1587
  80. package/vite.config.ts +20 -4
  81. package/dist/auth/authFailureLink.d.ts +0 -9
  82. package/dist/auth/authFailureLink.mjs +0 -20
  83. package/dist/dataSource/hooks/index.d.ts +0 -4
  84. package/dist/dataSource/hooks/index.mjs +0 -3
  85. package/dist/dataSource/hooks/useRegisterSource.d.ts +0 -9
  86. package/dist/dataSource/hooks/useRegisterSource.mjs +0 -40
  87. package/dist/dataSource/hooks/useResolvedVariables.d.ts +0 -12
  88. package/dist/dataSource/hooks/useResolvedVariables.mjs +0 -28
  89. package/dist/helpers/stripTypename.d.ts +0 -15
  90. package/dist/helpers/stripTypename.mjs +0 -41
  91. /package/dist/plugins/{bundle.d.ts → bundle/bundle.d.ts} +0 -0
@@ -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({