@plitzi/sdk-shared 0.37.2 → 0.37.3

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 (184) hide show
  1. package/CHANGELOG.md +1146 -0
  2. package/dist/actions/access.d.ts +12 -0
  3. package/dist/actions/access.mjs +13 -0
  4. package/dist/actions/functions.d.ts +27 -0
  5. package/dist/actions/functions.mjs +18 -0
  6. package/dist/actions/index.d.ts +4 -0
  7. package/dist/actions/index.mjs +9 -7
  8. package/dist/auth/index.d.ts +2 -0
  9. package/dist/auth/index.mjs +2 -1
  10. package/dist/auth/visitorRoles.d.ts +27 -0
  11. package/dist/auth/visitorRoles.mjs +48 -0
  12. package/dist/authoring/builder.mjs +1 -0
  13. package/dist/authoring/declare.d.ts +53 -0
  14. package/dist/authoring/declare.mjs +2 -2
  15. package/dist/authoring/index.mjs +5 -5
  16. package/dist/authoring/paramSpec.d.ts +1 -1
  17. package/dist/authoring/paramSpec.mjs +1 -0
  18. package/dist/authoring/spaceCallbacks.mjs +2 -2
  19. package/dist/dataSource/computed.d.ts +21 -0
  20. package/dist/dataSource/computed.mjs +45 -0
  21. package/dist/dataSource/getBindingsDetails.mjs +35 -34
  22. package/dist/dataSource/index.d.ts +1 -0
  23. package/dist/dataSource/index.mjs +7 -6
  24. package/dist/dataSource/utility/not.mjs +4 -7
  25. package/dist/dataSource/utility/stringToArray.mjs +1 -1
  26. package/dist/dataSource/utility/truthiness.d.ts +1 -0
  27. package/dist/dataSource/utility/truthiness.mjs +8 -0
  28. package/dist/dataSource/utility/twigTemplate.d.ts +2 -1
  29. package/dist/dataSource/utility/twigTemplate.mjs +29 -17
  30. package/dist/devTools/utils/PlitziConsole.mjs +22 -22
  31. package/dist/helpers/cookies.d.ts +10 -0
  32. package/dist/helpers/cookies.mjs +19 -0
  33. package/dist/helpers/fetchManifest.d.ts +9 -0
  34. package/dist/helpers/fetchManifest.mjs +3 -6
  35. package/dist/helpers/formatDate.d.ts +5 -3
  36. package/dist/helpers/formatDate.mjs +34 -36
  37. package/dist/helpers/index.d.ts +2 -0
  38. package/dist/helpers/index.mjs +18 -14
  39. package/dist/helpers/isDate.d.ts +7 -0
  40. package/dist/helpers/isDate.mjs +15 -0
  41. package/dist/helpers/keys.d.ts +42 -0
  42. package/dist/helpers/keys.mjs +91 -0
  43. package/dist/helpers/twigWrapper/AST.d.ts +2 -2
  44. package/dist/helpers/twigWrapper/Evaluator/Evaluator.d.ts +12 -2
  45. package/dist/helpers/twigWrapper/Evaluator/Evaluator.mjs +57 -34
  46. package/dist/helpers/twigWrapper/Evaluator/index.d.ts +1 -1
  47. package/dist/helpers/twigWrapper/Evaluator/index.mjs +2 -2
  48. package/dist/helpers/twigWrapper/Parser/ExpressionParser.d.ts +2 -2
  49. package/dist/helpers/twigWrapper/Parser/ExpressionParser.mjs +147 -34
  50. package/dist/helpers/twigWrapper/Parser/Parser.d.ts +2 -1
  51. package/dist/helpers/twigWrapper/Parser/Parser.mjs +21 -20
  52. package/dist/helpers/twigWrapper/filters/filters.mjs +130 -112
  53. package/dist/helpers/twigWrapper/index.d.ts +5 -2
  54. package/dist/helpers/twigWrapper/index.mjs +7 -5
  55. package/dist/helpers/twigWrapper/inspectTemplate.d.ts +23 -0
  56. package/dist/helpers/twigWrapper/inspectTemplate.mjs +110 -0
  57. package/dist/helpers/twigWrapper/processTwig/helpers.d.ts +7 -0
  58. package/dist/helpers/twigWrapper/processTwig/helpers.mjs +2 -1
  59. package/dist/helpers/twigWrapper/processTwig/index.d.ts +2 -1
  60. package/dist/helpers/twigWrapper/processTwig/index.mjs +3 -2
  61. package/dist/helpers/twigWrapper/processTwig/processTwig.d.ts +28 -0
  62. package/dist/helpers/twigWrapper/processTwig/processTwig.mjs +73 -16
  63. package/dist/helpers/twigWrapper/processTwig/resolveStepParam.d.ts +17 -0
  64. package/dist/helpers/twigWrapper/processTwig/resolveStepParam.mjs +14 -0
  65. package/dist/helpers/twigWrapper/templateRoots.d.ts +11 -0
  66. package/dist/helpers/twigWrapper/templateRoots.mjs +4 -4
  67. package/dist/helpers/twigWrapper/tokens/hasTemplateSyntax.d.ts +1 -1
  68. package/dist/history/describe.d.ts +29 -0
  69. package/dist/history/describe.mjs +93 -0
  70. package/dist/history/diff.d.ts +33 -0
  71. package/dist/history/diff.mjs +73 -0
  72. package/dist/history/index.d.ts +3 -0
  73. package/dist/history/index.mjs +3 -0
  74. package/dist/history/types.d.ts +48 -0
  75. package/dist/history/types.mjs +0 -0
  76. package/dist/index.d.ts +1 -0
  77. package/dist/index.mjs +77 -66
  78. package/dist/navigation/index.d.ts +1 -1
  79. package/dist/navigation/index.mjs +2 -2
  80. package/dist/navigation/routes.d.ts +11 -1
  81. package/dist/navigation/routes.mjs +15 -10
  82. package/dist/network/graphql/builder/Mutations/Space/SpaceFixIssuesMutation.d.ts +14 -0
  83. package/dist/network/graphql/builder/Mutations/Space/SpaceFixIssuesMutation.mjs +16 -0
  84. package/dist/network/graphql/builder/Mutations/Space/SpaceUpdatePluginMutation.d.ts +4 -0
  85. package/dist/network/graphql/builder/Mutations/Space/SpaceUpdatePluginMutation.mjs +2 -2
  86. package/dist/network/graphql/builder/Mutations/Space/actions/SpaceRunActionMutation.mjs +1 -0
  87. package/dist/network/graphql/builder/Mutations/Space/functions/SpaceRemoveFunctionsMutation.d.ts +3 -0
  88. package/dist/network/graphql/builder/Mutations/Space/functions/SpaceRemoveFunctionsMutation.mjs +9 -0
  89. package/dist/network/graphql/builder/Mutations/Space/functions/SpaceSaveFunctionsMutation.d.ts +11 -0
  90. package/dist/network/graphql/builder/Mutations/Space/functions/SpaceSaveFunctionsMutation.mjs +24 -0
  91. package/dist/network/graphql/builder/Mutations/Space/functions/SpaceTryFunctionMutation.d.ts +4 -0
  92. package/dist/network/graphql/builder/Mutations/Space/functions/SpaceTryFunctionMutation.mjs +15 -0
  93. package/dist/network/graphql/builder/Mutations/Space/runtime/SpaceRemoveRuntimeMutation.d.ts +2 -0
  94. package/dist/network/graphql/builder/Mutations/Space/runtime/SpaceRemoveRuntimeMutation.mjs +9 -0
  95. package/dist/network/graphql/builder/Mutations/Space/runtime/SpaceRemoveRuntimeVariableMutation.d.ts +2 -0
  96. package/dist/network/graphql/builder/Mutations/Space/runtime/SpaceRemoveRuntimeVariableMutation.mjs +9 -0
  97. package/dist/network/graphql/builder/Mutations/Space/runtime/SpaceSetRuntimeSizeMutation.d.ts +2 -0
  98. package/dist/network/graphql/builder/Mutations/Space/runtime/SpaceSetRuntimeSizeMutation.mjs +9 -0
  99. package/dist/network/graphql/builder/Mutations/Space/runtime/SpaceSetRuntimeVariableMutation.d.ts +2 -0
  100. package/dist/network/graphql/builder/Mutations/Space/runtime/SpaceSetRuntimeVariableMutation.mjs +9 -0
  101. package/dist/network/graphql/builder/Mutations/Space/runtime/SpaceStartRuntimeMutation.d.ts +2 -0
  102. package/dist/network/graphql/builder/Mutations/Space/runtime/SpaceStartRuntimeMutation.mjs +9 -0
  103. package/dist/network/graphql/builder/Mutations/Space/runtime/SpaceStopRuntimeMutation.d.ts +2 -0
  104. package/dist/network/graphql/builder/Mutations/Space/runtime/SpaceStopRuntimeMutation.mjs +9 -0
  105. package/dist/network/graphql/builder/Mutations/Space/visitors/SpaceAddVisitorMutation.d.ts +2 -0
  106. package/dist/network/graphql/builder/Mutations/Space/visitors/SpaceAddVisitorMutation.mjs +11 -0
  107. package/dist/network/graphql/builder/Mutations/Space/visitors/SpaceRemoveVisitorMutation.d.ts +2 -0
  108. package/dist/network/graphql/builder/Mutations/Space/visitors/SpaceRemoveVisitorMutation.mjs +11 -0
  109. package/dist/network/graphql/builder/Mutations/index.d.ts +28 -0
  110. package/dist/network/graphql/builder/Mutations/index.mjs +108 -84
  111. package/dist/network/graphql/builder/Queries/Space/SpaceChangesQuery.d.ts +23 -0
  112. package/dist/network/graphql/builder/Queries/Space/SpaceChangesQuery.mjs +49 -0
  113. package/dist/network/graphql/builder/Queries/Space/SpaceFunctionsQuery.d.ts +6 -0
  114. package/dist/network/graphql/builder/Queries/Space/SpaceFunctionsQuery.mjs +13 -0
  115. package/dist/network/graphql/builder/Queries/Space/SpaceIssuesQuery.d.ts +17 -0
  116. package/dist/network/graphql/builder/Queries/Space/SpaceIssuesQuery.mjs +22 -0
  117. package/dist/network/graphql/builder/Queries/Space/SpaceRuntimeQuery.d.ts +6 -0
  118. package/dist/network/graphql/builder/Queries/Space/SpaceRuntimeQuery.mjs +32 -0
  119. package/dist/network/graphql/builder/Queries/Space/SpaceVisitorsQuery.d.ts +6 -0
  120. package/dist/network/graphql/builder/Queries/Space/SpaceVisitorsQuery.mjs +16 -0
  121. package/dist/network/graphql/builder/Queries/index.d.ts +17 -3
  122. package/dist/network/graphql/builder/Queries/index.mjs +30 -22
  123. package/dist/network/graphql/sdk/Mutations/index.d.ts +1 -1
  124. package/dist/network/graphql/sdk/Queries/InitQuery.d.ts +1 -1
  125. package/dist/network/graphql/sdk/Queries/InitQuery.mjs +2 -91
  126. package/dist/network/graphql/sdk/Queries/Segment/SegmentQuery.d.ts +1 -1
  127. package/dist/network/graphql/sdk/Queries/Segment/SegmentQuery.mjs +2 -44
  128. package/dist/network/graphql/sdk/Queries/Segment/SegmentsQuery.d.ts +1 -1
  129. package/dist/network/graphql/sdk/Queries/Segment/SegmentsQuery.mjs +2 -55
  130. package/dist/network/graphql/sdk/Queries/index.d.ts +1 -5
  131. package/dist/network/index.mjs +7 -7
  132. package/dist/network/spaceEvents.d.ts +33 -3
  133. package/dist/network/spaceEvents.mjs +102 -89
  134. package/dist/realtime/client.d.ts +46 -0
  135. package/dist/realtime/client.mjs +192 -0
  136. package/dist/realtime/index.d.ts +6 -0
  137. package/dist/realtime/index.mjs +4 -0
  138. package/dist/realtime/presence.d.ts +38 -0
  139. package/dist/realtime/presence.mjs +70 -0
  140. package/dist/realtime/topics.d.ts +36 -0
  141. package/dist/realtime/topics.mjs +25 -0
  142. package/dist/server/actions/useRealtimeSync.d.ts +9 -0
  143. package/dist/server/actions/useRealtimeSync.mjs +7 -0
  144. package/dist/state/index.d.ts +1 -0
  145. package/dist/state/index.mjs +3 -2
  146. package/dist/state/paintedState.d.ts +52 -0
  147. package/dist/state/paintedState.mjs +37 -0
  148. package/dist/state/runtimeStatePersist.d.ts +8 -1
  149. package/dist/state/runtimeStatePersist.mjs +79 -29
  150. package/dist/store/index.d.ts +45 -45
  151. package/dist/store/renderSettings.d.ts +6 -3
  152. package/dist/store/tracing/index.d.ts +1 -0
  153. package/dist/store/tracing/tracingCollector.d.ts +17 -1
  154. package/dist/store/tracing/tracingCollector.mjs +5 -0
  155. package/dist/style/index.d.ts +1 -0
  156. package/dist/style/index.mjs +3 -2
  157. package/dist/style/runtimeStyle.d.ts +29 -0
  158. package/dist/style/runtimeStyle.mjs +7 -0
  159. package/dist/style/styleConstants.d.ts +3 -2
  160. package/dist/style/styleConstants.mjs +2 -0
  161. package/dist/style/styleStates.d.ts +14 -1
  162. package/dist/style/styleStates.mjs +10 -7
  163. package/dist/theme/ThemeProvider.mjs +35 -29
  164. package/dist/theme/themeCookie.mjs +11 -15
  165. package/dist/types/ActionTypes.d.ts +4 -0
  166. package/dist/types/AuthTypes.d.ts +11 -1
  167. package/dist/types/CommonTypes.d.ts +6 -0
  168. package/dist/types/FunctionTypes.d.ts +52 -0
  169. package/dist/types/FunctionTypes.mjs +0 -0
  170. package/dist/types/PluginTypes.d.ts +0 -1
  171. package/dist/types/RealtimeTypes.d.ts +94 -0
  172. package/dist/types/RealtimeTypes.mjs +0 -0
  173. package/dist/types/SchemaTypes.d.ts +54 -0
  174. package/dist/types/SchemaTypes.mjs +8 -0
  175. package/dist/types/ServerTypes.d.ts +259 -15
  176. package/dist/types/SpaceTypes.d.ts +53 -0
  177. package/dist/types/StateTypes.d.ts +6 -0
  178. package/dist/types/StoreTypes.d.ts +11 -0
  179. package/dist/types/index.d.ts +2 -0
  180. package/dist/types/index.mjs +3 -2
  181. package/package.json +172 -11
  182. package/vite.config.ts +0 -12
  183. package/dist/network/graphql/builder/Queries/PluginsQuery.d.ts +0 -9
  184. package/dist/network/graphql/builder/Queries/PluginsQuery.mjs +0 -54
