@plitzi/sdk-shared 0.33.1 → 0.34.0

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 (205) hide show
  1. package/CHANGELOG.md +64 -0
  2. package/dist/actions/cron.d.ts +34 -0
  3. package/dist/actions/cron.mjs +72 -0
  4. package/dist/actions/index.d.ts +6 -0
  5. package/dist/actions/index.mjs +5 -0
  6. package/dist/actions/triggerParams.d.ts +41 -0
  7. package/dist/actions/triggerParams.mjs +40 -0
  8. package/dist/actions/triggers.d.ts +29 -0
  9. package/dist/actions/triggers.mjs +4 -0
  10. package/dist/actions/validateDocument.d.ts +23 -0
  11. package/dist/actions/validateDocument.mjs +267 -0
  12. package/dist/auth/failureChannel.d.ts +9 -4
  13. package/dist/auth/failureChannel.mjs +3 -2
  14. package/dist/authoring/builder.d.ts +51 -0
  15. package/dist/authoring/builder.mjs +29 -0
  16. package/dist/authoring/declare.d.ts +64 -0
  17. package/dist/authoring/declare.mjs +4 -0
  18. package/dist/authoring/elementCallbacks.d.ts +13 -0
  19. package/dist/authoring/elementCallbacks.mjs +71 -0
  20. package/dist/authoring/index.d.ts +21 -0
  21. package/dist/authoring/index.mjs +6 -0
  22. package/dist/authoring/paramSpec.d.ts +51 -0
  23. package/dist/authoring/paramSpec.mjs +40 -0
  24. package/dist/authoring/spaceCallbacks.d.ts +10 -0
  25. package/dist/authoring/spaceCallbacks.mjs +51 -0
  26. package/dist/builder/contexts/BuilderContext.d.ts +2 -4
  27. package/dist/dataSource/getBindingsDetails.mjs +2 -2
  28. package/dist/dataSource/helpers/getSourceName.d.ts +1 -3
  29. package/dist/dataSource/helpers/getSourceName.mjs +1 -1
  30. package/dist/dataSource/index.d.ts +2 -0
  31. package/dist/dataSource/index.mjs +6 -5
  32. package/dist/dataSource/resolveVariables.d.ts +22 -0
  33. package/dist/dataSource/resolveVariables.mjs +16 -0
  34. package/dist/dataSource/utility/index.mjs +15 -13
  35. package/dist/dataSource/utility/not.d.ts +11 -0
  36. package/dist/dataSource/utility/not.mjs +15 -0
  37. package/dist/dataSource/utility/styleVariant.mjs +1 -1
  38. package/dist/devTools/debugCookie.d.ts +16 -0
  39. package/dist/devTools/debugCookie.mjs +7 -0
  40. package/dist/devTools/index.d.ts +6 -2
  41. package/dist/devTools/index.mjs +4 -2
  42. package/dist/devTools/interactionLog.d.ts +14 -0
  43. package/dist/devTools/interactionLog.mjs +4 -0
  44. package/dist/helpers/index.d.ts +2 -0
  45. package/dist/helpers/index.mjs +11 -9
  46. package/dist/helpers/reducerOrigin.d.ts +15 -0
  47. package/dist/helpers/reducerOrigin.mjs +4 -0
  48. package/dist/helpers/ruleEvaluator.d.ts +14 -0
  49. package/dist/helpers/ruleEvaluator.mjs +5 -0
  50. package/dist/helpers/twigWrapper/AST.d.ts +12 -1
  51. package/dist/helpers/twigWrapper/AST.mjs +0 -0
  52. package/dist/helpers/twigWrapper/Evaluator/Evaluator.mjs +7 -0
  53. package/dist/helpers/twigWrapper/Parser/Cursor.d.ts +7 -0
  54. package/dist/helpers/twigWrapper/Parser/Cursor.mjs +5 -0
  55. package/dist/helpers/twigWrapper/Parser/ExpressionParser.mjs +46 -8
  56. package/dist/helpers/twigWrapper/Parser/types.mjs +0 -0
  57. package/dist/helpers/twigWrapper/charClass.d.ts +7 -0
  58. package/dist/helpers/twigWrapper/charClass.mjs +16 -12
  59. package/dist/helpers/twigWrapper/tokens/tokenPatterns.mjs +2 -2
  60. package/dist/helpers/utils.d.ts +0 -2
  61. package/dist/helpers/utils.mjs +16 -19
  62. package/dist/hooks/index.d.ts +2 -1
  63. package/dist/hooks/index.mjs +4 -3
  64. package/dist/hooks/useFontHead.d.ts +3 -0
  65. package/dist/hooks/useFontHead.mjs +23 -0
  66. package/dist/hooks/usePlitziServiceContext.d.ts +3 -2
  67. package/dist/index.mjs +61 -45
  68. package/dist/navigation/index.d.ts +1 -1
  69. package/dist/navigation/index.mjs +2 -2
  70. package/dist/navigation/routes.d.ts +8 -0
  71. package/dist/navigation/routes.mjs +39 -39
  72. package/dist/network/graphql/builder/Mutations/Segment/SegmentAddMutation.mjs +0 -1
  73. package/dist/network/graphql/builder/Mutations/Segment/SegmentAddTemplateMutation.mjs +0 -1
  74. package/dist/network/graphql/builder/Mutations/Segment/SegmentUpdateMutation.mjs +0 -1
  75. package/dist/network/graphql/builder/Mutations/Segment/space/elements/SegmentAddElementMutation.mjs +0 -1
  76. package/dist/network/graphql/builder/Mutations/Segment/space/elements/SegmentCloneElementMutation.mjs +0 -1
  77. package/dist/network/graphql/builder/Mutations/Segment/space/elements/SegmentMoveElementMutation.mjs +0 -1
  78. package/dist/network/graphql/builder/Mutations/Segment/space/elements/SegmentRemoveElementMutation.mjs +0 -1
  79. package/dist/network/graphql/builder/Mutations/Segment/space/elements/SegmentRenameElementMutation.d.ts +3 -0
  80. package/dist/network/graphql/builder/Mutations/Segment/space/elements/SegmentRenameElementMutation.mjs +9 -0
  81. package/dist/network/graphql/builder/Mutations/Segment/space/elements/SegmentUpdateElementMutation.mjs +0 -1
  82. package/dist/network/graphql/builder/Mutations/Segment/space/elements/SegmentUpdateElementsMutation.mjs +0 -1
  83. package/dist/network/graphql/builder/Mutations/Space/SpaceAddElementMutation.mjs +0 -1
  84. package/dist/network/graphql/builder/Mutations/Space/SpaceAddTemplateMutation.mjs +0 -1
  85. package/dist/network/graphql/builder/Mutations/Space/SpaceCloneElementMutation.mjs +0 -1
  86. package/dist/network/graphql/builder/Mutations/Space/SpaceMoveElementMutation.mjs +0 -1
  87. package/dist/network/graphql/builder/Mutations/Space/SpaceRemoveElementMutation.mjs +0 -1
  88. package/dist/network/graphql/builder/Mutations/Space/SpaceRenameElementMutation.d.ts +5 -0
  89. package/dist/network/graphql/builder/Mutations/Space/SpaceRenameElementMutation.mjs +9 -0
  90. package/dist/network/graphql/builder/Mutations/Space/SpaceUpdateElementMutation.mjs +0 -1
  91. package/dist/network/graphql/builder/Mutations/Space/SpaceUpdateElementsMutation.mjs +0 -1
  92. package/dist/network/graphql/builder/Mutations/Space/SpaceUpdateMutation.mjs +0 -1
  93. package/dist/network/graphql/builder/Mutations/Space/SpaceUpdateSchemaMutation.mjs +0 -1
  94. package/dist/network/graphql/builder/Mutations/Space/actions/SpaceAddActionMutation.d.ts +8 -0
  95. package/dist/network/graphql/builder/Mutations/Space/actions/SpaceAddActionMutation.mjs +16 -0
  96. package/dist/network/graphql/builder/Mutations/Space/actions/SpaceRemoveActionMutation.d.ts +4 -0
  97. package/dist/network/graphql/builder/Mutations/Space/actions/SpaceRemoveActionMutation.mjs +16 -0
  98. package/dist/network/graphql/builder/Mutations/Space/actions/SpaceRunActionMutation.d.ts +4 -0
  99. package/dist/network/graphql/builder/Mutations/Space/actions/SpaceRunActionMutation.mjs +14 -0
  100. package/dist/network/graphql/builder/Mutations/Space/actions/SpaceUpdateActionMutation.d.ts +4 -0
  101. package/dist/network/graphql/builder/Mutations/Space/actions/SpaceUpdateActionMutation.mjs +16 -0
  102. package/dist/network/graphql/builder/Mutations/Space/pages/SpaceAddPageMutation.mjs +2 -3
  103. package/dist/network/graphql/builder/Mutations/Space/pages/SpaceUpdatePageMutation.mjs +0 -1
  104. package/dist/network/graphql/builder/Mutations/Style/fonts/StyleAddFontMutation.d.ts +2 -0
  105. package/dist/network/graphql/builder/Mutations/Style/fonts/StyleAddFontMutation.mjs +11 -0
  106. package/dist/network/graphql/builder/Mutations/Style/fonts/StyleRemoveFontMutation.d.ts +2 -0
  107. package/dist/network/graphql/builder/Mutations/Style/fonts/StyleRemoveFontMutation.mjs +11 -0
  108. package/dist/network/graphql/builder/Mutations/Style/fonts/StyleUpdateFontMutation.d.ts +2 -0
  109. package/dist/network/graphql/builder/Mutations/Style/fonts/StyleUpdateFontMutation.mjs +11 -0
  110. package/dist/network/graphql/builder/Mutations/index.d.ts +24 -0
  111. package/dist/network/graphql/builder/Mutations/index.mjs +150 -132
  112. package/dist/network/graphql/builder/Queries/InitQuery.mjs +1 -2
  113. package/dist/network/graphql/builder/Queries/Segment/SegmentQuery.mjs +0 -1
  114. package/dist/network/graphql/builder/Queries/Segment/SegmentsQuery.mjs +0 -1
  115. package/dist/network/graphql/builder/Queries/Space/SpaceActionEventsQuery.d.ts +9 -0
  116. package/dist/network/graphql/builder/Queries/Space/SpaceActionEventsQuery.mjs +30 -0
  117. package/dist/network/graphql/builder/Queries/Space/SpaceActionTasksQuery.d.ts +6 -0
  118. package/dist/network/graphql/builder/Queries/Space/SpaceActionTasksQuery.mjs +16 -0
  119. package/dist/network/graphql/builder/Queries/Space/SpaceActionsQuery.d.ts +9 -0
  120. package/dist/network/graphql/builder/Queries/Space/SpaceActionsQuery.mjs +25 -0
  121. package/dist/network/graphql/builder/Queries/Space/SpaceCheckActionQuery.d.ts +6 -0
  122. package/dist/network/graphql/builder/Queries/Space/SpaceCheckActionQuery.mjs +17 -0
  123. package/dist/network/graphql/builder/Queries/Space/SpaceQuotaQuery.d.ts +30 -0
  124. package/dist/network/graphql/builder/Queries/Space/SpaceQuotaQuery.mjs +40 -0
  125. package/dist/network/graphql/builder/Queries/index.d.ts +16 -0
  126. package/dist/network/graphql/builder/Queries/index.mjs +24 -14
  127. package/dist/network/graphql/sdk/Queries/InitQuery.d.ts +4 -0
  128. package/dist/network/graphql/sdk/Queries/InitQuery.mjs +5 -2
  129. package/dist/network/graphql/sdk/Queries/Segment/SegmentQuery.mjs +0 -1
  130. package/dist/network/graphql/sdk/Queries/Segment/SegmentsQuery.mjs +0 -1
  131. package/dist/network/spaceEvents.d.ts +20 -1
  132. package/dist/network/spaceEvents.mjs +89 -74
  133. package/dist/schema/index.d.ts +1 -0
  134. package/dist/schema/index.mjs +2 -1
  135. package/dist/schema/serverElements.d.ts +16 -0
  136. package/dist/schema/serverElements.mjs +18 -0
  137. package/dist/server/actions/useActionsSync.d.ts +10 -0
  138. package/dist/server/actions/useActionsSync.mjs +7 -0
  139. package/dist/server/index.d.ts +2 -1
  140. package/dist/server/index.mjs +5 -4
  141. package/dist/server/rsc/refreshRsc.d.ts +11 -1
  142. package/dist/server/rsc/refreshRsc.mjs +30 -12
  143. package/dist/server/rsc/useRscSync.mjs +20 -13
  144. package/dist/state/runtimeStatePersist.mjs +4 -3
  145. package/dist/store/actionRuns/actionRunsRecorder.d.ts +36 -0
  146. package/dist/store/actionRuns/actionRunsRecorder.mjs +39 -0
  147. package/dist/store/actionRuns/actionRunsStore.d.ts +16 -0
  148. package/dist/store/actionRuns/actionRunsStore.mjs +5 -0
  149. package/dist/store/actionRuns/index.d.ts +6 -0
  150. package/dist/store/actionRuns/index.mjs +4 -0
  151. package/dist/store/actionRuns/useActionRuns.d.ts +13 -0
  152. package/dist/store/actionRuns/useActionRuns.mjs +10 -0
  153. package/dist/store/index.d.ts +46 -45
  154. package/dist/store/index.mjs +6 -3
  155. package/dist/store/renderSettings.d.ts +3 -0
  156. package/dist/store/renderSettings.mjs +17 -5
  157. package/dist/store/tracing/tracingCollector.d.ts +1 -1
  158. package/dist/store/tracing/tracingCollector.mjs +37 -35
  159. package/dist/store/tracing/tracingStore.d.ts +13 -0
  160. package/dist/store/tracing/tracingStore.mjs +3 -3
  161. package/dist/style/fontAssets.d.ts +12 -0
  162. package/dist/style/fontAssets.mjs +18 -0
  163. package/dist/style/fontValidation.d.ts +8 -0
  164. package/dist/style/fontValidation.mjs +107 -0
  165. package/dist/style/fonts.d.ts +74 -0
  166. package/dist/style/fonts.mjs +198 -0
  167. package/dist/style/fontsFromCss.d.ts +27 -0
  168. package/dist/style/fontsFromCss.mjs +43 -0
  169. package/dist/style/index.d.ts +4 -0
  170. package/dist/style/index.mjs +5 -1
  171. package/dist/style/styleConstants.d.ts +2 -2
  172. package/dist/style/styleConstants.mjs +1 -0
  173. package/dist/theme/ThemeProvider.d.ts +36 -6
  174. package/dist/theme/ThemeProvider.mjs +49 -35
  175. package/dist/theme/ThemeScope.d.ts +16 -0
  176. package/dist/theme/ThemeScope.mjs +6 -0
  177. package/dist/theme/index.d.ts +7 -1
  178. package/dist/theme/index.mjs +6 -2
  179. package/dist/theme/themeCookie.d.ts +30 -0
  180. package/dist/theme/themeCookie.mjs +24 -0
  181. package/dist/theme/themeStore.d.ts +40 -0
  182. package/dist/theme/themeStore.mjs +17 -0
  183. package/dist/theme/useTheme.d.ts +29 -0
  184. package/dist/theme/useTheme.mjs +20 -0
  185. package/dist/types/ActionTypes.d.ts +396 -0
  186. package/dist/types/ActionTypes.mjs +0 -0
  187. package/dist/types/AuthTypes.d.ts +23 -2
  188. package/dist/types/BuilderTypes.d.ts +0 -12
  189. package/dist/types/CommonTypes.d.ts +13 -0
  190. package/dist/types/DevToolsTypes.d.ts +57 -14
  191. package/dist/types/EventBridgeTypes.d.ts +1 -1
  192. package/dist/types/InteractionTypes.d.ts +23 -3
  193. package/dist/types/PluginTypes.d.ts +0 -3
  194. package/dist/types/SchemaTypes.d.ts +29 -4
  195. package/dist/types/ServerTypes.d.ts +390 -46
  196. package/dist/types/SpaceTypes.d.ts +16 -0
  197. package/dist/types/StoreTypes.d.ts +181 -3
  198. package/dist/types/StyleTypes.d.ts +83 -4
  199. package/dist/types/TemplateTypes.d.ts +20 -0
  200. package/dist/types/TemplateTypes.mjs +0 -0
  201. package/dist/types/ThemeTypes.d.ts +28 -1
  202. package/dist/types/index.d.ts +2 -0
  203. package/eslint.config.mjs +2 -0
  204. package/package.json +244 -29
  205. package/vite.config.ts +27 -7
