@plitzi/sdk-shared 0.32.5 → 0.32.7

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 (127) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/dist/dataSource/getBindingsDetails.mjs +17 -23
  3. package/dist/dataSource/helpers/getSourceName.d.ts +4 -0
  4. package/dist/dataSource/helpers/getSourceName.mjs +4 -0
  5. package/dist/dataSource/helpers/index.d.ts +2 -0
  6. package/dist/dataSource/helpers/index.mjs +2 -0
  7. package/dist/dataSource/hooks/useRegisterSource.mjs +20 -18
  8. package/dist/dataSource/index.d.ts +1 -0
  9. package/dist/dataSource/index.mjs +5 -4
  10. package/dist/dataSource/utility/twigTemplate.mjs +3 -2
  11. package/dist/helpers/index.mjs +7 -5
  12. package/dist/helpers/twigWrapper/AST.d.ts +116 -0
  13. package/dist/helpers/twigWrapper/Evaluator/Evaluator.d.ts +7 -0
  14. package/dist/helpers/twigWrapper/Evaluator/Evaluator.mjs +220 -0
  15. package/dist/helpers/twigWrapper/Evaluator/helpers.d.ts +4 -0
  16. package/dist/helpers/twigWrapper/Evaluator/helpers.mjs +4 -0
  17. package/dist/helpers/twigWrapper/Evaluator/index.d.ts +2 -0
  18. package/dist/helpers/twigWrapper/Evaluator/index.mjs +2 -0
  19. package/dist/helpers/twigWrapper/Lexer/Lexer.d.ts +2 -0
  20. package/dist/helpers/twigWrapper/Lexer/Lexer.mjs +53 -0
  21. package/dist/helpers/twigWrapper/Lexer/index.d.ts +3 -0
  22. package/dist/helpers/twigWrapper/Lexer/index.mjs +3 -0
  23. package/dist/helpers/twigWrapper/Lexer/types.d.ts +17 -0
  24. package/dist/helpers/twigWrapper/Lexer/types.mjs +10 -0
  25. package/dist/helpers/twigWrapper/Parser/Cursor.d.ts +14 -0
  26. package/dist/helpers/twigWrapper/Parser/Cursor.mjs +63 -0
  27. package/dist/helpers/twigWrapper/Parser/ExpressionParser.d.ts +3 -0
  28. package/dist/helpers/twigWrapper/Parser/ExpressionParser.mjs +296 -0
  29. package/dist/helpers/twigWrapper/Parser/Parser.d.ts +3 -0
  30. package/dist/helpers/twigWrapper/Parser/Parser.mjs +237 -0
  31. package/dist/helpers/twigWrapper/Parser/helpers.d.ts +2 -0
  32. package/dist/helpers/twigWrapper/Parser/helpers.mjs +18 -0
  33. package/dist/helpers/twigWrapper/Parser/index.d.ts +2 -0
  34. package/dist/helpers/twigWrapper/Parser/index.mjs +2 -0
  35. package/dist/helpers/twigWrapper/Parser/types.d.ts +5 -0
  36. package/dist/helpers/twigWrapper/TemplateCache/TemplateCache.d.ts +17 -0
  37. package/dist/helpers/twigWrapper/TemplateCache/TemplateCache.mjs +64 -0
  38. package/dist/helpers/twigWrapper/TemplateCache/index.d.ts +1 -0
  39. package/dist/helpers/twigWrapper/TemplateCache/index.mjs +2 -0
  40. package/dist/helpers/twigWrapper/bench.bench.d.ts +1 -0
  41. package/dist/helpers/twigWrapper/charClass.d.ts +44 -0
  42. package/dist/helpers/twigWrapper/charClass.mjs +59 -0
  43. package/dist/helpers/twigWrapper/filters/filters.d.ts +14 -0
  44. package/dist/helpers/twigWrapper/filters/filters.mjs +372 -0
  45. package/dist/helpers/twigWrapper/filters/index.d.ts +1 -0
  46. package/dist/helpers/twigWrapper/filters/index.mjs +2 -0
  47. package/dist/helpers/twigWrapper/index.d.ts +5 -0
  48. package/dist/helpers/twigWrapper/index.mjs +4 -0
  49. package/dist/helpers/twigWrapper/processTwig/helpers.d.ts +7 -0
  50. package/dist/helpers/twigWrapper/processTwig/helpers.mjs +34 -0
  51. package/dist/helpers/twigWrapper/processTwig/index.d.ts +1 -0
  52. package/dist/helpers/twigWrapper/processTwig/index.mjs +2 -0
  53. package/dist/helpers/twigWrapper/processTwig/processTwig.d.ts +1 -0
  54. package/dist/helpers/twigWrapper/processTwig/processTwig.mjs +24 -0
  55. package/dist/helpers/twigWrapper/tokens/hasValidToken.d.ts +1 -0
  56. package/dist/helpers/twigWrapper/tokens/hasValidToken.mjs +9 -0
  57. package/dist/helpers/twigWrapper/tokens/tokenPatterns.d.ts +2 -0
  58. package/dist/helpers/twigWrapper/tokens/tokenPatterns.mjs +4 -0
  59. package/dist/hooks/useNetwork.mjs +1 -1
  60. package/dist/index.mjs +37 -34
  61. package/dist/network/graphql/builder/Mutations/Segment/SegmentAddMutation.mjs +1 -0
  62. package/dist/network/graphql/builder/Mutations/Segment/SegmentAddTemplateMutation.mjs +1 -0
  63. package/dist/network/graphql/builder/Mutations/Segment/SegmentUpdateMutation.mjs +1 -0
  64. package/dist/network/graphql/builder/Mutations/Segment/space/elements/SegmentAddElementMutation.mjs +1 -0
  65. package/dist/network/graphql/builder/Mutations/Segment/space/elements/SegmentCloneElementMutation.mjs +1 -0
  66. package/dist/network/graphql/builder/Mutations/Segment/space/elements/SegmentMoveElementMutation.mjs +1 -0
  67. package/dist/network/graphql/builder/Mutations/Segment/space/elements/SegmentRemoveElementMutation.mjs +1 -0
  68. package/dist/network/graphql/builder/Mutations/Segment/space/elements/SegmentUpdateElementMutation.mjs +1 -0
  69. package/dist/network/graphql/builder/Mutations/Segment/space/elements/SegmentUpdateElementsMutation.d.ts +2 -0
  70. package/dist/network/graphql/builder/Mutations/Segment/space/elements/SegmentUpdateElementsMutation.mjs +24 -0
  71. package/dist/network/graphql/builder/Mutations/Segment/style/selectors/SegmentStyleRemoveSelectorsMutation.d.ts +2 -0
  72. package/dist/network/graphql/builder/Mutations/Segment/style/selectors/SegmentStyleRemoveSelectorsMutation.mjs +12 -0
  73. package/dist/network/graphql/builder/Mutations/Space/SpaceAddElementMutation.mjs +1 -0
  74. package/dist/network/graphql/builder/Mutations/Space/SpaceAddTemplateMutation.mjs +1 -0
  75. package/dist/network/graphql/builder/Mutations/Space/SpaceCloneElementMutation.mjs +1 -0
  76. package/dist/network/graphql/builder/Mutations/Space/SpaceMoveElementMutation.mjs +1 -0
  77. package/dist/network/graphql/builder/Mutations/Space/SpaceRemoveElementMutation.mjs +1 -0
  78. package/dist/network/graphql/builder/Mutations/Space/SpaceUpdateElementMutation.mjs +1 -0
  79. package/dist/network/graphql/builder/Mutations/Space/SpaceUpdateElementsMutation.d.ts +2 -0
  80. package/dist/network/graphql/builder/Mutations/Space/SpaceUpdateElementsMutation.mjs +24 -0
  81. package/dist/network/graphql/builder/Mutations/Space/SpaceUpdateMutation.mjs +1 -0
  82. package/dist/network/graphql/builder/Mutations/Space/SpaceUpdateSchemaMutation.mjs +1 -0
  83. package/dist/network/graphql/builder/Mutations/Space/pages/SpaceAddPageMutation.mjs +9 -2
  84. package/dist/network/graphql/builder/Mutations/Space/pages/SpaceUpdatePageMutation.mjs +1 -0
  85. package/dist/network/graphql/builder/Mutations/Style/selectors/StyleRemoveSelectorsMutation.d.ts +2 -0
  86. package/dist/network/graphql/builder/Mutations/Style/selectors/StyleRemoveSelectorsMutation.mjs +12 -0
  87. package/dist/network/graphql/builder/Mutations/index.d.ts +8 -0
  88. package/dist/network/graphql/builder/Mutations/index.mjs +124 -116
  89. package/dist/network/graphql/builder/Queries/InitQuery.mjs +2 -0
  90. package/dist/network/graphql/builder/Queries/Segment/SegmentQuery.mjs +1 -0
  91. package/dist/network/graphql/builder/Queries/Segment/SegmentsQuery.mjs +1 -0
  92. package/dist/network/graphql/builder/Subscriptions/Segment/SegmentAddTemplateSubscription.mjs +1 -0
  93. package/dist/network/graphql/builder/Subscriptions/Segment/space/elements/SegmentAddElementSubscription.mjs +1 -0
  94. package/dist/network/graphql/builder/Subscriptions/Segment/space/elements/SegmentCloneElementSubscription.mjs +1 -0
  95. package/dist/network/graphql/builder/Subscriptions/Segment/space/elements/SegmentUpdateElementSubscription.mjs +1 -0
  96. package/dist/network/graphql/builder/Subscriptions/Segment/space/elements/SegmentUpdateElementsSubscription.d.ts +7 -0
  97. package/dist/network/graphql/builder/Subscriptions/Segment/space/elements/SegmentUpdateElementsSubscription.mjs +27 -0
  98. package/dist/network/graphql/builder/Subscriptions/Segment/style/selectors/SegmentStyleRemoveSelectorsSubscription.d.ts +8 -0
  99. package/dist/network/graphql/builder/Subscriptions/Segment/style/selectors/SegmentStyleRemoveSelectorsSubscription.mjs +13 -0
  100. package/dist/network/graphql/builder/Subscriptions/Space/SpaceAddTemplateSubscription.mjs +1 -0
  101. package/dist/network/graphql/builder/Subscriptions/Space/SpaceUpdatedSubscription.mjs +1 -0
  102. package/dist/network/graphql/builder/Subscriptions/Space/elements/SpaceAddElementSubscription.mjs +1 -0
  103. package/dist/network/graphql/builder/Subscriptions/Space/elements/SpaceCloneElementSubscription.mjs +1 -0
  104. package/dist/network/graphql/builder/Subscriptions/Space/elements/SpaceUpdateElementSubscription.mjs +1 -0
  105. package/dist/network/graphql/builder/Subscriptions/Space/elements/SpaceUpdateElementsSubscription.d.ts +6 -0
  106. package/dist/network/graphql/builder/Subscriptions/Space/elements/SpaceUpdateElementsSubscription.mjs +26 -0
  107. package/dist/network/graphql/builder/Subscriptions/Space/pages/SpaceAddPageSubscription.mjs +1 -0
  108. package/dist/network/graphql/builder/Subscriptions/Space/pages/SpaceHomePageSubscription.mjs +1 -0
  109. package/dist/network/graphql/builder/Subscriptions/Space/pages/SpaceUpdatePageSubscription.mjs +1 -0
  110. package/dist/network/graphql/builder/Subscriptions/Style/selector/StyleRemoveSelectorsSubscription.d.ts +7 -0
  111. package/dist/network/graphql/builder/Subscriptions/Style/selector/StyleRemoveSelectorsSubscription.mjs +12 -0
  112. package/dist/network/graphql/builder/Subscriptions/index.d.ts +12 -0
  113. package/dist/network/graphql/builder/Subscriptions/index.mjs +94 -86
  114. package/dist/network/graphql/sdk/Queries/InitQuery.mjs +2 -0
  115. package/dist/network/graphql/sdk/Queries/Segment/SegmentQuery.mjs +1 -0
  116. package/dist/network/graphql/sdk/Queries/Segment/SegmentsQuery.mjs +1 -0
  117. package/dist/store/index.d.ts +33 -33
  118. package/dist/style/styleConstants.mjs +12 -8
  119. package/dist/types/CommonTypes.d.ts +1 -3
  120. package/dist/types/EventBridgeTypes.d.ts +1 -1
  121. package/dist/types/InteractionTypes.d.ts +2 -1
  122. package/dist/types/SchemaTypes.d.ts +6 -11
  123. package/dist/types/ServerTypes.d.ts +59 -0
  124. package/dist/types/StyleTypes.d.ts +1 -0
  125. package/package.json +176 -21
  126. package/dist/helpers/twigWrapper.d.ts +0 -4
  127. package/dist/helpers/twigWrapper.mjs +0 -33
