@plitzi/sdk-shared 0.37.8 → 0.37.10

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 (249) hide show
  1. package/CHANGELOG.md +817 -0
  2. package/dist/actions/functions.d.ts +12 -3
  3. package/dist/actions/functions.mjs +8 -5
  4. package/dist/actions/index.d.ts +2 -2
  5. package/dist/actions/index.mjs +6 -6
  6. package/dist/actions/triggerParams.mjs +7 -6
  7. package/dist/actions/validateDocument.d.ts +3 -0
  8. package/dist/actions/validateDocument.mjs +89 -88
  9. package/dist/auth/failureChannel.d.ts +8 -2
  10. package/dist/auth/failureChannel.mjs +1 -3
  11. package/dist/authoring/elementCallbacks.d.ts +65 -0
  12. package/dist/authoring/elementCallbacks.mjs +72 -8
  13. package/dist/authoring/index.mjs +3 -3
  14. package/dist/builder/contexts/BuilderContext.d.ts +18 -7
  15. package/dist/builder/contexts/BuilderContext.mjs +2 -3
  16. package/dist/connectors/index.d.ts +1 -1
  17. package/dist/connectors/index.mjs +2 -2
  18. package/dist/connectors/validateManifest.d.ts +3 -0
  19. package/dist/connectors/validateManifest.mjs +77 -76
  20. package/dist/dataSource/computed.mjs +25 -29
  21. package/dist/dataSource/globalSources.d.ts +15 -0
  22. package/dist/dataSource/globalSources.mjs +13 -0
  23. package/dist/dataSource/index.d.ts +2 -0
  24. package/dist/dataSource/index.mjs +8 -7
  25. package/dist/devTools/DevToolsContext.mjs +2 -3
  26. package/dist/devTools/utils/PlitziConsole.d.ts +9 -0
  27. package/dist/devTools/utils/PlitziConsole.mjs +27 -7
  28. package/dist/elements/ComponentContext.mjs +2 -3
  29. package/dist/flags/flagsCookie.d.ts +26 -0
  30. package/dist/flags/flagsCookie.mjs +20 -0
  31. package/dist/flags/index.d.ts +3 -0
  32. package/dist/flags/index.mjs +4 -0
  33. package/dist/flags/resolveFlags.d.ts +60 -0
  34. package/dist/flags/resolveFlags.mjs +38 -0
  35. package/dist/flags/schemaFlag.d.ts +11 -0
  36. package/dist/flags/schemaFlag.mjs +9 -0
  37. package/dist/flags/useFlagResolution.d.ts +13 -0
  38. package/dist/flags/useFlagResolution.mjs +43 -0
  39. package/dist/helpers/eventTarget.d.ts +10 -0
  40. package/dist/helpers/eventTarget.mjs +4 -0
  41. package/dist/helpers/images.d.ts +18 -0
  42. package/dist/helpers/images.mjs +13 -0
  43. package/dist/helpers/index.d.ts +3 -0
  44. package/dist/helpers/index.mjs +21 -18
  45. package/dist/helpers/interval.d.ts +18 -0
  46. package/dist/helpers/interval.mjs +7 -0
  47. package/dist/helpers/isRecord.d.ts +2 -0
  48. package/dist/helpers/isRecord.mjs +4 -0
  49. package/dist/helpers/scroll.d.ts +42 -0
  50. package/dist/helpers/scroll.mjs +30 -0
  51. package/dist/helpers/sharedContext.d.ts +14 -0
  52. package/dist/helpers/sharedContext.mjs +9 -0
  53. package/dist/helpers/twigWrapper/Evaluator/Evaluator.d.ts +9 -1
  54. package/dist/helpers/twigWrapper/Evaluator/Evaluator.mjs +13 -8
  55. package/dist/helpers/twigWrapper/Evaluator/index.d.ts +1 -1
  56. package/dist/helpers/twigWrapper/TemplateCache/TemplateCache.mjs +1 -1
  57. package/dist/helpers/twigWrapper/filters/filters.mjs +38 -2
  58. package/dist/helpers/twigWrapper/index.d.ts +1 -0
  59. package/dist/helpers/twigWrapper/processTwig/processTwig.d.ts +2 -1
  60. package/dist/helpers/twigWrapper/processTwig/processTwig.mjs +3 -3
  61. package/dist/helpers/utils.mjs +4 -2
  62. package/dist/history/describe.mjs +4 -1
  63. package/dist/history/diff.d.ts +1 -1
  64. package/dist/history/diff.mjs +11 -9
  65. package/dist/history/types.d.ts +1 -1
  66. package/dist/hooks/index.mjs +5 -5
  67. package/dist/hooks/usePlitziServiceContext.d.ts +1 -2
  68. package/dist/hooks/usePlitziServiceContext.mjs +3 -4
  69. package/dist/index.d.ts +1 -1
  70. package/dist/index.mjs +90 -77
  71. package/dist/navigation/routes.mjs +6 -4
  72. package/dist/network/NetworkContext.mjs +2 -3
  73. package/dist/network/NetworkInternalContext.d.ts +2 -4
  74. package/dist/network/NetworkInternalContext.mjs +2 -3
  75. package/dist/network/graphql/builder/Mutations/Space/SpaceAddSnippetMutation.d.ts +2 -0
  76. package/dist/network/graphql/builder/Mutations/Space/SpaceAddSnippetMutation.mjs +4 -0
  77. package/dist/network/graphql/builder/Mutations/Space/components/SpaceAddComponentMutation.d.ts +4 -0
  78. package/dist/network/graphql/builder/Mutations/Space/components/SpaceAddComponentMutation.mjs +4 -0
  79. package/dist/network/graphql/builder/Mutations/Space/components/SpaceDetachInstanceMutation.d.ts +4 -0
  80. package/dist/network/graphql/builder/Mutations/Space/components/SpaceDetachInstanceMutation.mjs +4 -0
  81. package/dist/network/graphql/builder/Mutations/Space/components/SpaceRemoveComponentMutation.d.ts +4 -0
  82. package/dist/network/graphql/builder/Mutations/Space/components/SpaceRemoveComponentMutation.mjs +4 -0
  83. package/dist/network/graphql/builder/Mutations/Space/components/SpaceUpdateComponentMutation.d.ts +4 -0
  84. package/dist/network/graphql/builder/Mutations/Space/components/SpaceUpdateComponentMutation.mjs +4 -0
  85. package/dist/network/graphql/builder/Mutations/Space/flags/SpacePublishFlagsMutation.d.ts +12 -0
  86. package/dist/network/graphql/builder/Mutations/Space/flags/SpacePublishFlagsMutation.mjs +4 -0
  87. package/dist/network/graphql/builder/Mutations/Space/flags/SpaceRemoveFlagMutation.d.ts +2 -0
  88. package/dist/network/graphql/builder/Mutations/Space/flags/SpaceRemoveFlagMutation.mjs +4 -0
  89. package/dist/network/graphql/builder/Mutations/Space/flags/SpaceSetFlagMutation.d.ts +3 -0
  90. package/dist/network/graphql/builder/Mutations/Space/flags/SpaceSetFlagMutation.mjs +4 -0
  91. package/dist/network/graphql/builder/Mutations/index.d.ts +13 -30
  92. package/dist/network/graphql/builder/Mutations/index.mjs +164 -200
  93. package/dist/network/graphql/builder/Queries/InitQuery.d.ts +4 -3
  94. package/dist/network/graphql/builder/Queries/InitQuery.mjs +1 -1
  95. package/dist/network/graphql/builder/Queries/Space/SpaceActionTasksQuery.d.ts +1 -1
  96. package/dist/network/graphql/builder/Queries/Space/SpaceActionTasksQuery.mjs +1 -1
  97. package/dist/network/graphql/builder/Queries/Space/SpaceIssuesQuery.d.ts +16 -2
  98. package/dist/network/graphql/builder/Queries/Space/SpaceIssuesQuery.mjs +1 -1
  99. package/dist/network/graphql/builder/Queries/Space/SpaceVersionContentsQuery.d.ts +7 -0
  100. package/dist/network/graphql/builder/Queries/Space/SpaceVersionContentsQuery.mjs +4 -0
  101. package/dist/network/graphql/builder/Queries/index.d.ts +3 -5
  102. package/dist/network/graphql/builder/Queries/index.mjs +36 -38
  103. package/dist/network/graphql/builder/Subscriptions/SpaceEventSubscription.d.ts +1 -1
  104. package/dist/network/graphql/sdk/Queries/InitQuery.d.ts +2 -3
  105. package/dist/network/graphql/sdk/Queries/InitQuery.mjs +1 -1
  106. package/dist/network/graphql/sdk/Queries/index.d.ts +0 -4
  107. package/dist/network/graphql/sdk/Queries/index.mjs +2 -8
  108. package/dist/network/index.mjs +8 -7
  109. package/dist/network/spaceEvents.d.ts +25 -195
  110. package/dist/network/spaceEvents.mjs +156 -241
  111. package/dist/realtime/client.mjs +123 -95
  112. package/dist/realtime/topics.mjs +18 -17
  113. package/dist/schema/SchemaContext.mjs +2 -3
  114. package/dist/schema/anchor.d.ts +8 -0
  115. package/dist/schema/anchor.mjs +4 -0
  116. package/dist/schema/index.d.ts +2 -0
  117. package/dist/schema/index.mjs +6 -4
  118. package/dist/schema/schemaConstants.d.ts +2 -0
  119. package/dist/schema/schemaConstants.mjs +4 -3
  120. package/dist/schema/serverElements.d.ts +6 -2
  121. package/dist/schema/serverElements.mjs +17 -16
  122. package/dist/schema/snippet.d.ts +7 -0
  123. package/dist/schema/snippet.mjs +9 -0
  124. package/dist/schema/wire.d.ts +11 -0
  125. package/dist/schema/wire.mjs +27 -0
  126. package/dist/server/actions/useImagesSync.d.ts +9 -0
  127. package/dist/server/actions/useImagesSync.mjs +7 -0
  128. package/dist/server/rsc/refreshRsc.d.ts +3 -1
  129. package/dist/server/rsc/refreshRsc.mjs +17 -16
  130. package/dist/source/export.d.ts +107 -0
  131. package/dist/source/export.mjs +4 -0
  132. package/dist/source/index.d.ts +4 -0
  133. package/dist/source/index.mjs +3 -0
  134. package/dist/source/snapshot.d.ts +51 -0
  135. package/dist/source/snapshot.mjs +81 -0
  136. package/dist/state/paintedState.mjs +13 -12
  137. package/dist/state/runtimeStatePersist.mjs +50 -49
  138. package/dist/store/index.d.ts +45 -45
  139. package/dist/store/renderSettings.d.ts +1 -0
  140. package/dist/store/renderSettings.mjs +9 -5
  141. package/dist/style/breakpoints.d.ts +11 -0
  142. package/dist/style/breakpoints.mjs +8 -0
  143. package/dist/style/displayModes.d.ts +5 -0
  144. package/dist/style/displayModes.mjs +8 -0
  145. package/dist/style/fontValidation.mjs +52 -51
  146. package/dist/style/fonts.d.ts +0 -12
  147. package/dist/style/fonts.mjs +11 -11
  148. package/dist/style/index.d.ts +4 -0
  149. package/dist/style/index.mjs +11 -7
  150. package/dist/style/layoutGrid.d.ts +30 -0
  151. package/dist/style/layoutGrid.mjs +33 -0
  152. package/dist/style/notifications.d.ts +52 -0
  153. package/dist/style/notifications.mjs +55 -0
  154. package/dist/style/snippetStyle.d.ts +23 -0
  155. package/dist/style/snippetStyle.mjs +32 -0
  156. package/dist/style/styleConstants.d.ts +7 -2
  157. package/dist/style/styleConstants.mjs +10 -0
  158. package/dist/style/styleStates.d.ts +11 -2
  159. package/dist/style/styleStates.mjs +12 -9
  160. package/dist/theme/ThemeProvider.mjs +20 -20
  161. package/dist/theme/ThemeScope.mjs +4 -3
  162. package/dist/types/ActionTypes.d.ts +5 -0
  163. package/dist/types/CommonTypes.d.ts +3 -0
  164. package/dist/types/DevToolsTypes.d.ts +29 -4
  165. package/dist/types/ElementTypes.d.ts +6 -5
  166. package/dist/types/EventBridgeTypes.d.ts +2 -2
  167. package/dist/types/FunctionTypes.d.ts +13 -0
  168. package/dist/types/InteractionTypes.d.ts +5 -0
  169. package/dist/types/PluginTypes.d.ts +1 -1
  170. package/dist/types/ResourceTypes.d.ts +2 -2
  171. package/dist/types/SchemaTypes.d.ts +100 -3
  172. package/dist/types/SdkTypes.d.ts +0 -2
  173. package/dist/types/ServerTypes.d.ts +47 -0
  174. package/dist/types/SnippetTypes.d.ts +28 -0
  175. package/dist/types/SpaceTypes.d.ts +36 -0
  176. package/dist/types/StoreTypes.d.ts +39 -3
  177. package/dist/types/StyleTypes.d.ts +1 -1
  178. package/dist/types/index.d.ts +1 -2
  179. package/package.json +143 -138
  180. package/tailwind.config.js +1 -6
  181. package/vite.config.ts +16 -4
  182. package/dist/network/graphql/builder/Mutations/Segment/SegmentAddMutation.d.ts +0 -4
  183. package/dist/network/graphql/builder/Mutations/Segment/SegmentAddMutation.mjs +0 -4
  184. package/dist/network/graphql/builder/Mutations/Segment/SegmentAddTemplateMutation.d.ts +0 -2
  185. package/dist/network/graphql/builder/Mutations/Segment/SegmentAddTemplateMutation.mjs +0 -4
  186. package/dist/network/graphql/builder/Mutations/Segment/SegmentPublishMutation.d.ts +0 -8
  187. package/dist/network/graphql/builder/Mutations/Segment/SegmentPublishMutation.mjs +0 -4
  188. package/dist/network/graphql/builder/Mutations/Segment/SegmentRemoveMutation.d.ts +0 -2
  189. package/dist/network/graphql/builder/Mutations/Segment/SegmentRemoveMutation.mjs +0 -4
  190. package/dist/network/graphql/builder/Mutations/Segment/SegmentUpdateMutation.d.ts +0 -4
  191. package/dist/network/graphql/builder/Mutations/Segment/SegmentUpdateMutation.mjs +0 -4
  192. package/dist/network/graphql/builder/Mutations/Segment/space/elements/SegmentAddElementMutation.d.ts +0 -2
  193. package/dist/network/graphql/builder/Mutations/Segment/space/elements/SegmentAddElementMutation.mjs +0 -4
  194. package/dist/network/graphql/builder/Mutations/Segment/space/elements/SegmentCloneElementMutation.d.ts +0 -2
  195. package/dist/network/graphql/builder/Mutations/Segment/space/elements/SegmentCloneElementMutation.mjs +0 -4
  196. package/dist/network/graphql/builder/Mutations/Segment/space/elements/SegmentMoveElementMutation.d.ts +0 -2
  197. package/dist/network/graphql/builder/Mutations/Segment/space/elements/SegmentMoveElementMutation.mjs +0 -4
  198. package/dist/network/graphql/builder/Mutations/Segment/space/elements/SegmentRemoveElementMutation.d.ts +0 -2
  199. package/dist/network/graphql/builder/Mutations/Segment/space/elements/SegmentRemoveElementMutation.mjs +0 -4
  200. package/dist/network/graphql/builder/Mutations/Segment/space/elements/SegmentRenameElementMutation.d.ts +0 -3
  201. package/dist/network/graphql/builder/Mutations/Segment/space/elements/SegmentRenameElementMutation.mjs +0 -4
  202. package/dist/network/graphql/builder/Mutations/Segment/space/elements/SegmentUpdateElementMutation.d.ts +0 -2
  203. package/dist/network/graphql/builder/Mutations/Segment/space/elements/SegmentUpdateElementMutation.mjs +0 -4
  204. package/dist/network/graphql/builder/Mutations/Segment/space/elements/SegmentUpdateElementsMutation.d.ts +0 -2
  205. package/dist/network/graphql/builder/Mutations/Segment/space/elements/SegmentUpdateElementsMutation.mjs +0 -4
  206. package/dist/network/graphql/builder/Mutations/Segment/space/variables/SegmentSpaceAddVariableMutation.d.ts +0 -2
  207. package/dist/network/graphql/builder/Mutations/Segment/space/variables/SegmentSpaceAddVariableMutation.mjs +0 -4
  208. package/dist/network/graphql/builder/Mutations/Segment/space/variables/SegmentSpaceRemoveVariableMutation.d.ts +0 -2
  209. package/dist/network/graphql/builder/Mutations/Segment/space/variables/SegmentSpaceRemoveVariableMutation.mjs +0 -4
  210. package/dist/network/graphql/builder/Mutations/Segment/space/variables/SegmentSpaceUpdateVariableMutation.d.ts +0 -2
  211. package/dist/network/graphql/builder/Mutations/Segment/space/variables/SegmentSpaceUpdateVariableMutation.mjs +0 -4
  212. package/dist/network/graphql/builder/Mutations/Segment/style/selectorVariables/SegmentStyleAddSelectorVariableMutation.d.ts +0 -2
  213. package/dist/network/graphql/builder/Mutations/Segment/style/selectorVariables/SegmentStyleAddSelectorVariableMutation.mjs +0 -4
  214. package/dist/network/graphql/builder/Mutations/Segment/style/selectorVariables/SegmentStyleRemoveSelectorVariableMutation.d.ts +0 -2
  215. package/dist/network/graphql/builder/Mutations/Segment/style/selectorVariables/SegmentStyleRemoveSelectorVariableMutation.mjs +0 -4
  216. package/dist/network/graphql/builder/Mutations/Segment/style/selectorVariables/SegmentStyleUpdateSelectorVariableMutation.d.ts +0 -2
  217. package/dist/network/graphql/builder/Mutations/Segment/style/selectorVariables/SegmentStyleUpdateSelectorVariableMutation.mjs +0 -4
  218. package/dist/network/graphql/builder/Mutations/Segment/style/selectors/SegmentStyleAddSelectorMutation.d.ts +0 -2
  219. package/dist/network/graphql/builder/Mutations/Segment/style/selectors/SegmentStyleAddSelectorMutation.mjs +0 -4
  220. package/dist/network/graphql/builder/Mutations/Segment/style/selectors/SegmentStyleRemoveSelectorMutation.d.ts +0 -2
  221. package/dist/network/graphql/builder/Mutations/Segment/style/selectors/SegmentStyleRemoveSelectorMutation.mjs +0 -4
  222. package/dist/network/graphql/builder/Mutations/Segment/style/selectors/SegmentStyleRemoveSelectorsMutation.d.ts +0 -2
  223. package/dist/network/graphql/builder/Mutations/Segment/style/selectors/SegmentStyleRemoveSelectorsMutation.mjs +0 -4
  224. package/dist/network/graphql/builder/Mutations/Segment/style/selectors/SegmentStyleUpdateSelectorMutation.d.ts +0 -2
  225. package/dist/network/graphql/builder/Mutations/Segment/style/selectors/SegmentStyleUpdateSelectorMutation.mjs +0 -4
  226. package/dist/network/graphql/builder/Mutations/Segment/style/variables/SegmentStyleAddVariableMutation.d.ts +0 -2
  227. package/dist/network/graphql/builder/Mutations/Segment/style/variables/SegmentStyleAddVariableMutation.mjs +0 -4
  228. package/dist/network/graphql/builder/Mutations/Segment/style/variables/SegmentStyleRemoveVariableMutation.d.ts +0 -2
  229. package/dist/network/graphql/builder/Mutations/Segment/style/variables/SegmentStyleRemoveVariableMutation.mjs +0 -4
  230. package/dist/network/graphql/builder/Mutations/Segment/style/variables/SegmentStyleUpdateVariableMutation.d.ts +0 -2
  231. package/dist/network/graphql/builder/Mutations/Segment/style/variables/SegmentStyleUpdateVariableMutation.mjs +0 -4
  232. package/dist/network/graphql/builder/Mutations/Space/SpaceAddTemplateMutation.d.ts +0 -2
  233. package/dist/network/graphql/builder/Mutations/Space/SpaceAddTemplateMutation.mjs +0 -4
  234. package/dist/network/graphql/builder/Queries/Segment/SegmentQuery.d.ts +0 -6
  235. package/dist/network/graphql/builder/Queries/Segment/SegmentQuery.mjs +0 -4
  236. package/dist/network/graphql/builder/Queries/Segment/SegmentsQuery.d.ts +0 -9
  237. package/dist/network/graphql/builder/Queries/Segment/SegmentsQuery.mjs +0 -4
  238. package/dist/network/graphql/sdk/Queries/Segment/SegmentQuery.d.ts +0 -6
  239. package/dist/network/graphql/sdk/Queries/Segment/SegmentQuery.mjs +0 -4
  240. package/dist/network/graphql/sdk/Queries/Segment/SegmentsQuery.d.ts +0 -9
  241. package/dist/network/graphql/sdk/Queries/Segment/SegmentsQuery.mjs +0 -4
  242. package/dist/segments/SegmentsContext.d.ts +0 -2
  243. package/dist/segments/SegmentsContext.mjs +0 -6
  244. package/dist/segments/index.d.ts +0 -3
  245. package/dist/segments/index.mjs +0 -2
  246. package/dist/types/SegmentTypes.d.ts +0 -41
  247. package/dist/types/TemplateTypes.d.ts +0 -20
  248. package/dist/types/TemplateTypes.mjs +0 -0
  249. /package/dist/types/{SegmentTypes.mjs → SnippetTypes.mjs} +0 -0