package/dist/index.mjs CHANGED
@@ -1,47 +1,63 @@
1
1
  import { authFailureFromResponse as e, onAuthFailure as t, reportAuthFailure as n, sameRegistrableDomain as r } from "./auth/failureChannel.mjs";
2
2
  import { createAuthFailureLink as i } from "./auth/authFailureLink.mjs";
3
- import a from "./builder/contexts/BuilderContext.mjs";
4
- import { contexts_exports as o } from "./builder/contexts/index.mjs";
5
- import { BODYLESS_METHODS as s, CONNECTOR_HTTP_METHODS as c, DEFAULT_READ_ENDPOINT as l, EMPTY_RESPONSE_METHODS as u, READ_ENDPOINT_NAMES as d, WRITE_ENDPOINT_NAMES as f } from "./connectors/constants.mjs";
6
- import { connectorTokens as p, getConnectorTokens as m } from "./connectors/manifestTokens.mjs";
7
- import { connectorPresets as h, emptyManifest as g } from "./connectors/presets.mjs";
8
- import { validateConnectorManifest as _ } from "./connectors/validateManifest.mjs";
9
- import v from "./dataSource/helpers/getSourceName.mjs";
10
- import y from "./helpers/fetchManifest.mjs";
11
- import b from "./helpers/generateFacade.mjs";
12
- import x from "./helpers/syntaxHighlight.mjs";
13
- import { formatDate as S, formatDateUTC as C, formatFromNow as w, formatUTCToLocal as T, getDurationMs as E, isDate as D, isValidFormat as O, parseDate as k, toUnixSeconds as A } from "./helpers/formatDate.mjs";
14
- import { filters as j } from "./helpers/twigWrapper/filters/filters.mjs";
15
- import { processTwig as M } from "./helpers/twigWrapper/processTwig/processTwig.mjs";
16
- import { hasValidToken as N } from "./helpers/twigWrapper/tokens/hasValidToken.mjs";
17
- import { ParamsFromURL as P, delay as F, emptyObject as I, generateID as L, getDisplayName as R, getKeyDecoded as z, getPathsFromObeject as B, hexToRGB as V, isInViewport as H, isTestMode as U, makeId as W } from "./helpers/utils.mjs";
18
- import { disableReactDevTools as G } from "./helpers/security.mjs";
19
- import { createStripTypenameLink as K, stripTypenameDeep as q } from "./helpers/stripTypename.mjs";
20
- import J from "./dataSource/hooks/useRegisterSource.mjs";
21
- import Y, { utilityOptions as X } from "./dataSource/utility/index.mjs";
22
- import Z from "./dataSource/getBindingsDetails.mjs";
23
- import Q from "./devTools/DevToolsContext.mjs";
24
- import $, { createStoreDevToolsLogger as ee, pConsole as te } from "./devTools/utils/PlitziConsole.mjs";
25
- import ne from "./elements/ComponentContext.mjs";
26
- import re from "./hooks/useNetwork.mjs";
27
- import ie, { PlitziServiceContext as ae, PlitziServiceProvider as oe } from "./hooks/usePlitziServiceContext.mjs";
28
- import { StyleVariableCategory as se } from "./types/StyleTypes.mjs";
29
- import ce, { EMPTY_STYLE_SCHEMA as le, StyleBindingsAllowed as ue, baseDefaultValue as de, inheritableAttributesBase as fe } from "./style/styleConstants.mjs";
30
- import pe from "./schema/SchemaContext.mjs";
31
- import { EMPTY_SCHEMA as me, VARIABLE_REGEX as he } from "./schema/schemaConstants.mjs";
32
- import ge from "./network/NetworkContext.mjs";
33
- import _e from "./network/NetworkInternalContext.mjs";
34
- import { SpaceEvents as ve, spaceEventSchemas as ye, validateSpaceEvent as be } from "./network/spaceEvents.mjs";
35
- import xe from "./network/graphql/builder/Mutations/index.mjs";
36
- import Se from "./network/graphql/builder/Queries/index.mjs";
37
- import Ce from "./network/graphql/builder/Subscriptions/index.mjs";
38
- import we from "./network/graphql/sdk/Mutations/index.mjs";
39
- import Te from "./network/graphql/sdk/Queries/index.mjs";
40
- import Ee from "./segments/SegmentsContext.mjs";
41
- import De, { RTEvent as Oe, RTEventCloseCode as ke, getInstance as Ae, isRTEvent as je, setInstance as Me } from "./websockets/RTCodec.mjs";
42
- import Ne, { ThemeContext as Pe } from "./theme/ThemeProvider.mjs";
43
- import Fe, { rscDataPath as Ie } from "./server/rsc/refreshRsc.mjs";
44
- import Le from "./server/rsc/useRscRefresh.mjs";
45
- import Re from "./server/rsc/useRscSync.mjs";
46
- import { runtimeStatePersist as ze } from "./state/runtimeStatePersist.mjs";
47
- export { s as BODYLESS_METHODS, a as BuilderContext, xe as BuilderMutations, Se as BuilderQueries, c as CONNECTOR_HTTP_METHODS, ne as ComponentContext, l as DEFAULT_READ_ENDPOINT, Q as DevToolsContext, u as EMPTY_RESPONSE_METHODS, me as EMPTY_SCHEMA, le as EMPTY_STYLE_SCHEMA, ge as NetworkContext, _e as NetworkInternalContext, P as ParamsFromURL, $ as PlitziConsole, ae as PlitziServiceContext, oe as PlitziServiceProvider, d as READ_ENDPOINT_NAMES, De as RTCodec, Oe as RTEvent, ke as RTEventCloseCode, pe as SchemaContext, we as SdkMutations, Te as SdkQueries, Ee as SegmentsContext, Ce as SpaceEventSubscription, ve as SpaceEvents, ue as StyleBindingsAllowed, se as StyleVariableCategory, Pe as ThemeContext, Ne as ThemeProvider, he as VARIABLE_REGEX, f as WRITE_ENDPOINT_NAMES, e as authFailureFromResponse, de as baseDefaultValue, h as connectorPresets, p as connectorTokens, o as contexts, i as createAuthFailureLink, ee as createStoreDevToolsLogger, K as createStripTypenameLink, F as delay, G as disableReactDevTools, g as emptyManifest, I as emptyObject, y as fetchManifest, j as filters, S as formatDate, C as formatDateUTC, w as formatFromNow, T as formatUTCToLocal, b as generateFacade, L as generateID, Z as getBindingsDetails, m as getConnectorTokens, R as getDisplayName, E as getDurationMs, Ae as getInstance, z as getKeyDecoded, B as getPathsFromObeject, v as getSourceName, N as hasValidToken, V as hexToRGB, fe as inheritableAttributesBase, D as isDate, H as isInViewport, je as isRTEvent, U as isTestMode, O as isValidFormat, W as makeId, t as onAuthFailure, te as pConsole, k as parseDate, M as processTwig, Fe as refreshRsc, n as reportAuthFailure, Ie as rscDataPath, ze as runtimeStatePersist, r as sameRegistrableDomain, Me as setInstance, ye as spaceEventSchemas, q as stripTypenameDeep, ce as styleConstants, x as syntaxHighlight, A as toUnixSeconds, re as useNetwork, ie as usePlitziServiceContext, J as useRegisterSource, Le as useRscRefresh, Re as useRscSync, Y as utility, X as utilityOptions, _ as validateConnectorManifest, be as validateSpaceEvent };
3
+ import { filters as a } from "./helpers/twigWrapper/filters/filters.mjs";
4
+ import { processTwig as o } from "./helpers/twigWrapper/processTwig/processTwig.mjs";
5
+ import { hasValidToken as s } from "./helpers/twigWrapper/tokens/hasValidToken.mjs";
6
+ import c from "./builder/contexts/BuilderContext.mjs";
7
+ import { contexts_exports as l } from "./builder/contexts/index.mjs";
8
+ import { BODYLESS_METHODS as u, CONNECTOR_HTTP_METHODS as d, DEFAULT_READ_ENDPOINT as f, EMPTY_RESPONSE_METHODS as p, READ_ENDPOINT_NAMES as m, WRITE_ENDPOINT_NAMES as h } from "./connectors/constants.mjs";
9
+ import { connectorTokens as g, getConnectorTokens as _ } from "./connectors/manifestTokens.mjs";
10
+ import { connectorPresets as v, emptyManifest as y } from "./connectors/presets.mjs";
11
+ import { validateConnectorManifest as b } from "./connectors/validateManifest.mjs";
12
+ import x from "./helpers/fetchManifest.mjs";
13
+ import S from "./helpers/generateFacade.mjs";
14
+ import C from "./helpers/syntaxHighlight.mjs";
15
+ import { formatDate as w, formatDateUTC as T, formatFromNow as E, formatUTCToLocal as D, getDurationMs as O, isDate as k, isValidFormat as A, parseDate as j, toUnixSeconds as M } from "./helpers/formatDate.mjs";
16
+ import { isUserEdit as N } from "./helpers/reducerOrigin.mjs";
17
+ import { evaluateRuleGroup as P } from "./helpers/ruleEvaluator.mjs";
18
+ import { ParamsFromURL as F, delay as I, emptyObject as L, getDisplayName as R, getKeyDecoded as z, getPathsFromObeject as B, hexToRGB as V, isInViewport as H, makeId as U } from "./helpers/utils.mjs";
19
+ import { disableReactDevTools as W } from "./helpers/security.mjs";
20
+ import { createStripTypenameLink as G, stripTypenameDeep as K } from "./helpers/stripTypename.mjs";
21
+ import q, { utilityOptions as J } from "./dataSource/utility/index.mjs";
22
+ import Y from "./dataSource/getBindingsDetails.mjs";
23
+ import X from "./dataSource/helpers/getSourceName.mjs";
24
+ import Z from "./dataSource/hooks/useRegisterSource.mjs";
25
+ import Q from "./dataSource/resolveVariables.mjs";
26
+ import $ from "./devTools/DevToolsContext.mjs";
27
+ import { debugCookieName as ee } from "./devTools/debugCookie.mjs";
28
+ import te from "./devTools/interactionLog.mjs";
29
+ import ne, { createStoreDevToolsLogger as re, pConsole as ie } from "./devTools/utils/PlitziConsole.mjs";
30
+ import ae from "./elements/ComponentContext.mjs";
31
+ import oe from "./hooks/useFontHead.mjs";
32
+ import se from "./hooks/useNetwork.mjs";
33
+ import ce, { PlitziServiceContext as le, PlitziServiceProvider as ue } from "./hooks/usePlitziServiceContext.mjs";
34
+ import { StyleVariableCategory as de } from "./types/StyleTypes.mjs";
35
+ import fe, { EMPTY_STYLE_SCHEMA as pe, StyleBindingsAllowed as me, baseDefaultValue as he, inheritableAttributesBase as ge } from "./style/styleConstants.mjs";
36
+ import { fontLinkAssets as _e } from "./style/fontAssets.mjs";
37
+ import { SYSTEM_FONTS as ve, availableFonts as ye, familiesInCss as be, fontFamilyStack as xe, fontUrlResolver as Se, fontsToHead as Ce, googleCss2Url as we, googleTextSubsetUrl as Te, isSafeFontUrl as Ee, primaryFamily as De } from "./style/fonts.mjs";
38
+ import { FontValidationError as Oe, parseSpaceFont as ke } from "./style/fontValidation.mjs";
39
+ import { fallbackForFamily as Ae, fontsFromCss as je } from "./style/fontsFromCss.mjs";
40
+ import Me from "./schema/SchemaContext.mjs";
41
+ import { EMPTY_SCHEMA as Ne, VARIABLE_REGEX as Pe } from "./schema/schemaConstants.mjs";
42
+ import { collectServerElements as Fe, hasServerElements as Ie } from "./schema/serverElements.mjs";
43
+ import Le from "./network/NetworkContext.mjs";
44
+ import Re from "./network/NetworkInternalContext.mjs";
45
+ import { SpaceEvents as ze, spaceEventSchemas as Be, validateSpaceEvent as Ve } from "./network/spaceEvents.mjs";
46
+ import He from "./network/graphql/builder/Mutations/index.mjs";
47
+ import Ue from "./network/graphql/builder/Queries/index.mjs";
48
+ import We from "./network/graphql/builder/Subscriptions/index.mjs";
49
+ import Ge from "./network/graphql/sdk/Mutations/index.mjs";
50
+ import Ke from "./network/graphql/sdk/Queries/index.mjs";
51
+ import qe from "./segments/SegmentsContext.mjs";
52
+ import Je, { RTEvent as Ye, RTEventCloseCode as Xe, getInstance as Ze, isRTEvent as Qe, setInstance as $e } from "./websockets/RTCodec.mjs";
53
+ import { THEME_CLASSES as et, THEME_COOKIE_NAME as tt, applyThemeClass as nt, isTheme as rt, readThemeCookie as it, themeFromCookies as at, writeThemeCookie as ot } from "./theme/themeCookie.mjs";
54
+ import st, { createThemeState as ct, createThemeStore as lt, resolveScheme as ut, setAreaTheme as dt, setMachineScheme as ft, setThemeMode as pt, themeFor as mt } from "./theme/themeStore.mjs";
55
+ import { useThemeStore as ht } from "./theme/ThemeScope.mjs";
56
+ import gt from "./theme/ThemeProvider.mjs";
57
+ import _t, { SPACE_THEME_AREA as vt } from "./theme/useTheme.mjs";
58
+ import yt from "./server/actions/useActionsSync.mjs";
59
+ import bt, { currentRscLocation as xt, rscDataPath as St } from "./server/rsc/refreshRsc.mjs";
60
+ import Ct from "./server/rsc/useRscRefresh.mjs";
61
+ import wt from "./server/rsc/useRscSync.mjs";
62
+ import { runtimeStatePersist as Tt } from "./state/runtimeStatePersist.mjs";
63
+ export { u as BODYLESS_METHODS, c as BuilderContext, He as BuilderMutations, Ue as BuilderQueries, d as CONNECTOR_HTTP_METHODS, ae as ComponentContext, f as DEFAULT_READ_ENDPOINT, $ as DevToolsContext, p as EMPTY_RESPONSE_METHODS, Ne as EMPTY_SCHEMA, pe as EMPTY_STYLE_SCHEMA, Oe as FontValidationError, Le as NetworkContext, Re as NetworkInternalContext, F as ParamsFromURL, ne as PlitziConsole, le as PlitziServiceContext, ue as PlitziServiceProvider, m as READ_ENDPOINT_NAMES, Je as RTCodec, Ye as RTEvent, Xe as RTEventCloseCode, vt as SPACE_THEME_AREA, ve as SYSTEM_FONTS, Me as SchemaContext, Ge as SdkMutations, Ke as SdkQueries, qe as SegmentsContext, We as SpaceEventSubscription, ze as SpaceEvents, me as StyleBindingsAllowed, de as StyleVariableCategory, et as THEME_CLASSES, tt as THEME_COOKIE_NAME, gt as ThemeProvider, Pe as VARIABLE_REGEX, h as WRITE_ENDPOINT_NAMES, nt as applyThemeClass, e as authFailureFromResponse, ye as availableFonts, he as baseDefaultValue, Fe as collectServerElements, v as connectorPresets, g as connectorTokens, l as contexts, i as createAuthFailureLink, re as createStoreDevToolsLogger, G as createStripTypenameLink, ct as createThemeState, lt as createThemeStore, xt as currentRscLocation, ee as debugCookieName, I as delay, W as disableReactDevTools, y as emptyManifest, L as emptyObject, P as evaluateRuleGroup, Ae as fallbackForFamily, be as familiesInCss, x as fetchManifest, a as filters, xe as fontFamilyStack, _e as fontLinkAssets, Se as fontUrlResolver, je as fontsFromCss, Ce as fontsToHead, w as formatDate, T as formatDateUTC, E as formatFromNow, D as formatUTCToLocal, S as generateFacade, Y as getBindingsDetails, _ as getConnectorTokens, R as getDisplayName, O as getDurationMs, Ze as getInstance, z as getKeyDecoded, B as getPathsFromObeject, X as getSourceName, we as googleCss2Url, Te as googleTextSubsetUrl, Ie as hasServerElements, s as hasValidToken, V as hexToRGB, ge as inheritableAttributesBase, k as isDate, H as isInViewport, te as isInteractionFlow, Qe as isRTEvent, Ee as isSafeFontUrl, rt as isTheme, N as isUserEdit, A as isValidFormat, U as makeId, t as onAuthFailure, ie as pConsole, j as parseDate, ke as parseSpaceFont, De as primaryFamily, o as processTwig, it as readThemeCookie, bt as refreshRsc, n as reportAuthFailure, ut as resolveScheme, Q as resolveVariables, St as rscDataPath, Tt as runtimeStatePersist, r as sameRegistrableDomain, dt as setAreaTheme, $e as setInstance, ft as setMachineScheme, pt as setThemeMode, Be as spaceEventSchemas, K as stripTypenameDeep, fe as styleConstants, C as syntaxHighlight, mt as themeFor, at as themeFromCookies, st as themeStore, M as toUnixSeconds, yt as useActionsSync, oe as useFontHead, se as useNetwork, ce as usePlitziServiceContext, Z as useRegisterSource, Ct as useRscRefresh, wt as useRscSync, _t as useTheme, ht as useThemeStore, q as utility, J as utilityOptions, b as validateConnectorManifest, Ve as validateSpaceEvent, ot as writeThemeCookie };
@@ -1,4 +1,4 @@
1
1
  export { matchPath } from './matchPath';