@@ -3,6 +3,7 @@ import { SubscriptionCollaborator, SubscriptionCollaboratorPointer } from './Bui
3
3
  import { Environment, RenderMode } from './CommonTypes';
4
4
  import { Source } from './DataSourceTypes';
5
5
  import { QueryParams, RouteParams } from './NavigationTypes';
6
+ import { RealtimeTransport } from './RealtimeTypes';
6
7
  import { Schema, Element } from './SchemaTypes';
7
8
  import { Segment } from './SegmentTypes';
8
9
  import { SpaceConnector } from './SpaceTypes';
@@ -44,6 +45,11 @@ export type CommonState = {
44
45
  sources?: Record<string, Source>;
45
46
  rsc?: RscState;
46
47
  actions?: ActionsState;
48
+ /** Where this origin's realtime channels answer — absent in a render with no server, where no channel opens. */
49
+ realtime?: {
50
+ endpoint?: string;
51
+ transport?: RealtimeTransport;
52
+ };
47
53
  render?: RenderSettings;
48
54
  /**
49
55
  * The theme, mirrored from `themeStore` so the devtools store viewer answers "which theme is this" in one line.
@@ -72,6 +78,11 @@ export type CommonState = {
72
78
  /** Scheme, host AND port — what a link needs to name this page absolutely. `hostname` has no port, which is why
73
79
  * it answers `when` rules and cannot answer this. */
74
80
  origin: string;
81
+ /**
82
+ * The page's whole address — origin, path and query — as the server was asked for it and the browser shows it: what
83
+ * a link that shares THIS page is. Known in the first paint, so a text built from it is right before hydration.
84
+ */
85
+ href: string;
75
86
  currentPageId: string;
76
87
  navigate: (url: string, isExternal?: boolean) => void;
77
88
  };