@@ -4,14 +4,28 @@ export type TSpaceIssue = {
4
4
  message: string;
5
5
  elementId: string | null;
6
6
  fixable: boolean;
7
+ /** What to write instead, from the row of its code — Markdown with `code` in backticks; null when it has no row. */
8
+ fix: string | null;
7
9
  };
8
- /** `errors` block publishing; `warnings` render, but most likely not as meant. */
10
+ /** A shorter way to the same page — not a problem: the space renders as written. */
11
+ export type TSpaceSuggestion = {
12
+ code: string;
13
+ message: string;
14
+ /** The elements it is about — the copies, the buttons. */
15
+ elementIds: string[];
16
+ /** How many elements taking it would save. */
17
+ saves: number;
18
+ /** The short way, from the row of its code — Markdown with `code` in backticks. */
19
+ fix: string | null;
20
+ };
21
+ /** `errors` block publishing; `warnings` render, but most likely not as meant; `suggestions` are a shorter way. */
9
22
  export type TSpaceIssues = {
10
23
  errors: TSpaceIssue[];
11
24
  warnings: TSpaceIssue[];
25
+ suggestions: TSpaceSuggestion[];
12
26
  };
13
27
  export type TSpaceIssuesQuery = {
14
28
  SpaceIssues: TSpaceIssues | null;
15
29
  };