@@ -0,0 +1,4 @@
1
+ //#region src/helpers/twigWrapper/tokens/tokenPatterns.ts
2
+ var e = "[a-zA-Z_][a-zA-Z0-9_]*(?:-[a-zA-Z0-9_]+)*", t = `${`${e}(?:\\??\\.${e})*`}(?:\\s*\\?\\?\\s*[^|{}]+?)?(?:\\s*\\|\\s*[a-zA-Z_]+(?:\\([^)]*\\))?)*`, n = `\\{\\{\\s*${t}\\s*\\}\\}`, r = `(?:${`\\{\\{\\{\\s*${t}\\s*\\}\\}\\}`}|${n})`, i = new RegExp(r, "g"), a = RegExp(`^${r}$`);
3
+ //#endregion
4
+ export { i as TOKEN_REGEX, a as TOKEN_STRICT_REGEX };
@@ -10,7 +10,7 @@ var n = ({ initLoading: n = !1, server: r, webKey: i, internalUsage: a = !0, bas
10
10
  let l = new Headers();
11
11
  l.append("Content-Type", "application/json"), s ? l.append("Authorization", `Bearer ${s}`) : i && l.append("Authorization", `Bearer ${i}`);
12
12
  let u = "";
13
- a && r && (u = o ?? r.nodeServer);
13
+ a && r && (u = o ?? r.serverUrl);
14
14
  let d = t;
15
15
  (t instanceof FormData ? Array.from(t.values()) : Object.values(t)).forEach((e) => {
16
16
  if (e instanceof Blob && l.get("Content-Type") !== "multipart/form-data") {
package/dist/index.mjs CHANGED
@@ -1,37 +1,40 @@
1
1
  import e from "./builder/contexts/BuilderContext.mjs";
2
2
  import { contexts_exports as t } from "./builder/contexts/index.mjs";
3
3
  import n from "./collections/CollectionContext.mjs";
4
- import r from "./helpers/fetchManifest.mjs";
5
- import i from "./helpers/generateFacade.mjs";
6
- import a from "./helpers/syntaxHighlight.mjs";
7
- import { formatDate as o, formatDateUTC as s, formatFromNow as c, formatUTCToLocal as l, getDurationMs as u, isDate as d, isValidFormat as f, parseDate as p, toUnixSeconds as m } from "./helpers/formatDate.mjs";
8
- import { hasValidToken as h, processTwig as g } from "./helpers/twigWrapper.mjs";
9
- import { ParamsFromURL as _, delay as v, emptyObject as y, generateID as b, getDisplayName as x, getKeyDecoded as S, getPathsFromObeject as C, hexToRGB as w, isInViewport as T, isTestMode as E, makeId as D } from "./helpers/utils.mjs";
10
- import { disableReactDevTools as O } from "./helpers/security.mjs";
11
- import { createStripTypenameLink as k, stripTypenameDeep as A } from "./helpers/stripTypename.mjs";
12
- import j from "./dataSource/hooks/useRegisterSource.mjs";
13
- import M, { utilityOptions as N } from "./dataSource/utility/index.mjs";
14
- import P from "./dataSource/getBindingsDetails.mjs";
15
- import F from "./devTools/DevToolsContext.mjs";
16
- import I, { createStoreDevToolsLogger as L, pConsole as R } from "./devTools/utils/PlitziConsole.mjs";
17
- import z from "./elements/ComponentContext.mjs";
18
- import B from "./hooks/useNetwork.mjs";
19
- import V, { PlitziServiceContext as H, PlitziServiceProvider as U } from "./hooks/usePlitziServiceContext.mjs";
20
- import { StyleVariableCategory as W } from "./types/StyleTypes.mjs";
21
- import G, { EMPTY_STYLE_SCHEMA as K, StyleBindingsAllowed as q, baseDefaultValue as J, inheritableAttributesBase as Y } from "./style/styleConstants.mjs";
22
- import X from "./schema/SchemaContext.mjs";
23
- import { EMPTY_SCHEMA as Z, VARIABLE_REGEX as Q } from "./schema/schemaConstants.mjs";
24
- import $ from "./network/NetworkContext.mjs";
25
- import ee from "./network/NetworkInternalContext.mjs";
26
- import te from "./network/graphql/builder/Mutations/index.mjs";
27
- import ne from "./network/graphql/builder/Queries/index.mjs";
28
- import re from "./network/graphql/builder/Subscriptions/index.mjs";
29
- import ie from "./network/graphql/sdk/Mutations/index.mjs";
30
- import ae from "./network/graphql/sdk/Queries/index.mjs";
31
- import oe from "./segments/SegmentsContext.mjs";
32
- import se, { RTEvent as ce, RTEventCloseCode as le, getInstance as ue, isRTEvent as de, setInstance as fe } from "./websockets/RTCodec.mjs";
33
- import pe, { ThemeContext as me } from "./theme/ThemeProvider.mjs";
34
- import he from "./server/rsc/RscContext.mjs";
35
- import ge from "./server/rsc/RscProvider.mjs";
36
- import { runtimeStatePersist as _e } from "./state/runtimeStatePersist.mjs";
37
- export { e as BuilderContext, te as BuilderMutations, ne as BuilderQueries, re as BuilderSubscriptions, n as CollectionContext, z as ComponentContext, F as DevToolsContext, Z as EMPTY_SCHEMA, K as EMPTY_STYLE_SCHEMA, $ as NetworkContext, ee as NetworkInternalContext, _ as ParamsFromURL, I as PlitziConsole, H as PlitziServiceContext, U as PlitziServiceProvider, se as RTCodec, ce as RTEvent, le as RTEventCloseCode, he as RscContext, ge as RscProvider, X as SchemaContext, ie as SdkMutations, ae as SdkQueries, oe as SegmentsContext, q as StyleBindingsAllowed, W as StyleVariableCategory, me as ThemeContext, pe as ThemeProvider, Q as VARIABLE_REGEX, J as baseDefaultValue, t as contexts, L as createStoreDevToolsLogger, k as createStripTypenameLink, v as delay, O as disableReactDevTools, y as emptyObject, r as fetchManifest, o as formatDate, s as formatDateUTC, c as formatFromNow, l as formatUTCToLocal, i as generateFacade, b as generateID, P as getBindingsDetails, x as getDisplayName, u as getDurationMs, ue as getInstance, S as getKeyDecoded, C as getPathsFromObeject, h as hasValidToken, w as hexToRGB, Y as inheritableAttributesBase, d as isDate, T as isInViewport, de as isRTEvent, E as isTestMode, f as isValidFormat, D as makeId, R as pConsole, p as parseDate, g as processTwig, _e as runtimeStatePersist, fe as setInstance, A as stripTypenameDeep, G as styleConstants, a as syntaxHighlight, m as toUnixSeconds, B as useNetwork, V as usePlitziServiceContext, j as useRegisterSource, M as utility, N as utilityOptions };
4
+ import r from "./dataSource/helpers/getSourceName.mjs";
5
+ import i from "./helpers/fetchManifest.mjs";
6
+ import a from "./helpers/generateFacade.mjs";
7
+ import o from "./helpers/syntaxHighlight.mjs";
8
+ import { formatDate as s, formatDateUTC as c, formatFromNow as l, formatUTCToLocal as u, getDurationMs as d, isDate as f, isValidFormat as p, parseDate as m, toUnixSeconds as h } from "./helpers/formatDate.mjs";
9
+ import { filters as g } from "./helpers/twigWrapper/filters/filters.mjs";
10
+ import { processTwig as _ } from "./helpers/twigWrapper/processTwig/processTwig.mjs";
11
+ import { hasValidToken as v } from "./helpers/twigWrapper/tokens/hasValidToken.mjs";
12
+ import { ParamsFromURL as y, delay as b, emptyObject as x, generateID as S, getDisplayName as C, getKeyDecoded as w, getPathsFromObeject as T, hexToRGB as E, isInViewport as D, isTestMode as O, makeId as k } from "./helpers/utils.mjs";
13
+ import { disableReactDevTools as A } from "./helpers/security.mjs";
14
+ import { createStripTypenameLink as j, stripTypenameDeep as M } from "./helpers/stripTypename.mjs";
15
+ import N from "./dataSource/hooks/useRegisterSource.mjs";
16
+ import P, { utilityOptions as F } from "./dataSource/utility/index.mjs";
17
+ import I from "./dataSource/getBindingsDetails.mjs";
18
+ import L from "./devTools/DevToolsContext.mjs";
19
+ import R, { createStoreDevToolsLogger as z, pConsole as B } from "./devTools/utils/PlitziConsole.mjs";
20
+ import V from "./elements/ComponentContext.mjs";
21
+ import H from "./hooks/useNetwork.mjs";
22
+ import U, { PlitziServiceContext as W, PlitziServiceProvider as G } from "./hooks/usePlitziServiceContext.mjs";
23
+ import { StyleVariableCategory as K } from "./types/StyleTypes.mjs";
24
+ import q, { EMPTY_STYLE_SCHEMA as J, StyleBindingsAllowed as Y, baseDefaultValue as X, inheritableAttributesBase as Z } from "./style/styleConstants.mjs";
25
+ import Q from "./schema/SchemaContext.mjs";
26
+ import { EMPTY_SCHEMA as $, VARIABLE_REGEX as ee } from "./schema/schemaConstants.mjs";
27
+ import te from "./network/NetworkContext.mjs";
28
+ import ne from "./network/NetworkInternalContext.mjs";
29
+ import re from "./network/graphql/builder/Mutations/index.mjs";
30
+ import ie from "./network/graphql/builder/Queries/index.mjs";
31
+ import ae from "./network/graphql/builder/Subscriptions/index.mjs";
32
+ import oe from "./network/graphql/sdk/Mutations/index.mjs";
33
+ import se from "./network/graphql/sdk/Queries/index.mjs";
34
+ import ce from "./segments/SegmentsContext.mjs";
35
+ import le, { RTEvent as ue, RTEventCloseCode as de, getInstance as fe, isRTEvent as pe, setInstance as me } from "./websockets/RTCodec.mjs";
36
+ import he, { ThemeContext as ge } from "./theme/ThemeProvider.mjs";
37
+ import _e from "./server/rsc/RscContext.mjs";
38
+ import ve from "./server/rsc/RscProvider.mjs";
39
+ import { runtimeStatePersist as ye } from "./state/runtimeStatePersist.mjs";
40
+ export { e as BuilderContext, re as BuilderMutations, ie as BuilderQueries, ae as BuilderSubscriptions, n as CollectionContext, V as ComponentContext, L as DevToolsContext, $ as EMPTY_SCHEMA, J as EMPTY_STYLE_SCHEMA, te as NetworkContext, ne as NetworkInternalContext, y as ParamsFromURL, R as PlitziConsole, W as PlitziServiceContext, G as PlitziServiceProvider, le as RTCodec, ue as RTEvent, de as RTEventCloseCode, _e as RscContext, ve as RscProvider, Q as SchemaContext, oe as SdkMutations, se as SdkQueries, ce as SegmentsContext, Y as StyleBindingsAllowed, K as StyleVariableCategory, ge as ThemeContext, he as ThemeProvider, ee as VARIABLE_REGEX, X as baseDefaultValue, t as contexts, z as createStoreDevToolsLogger, j as createStripTypenameLink, b as delay, A as disableReactDevTools, x as emptyObject, i as fetchManifest, g as filters, s as formatDate, c as formatDateUTC, l as formatFromNow, u as formatUTCToLocal, a as generateFacade, S as generateID, I as getBindingsDetails, C as getDisplayName, d as getDurationMs, fe as getInstance, w as getKeyDecoded, T as getPathsFromObeject, r as getSourceName, v as hasValidToken, E as hexToRGB, Z as inheritableAttributesBase, f as isDate, D as isInViewport, pe as isRTEvent, O as isTestMode, p as isValidFormat, k as makeId, B as pConsole, m as parseDate, _ as processTwig, ye as runtimeStatePersist, me as setInstance, M as stripTypenameDeep, q as styleConstants, o as syntaxHighlight, h as toUnixSeconds, H as useNetwork, U as usePlitziServiceContext, N as useRegisterSource, P as utility, F as utilityOptions };
@@ -33,6 +33,7 @@ var t = e`
33
33
  }
34
34
  flat {
35
35
  id
36
+ idRef
36
37
  definition {
37
38
  label
38
39
  type
@@ -27,6 +27,7 @@ var t = e`
27
27
  schema {
28
28
  flat {
29
29
  id
30
+ idRef
30
31
  definition {
31
32
  label
32
33
  type
@@ -9,6 +9,7 @@ var t = e`
9
9
  schema {
10
10
  flat {
11
11
  id
12
+ idRef
12
13
  definition {
13
14
  label
14
15
  type
@@ -20,6 +20,7 @@ var t = e`
20
20
  variables: $variables
21
21
  ) {
22
22
  id
23
+ idRef
23
24
  definition {
24
25
  label
25
26
  type
@@ -18,6 +18,7 @@ var t = e`
18
18
  contextId: $contextId
19
19
  ) {
20
20
  id
21
+ idRef
21
22
  definition {
22
23
  label
23
24
  type
@@ -18,6 +18,7 @@ var t = e`
18
18
  contextId: $contextId
19
19
  ) {
20
20
  id
21
+ idRef
21
22
  definition {
22
23
  label
23
24
  type
@@ -4,6 +4,7 @@ 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
7
8
  definition {
8
9
  label
9
10
  type
@@ -4,6 +4,7 @@ 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
7
8
  definition {
8
9
  label
9
10
  type
@@ -0,0 +1,2 @@
1
+ declare const SegmentUpdateElementsMutation: import('graphql').DocumentNode;
2
+ export default SegmentUpdateElementsMutation;
@@ -0,0 +1,24 @@
1
+ import { gql as e } from "@apollo/client/core";
2
+ //#region src/network/graphql/builder/Mutations/Segment/space/elements/SegmentUpdateElementsMutation.ts
3
+ var t = e`
4
+ mutation SegmentUpdateElementsMutation($environment: String!, $elements: [Json!]!, $contextId: String!) {
5
+ SegmentUpdateElements(environment: $environment, elements: $elements, contextId: $contextId) {
6
+ id
7
+ idRef
8
+ definition {
9
+ label
10
+ type
11
+ initialState
12
+ styleSelectors
13
+ bindings
14
+ interactions
15
+ parentId
16
+ rootId
17
+ items
18
+ }
19
+ attributes
20
+ }
21
+ }
22
+ `;
23
+ //#endregion
24
+ export { t as default };
@@ -0,0 +1,2 @@
1
+ declare const SegmentStyleRemoveSelectorsMutation: import('graphql').DocumentNode;
2
+ export default SegmentStyleRemoveSelectorsMutation;
@@ -0,0 +1,12 @@
1
+ import { gql as e } from "@apollo/client/core";
2
+ //#region src/network/graphql/builder/Mutations/Segment/style/selectors/SegmentStyleRemoveSelectorsMutation.ts
3
+ var t = e`
4
+ mutation SegmentStyleRemoveSelectorsMutation($environment: String!, $selectors: [String!]!, $contextId: String!) {
5
+ SegmentStyleRemoveSelectors(environment: $environment, selectors: $selectors, contextId: $contextId) {
6
+ displayMode
7
+ selectors
8
+ }
9
+ }
10
+ `;
11
+ //#endregion
12
+ export { t as default };
@@ -18,6 +18,7 @@ var t = e`
18
18
  variables: $variables
19
19
  ) {
20
20
  id
21
+ idRef
21
22
  definition {
22
23
  label
23
24
  type
@@ -20,6 +20,7 @@ var t = e`
20
20
  variables: $variables
21
21
  ) {
22
22
  id
23
+ idRef
23
24
  definition {
24
25
  label
25
26
  type
@@ -16,6 +16,7 @@ var t = e`
16
16
  initialItems: $initialItems
17
17
  ) {
18
18
  id
19
+ idRef
19
20
  definition {
20
21
  label
21
22
  type
@@ -16,6 +16,7 @@ var t = e`
16
16
  dropPosition: $dropPosition
17
17
  ) {
18
18
  id
19
+ idRef
19
20
  definition {
20
21
  label
21
22
  type
@@ -4,6 +4,7 @@ var t = e`
4
4
  mutation SpaceRemoveElement($environment: String!, $elementId: String!) {
5
5
  SpaceRemoveElement(environment: $environment, elementId: $elementId) {
6
6
  id
7
+ idRef
7
8
  definition {
8
9
  label
9
10
  type
@@ -4,6 +4,7 @@ var t = e`
4
4
  mutation SpaceUpdateElement($environment: String!, $element: Json!) {
5
5
  SpaceUpdateElement(environment: $environment, element: $element) {
6
6
  id
7
+ idRef
7
8
  definition {
8
9
  label
9
10
  type
@@ -0,0 +1,2 @@
1
+ declare const SpaceUpdateElementsMutation: import('graphql').DocumentNode;
2
+ export default SpaceUpdateElementsMutation;
@@ -0,0 +1,24 @@
1
+ import { gql as e } from "@apollo/client/core";
2
+ //#region src/network/graphql/builder/Mutations/Space/SpaceUpdateElementsMutation.ts
3
+ var t = e`
4
+ mutation SpaceUpdateElements($environment: String!, $elements: [Json!]!) {
5
+ SpaceUpdateElements(environment: $environment, elements: $elements) {
6
+ id
7
+ idRef
8
+ definition {
9
+ label
10
+ type
11
+ initialState
12
+ styleSelectors
13
+ bindings
14
+ interactions
15
+ parentId
16
+ rootId
17
+ items
18
+ }
19
+ attributes
20
+ }
21
+ }
22
+ `;
23
+ //#endregion
24
+ export { t as default };
@@ -7,6 +7,7 @@ var t = e`
7
7
  settings
8
8
  flat {
9
9
  id
10
+ idRef
10
11
  definition {
11
12
  label
12
13
  type
@@ -7,6 +7,7 @@ var t = e`
7
7
  settings
8
8
  flat {
9
9
  id
10
+ idRef
10
11
  definition {
11
12
  label
12
13
  type
@@ -1,9 +1,16 @@
1
1
  import { gql as e } from "@apollo/client/core";
2
2
  //#region src/network/graphql/builder/Mutations/Space/pages/SpaceAddPageMutation.ts
3
3
  var t = e`
4
- mutation SpaceAddPageMutation($environment: String!, $name: String!, $pageFolder: String) {
5
- SpaceAddPage(environment: $environment, name: $name, pageFolder: $pageFolder) {
4
+ mutation SpaceAddPageMutation(
5
+ $environment: String!
6
+ $name: String!
7
+ $slug: String!
8
+ $idRef: String!
9
+ $pageFolder: String
10
+ ) {
11
+ SpaceAddPage(environment: $environment, name: $name, slug: $slug, idRef: $idRef, pageFolder: $pageFolder) {
6
12
  id
13
+ idRef
7
14
  definition
8
15
  attributes
9
16
  }
@@ -4,6 +4,7 @@ var t = e`
4
4
  mutation SpaceUpdatePageMutation($environment: String!, $page: Json!) {
5
5
  SpaceUpdatePage(environment: $environment, page: $page) {
6
6
  id
7
+ idRef
7
8
  definition
8
9
  attributes
9
10
  }
@@ -0,0 +1,2 @@
1
+ declare const StyleRemoveSelectorsMutation: import('graphql').DocumentNode;
2
+ export default StyleRemoveSelectorsMutation;
@@ -0,0 +1,12 @@
1
+ import { gql as e } from "@apollo/client/core";
2
+ //#region src/network/graphql/builder/Mutations/Style/selectors/StyleRemoveSelectorsMutation.ts
3
+ var t = e`
4
+ mutation StyleRemoveSelectorsMutation($environment: String!, $displayMode: String, $selectors: [String!]!) {
5
+ StyleRemoveSelectors(environment: $environment, displayMode: $displayMode, selectors: $selectors) {
6
+ displayMode
7
+ selectors
8
+ }
9
+ }
10
+ `;
11
+ //#endregion
12
+ export { t as default };
@@ -40,6 +40,7 @@ export type BuilderMutationsMap = {
40
40
  SpaceRemoveVariable: unknown;
41
41
  SpaceAddElement: unknown;
42
42
  SpaceUpdateElement: unknown;
43
+ SpaceUpdateElements: unknown;
43
44
  SpaceRemoveElement: unknown;
44
45
  SpaceMoveElement: unknown;
45
46
  SpaceCloneElement: unknown;
@@ -63,6 +64,7 @@ export type BuilderMutationsMap = {
63
64
  StyleAddSelector: unknown;
64
65
  StyleUpdateSelector: unknown;
65
66
  StyleRemoveSelector: unknown;
67
+ StyleRemoveSelectors: unknown;
66
68
  StyleAddSelectorVariable: unknown;
67
69
  StyleUpdateSelectorVariable: unknown;
68
70
  StyleRemoveSelectorVariable: unknown;
@@ -76,6 +78,7 @@ export type BuilderMutationsMap = {
76
78
  SegmentRemove: unknown;
77
79
  SegmentAddElement: unknown;
78
80
  SegmentUpdateElement: unknown;
81
+ SegmentUpdateElements: unknown;
79
82
  SegmentRemoveElement: unknown;
80
83
  SegmentMoveElement: unknown;
81
84
  SegmentCloneElement: unknown;
@@ -86,6 +89,7 @@ export type BuilderMutationsMap = {
86
89
  SegmentStyleAddSelector: unknown;
87
90
  SegmentStyleUpdateSelector: unknown;
88
91
  SegmentStyleRemoveSelector: unknown;
92
+ SegmentStyleRemoveSelectors: unknown;
89
93
  SegmentStyleAddSelectorVariable: unknown;
90
94
  SegmentStyleRemoveSelectorVariable: unknown;
91
95
  SegmentStyleUpdateSelectorVariable: unknown;
@@ -115,6 +119,7 @@ declare const BuilderMutations: {
115
119
  SpaceRemoveVariable: import('graphql').DocumentNode;
116
120
  SpaceAddElement: import('graphql').DocumentNode;
117
121
  SpaceUpdateElement: import('graphql').DocumentNode;
122
+ SpaceUpdateElements: import('graphql').DocumentNode;
118
123
  SpaceRemoveElement: import('graphql').DocumentNode;
119
124
  SpaceMoveElement: import('graphql').DocumentNode;
120
125
  SpaceCloneElement: import('graphql').DocumentNode;
@@ -138,6 +143,7 @@ declare const BuilderMutations: {
138
143
  StyleAddSelector: import('graphql').DocumentNode;
139
144
  StyleUpdateSelector: import('graphql').DocumentNode;
140
145
  StyleRemoveSelector: import('graphql').DocumentNode;
146
+ StyleRemoveSelectors: import('graphql').DocumentNode;
141
147
  StyleAddSelectorVariable: import('graphql').DocumentNode;
142
148
  StyleUpdateSelectorVariable: import('graphql').DocumentNode;
143
149
  StyleRemoveSelectorVariable: import('graphql').DocumentNode;
@@ -151,6 +157,7 @@ declare const BuilderMutations: {
151
157
  SegmentRemove: import('graphql').DocumentNode;
152
158
  SegmentAddElement: import('graphql').DocumentNode;
153
159
  SegmentUpdateElement: import('graphql').DocumentNode;
160
+ SegmentUpdateElements: import('graphql').DocumentNode;
154
161
  SegmentRemoveElement: import('graphql').DocumentNode;
155
162
  SegmentMoveElement: import('graphql').DocumentNode;
156
163
  SegmentCloneElement: import('graphql').DocumentNode;
@@ -161,6 +168,7 @@ declare const BuilderMutations: {
161
168
  SegmentStyleAddSelector: import('graphql').DocumentNode;
162
169
  SegmentStyleUpdateSelector: import('graphql').DocumentNode;
163
170
  SegmentStyleRemoveSelector: import('graphql').DocumentNode;
171
+ SegmentStyleRemoveSelectors: import('graphql').DocumentNode;
164
172
  SegmentStyleAddSelectorVariable: import('graphql').DocumentNode;
165
173
  SegmentStyleRemoveSelectorVariable: import('graphql').DocumentNode;
166
174
  SegmentStyleUpdateSelectorVariable: import('graphql').DocumentNode;