@@ -12,6 +12,8 @@ export * from './NavigationTypes';
12
12
  export * from './CollectionTypes';
13
13
  export * from './ConnectorTypes';
14
14
  export * from './ActionTypes';
15
+ export * from './FunctionTypes';
16
+ export * from './RealtimeTypes';
15
17
  export * from './ComponentTypes';
16
18
  export * from './StateTypes';
17
19
  export * from './CommonTypes';
@@ -1,2 +1,3 @@
1
- import { StyleVariableCategory as e } from "./StyleTypes.mjs";
2
- export { e as StyleVariableCategory };
1
+ import { WHILE_RUNNING_MODES as e } from "./SchemaTypes.mjs";
2
+ import { StyleVariableCategory as t } from "./StyleTypes.mjs";
3
+ export { t as StyleVariableCategory, e as WHILE_RUNNING_MODES };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plitzi/sdk-shared",
3
- "version": "0.37.2",
3
+ "version": "0.37.3",
4
4
  "license": "AGPL-3.0",
5
5
  "files": [
6
6
  "dist",
@@ -18,6 +18,10 @@
18
18
  "types": "./dist/actions/index.d.ts",
19
19
  "import": "./dist/actions/index.mjs"
20
20
  },
21
+ "./actions/access": {
22
+ "types": "./dist/actions/access.d.ts",
23
+ "import": "./dist/actions/access.mjs"
24
+ },
21
25
  "./actions/cron": {
22
26
  "types": "./dist/actions/cron.d.ts",
23
27
  "import": "./dist/actions/cron.mjs"
@@ -26,6 +30,10 @@
26
30
  "types": "./dist/actions/failureHandler.d.ts",
27
31
  "import": "./dist/actions/failureHandler.mjs"
28
32
  },