16
- declare const SpaceIssuesQuery = "\n query SpaceIssuesQuery($environment: String!) {\n SpaceIssues(environment: $environment) {\n errors {\n code\n message\n elementId\n fixable\n }\n warnings {\n code\n message\n elementId\n fixable\n }\n }\n }\n";
30
+ declare const SpaceIssuesQuery = "\n query SpaceIssuesQuery($environment: String!) {\n SpaceIssues(environment: $environment) {\n errors {\n code\n message\n elementId\n fixable\n fix\n }\n warnings {\n code\n message\n elementId\n fixable\n fix\n }\n suggestions {\n code\n message\n elementIds\n saves\n fix\n }\n }\n }\n";
17
31
  export default SpaceIssuesQuery;
@@ -1,4 +1,4 @@
1
1
  //#region src/network/graphql/builder/Queries/Space/SpaceIssuesQuery.ts
2
- var e = "\n query SpaceIssuesQuery($environment: String!) {\n SpaceIssues(environment: $environment) {\n errors {\n code\n message\n elementId\n fixable\n }\n warnings {\n code\n message\n elementId\n fixable\n }\n }\n }\n";
2
+ var e = "\n query SpaceIssuesQuery($environment: String!) {\n SpaceIssues(environment: $environment) {\n errors {\n code\n message\n elementId\n fixable\n fix\n }\n warnings {\n code\n message\n elementId\n fixable\n fix\n }\n suggestions {\n code\n message\n elementIds\n saves\n fix\n }\n }\n }\n";
3
3
  //#endregion