2
- export { getPageFullPath, getPaths, matchRoutePath, isPageAuthored, getRouteParams } from './routes';
2
+ export { getPageFullPath, getPaths, isAbsoluteUrl, isPageAuthored, matchRoutePath, getRouteParams } from './routes';
3
3
  export type { PathMatch, PathPattern } from './matchPath';
4
4
  export type { NavigationAccessLevel, NavigationAction, Path } from './routes';
@@ -1,3 +1,3 @@
1
1
  import { matchPath as e } from "./matchPath.mjs";
2
- import { getPageFullPath as t, getPaths as n, getRouteParams as r, isPageAuthored as i, matchRoutePath as a } from "./routes.mjs";
3
- export { t as getPageFullPath, n as getPaths, r as getRouteParams, i as isPageAuthored, e as matchPath, a as matchRoutePath };
2
+ import { getPageFullPath as t, getPaths as n, getRouteParams as r, isAbsoluteUrl as i, isPageAuthored as a, matchRoutePath as o } from "./routes.mjs";
3
+ export { t as getPageFullPath, n as getPaths, r as getRouteParams, i as isAbsoluteUrl, a as isPageAuthored, e as matchPath, o as matchRoutePath };
@@ -12,6 +12,14 @@ export type Path = {
12
12
  unauthorizedBehaviour?: NavigationAction;
13
13
  unauthorizedPageRedirect?: string;
14
14
  };