33
+ "./actions/functions": {
34
+ "types": "./dist/actions/functions.d.ts",
35
+ "import": "./dist/actions/functions.mjs"
36
+ },
29
37
  "./actions/index": {
30
38
  "types": "./dist/actions/index.d.ts",
31
39
  "import": "./dist/actions/index.mjs"
@@ -62,6 +70,10 @@
62
70
  "types": "./dist/auth/index.d.ts",
63
71
  "import": "./dist/auth/index.mjs"
64
72
  },
73
+ "./auth/visitorRoles": {
74
+ "types": "./dist/auth/visitorRoles.d.ts",
75
+ "import": "./dist/auth/visitorRoles.mjs"
76
+ },
65
77
  "./authoring": {
66
78
  "types": "./dist/authoring/index.d.ts",
67
79
  "import": "./dist/authoring/index.mjs"
@@ -138,6 +150,10 @@
138
150
  "types": "./dist/dataSource/index.d.ts",
139
151
  "import": "./dist/dataSource/index.mjs"
140
152
  },
153
+ "./dataSource/computed": {
154
+ "types": "./dist/dataSource/computed.d.ts",
155
+ "import": "./dist/dataSource/computed.mjs"
156
+ },
141
157
  "./dataSource/getBindingsDetails": {
142
158
  "types": "./dist/dataSource/getBindingsDetails.d.ts",
143
159
  "import": "./dist/dataSource/getBindingsDetails.mjs"
@@ -218,6 +234,10 @@
218
234
  "types": "./dist/dataSource/utility/styleVariant.d.ts",
219
235
  "import": "./dist/dataSource/utility/styleVariant.mjs"
220
236
  },
237
+ "./dataSource/utility/truthiness": {
238
+ "types": "./dist/dataSource/utility/truthiness.d.ts",
239
+ "import": "./dist/dataSource/utility/truthiness.mjs"
240
+ },
221
241
  "./dataSource/utility/twigTemplate": {
222
242
  "types": "./dist/dataSource/utility/twigTemplate.d.ts",
223
243
  "import": "./dist/dataSource/utility/twigTemplate.mjs"
@@ -262,6 +282,10 @@
262
282
  "types": "./dist/helpers/index.d.ts",
263
283
  "import": "./dist/helpers/index.mjs"
264
284
  },
285
+ "./helpers/cookies": {
286
+ "types": "./dist/helpers/cookies.d.ts",
287
+ "import": "./dist/helpers/cookies.mjs"
288
+ },
265
289
  "./helpers/fetchManifest": {
266
290
  "types": "./dist/helpers/fetchManifest.d.ts",
267
291
  "import": "./dist/helpers/fetchManifest.mjs"
@@ -278,6 +302,14 @@
278
302
  "types": "./dist/helpers/index.d.ts",
279
303
  "import": "./dist/helpers/index.mjs"
280
304
  },
305
+ "./helpers/isDate": {
306
+ "types": "./dist/helpers/isDate.d.ts",
307
+ "import": "./dist/helpers/isDate.mjs"
308
+ },
309
+ "./helpers/keys": {
310
+ "types": "./dist/helpers/keys.d.ts",
311
+ "import": "./dist/helpers/keys.mjs"
312
+ },
281
313
  "./helpers/reducerOrigin": {
282
314
  "types": "./dist/helpers/reducerOrigin.d.ts",
283
315
  "import": "./dist/helpers/reducerOrigin.mjs"
@@ -396,6 +428,10 @@
396
428
  "types": "./dist/helpers/twigWrapper/index.d.ts",
397
429
  "import": "./dist/helpers/twigWrapper/index.mjs"
398
430
  },