4
4
  export { e as default };
@@ -0,0 +1,7 @@
1
+ import { SpaceVersionContents } from '../../../../../types';
2
+ export type TSpaceVersionContentsQuery = {
3
+ SpaceVersionContents: SpaceVersionContents | null;
4
+ };
5
+ /** What one version of the space is made of: the draft a snapshot would freeze, or a snapshot (its latest by default). */
6
+ declare const SpaceVersionContentsQuery = "\n query SpaceVersionContentsQuery($environment: String!, $revision: Int) {\n SpaceVersionContents(environment: $environment, revision: $revision) {\n environment\n revision\n snapshot {\n description\n publishedAt\n }\n pages\n layouts\n components\n elements\n plugins {\n type\n source\n }\n actions\n connectors\n functions {\n tasks\n routes\n }\n runtime {\n source\n }\n }\n }\n";
7
+ export default SpaceVersionContentsQuery;
@@ -0,0 +1,4 @@
1
+ //#region src/network/graphql/builder/Queries/Space/SpaceVersionContentsQuery.ts
2
+ var e = "\n query SpaceVersionContentsQuery($environment: String!, $revision: Int) {\n SpaceVersionContents(environment: $environment, revision: $revision) {\n environment\n revision\n snapshot {\n description\n publishedAt\n }\n pages\n layouts\n components\n elements\n plugins {\n type\n source\n }\n actions\n connectors\n functions {\n tasks\n routes\n }\n runtime {\n source\n }\n }\n }\n";
3
+ //#endregion
4
+ export { e as default };
@@ -1,6 +1,4 @@
1
1
  import { TInitQuery } from './InitQuery';
2
- import { TSegmentQuery } from './Segment/SegmentQuery';
3
- import { TSegmentsQuery } from './Segment/SegmentsQuery';
4
2
  import { TSpaceActionEventsQuery } from './Space/SpaceActionEventsQuery';
5
3
  import { TSpaceActionsQuery } from './Space/SpaceActionsQuery';
6
4
  import { TSpaceActionTasksQuery } from './Space/SpaceActionTasksQuery';
@@ -16,9 +14,10 @@ import { TSpaceLatestRevisionQuery } from './Space/SpaceLatestRevisionQuery';
16
14
  import { TSpaceQuotaQuery } from './Space/SpaceQuotaQuery';
17
15
  import { TSpaceResourcesQuery } from './Space/SpaceResourcesQuery';
18
16
  import { TSpaceRuntimeQuery } from './Space/SpaceRuntimeQuery';
17
+ import { TSpaceVersionContentsQuery } from './Space/SpaceVersionContentsQuery';
19
18
  import { TSpaceVisitorsQuery } from './Space/SpaceVisitorsQuery';
20
19
  export type { TQuotaPlane, TSpaceQuota } from './Space/SpaceQuotaQuery';
21
- export type { TSpaceIssue, TSpaceIssues } from './Space/SpaceIssuesQuery';
20
+ export type { TSpaceIssue, TSpaceIssues, TSpaceSuggestion } from './Space/SpaceIssuesQuery';
22
21
  export type { TSnapshotMarker, TSpaceChanges } from './Space/SpaceChangesQuery';