15
+ /**
16
+ * Does this name another origin, rather than somewhere in this space?
17
+ *
18
+ * Deliberately narrow: `//host` and a bare `host.com` are NOT absolute here. The first is protocol-relative and
19
+ * reads as a path to anybody skimming, and the second is indistinguishable from a page slug — treating either as
20
+ * external would turn a typo into an off-site redirect.
21
+ */
22
+ export declare const isAbsoluteUrl: (url: string) => boolean;
15
23
  declare function getPageFullPath(pages: Record<string, Element>, pageFolders: PageFolder[], pageId: string, asString: true): string;
16
24
  declare function getPageFullPath(pages: Record<string, Element>, pageFolders: PageFolder[], pageId: string, asString?: false): Record<string, string>;
17
25
  declare const isPageAuthored: (accessLevel?: NavigationAccessLevel, authenticated?: boolean, previewMode?: boolean) => boolean;
@@ -1,59 +1,59 @@
1
1
  import { matchPath as e } from "./matchPath.mjs";
2
2
  //#region src/navigation/routes.ts
3
- var t = (e) => e.replace(/{{([a-zA-Z0-9-_:*/]+)}}/i, ":$1").replaceAll(/[/]+/gim, "/"), n = (e, t) => {
3
+ var t = (e) => /^https?:\/\//i.test(e), n = (e) => t(e) || e.includes("{{"), r = (e) => e.replace(/{{([a-zA-Z0-9-_:*/]+)}}/i, ":$1").replaceAll(/[/]+/gim, "/"), i = (e, t) => {
4
4
  if (!t || !e[t]) return "";
5
- let { slug: r, parentId: i } = e[t];
6
- return i ? `${n(e, i)}/${r}` : r;
5
+ let { slug: n, parentId: r } = e[t];
6
+ return r ? `${i(e, r)}/${n}` : n;
7
7
  };