431
+ "./helpers/twigWrapper/inspectTemplate": {
432
+ "types": "./dist/helpers/twigWrapper/inspectTemplate.d.ts",
433
+ "import": "./dist/helpers/twigWrapper/inspectTemplate.mjs"
434
+ },
399
435
  "./helpers/twigWrapper/processTwig": {
400
436
  "types": "./dist/helpers/twigWrapper/processTwig/index.d.ts",
401
437
  "import": "./dist/helpers/twigWrapper/processTwig/index.mjs"
@@ -412,6 +448,10 @@
412
448
  "types": "./dist/helpers/twigWrapper/processTwig/processTwig.d.ts",
413
449
  "import": "./dist/helpers/twigWrapper/processTwig/processTwig.mjs"
414
450
  },
451
+ "./helpers/twigWrapper/processTwig/resolveStepParam": {
452
+ "types": "./dist/helpers/twigWrapper/processTwig/resolveStepParam.d.ts",
453
+ "import": "./dist/helpers/twigWrapper/processTwig/resolveStepParam.mjs"
454
+ },
415
455
  "./helpers/twigWrapper/templateRoots": {
416
456
  "types": "./dist/helpers/twigWrapper/templateRoots.d.ts",
417
457
  "import": "./dist/helpers/twigWrapper/templateRoots.mjs"
@@ -432,6 +472,25 @@
432
472
  "types": "./dist/helpers/utils.d.ts",
433
473
  "import": "./dist/helpers/utils.mjs"
434
474
  },
475
+ "./history": {
476
+ "types": "./dist/history/index.d.ts",
477
+ "import": "./dist/history/index.mjs"
478
+ },
479
+ "./history/describe": {
480
+ "types": "./dist/history/describe.d.ts",
481
+ "import": "./dist/history/describe.mjs"
482
+ },
483
+ "./history/diff": {
484
+ "types": "./dist/history/diff.d.ts",
485
+ "import": "./dist/history/diff.mjs"
486
+ },
487
+ "./history/index": {
488
+ "types": "./dist/history/index.d.ts",
489
+ "import": "./dist/history/index.mjs"
490
+ },
491
+ "./history/types": {
492
+ "types": "./dist/history/types.d.ts"
493
+ },
435
494
  "./hooks": {
436
495
  "types": "./dist/hooks/index.d.ts",
437
496
  "import": "./dist/hooks/index.mjs"
@@ -620,6 +679,10 @@
620
679
  "types": "./dist/network/graphql/builder/Mutations/Space/SpaceDeployMutation.d.ts",
621
680
  "import": "./dist/network/graphql/builder/Mutations/Space/SpaceDeployMutation.mjs"
622
681
  },
682
+ "./network/graphql/builder/Mutations/Space/SpaceFixIssuesMutation": {
683
+ "types": "./dist/network/graphql/builder/Mutations/Space/SpaceFixIssuesMutation.d.ts",
684
+ "import": "./dist/network/graphql/builder/Mutations/Space/SpaceFixIssuesMutation.mjs"
685
+ },
623
686
  "./network/graphql/builder/Mutations/Space/SpaceMoveElementMutation": {
624
687
  "types": "./dist/network/graphql/builder/Mutations/Space/SpaceMoveElementMutation.d.ts",
625
688
  "import": "./dist/network/graphql/builder/Mutations/Space/SpaceMoveElementMutation.mjs"
@@ -732,6 +795,18 @@
732
795
  "types": "./dist/network/graphql/builder/Mutations/Space/folders/SpaceUpdatePageFolderMutation.d.ts",
733
796
  "import": "./dist/network/graphql/builder/Mutations/Space/folders/SpaceUpdatePageFolderMutation.mjs"
734
797
  },
798
+ "./network/graphql/builder/Mutations/Space/functions/SpaceRemoveFunctionsMutation": {
799
+ "types": "./dist/network/graphql/builder/Mutations/Space/functions/SpaceRemoveFunctionsMutation.d.ts",
800
+ "import": "./dist/network/graphql/builder/Mutations/Space/functions/SpaceRemoveFunctionsMutation.mjs"
801
+ },
802
+ "./network/graphql/builder/Mutations/Space/functions/SpaceSaveFunctionsMutation": {
803
+ "types": "./dist/network/graphql/builder/Mutations/Space/functions/SpaceSaveFunctionsMutation.d.ts",
804
+ "import": "./dist/network/graphql/builder/Mutations/Space/functions/SpaceSaveFunctionsMutation.mjs"
805
+ },
806
+ "./network/graphql/builder/Mutations/Space/functions/SpaceTryFunctionMutation": {
807
+ "types": "./dist/network/graphql/builder/Mutations/Space/functions/SpaceTryFunctionMutation.d.ts",
808
+ "import": "./dist/network/graphql/builder/Mutations/Space/functions/SpaceTryFunctionMutation.mjs"
809
+ },
735
810
  "./network/graphql/builder/Mutations/Space/pages/SpaceAddPageMutation": {
736
811
  "types": "./dist/network/graphql/builder/Mutations/Space/pages/SpaceAddPageMutation.d.ts",
737
812
  "import": "./dist/network/graphql/builder/Mutations/Space/pages/SpaceAddPageMutation.mjs"
@@ -760,6 +835,30 @@
760
835
  "types": "./dist/network/graphql/builder/Mutations/Space/resources/SpaceRemoveResourceMutation.d.ts",
761
836
  "import": "./dist/network/graphql/builder/Mutations/Space/resources/SpaceRemoveResourceMutation.mjs"
762
837
  },