23
22
  export type BuilderQueriesMap = {
24
23
  Init: TInitQuery;
@@ -36,10 +35,9 @@ export type BuilderQueriesMap = {
36
35
  SpaceFunctions: TSpaceFunctionsQuery;
37
36
  SpaceConnectors: TSpaceConnectorsQuery;
38
37
  SpaceCredentials: TSpaceCredentialsQuery;
38
+ SpaceVersionContents: TSpaceVersionContentsQuery;
39
39
  SpaceVisitors: TSpaceVisitorsQuery;
40
40
  SpaceRuntime: TSpaceRuntimeQuery;
41
- Segment: TSegmentQuery;
42
- Segments: TSegmentsQuery;
43
41
  };
44
42
  declare const BuilderQueries: Record<keyof BuilderQueriesMap, string>;
45
43
  export default BuilderQueries;
@@ -1,43 +1,41 @@
1
1
  import e from "./InitQuery.mjs";
2
- import t from "./Segment/SegmentQuery.mjs";
3
- import n from "./Segment/SegmentsQuery.mjs";
4
- import r from "./Space/SpaceActionEventsQuery.mjs";
5
- import i from "./Space/SpaceActionsQuery.mjs";
6
- import a from "./Space/SpaceActionTasksQuery.mjs";
7
- import o from "./Space/SpaceCdnsQuery.mjs";
8
- import s from "./Space/SpaceChangesQuery.mjs";
9
- import c from "./Space/SpaceCheckActionQuery.mjs";
10
- import l from "./Space/SpaceConnectorsQuery.mjs";
11
- import u from "./Space/SpaceCredentialsQuery.mjs";
12
- import d from "./Space/SpaceDeploymentsQuery.mjs";
13
- import f from "./Space/SpaceFunctionsQuery.mjs";
14
- import p from "./Space/SpaceIssuesQuery.mjs";
15
- import m from "./Space/SpaceLatestRevisionQuery.mjs";
16
- import h from "./Space/SpaceQuotaQuery.mjs";
17
- import g from "./Space/SpaceResourcesQuery.mjs";
18
- import _ from "./Space/SpaceRuntimeQuery.mjs";
19
- import v from "./Space/SpaceVisitorsQuery.mjs";
2
+ import t from "./Space/SpaceActionEventsQuery.mjs";
3
+ import n from "./Space/SpaceActionsQuery.mjs";
4
+ import r from "./Space/SpaceActionTasksQuery.mjs";
5
+ import i from "./Space/SpaceCdnsQuery.mjs";
6
+ import a from "./Space/SpaceChangesQuery.mjs";
7
+ import o from "./Space/SpaceCheckActionQuery.mjs";
8
+ import s from "./Space/SpaceConnectorsQuery.mjs";
9
+ import c from "./Space/SpaceCredentialsQuery.mjs";
10
+ import l from "./Space/SpaceDeploymentsQuery.mjs";
11
+ import u from "./Space/SpaceFunctionsQuery.mjs";
12
+ import d from "./Space/SpaceIssuesQuery.mjs";
13
+ import f from "./Space/SpaceLatestRevisionQuery.mjs";
14
+ import p from "./Space/SpaceQuotaQuery.mjs";
15
+ import m from "./Space/SpaceResourcesQuery.mjs";
16
+ import h from "./Space/SpaceRuntimeQuery.mjs";
17
+ import g from "./Space/SpaceVersionContentsQuery.mjs";
18
+ import _ from "./Space/SpaceVisitorsQuery.mjs";
20
19
  //#region src/network/graphql/builder/Queries/index.ts
21
- var y = {
20
+ var v = {
22
21
  Init: e,
23
- SpaceLatestRevision: m,
24
- SpaceQuota: h,
25
- SpaceIssues: p,
26
- SpaceChanges: s,
27
- SpaceResources: g,
28
- SpaceDeployments: d,
29
- SpaceCdns: o,
30
- SpaceActions: i,
31
- SpaceActionEvents: r,
32
- SpaceCheckAction: c,
33
- SpaceActionTasks: a,
34
- SpaceFunctions: f,
35
- SpaceConnectors: l,
36
- SpaceCredentials: u,
37
- SpaceVisitors: v,
38
- SpaceRuntime: _,
39
- Segment: t,
40
- Segments: n
22
+ SpaceLatestRevision: f,
23
+ SpaceQuota: p,
24
+ SpaceIssues: d,
25
+ SpaceChanges: a,
26
+ SpaceResources: m,
27
+ SpaceDeployments: l,
28
+ SpaceCdns: i,
29
+ SpaceActions: n,
30
+ SpaceActionEvents: t,
31
+ SpaceCheckAction: o,
32
+ SpaceActionTasks: r,
33
+ SpaceFunctions: u,
34
+ SpaceConnectors: s,
35
+ SpaceCredentials: c,
36
+ SpaceVersionContents: g,
37
+ SpaceVisitors: _,
38
+ SpaceRuntime: h
41
39
  };
42
40
  //#endregion
43
- export { y as default };
41
+ export { v as default };
@@ -1,6 +1,6 @@
1
1
  import { SpaceEventName } from '../../../spaceEvents';
2
2
  /**
3
- * The single live channel of a space. Every edit — elements, pages, variables, styles, segments — arrives on this
3
+ * The single live channel of a space. Every edit — elements, pages, variables, styles — arrives on this
4
4
  * one subscription and is told apart by `event`, instead of one operation (and one Redis channel, and one websocket
5
5
  * subscription) per kind of edit.
6
6
  *
@@ -1,15 +1,14 @@
1
- import { PluginRaw, SchemaRaw, SegmentRaw, Style } from '../../../../types';
1
+ import { PluginRaw, SchemaRaw, Style } from '../../../../types';
2
2
  export type TInitQuery = {
3
3
  Space?: {
4
4
  plugins: PluginRaw[];
5
5
  schema: SchemaRaw;
6
6
  style: Style;
7
- segments?: SegmentRaw[];
8
7
  /** What the server decided about this render. Server-side facts the space cannot author away. */
9
8
  render?: {
10
9
  overQuota: boolean;
11
10
  };
12
11
  };
13
12
  };