8
- function r(e, r, i, a = !1) {
9
- let { slug: o = "", folder: s, default: c } = e[i]?.attributes ?? {
10
- slug: i,
8
+ function a(e, t, n, a = !1) {
9
+ let { slug: o = "", folder: s, default: c } = e[n]?.attributes ?? {
10
+ slug: n,
11
11
  folder: "",
12
12
  default: !1
13
13
  };
14
14
  if (c && !a) return {
15
- "/": i,
16
- [`/${i}`]: i
15
+ "/": n,
16
+ [`/${n}`]: n
17
17
  };
18
18
  if (c && a) return "/";
19
19
  if (!s && !a) return {
20
- [t(`/${o}`)]: i,
21
- [`/${i}`]: i
20
+ [r(`/${o}`)]: n,
21
+ [`/${n}`]: n
22
22
  };
23
23
  if (!s && a) return `/${o}`;
24
- if (!r.find((e) => e.id === s)) return a ? `/${o}` : {
25
- [t(`/${o}`)]: i,
26
- [`/${i}`]: i
24
+ if (!t.find((e) => e.id === s)) return a ? `/${o}` : {
25
+ [r(`/${o}`)]: n,
26
+ [`/${n}`]: n
27
27
  };
28
- let l = [n(r.reduce((e, t) => ({
28
+ let l = [i(t.reduce((e, t) => ({
29
29
  ...e,
30
30
  [t.id]: t
31
- }), {}), s), o || i].filter(Boolean).join("/");
31
+ }), {}), s), o || n].filter(Boolean).join("/");
32
32
  return a ? `/${l}` : {
33
- [`/${l}`]: i,
34
- [`/${i}`]: i
33
+ [`/${l}`]: n,
34
+ [`/${n}`]: n
35
35
  };
36
36
  }
37
- var i = (e, t, n = !0) => !e || !n || t === void 0 || t && e === "authenticated" || !t && e === "public" ? !0 : t && e === "public" ? !1 : !e, a = (e = {}, t = [], n, a = "", o = !0, s = !0) => {
38
- let c = Object.keys(e).reduce((s, c) => {
39
- let { attributes: { accessLevel: l, enabled: u = !0, unauthorizedBehaviour: d } } = e[c], { attributes: { unauthorizedPageRedirect: f } } = e[c];
40
- if (!u && o) return s;
41
- f &&= r(e, t, f.replace("/", ""), !0);
42
- let p = r(e, t, c), m = Object.keys(p).map((e) => ({
43
- pageId: c,
44
- path: `${a}${e}`.replaceAll("//", "/"),
45
- accessLevel: l,
46
- enabled: u,
47
- isRaw: `/${c}` === e,
48
- unauthorizedBehaviour: d,
49
- unauthorizedPageRedirect: f,
50
- hasAccess: i(l, n, o)
37
+ var o = (e, t, n = !0) => !e || !n || t === void 0 || t && e === "authenticated" || !t && e === "public" ? !0 : t && e === "public" ? !1 : !e, s = (e = {}, t = [], r, i = "", s = !0, c = !0) => {
38
+ let l = Object.keys(e).reduce((c, l) => {
39
+ let { attributes: { accessLevel: u, enabled: d = !0, unauthorizedBehaviour: f } } = e[l], p = e[l].attributes.unauthorizedPageRedirect;
40
+ if (!d && s) return c;
41
+ p &&= n(p) ? p : a(e, t, p.replace("/", ""), !0);
42
+ let m = a(e, t, l), h = Object.keys(m).map((e) => ({
43
+ pageId: l,
44
+ path: `${i}${e}`.replaceAll("//", "/"),
45
+ accessLevel: u,
46
+ enabled: d,
47
+ isRaw: `/${l}` === e,
48
+ unauthorizedBehaviour: f,
49
+ unauthorizedPageRedirect: p,
50
+ hasAccess: o(u, r, s)
51
51
  }));
52
- return [...s, ...m];
52
+ return [...c, ...h];
53
53
  }, []).filter((e) => e.path !== "*" || e.hasAccess).sort((e, t) => e.path === t.path ? e.accessLevel === "authenticated" ? -1 : 1 : e.path > t.path ? -1 : 1);
54
- if (!c.find((e) => e.path === "*") && !s) {
55
- let e = c.find((e) => e.path === "/" && e.hasAccess);
56
- e && e.unauthorizedBehaviour === "redirect" && e.unauthorizedPageRedirect && c.push({
54
+ if (!l.find((e) => e.path === "*") && !c) {
55
+ let e = l.find((e) => e.path === "/" && e.hasAccess);
56
+ e && e.unauthorizedBehaviour === "redirect" && e.unauthorizedPageRedirect && l.push({
57
57
  ...e,
58
58
  path: "*",
59
59
  hasAccess: !1,
@@ -62,8 +62,8 @@ var i = (e, t, n = !0) => !e || !n || t === void 0 || t && e === "authenticated"
62
62
  unauthorizedPageRedirect: "/"
63
63
  });
64
64
  }
65
- return c;
66
- }, o = (t, n, r) => {
65
+ return l;
66
+ }, c = (t, n, r) => {
67
67
  if (!n) return {
68
68
  action: {
69
69
  type: "accessDenied",
@@ -119,6 +119,6 @@ var i = (e, t, n = !0) => !e || !n || t === void 0 || t && e === "authenticated"
119
119
  },
120
120
  pathMatch: void 0
121
121
  };
122
- }, s = (e) => !e || typeof e != "string" ? [] : (e.match(/:[a-zA-Z0-9-_:*]+/gim) || []).map((e) => e.replace(":", ""));
122
+ }, l = (e) => !e || typeof e != "string" ? [] : (e.match(/:[a-zA-Z0-9-_:*]+/gim) || []).map((e) => e.replace(":", ""));
123
123
  //#endregion
124
- export { r as getPageFullPath, a as getPaths, s as getRouteParams, i as isPageAuthored, o as matchRoutePath };
124
+ export { a as getPageFullPath, s as getPaths, l as getRouteParams, t as isAbsoluteUrl, o as isPageAuthored, c as matchRoutePath };
@@ -33,7 +33,6 @@ var t = e`
33
33
  }
34
34
  flat {
35
35
  id
36
- idRef
37
36
  definition {
38
37
  label
39
38
  type
@@ -27,7 +27,6 @@ var t = e`
27
27
  schema {
28
28
  flat {
29
29
  id
30
- idRef
31
30
  definition {
32
31
  label
33
32
  type
@@ -9,7 +9,6 @@ var t = e`
9
9
  schema {
10
10
  flat {
11
11
  id
12
- idRef
13
12
  definition {
14
13
  label
15
14
  type
@@ -20,7 +20,6 @@ var t = e`
20
20
  variables: $variables
21
21
  ) {
22
22
  id
23
- idRef
24
23
  definition {
25
24
  label
26
25
  type
@@ -18,7 +18,6 @@ var t = e`
18
18
  contextId: $contextId
19
19
  ) {
20
20
  id
21
- idRef
22
21
  definition {
23
22
  label
24
23
  type
@@ -18,7 +18,6 @@ var t = e`
18
18
  contextId: $contextId
19
19
  ) {
20
20
  id
21
- idRef
22
21
  definition {
23
22
  label
24
23
  type
@@ -4,7 +4,6 @@ var t = e`
4
4
  mutation SegmentRemoveElementMutation($environment: String!, $elementId: String!, $contextId: String!) {
5
5
  SegmentRemoveElement(environment: $environment, elementId: $elementId, contextId: $contextId) {
6
6
  id
7
- idRef
8
7
  definition {
9
8
  label
10
9
  type
@@ -0,0 +1,3 @@
1
+ export type TSegmentRenameElementMutation = string[];
2
+ declare const SegmentRenameElementMutation: import('graphql').DocumentNode;
3
+ export default SegmentRenameElementMutation;
@@ -0,0 +1,9 @@
1
+ import { gql as e } from "@apollo/client/core";
2
+ //#region src/network/graphql/builder/Mutations/Segment/space/elements/SegmentRenameElementMutation.ts
3
+ var t = e`
4
+ mutation SegmentRenameElementMutation($environment: String!, $elementId: String!, $id: String!, $contextId: String!) {
5
+ SegmentRenameElement(environment: $environment, elementId: $elementId, id: $id, contextId: $contextId)
6
+ }
7
+ `;
8
+ //#endregion
9
+ export { t as default };
@@ -4,7 +4,6 @@ var t = e`
4
4
  mutation SegmentUpdateElementMutation($environment: String!, $element: Json!, $contextId: String!) {
5
5
  SegmentUpdateElement(environment: $environment, element: $element, contextId: $contextId) {
6
6
  id
7
- idRef
8
7
  definition {
9
8
  label
10
9
  type
@@ -4,7 +4,6 @@ var t = e`
4
4
  mutation SegmentUpdateElementsMutation($environment: String!, $elements: [Json!]!, $contextId: String!) {
5
5
  SegmentUpdateElements(environment: $environment, elements: $elements, contextId: $contextId) {
6
6
  id
7
- idRef
8
7
  definition {
9
8
  label
10
9
  type
@@ -18,7 +18,6 @@ var t = e`
18
18
  variables: $variables
19
19
  ) {
20
20
  id
21
- idRef
22
21
  definition {
23
22
  label
24
23
  type
@@ -20,7 +20,6 @@ var t = e`
20
20
  variables: $variables
21
21
  ) {
22
22
  id
23
- idRef
24
23
  definition {
25
24
  label
26
25
  type
@@ -16,7 +16,6 @@ var t = e`
16
16
  initialItems: $initialItems
17
17
  ) {
18
18
  id
19
- idRef
20
19
  definition {
21
20
  label
22
21
  type
@@ -16,7 +16,6 @@ var t = e`
16
16
  dropPosition: $dropPosition
17
17
  ) {
18
18
  id
19
- idRef
20
19
  definition {
21
20
  label
22
21
  type
@@ -4,7 +4,6 @@ var t = e`
4
4
  mutation SpaceRemoveElement($environment: String!, $elementId: String!) {
5
5
  SpaceRemoveElement(environment: $environment, elementId: $elementId) {
6
6
  id
7
- idRef
8
7
  definition {
9
8
  label
10
9
  type
@@ -0,0 +1,5 @@
1
+ /** The ids, under their new names, of every element the rename touched — the one renamed plus everything repointed
2
+ * onto it. */
3
+ export type TSpaceRenameElementMutation = string[];
4
+ declare const SpaceRenameElementMutation: import('graphql').DocumentNode;
5
+ export default SpaceRenameElementMutation;
@@ -0,0 +1,9 @@
1
+ import { gql as e } from "@apollo/client/core";
2
+ //#region src/network/graphql/builder/Mutations/Space/SpaceRenameElementMutation.ts
3
+ var t = e`
4
+ mutation SpaceRenameElementMutation($environment: String!, $elementId: String!, $id: String!) {
5
+ SpaceRenameElement(environment: $environment, elementId: $elementId, id: $id)
6
+ }
7
+ `;
8
+ //#endregion
9
+ export { t as default };
@@ -4,7 +4,6 @@ var t = e`
4
4
  mutation SpaceUpdateElement($environment: String!, $element: Json!) {
5
5
  SpaceUpdateElement(environment: $environment, element: $element) {
6
6
  id
7
- idRef
8
7
  definition {
9
8
  label
10
9
  type
@@ -4,7 +4,6 @@ var t = e`
4
4
  mutation SpaceUpdateElements($environment: String!, $elements: [Json!]!) {
5
5
  SpaceUpdateElements(environment: $environment, elements: $elements) {
6
6
  id
7
- idRef
8
7
  definition {
9
8
  label
10
9
  type
@@ -7,7 +7,6 @@ var t = e`
7
7
  settings
8
8
  flat {
9
9
  id
10
- idRef
11
10
  definition {
12
11
  label
13
12
  type
@@ -7,7 +7,6 @@ var t = e`
7
7
  settings
8
8
  flat {
9
9
  id
10
- idRef
11
10
  definition {
12
11
  label
13
12
  type
@@ -0,0 +1,8 @@
1
+ import { SpaceAction } from '../../../../../../types';
2
+ /**
3
+ * The network layer unwraps a mutation's single root field, so this is the payload itself rather than the response
4
+ * envelope — declaring the envelope compiles fine and then reads `undefined` at runtime.
5
+ */
6
+ export type TSpaceAddActionMutation = SpaceAction;
7
+ declare const SpaceAddActionMutation: import('graphql').DocumentNode;
8
+ export default SpaceAddActionMutation;
@@ -0,0 +1,16 @@
1
+ import { gql as e } from "@apollo/client/core";
2
+ //#region src/network/graphql/builder/Mutations/Space/actions/SpaceAddActionMutation.ts
3
+ var t = e`
4
+ mutation SpaceAddActionMutation($name: String!, $document: Json!) {
5
+ SpaceAddAction(name: $name, document: $document) {
6
+ id
7
+ identifier
8
+ name
9
+ document
10
+ createdAt
11
+ updatedAt
12
+ }
13
+ }
14
+ `;
15
+ //#endregion
16
+ export { t as default };
@@ -0,0 +1,4 @@
1
+ import { SpaceAction } from '../../../../../../types';
2
+ export type TSpaceRemoveActionMutation = SpaceAction;
3
+ declare const SpaceRemoveActionMutation: import('graphql').DocumentNode;
4
+ export default SpaceRemoveActionMutation;
@@ -0,0 +1,16 @@
1
+ import { gql as e } from "@apollo/client/core";
2
+ //#region src/network/graphql/builder/Mutations/Space/actions/SpaceRemoveActionMutation.ts
3
+ var t = e`
4
+ mutation SpaceRemoveActionMutation($identifier: String!) {
5
+ SpaceRemoveAction(identifier: $identifier) {
6
+ id
7
+ identifier
8
+ name
9
+ document
10
+ createdAt
11
+ updatedAt
12
+ }
13
+ }
14
+ `;
15
+ //#endregion
16
+ export { t as default };
@@ -0,0 +1,4 @@
1
+ import { ActionRunReport } from '../../../../../../types';
2
+ export type TSpaceRunActionMutation = ActionRunReport;
3
+ declare const SpaceRunActionMutation: import('graphql').DocumentNode;
4
+ export default SpaceRunActionMutation;
@@ -0,0 +1,14 @@
1
+ import { gql as e } from "@apollo/client/core";
2
+ //#region src/network/graphql/builder/Mutations/Space/actions/SpaceRunActionMutation.ts
3
+ var t = e`
4
+ mutation SpaceRunActionMutation($identifier: String!, $input: Json, $trigger: String) {
5
+ SpaceRunAction(identifier: $identifier, input: $input, trigger: $trigger) {
6
+ runId
7
+ status
8
+ output
9
+ trace
10
+ }
11
+ }
12
+ `;
13
+ //#endregion
14
+ export { t as default };
@@ -0,0 +1,4 @@
1
+ import { SpaceAction } from '../../../../../../types';
2
+ export type TSpaceUpdateActionMutation = SpaceAction;
3
+ declare const SpaceUpdateActionMutation: import('graphql').DocumentNode;
4
+ export default SpaceUpdateActionMutation;
@@ -0,0 +1,16 @@
1
+ import { gql as e } from "@apollo/client/core";
2
+ //#region src/network/graphql/builder/Mutations/Space/actions/SpaceUpdateActionMutation.ts
3
+ var t = e`
4
+ mutation SpaceUpdateActionMutation($identifier: String!, $name: String!, $document: Json!) {
5
+ SpaceUpdateAction(identifier: $identifier, name: $name, document: $document) {
6
+ id
7
+ identifier
8
+ name
9
+ document
10
+ createdAt
11
+ updatedAt
12
+ }
13
+ }
14
+ `;
15
+ //#endregion
16
+ export { t as default };
@@ -5,12 +5,11 @@ var t = e`
5
5
  $environment: String!
6
6
  $name: String!
7
7
  $slug: String!
8
- $idRef: String!
8
+ $id: String!
9
9
  $pageFolder: String
10
10
  ) {
11
- SpaceAddPage(environment: $environment, name: $name, slug: $slug, idRef: $idRef, pageFolder: $pageFolder) {
11
+ SpaceAddPage(environment: $environment, name: $name, slug: $slug, id: $id, pageFolder: $pageFolder) {
12
12
  id
13
- idRef
14
13
  definition
15
14
  attributes
16
15
  }
@@ -4,7 +4,6 @@ var t = e`
4
4
  mutation SpaceUpdatePageMutation($environment: String!, $page: Json!) {
5
5
  SpaceUpdatePage(environment: $environment, page: $page) {
6
6
  id
7
- idRef
8
7
  definition
9
8
  attributes
10
9
  }
@@ -0,0 +1,2 @@
1
+ declare const StyleAddFontMutation: import('graphql').DocumentNode;
2
+ export default StyleAddFontMutation;
@@ -0,0 +1,11 @@
1
+ import { gql as e } from "@apollo/client/core";
2
+ //#region src/network/graphql/builder/Mutations/Style/fonts/StyleAddFontMutation.ts
3
+ var t = e`
4
+ mutation StyleAddFontMutation($environment: String!, $font: Json!) {
5
+ StyleAddFont(environment: $environment, font: $font) {
6
+ family
7
+ }
8
+ }
9
+ `;
10
+ //#endregion
11
+ export { t as default };
@@ -0,0 +1,2 @@
1
+ declare const StyleRemoveFontMutation: import('graphql').DocumentNode;
2
+ export default StyleRemoveFontMutation;