838
+ "./network/graphql/builder/Mutations/Space/runtime/SpaceRemoveRuntimeMutation": {
839
+ "types": "./dist/network/graphql/builder/Mutations/Space/runtime/SpaceRemoveRuntimeMutation.d.ts",
840
+ "import": "./dist/network/graphql/builder/Mutations/Space/runtime/SpaceRemoveRuntimeMutation.mjs"
841
+ },
842
+ "./network/graphql/builder/Mutations/Space/runtime/SpaceRemoveRuntimeVariableMutation": {
843
+ "types": "./dist/network/graphql/builder/Mutations/Space/runtime/SpaceRemoveRuntimeVariableMutation.d.ts",
844
+ "import": "./dist/network/graphql/builder/Mutations/Space/runtime/SpaceRemoveRuntimeVariableMutation.mjs"
845
+ },
846
+ "./network/graphql/builder/Mutations/Space/runtime/SpaceSetRuntimeSizeMutation": {
847
+ "types": "./dist/network/graphql/builder/Mutations/Space/runtime/SpaceSetRuntimeSizeMutation.d.ts",
848
+ "import": "./dist/network/graphql/builder/Mutations/Space/runtime/SpaceSetRuntimeSizeMutation.mjs"
849
+ },
850
+ "./network/graphql/builder/Mutations/Space/runtime/SpaceSetRuntimeVariableMutation": {
851
+ "types": "./dist/network/graphql/builder/Mutations/Space/runtime/SpaceSetRuntimeVariableMutation.d.ts",
852
+ "import": "./dist/network/graphql/builder/Mutations/Space/runtime/SpaceSetRuntimeVariableMutation.mjs"
853
+ },
854
+ "./network/graphql/builder/Mutations/Space/runtime/SpaceStartRuntimeMutation": {
855
+ "types": "./dist/network/graphql/builder/Mutations/Space/runtime/SpaceStartRuntimeMutation.d.ts",
856
+ "import": "./dist/network/graphql/builder/Mutations/Space/runtime/SpaceStartRuntimeMutation.mjs"
857
+ },
858
+ "./network/graphql/builder/Mutations/Space/runtime/SpaceStopRuntimeMutation": {
859
+ "types": "./dist/network/graphql/builder/Mutations/Space/runtime/SpaceStopRuntimeMutation.d.ts",
860
+ "import": "./dist/network/graphql/builder/Mutations/Space/runtime/SpaceStopRuntimeMutation.mjs"
861
+ },
763
862
  "./network/graphql/builder/Mutations/Space/variables/SpaceAddVariableMutation": {
764
863
  "types": "./dist/network/graphql/builder/Mutations/Space/variables/SpaceAddVariableMutation.d.ts",
765
864
  "import": "./dist/network/graphql/builder/Mutations/Space/variables/SpaceAddVariableMutation.mjs"
@@ -772,6 +871,14 @@
772
871
  "types": "./dist/network/graphql/builder/Mutations/Space/variables/SpaceUpdateVariableMutation.d.ts",
773
872
  "import": "./dist/network/graphql/builder/Mutations/Space/variables/SpaceUpdateVariableMutation.mjs"
774
873
  },
874
+ "./network/graphql/builder/Mutations/Space/visitors/SpaceAddVisitorMutation": {
875
+ "types": "./dist/network/graphql/builder/Mutations/Space/visitors/SpaceAddVisitorMutation.d.ts",
876
+ "import": "./dist/network/graphql/builder/Mutations/Space/visitors/SpaceAddVisitorMutation.mjs"
877
+ },
878
+ "./network/graphql/builder/Mutations/Space/visitors/SpaceRemoveVisitorMutation": {
879
+ "types": "./dist/network/graphql/builder/Mutations/Space/visitors/SpaceRemoveVisitorMutation.d.ts",
880
+ "import": "./dist/network/graphql/builder/Mutations/Space/visitors/SpaceRemoveVisitorMutation.mjs"
881
+ },
775
882
  "./network/graphql/builder/Mutations/Style/StyleUpdateMutation": {
776
883
  "types": "./dist/network/graphql/builder/Mutations/Style/StyleUpdateMutation.d.ts",
777
884
  "import": "./dist/network/graphql/builder/Mutations/Style/StyleUpdateMutation.mjs"
@@ -844,10 +951,6 @@
844
951
  "types": "./dist/network/graphql/builder/Queries/InitQuery.d.ts",
845
952
  "import": "./dist/network/graphql/builder/Queries/InitQuery.mjs"
846
953
  },
847
- "./network/graphql/builder/Queries/PluginsQuery": {
848
- "types": "./dist/network/graphql/builder/Queries/PluginsQuery.d.ts",
849
- "import": "./dist/network/graphql/builder/Queries/PluginsQuery.mjs"
850
- },
851
954
  "./network/graphql/builder/Queries/Segment/SegmentQuery": {
852
955
  "types": "./dist/network/graphql/builder/Queries/Segment/SegmentQuery.d.ts",
853
956
  "import": "./dist/network/graphql/builder/Queries/Segment/SegmentQuery.mjs"
@@ -872,6 +975,10 @@
872
975
  "types": "./dist/network/graphql/builder/Queries/Space/SpaceCdnsQuery.d.ts",
873
976
  "import": "./dist/network/graphql/builder/Queries/Space/SpaceCdnsQuery.mjs"
874
977
  },