14
- declare const InitQuery = "\n query InitQuery($environment: String!, $revision: Int) {\n Space(environment: $environment, revision: $revision) {\n schema {\n settings\n flat {\n id\n definition {\n label\n type\n initialState\n styleSelectors\n bindings\n interactions\n parentId\n rootId\n items\n }\n attributes\n }\n pages\n pageFolders {\n id\n name\n slug\n parentId\n }\n variables {\n name\n type\n value\n subValues {\n when\n value\n }\n }\n }\n segments {\n id\n identifier\n definition\n schema {\n variables {\n name\n category\n type\n value\n subValues {\n value\n when\n }\n }\n flat {\n id\n definition {\n label\n type\n initialState\n styleSelectors\n bindings\n interactions\n parentId\n rootId\n items\n }\n attributes\n }\n }\n style {\n cache\n }\n }\n plugins {\n type\n resource\n settings\n }\n style {\n variables\n cache\n }\n # The schema fetch is the one moment a client-side render hears from the server at all, so the decision it\n # would have been handed in an SSR bootstrap travels here instead.\n render {\n overQuota\n }\n }\n }\n";
13
+ declare const InitQuery = "\n query InitQuery($environment: String!, $revision: Int) {\n Space(environment: $environment, revision: $revision) {\n schema {\n settings\n rsc\n flat {\n id\n definition {\n label\n type\n initialState\n styleSelectors\n bindings\n interactions\n parentId\n rootId\n items\n runtime\n loadStrategy\n flag {\n name\n is\n }\n anchor\n }\n attributes\n }\n pages\n components\n flags\n pageFolders {\n id\n name\n slug\n parentId\n }\n variables {\n name\n type\n value\n subValues {\n when\n value\n }\n }\n }\n plugins {\n type\n resource\n settings\n }\n style {\n variables\n cache\n }\n # The schema fetch is the one moment a client-side render hears from the server at all, so the decision it\n # would have been handed in an SSR bootstrap travels here instead.\n render {\n overQuota\n }\n }\n }\n";
15
14
  export default InitQuery;
@@ -1,4 +1,4 @@
1
1
  //#region src/network/graphql/sdk/Queries/InitQuery.ts
2
- var e = "\n query InitQuery($environment: String!, $revision: Int) {\n Space(environment: $environment, revision: $revision) {\n schema {\n settings\n flat {\n id\n definition {\n label\n type\n initialState\n styleSelectors\n bindings\n interactions\n parentId\n rootId\n items\n }\n attributes\n }\n pages\n pageFolders {\n id\n name\n slug\n parentId\n }\n variables {\n name\n type\n value\n subValues {\n when\n value\n }\n }\n }\n segments {\n id\n identifier\n definition\n schema {\n variables {\n name\n category\n type\n value\n subValues {\n value\n when\n }\n }\n flat {\n id\n definition {\n label\n type\n initialState\n styleSelectors\n bindings\n interactions\n parentId\n rootId\n items\n }\n attributes\n }\n }\n style {\n cache\n }\n }\n plugins {\n type\n resource\n settings\n }\n style {\n variables\n cache\n }\n # The schema fetch is the one moment a client-side render hears from the server at all, so the decision it\n # would have been handed in an SSR bootstrap travels here instead.\n render {\n overQuota\n }\n }\n }\n";
2
+ var e = "\n query InitQuery($environment: String!, $revision: Int) {\n Space(environment: $environment, revision: $revision) {\n schema {\n settings\n rsc\n flat {\n id\n definition {\n label\n type\n initialState\n styleSelectors\n bindings\n interactions\n parentId\n rootId\n items\n runtime\n loadStrategy\n flag {\n name\n is\n }\n anchor\n }\n attributes\n }\n pages\n components\n flags\n pageFolders {\n id\n name\n slug\n parentId\n }\n variables {\n name\n type\n value\n subValues {\n when\n value\n }\n }\n }\n plugins {\n type\n resource\n settings\n }\n style {\n variables\n cache\n }\n # The schema fetch is the one moment a client-side render hears from the server at all, so the decision it\n # would have been handed in an SSR bootstrap travels here instead.\n render {\n overQuota\n }\n }\n }\n";
3
3
  //#endregion
4
4
  export { e as default };
@@ -1,10 +1,6 @@
1
1
  import { TInitQuery } from './InitQuery';
2
- import { TSegmentQuery } from './Segment/SegmentQuery';
3
- import { TSegmentsQuery } from './Segment/SegmentsQuery';
4
2
  export type SdkQueriesMap = {
5
3
  Init: TInitQuery;
6
- Segment: TSegmentQuery;
7
- Segments: TSegmentsQuery;
8
4
  };
9
5
  declare const SdkQueries: Record<keyof SdkQueriesMap, string>;
10
6
  export default SdkQueries;
@@ -1,11 +1,5 @@
1
1
  import e from "./InitQuery.mjs";
2
- import t from "./Segment/SegmentQuery.mjs";
3
- import n from "./Segment/SegmentsQuery.mjs";
4
2
  //#region src/network/graphql/sdk/Queries/index.ts
5
- var r = {
6
- Init: e,
7
- Segment: t,
8
- Segments: n
9
- };
3
+ var t = { Init: e };
10
4
  //#endregion
11
- export { r as default };
5
+ export { t as default };
@@ -1,9 +1,10 @@
1
1
  import e from "./NetworkContext.mjs";
2
2
  import t from "./NetworkInternalContext.mjs";
3
- import { SpaceEvents as n, schemaFromWire as r, schemaToWire as i, spaceEventSchemas as a, validateSpaceEvent as o } from "./spaceEvents.mjs";
4
- import s from "./graphql/builder/Mutations/index.mjs";
5
- import c from "./graphql/builder/Queries/index.mjs";
6
- import l from "./graphql/builder/Subscriptions/index.mjs";
7
- import u from "./graphql/sdk/Mutations/index.mjs";
8
- import d from "./graphql/sdk/Queries/index.mjs";
9
- export { s as BuilderMutations, c as BuilderQueries, e as NetworkContext, t as NetworkInternalContext, u as SdkMutations, d as SdkQueries, l as SpaceEventSubscription, n as SpaceEvents, r as schemaFromWire, i as schemaToWire, a as spaceEventSchemas, o as validateSpaceEvent };
3
+ import { elementFromWire as n, schemaFromWire as r, schemaToWire as i } from "../schema/wire.mjs";
4
+ import { SpaceEvents as a, spaceEventSchemas as o, validateSpaceEvent as s } from "./spaceEvents.mjs";
5
+ import c from "./graphql/builder/Mutations/index.mjs";
6
+ import l from "./graphql/builder/Queries/index.mjs";
7
+ import u from "./graphql/builder/Subscriptions/index.mjs";
8
+ import d from "./graphql/sdk/Mutations/index.mjs";
9
+ import f from "./graphql/sdk/Queries/index.mjs";
10
+ export { c as BuilderMutations, l as BuilderQueries, e as NetworkContext, t as NetworkInternalContext, d as SdkMutations, f as SdkQueries, u as SpaceEventSubscription, a as SpaceEvents, n as elementFromWire, r as schemaFromWire, i as schemaToWire, o as spaceEventSchemas, s as validateSpaceEvent };
@@ -1,10 +1,7 @@
1
1
  import { z } from 'zod';
2
2
  import { StyleVariableCategory } from '../types/StyleTypes';