978
+ "./network/graphql/builder/Queries/Space/SpaceChangesQuery": {
979
+ "types": "./dist/network/graphql/builder/Queries/Space/SpaceChangesQuery.d.ts",
980
+ "import": "./dist/network/graphql/builder/Queries/Space/SpaceChangesQuery.mjs"
981
+ },
875
982
  "./network/graphql/builder/Queries/Space/SpaceCheckActionQuery": {
876
983
  "types": "./dist/network/graphql/builder/Queries/Space/SpaceCheckActionQuery.d.ts",
877
984
  "import": "./dist/network/graphql/builder/Queries/Space/SpaceCheckActionQuery.mjs"
@@ -888,6 +995,14 @@
888
995
  "types": "./dist/network/graphql/builder/Queries/Space/SpaceDeploymentsQuery.d.ts",
889
996
  "import": "./dist/network/graphql/builder/Queries/Space/SpaceDeploymentsQuery.mjs"
890
997
  },
998
+ "./network/graphql/builder/Queries/Space/SpaceFunctionsQuery": {
999
+ "types": "./dist/network/graphql/builder/Queries/Space/SpaceFunctionsQuery.d.ts",
1000
+ "import": "./dist/network/graphql/builder/Queries/Space/SpaceFunctionsQuery.mjs"
1001
+ },
1002
+ "./network/graphql/builder/Queries/Space/SpaceIssuesQuery": {
1003
+ "types": "./dist/network/graphql/builder/Queries/Space/SpaceIssuesQuery.d.ts",
1004
+ "import": "./dist/network/graphql/builder/Queries/Space/SpaceIssuesQuery.mjs"
1005
+ },
891
1006
  "./network/graphql/builder/Queries/Space/SpaceLatestRevisionQuery": {
892
1007
  "types": "./dist/network/graphql/builder/Queries/Space/SpaceLatestRevisionQuery.d.ts",
893
1008
  "import": "./dist/network/graphql/builder/Queries/Space/SpaceLatestRevisionQuery.mjs"
@@ -900,6 +1015,14 @@
900
1015
  "types": "./dist/network/graphql/builder/Queries/Space/SpaceResourcesQuery.d.ts",
901
1016
  "import": "./dist/network/graphql/builder/Queries/Space/SpaceResourcesQuery.mjs"
902
1017
  },
1018
+ "./network/graphql/builder/Queries/Space/SpaceRuntimeQuery": {
1019
+ "types": "./dist/network/graphql/builder/Queries/Space/SpaceRuntimeQuery.d.ts",
1020
+ "import": "./dist/network/graphql/builder/Queries/Space/SpaceRuntimeQuery.mjs"
1021
+ },
1022
+ "./network/graphql/builder/Queries/Space/SpaceVisitorsQuery": {
1023
+ "types": "./dist/network/graphql/builder/Queries/Space/SpaceVisitorsQuery.d.ts",
1024
+ "import": "./dist/network/graphql/builder/Queries/Space/SpaceVisitorsQuery.mjs"
1025
+ },
903
1026
  "./network/graphql/builder/Queries/index": {
904
1027
  "types": "./dist/network/graphql/builder/Queries/index.d.ts",
905
1028
  "import": "./dist/network/graphql/builder/Queries/index.mjs"
@@ -984,6 +1107,26 @@
984
1107
  "types": "./dist/queries/useQuery.d.ts",
985
1108
  "import": "./dist/queries/useQuery.mjs"
986
1109
  },
1110
+ "./realtime": {
1111
+ "types": "./dist/realtime/index.d.ts",
1112
+ "import": "./dist/realtime/index.mjs"
1113
+ },
1114
+ "./realtime/client": {
1115
+ "types": "./dist/realtime/client.d.ts",
1116
+ "import": "./dist/realtime/client.mjs"
1117
+ },
1118
+ "./realtime/index": {
1119
+ "types": "./dist/realtime/index.d.ts",
1120
+ "import": "./dist/realtime/index.mjs"
1121
+ },
1122
+ "./realtime/presence": {
1123
+ "types": "./dist/realtime/presence.d.ts",
1124
+ "import": "./dist/realtime/presence.mjs"
1125
+ },
1126
+ "./realtime/topics": {
1127
+ "types": "./dist/realtime/topics.d.ts",
1128
+ "import": "./dist/realtime/topics.mjs"
1129
+ },
987
1130
  "./schema": {
988
1131
  "types": "./dist/schema/index.d.ts",
989
1132
  "import": "./dist/schema/index.mjs"
@@ -1028,6 +1171,10 @@
1028
1171
  "types": "./dist/server/actions/useActionsSync.d.ts",
1029
1172
  "import": "./dist/server/actions/useActionsSync.mjs"
1030
1173
  },
1174
+ "./server/actions/useRealtimeSync": {
1175
+ "types": "./dist/server/actions/useRealtimeSync.d.ts",
1176
+ "import": "./dist/server/actions/useRealtimeSync.mjs"
1177
+ },
1031
1178
  "./server/index": {
1032
1179
  "types": "./dist/server/index.d.ts",
1033
1180
  "import": "./dist/server/index.mjs"
@@ -1052,6 +1199,10 @@
1052
1199
  "types": "./dist/state/index.d.ts",
1053
1200
  "import": "./dist/state/index.mjs"
1054
1201
  },
1202
+ "./state/paintedState": {
1203
+ "types": "./dist/state/paintedState.d.ts",
1204
+ "import": "./dist/state/paintedState.mjs"
1205
+ },
1055
1206
  "./state/runtimeStatePersist": {
1056
1207
  "types": "./dist/state/runtimeStatePersist.d.ts",
1057
1208
  "import": "./dist/state/runtimeStatePersist.mjs"
@@ -1140,6 +1291,10 @@
1140
1291
  "types": "./dist/style/index.d.ts",
1141
1292
  "import": "./dist/style/index.mjs"
1142
1293
  },
1294
+ "./style/runtimeStyle": {
1295
+ "types": "./dist/style/runtimeStyle.d.ts",
1296
+ "import": "./dist/style/runtimeStyle.mjs"
1297
+ },
1143
1298
  "./style/styleConstants": {
1144
1299
  "types": "./dist/style/styleConstants.d.ts",
1145
1300
  "import": "./dist/style/styleConstants.mjs"
@@ -1216,6 +1371,9 @@
1216
1371
  "./types/EventBridgeTypes": {
1217
1372
  "types": "./dist/types/EventBridgeTypes.d.ts"
1218
1373
  },
1374
+ "./types/FunctionTypes": {
1375
+ "types": "./dist/types/FunctionTypes.d.ts"
1376
+ },
1219
1377
  "./types/InteractionTypes": {
1220
1378
  "types": "./dist/types/InteractionTypes.d.ts"
1221
1379
  },
@@ -1228,11 +1386,15 @@
1228
1386
  "./types/PluginTypes": {
1229
1387
  "types": "./dist/types/PluginTypes.d.ts"
1230
1388
  },
1389
+ "./types/RealtimeTypes": {
1390
+ "types": "./dist/types/RealtimeTypes.d.ts"
1391
+ },
1231
1392
  "./types/ResourceTypes": {
1232
1393
  "types": "./dist/types/ResourceTypes.d.ts"
1233
1394
  },
1234
1395
  "./types/SchemaTypes": {
1235
- "types": "./dist/types/SchemaTypes.d.ts"
1396
+ "types": "./dist/types/SchemaTypes.d.ts",
1397
+ "import": "./dist/types/SchemaTypes.mjs"
1236
1398
  },
1237
1399
  "./types/SdkTypes": {
1238
1400
  "types": "./dist/types/SdkTypes.d.ts"
@@ -1291,11 +1453,10 @@
1291
1453
  "build:prod": "vite build && node ./scripts/generate-exports.mjs"
1292
1454
  },
1293
1455
  "dependencies": {
1294
- "@modelcontextprotocol/sdk": "^1.30.0",
1295
- "@plitzi/nexus": "^1.2.2",
1296
- "@plitzi/plitzi-ui": "^1.6.22",
1456
+ "@modelcontextprotocol/sdk": "^1.30.1",
1457
+ "@plitzi/nexus": "^1.3.1",
1458
+ "@plitzi/plitzi-ui": "^1.6.24",
1297
1459
  "date-fns": "^4.4.0",
1298
- "date-fns-tz": "^3.2.0",
1299
1460
  "graphql-tag": "^2.12.7",
1300
1461
  "immer": "^11.1.18",
1301
1462
  "zod": "^4.6.5"
@@ -1347,7 +1508,7 @@
1347
1508
  "terser": "^5.51.2",
1348
1509
  "typescript": "^6.0.3",
1349
1510
  "typescript-eslint": "^8.70.1",
1350
- "vite": "^8.3.0",
1511
+ "vite": "^8.3.1",
1351
1512
  "vite-plugin-dts": "^5.1.1",
1352
1513
  "vite-plugin-react": "^4.0.1",
1353
1514
  "vitest": "^5.0.1",
package/vite.config.ts CHANGED
@@ -93,18 +93,6 @@ export default defineConfig(({ mode, command }) => {
93
93
  tsconfigPath: './tsconfig.app.json',
94
94
  beforeWriteFile: skipUnchangedDts
95
95
  }),
96
- // {
97
- // name: 'trace-import-chain',
98
- // enforce: 'pre',
99
- // resolveId(source, importer) {
100
- // if (source.includes('plitzi')) {
101
- // console.log('\n---');
102
- // console.log('IMPORT:', source);
103
- // console.log('FROM :', importer);
104
- // }
105
- // return null;
106
- // }
107
- // },
108
96
  {
109
97
  name: 'externalize-and-log',
110
98
  enforce: 'pre',
@@ -1,9 +0,0 @@
1
- import { PageInfo } from '../../../../types';
2
- export type TPluginsQuery = {
3
- Plugins: {
4
- edges: unknown[];
5
- pageInfo: PageInfo;
6
- };
7
- };
8
- declare const PluginsQuery: import('graphql').DocumentNode;
9
- export default PluginsQuery;
@@ -1,54 +0,0 @@
1
- import { gql as e } from "@apollo/client/core";
2
- //#region src/network/graphql/builder/Queries/PluginsQuery.ts
3
- var t = e`
4
- query PluginsQuery($filter: PluginInput, $page: Int, $pageSize: Int, $offset: Int) {
5
- Plugins(filter: $filter, page: $page, pageSize: $pageSize, offset: $offset) {
6
- edges {
7
- name
8
- description
9
- type
10
- latestVersion {
11
- version
12
- createdAt
13
- updatedAt
14
- }
15
- market {
16
- backgroundColor
17
- icon
18
- verified
19
- website
20
- owner
21
- license
22
- category {
23
- name
24
- }
25
- }
26
- revisions {
27
- version
28
- scope
29
- module
30
- manifestUrl
31
- assets {
32
- type
33
- url
34
- sizeNormal
35
- sizeGzip
36
- }
37
- createdAt
38
- updatedAt
39
- }
40
- createdAt
41
- updatedAt
42
- }
43
- pageInfo {
44
- hasPrevPage
45
- hasNextPage
46
- from
47
- to
48
- total
49
- }
50
- }
51
- }
52
- `;
53
- //#endregion
54
- export { t as default };