3
- import { DropPosition, Element, PageFolder, Schema, SchemaRaw, SchemaVariable, SpaceFont, Style, StyleCategory, StyleItem, StyleVariableValue } from '../types';
4
- /** A schema as the channel carries it: `flat` as a list. What every publisher of a whole schema sends. */
5
- export declare const schemaToWire: (schema: Schema) => SchemaRaw;
6
- /** A schema off the channel, keyed again by element id: what a receiver stores. */
7
- export declare const schemaFromWire: (raw: SchemaRaw) => Schema;
3
+ import { DropPosition, Element, PageFolder, SchemaFlag, SchemaRaw, SchemaVariable, SpaceComponent, SpaceComponentDeclaration, SpaceFont, Style, StyleCategory, StyleItem, StyleVariableValue } from '../types';
4
+ export { elementFromWire, schemaFromWire, schemaToWire } from '../schema/wire';
8
5
  export declare const spaceEventSchemas: {
9
6
  readonly SPACE_UPDATED: z.ZodObject<{
10
7
  schema: z.ZodCustom<SchemaRaw, SchemaRaw>;
@@ -44,6 +41,13 @@ export declare const spaceEventSchemas: {
44
41
  readonly SPACE_REMOVE_VARIABLE: z.ZodObject<{
45
42
  name: z.ZodString;
46
43
  }, z.core.$strip>;
44
+ readonly SPACE_SET_FLAG: z.ZodObject<{
45
+ name: z.ZodString;
46
+ flag: z.ZodCustom<SchemaFlag, SchemaFlag>;
47
+ }, z.core.$strip>;
48
+ readonly SPACE_REMOVE_FLAG: z.ZodObject<{
49
+ name: z.ZodString;
50
+ }, z.core.$strip>;
47
51
  readonly SPACE_ADD_ELEMENT: z.ZodObject<{
48
52
  element: z.ZodCustom<Element, Element>;
49
53
  dropPosition: z.ZodCustom<DropPosition, DropPosition>;
@@ -76,7 +80,7 @@ export declare const spaceEventSchemas: {
76
80
  dropPosition: z.ZodCustom<DropPosition, DropPosition>;
77
81
  initialItems: z.ZodArray<z.ZodCustom<Element, Element>>;
78
82
  }, z.core.$strip>;
79
- readonly SPACE_ADD_TEMPLATE: z.ZodObject<{
83
+ readonly SPACE_ADD_SNIPPET: z.ZodObject<{
80
84
  element: z.ZodCustom<Element, Element>;
81
85
  style: z.ZodCustom<Style, Style>;
82
86
  to: z.ZodString;
@@ -136,6 +140,7 @@ export declare const spaceEventSchemas: {
136
140
  disabled: "disabled";
137
141
  checked: "checked";
138
142
  visited: "visited";
143
+ current: "current";
139
144
  hidden: "hidden";
140
145
  }>>;
141
146
  styleVariant: z.ZodOptional<z.ZodString>;
@@ -162,6 +167,7 @@ export declare const spaceEventSchemas: {
162
167
  disabled: "disabled";
163
168
  checked: "checked";
164
169
  visited: "visited";
170
+ current: "current";
165
171
  hidden: "hidden";
166
172
  }>>;
167
173
  styleVariant: z.ZodOptional<z.ZodString>;
@@ -245,198 +251,22 @@ export declare const spaceEventSchemas: {
245
251
  readonly STYLE_REMOVE_FONT: z.ZodObject<{
246
252
  family: z.ZodString;
247
253
  }, z.core.$strip>;
248
- readonly SEGMENT_ADD_ELEMENT: z.ZodObject<{
249
- element: z.ZodCustom<Element, Element>;
250
- dropPosition: z.ZodCustom<DropPosition, DropPosition>;
251
- to: z.ZodString;
252
- initialItems: z.ZodOptional<z.ZodArray<z.ZodCustom<Element, Element>>>;
253
- variables: z.ZodOptional<z.ZodArray<z.ZodCustom<SchemaVariable, SchemaVariable>>>;
254
- contextId: z.ZodString;
255
- }, z.core.$strip>;
256
- readonly SEGMENT_UPDATE_ELEMENT: z.ZodObject<{
257
- element: z.ZodCustom<Element, Element>;
258
- contextId: z.ZodString;
259
- }, z.core.$strip>;
260
- readonly SEGMENT_RENAME_ELEMENT: z.ZodObject<{
261
- elementId: z.ZodString;
262
- id: z.ZodString;
263
- contextId: z.ZodString;
264
- }, z.core.$strip>;
265
- readonly SEGMENT_UPDATE_ELEMENTS: z.ZodObject<{
266
- elements: z.ZodArray<z.ZodCustom<Element, Element>>;
267
- contextId: z.ZodString;
268
- }, z.core.$strip>;
269
- readonly SEGMENT_REMOVE_ELEMENT: z.ZodObject<{
270
- elementId: z.ZodString;
271
- contextId: z.ZodString;
272
- }, z.core.$strip>;
273
- readonly SEGMENT_MOVE_ELEMENT: z.ZodObject<{
274
- elementId: z.ZodString;
275
- from: z.ZodString;
276
- to: z.ZodString;
277
- dropPosition: z.ZodCustom<DropPosition, DropPosition>;
278
- contextId: z.ZodString;
254
+ readonly SPACE_ADD_COMPONENT: z.ZodObject<{
255
+ component: z.ZodCustom<SpaceComponent, SpaceComponent>;
256
+ from: z.ZodOptional<z.ZodObject<{
257
+ elementId: z.ZodString;
258
+ instanceId: z.ZodString;
259
+ }, z.core.$strip>>;
279
260
  }, z.core.$strip>;
280
- readonly SEGMENT_CLONE_ELEMENT: z.ZodObject<{
281
- element: z.ZodCustom<Element, Element>;
282
- dropPosition: z.ZodCustom<DropPosition, DropPosition>;
283
- to: z.ZodString;
284
- initialItems: z.ZodOptional<z.ZodArray<z.ZodCustom<Element, Element>>>;
285
- contextId: z.ZodString;
261
+ readonly SPACE_UPDATE_COMPONENT: z.ZodObject<{
262
+ componentId: z.ZodString;
263
+ declaration: z.ZodCustom<SpaceComponentDeclaration, SpaceComponentDeclaration>;
286
264
  }, z.core.$strip>;
287
- readonly SEGMENT_ADD_TEMPLATE: z.ZodObject<{
288
- element: z.ZodCustom<Element, Element>;
289
- style: z.ZodCustom<Style, Style>;
290
- to: z.ZodString;
291
- dropPosition: z.ZodCustom<DropPosition, DropPosition>;
292
- initialItems: z.ZodOptional<z.ZodArray<z.ZodCustom<Element, Element>>>;
293
- variables: z.ZodOptional<z.ZodArray<z.ZodCustom<SchemaVariable, SchemaVariable>>>;
294
- contextId: z.ZodString;
265
+ readonly SPACE_REMOVE_COMPONENT: z.ZodObject<{
266
+ componentId: z.ZodString;
295
267
  }, z.core.$strip>;
296
- readonly SEGMENT_SPACE_ADD_VARIABLE: z.ZodObject<{
297
- variable: z.ZodCustom<SchemaVariable, SchemaVariable>;
298
- contextId: z.ZodString;
299
- }, z.core.$strip>;
300
- readonly SEGMENT_SPACE_UPDATE_VARIABLE: z.ZodObject<{
301
- variable: z.ZodCustom<SchemaVariable, SchemaVariable>;
302
- contextId: z.ZodString;
303
- }, z.core.$strip>;
304
- readonly SEGMENT_SPACE_REMOVE_VARIABLE: z.ZodObject<{
305
- variable: z.ZodObject<{
306
- name: z.ZodString;
307
- }, z.core.$strip>;
308
- contextId: z.ZodString;
309
- }, z.core.$strip>;
310
- readonly SEGMENT_STYLE_ADD_SELECTOR: z.ZodObject<{
311
- displayMode: z.ZodEnum<{
312
- desktop: "desktop";
313
- tablet: "tablet";
314
- mobile: "mobile";
315
- }>;
316
- selector: z.ZodString;
317
- type: z.ZodEnum<{
318
- id: "id";
319
- element: "element";
320
- class: "class";
321
- }>;
322
- path: z.ZodOptional<z.ZodCustom<StyleCategory, StyleCategory>>;
323
- style: z.ZodOptional<z.ZodCustom<import('..').StyleAttributes, import('..').StyleAttributes>>;
324
- params: z.ZodObject<{
325
- componentType: z.ZodOptional<z.ZodString>;
326
- styleSelector: z.ZodOptional<z.ZodString>;
327
- styleState: z.ZodOptional<z.ZodEnum<{
328
- hover: "hover";
329
- focus: "focus";
330
- "focus-visible": "focus-visible";
331
- "focus-within": "focus-within";
332
- active: "active";
333
- disabled: "disabled";
334
- checked: "checked";
335
- visited: "visited";
336
- hidden: "hidden";
337
- }>>;
338
- styleVariant: z.ZodOptional<z.ZodString>;
339
- styleAncestor: z.ZodOptional<z.ZodString>;
340
- }, z.core.$strip>;
341
- contextId: z.ZodString;
342
- }, z.core.$strip>;
343
- readonly SEGMENT_STYLE_UPDATE_SELECTOR: z.ZodObject<{
344
- displayMode: z.ZodEnum<{
345
- desktop: "desktop";
346
- tablet: "tablet";
347
- mobile: "mobile";
348
- }>;
349
- selector: z.ZodString;
350
- path: z.ZodOptional<z.ZodCustom<StyleCategory, StyleCategory>>;
351
- style: z.ZodOptional<z.ZodCustom<import('..').StyleAttributes, import('..').StyleAttributes>>;
352
- params: z.ZodObject<{
353
- componentType: z.ZodOptional<z.ZodString>;
354
- styleState: z.ZodOptional<z.ZodEnum<{
355
- hover: "hover";
356
- focus: "focus";
357
- "focus-visible": "focus-visible";
358
- "focus-within": "focus-within";
359
- active: "active";
360
- disabled: "disabled";
361
- checked: "checked";
362
- visited: "visited";
363
- hidden: "hidden";
364
- }>>;
365
- styleVariant: z.ZodOptional<z.ZodString>;
366
- styleAncestor: z.ZodOptional<z.ZodString>;
367
- styleSelector: z.ZodString;
368
- }, z.core.$strip>;
369
- contextId: z.ZodString;
370
- }, z.core.$strip>;
371
- readonly SEGMENT_STYLE_REMOVE_SELECTOR: z.ZodObject<{
372
- displayMode: z.ZodEnum<{
373
- desktop: "desktop";
374
- tablet: "tablet";
375
- mobile: "mobile";
376
- }>;
377
- selector: z.ZodString;
378
- contextId: z.ZodString;
379
- }, z.core.$strip>;
380
- readonly SEGMENT_STYLE_REMOVE_SELECTORS: z.ZodObject<{
381
- displayMode: z.ZodEnum<{
382
- desktop: "desktop";
383
- tablet: "tablet";
384
- mobile: "mobile";
385
- }>;
386
- selectors: z.ZodArray<z.ZodString>;
387
- contextId: z.ZodString;
388
- }, z.core.$strip>;
389
- readonly SEGMENT_STYLE_ADD_SELECTOR_VARIABLE: z.ZodObject<{
390
- displayMode: z.ZodEnum<{
391
- desktop: "desktop";
392
- tablet: "tablet";
393
- mobile: "mobile";
394
- }>;
395
- selector: z.ZodString;
396
- category: z.ZodEnum<typeof StyleVariableCategory>;
397
- name: z.ZodString;
398
- value: z.ZodCustom<StyleVariableValue, StyleVariableValue>;
399
- contextId: z.ZodString;
400
- }, z.core.$strip>;
401
- readonly SEGMENT_STYLE_UPDATE_SELECTOR_VARIABLE: z.ZodObject<{
402
- displayMode: z.ZodEnum<{
403
- desktop: "desktop";
404
- tablet: "tablet";
405
- mobile: "mobile";
406
- }>;
407
- selector: z.ZodString;
408
- category: z.ZodEnum<typeof StyleVariableCategory>;
409
- name: z.ZodString;
410
- value: z.ZodCustom<StyleVariableValue, StyleVariableValue>;
411
- contextId: z.ZodString;
412
- }, z.core.$strip>;
413
- readonly SEGMENT_STYLE_REMOVE_SELECTOR_VARIABLE: z.ZodObject<{
414
- displayMode: z.ZodEnum<{
415
- desktop: "desktop";
416
- tablet: "tablet";
417
- mobile: "mobile";
418
- }>;
419
- selector: z.ZodString;
420
- category: z.ZodEnum<typeof StyleVariableCategory>;
421
- name: z.ZodString;
422
- contextId: z.ZodString;
423
- }, z.core.$strip>;
424
- readonly SEGMENT_STYLE_ADD_VARIABLE: z.ZodObject<{
425
- category: z.ZodEnum<typeof StyleVariableCategory>;
426
- name: z.ZodString;
427
- value: z.ZodCustom<StyleVariableValue, StyleVariableValue>;
428
- contextId: z.ZodString;
429
- }, z.core.$strip>;
430
- readonly SEGMENT_STYLE_UPDATE_VARIABLE: z.ZodObject<{
431
- category: z.ZodEnum<typeof StyleVariableCategory>;
432
- name: z.ZodString;
433
- value: z.ZodCustom<StyleVariableValue, StyleVariableValue>;
434
- contextId: z.ZodString;
435
- }, z.core.$strip>;
436
- readonly SEGMENT_STYLE_REMOVE_VARIABLE: z.ZodObject<{
437
- category: z.ZodEnum<typeof StyleVariableCategory>;
438
- name: z.ZodString;
439
- contextId: z.ZodString;
268
+ readonly SPACE_DETACH_INSTANCE: z.ZodObject<{
269
+ instanceId: z.ZodString;
440
270
  }, z.core.$strip>;
441
271
  };
442
272
  export type SpaceEventName = keyof typeof spaceEventSchemas;