@plitzi/sdk-shared 0.37.2 → 0.37.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (184) hide show
  1. package/CHANGELOG.md +1146 -0
  2. package/dist/actions/access.d.ts +12 -0
  3. package/dist/actions/access.mjs +13 -0
  4. package/dist/actions/functions.d.ts +27 -0
  5. package/dist/actions/functions.mjs +18 -0
  6. package/dist/actions/index.d.ts +4 -0
  7. package/dist/actions/index.mjs +9 -7
  8. package/dist/auth/index.d.ts +2 -0
  9. package/dist/auth/index.mjs +2 -1
  10. package/dist/auth/visitorRoles.d.ts +27 -0
  11. package/dist/auth/visitorRoles.mjs +48 -0
  12. package/dist/authoring/builder.mjs +1 -0
  13. package/dist/authoring/declare.d.ts +53 -0
  14. package/dist/authoring/declare.mjs +2 -2
  15. package/dist/authoring/index.mjs +5 -5
  16. package/dist/authoring/paramSpec.d.ts +1 -1
  17. package/dist/authoring/paramSpec.mjs +1 -0
  18. package/dist/authoring/spaceCallbacks.mjs +2 -2
  19. package/dist/dataSource/computed.d.ts +21 -0
  20. package/dist/dataSource/computed.mjs +45 -0
  21. package/dist/dataSource/getBindingsDetails.mjs +35 -34
  22. package/dist/dataSource/index.d.ts +1 -0
  23. package/dist/dataSource/index.mjs +7 -6
  24. package/dist/dataSource/utility/not.mjs +4 -7
  25. package/dist/dataSource/utility/stringToArray.mjs +1 -1
  26. package/dist/dataSource/utility/truthiness.d.ts +1 -0
  27. package/dist/dataSource/utility/truthiness.mjs +8 -0
  28. package/dist/dataSource/utility/twigTemplate.d.ts +2 -1
  29. package/dist/dataSource/utility/twigTemplate.mjs +29 -17
  30. package/dist/devTools/utils/PlitziConsole.mjs +22 -22
  31. package/dist/helpers/cookies.d.ts +10 -0
  32. package/dist/helpers/cookies.mjs +19 -0
  33. package/dist/helpers/fetchManifest.d.ts +9 -0
  34. package/dist/helpers/fetchManifest.mjs +3 -6
  35. package/dist/helpers/formatDate.d.ts +5 -3
  36. package/dist/helpers/formatDate.mjs +34 -36
  37. package/dist/helpers/index.d.ts +2 -0
  38. package/dist/helpers/index.mjs +18 -14
  39. package/dist/helpers/isDate.d.ts +7 -0
  40. package/dist/helpers/isDate.mjs +15 -0
  41. package/dist/helpers/keys.d.ts +42 -0
  42. package/dist/helpers/keys.mjs +91 -0
  43. package/dist/helpers/twigWrapper/AST.d.ts +2 -2
  44. package/dist/helpers/twigWrapper/Evaluator/Evaluator.d.ts +12 -2
  45. package/dist/helpers/twigWrapper/Evaluator/Evaluator.mjs +57 -34
  46. package/dist/helpers/twigWrapper/Evaluator/index.d.ts +1 -1
  47. package/dist/helpers/twigWrapper/Evaluator/index.mjs +2 -2
  48. package/dist/helpers/twigWrapper/Parser/ExpressionParser.d.ts +2 -2
  49. package/dist/helpers/twigWrapper/Parser/ExpressionParser.mjs +147 -34
  50. package/dist/helpers/twigWrapper/Parser/Parser.d.ts +2 -1
  51. package/dist/helpers/twigWrapper/Parser/Parser.mjs +21 -20
  52. package/dist/helpers/twigWrapper/filters/filters.mjs +130 -112
  53. package/dist/helpers/twigWrapper/index.d.ts +5 -2
  54. package/dist/helpers/twigWrapper/index.mjs +7 -5
  55. package/dist/helpers/twigWrapper/inspectTemplate.d.ts +23 -0
  56. package/dist/helpers/twigWrapper/inspectTemplate.mjs +110 -0
  57. package/dist/helpers/twigWrapper/processTwig/helpers.d.ts +7 -0
  58. package/dist/helpers/twigWrapper/processTwig/helpers.mjs +2 -1
  59. package/dist/helpers/twigWrapper/processTwig/index.d.ts +2 -1
  60. package/dist/helpers/twigWrapper/processTwig/index.mjs +3 -2
  61. package/dist/helpers/twigWrapper/processTwig/processTwig.d.ts +28 -0
  62. package/dist/helpers/twigWrapper/processTwig/processTwig.mjs +73 -16
  63. package/dist/helpers/twigWrapper/processTwig/resolveStepParam.d.ts +17 -0
  64. package/dist/helpers/twigWrapper/processTwig/resolveStepParam.mjs +14 -0
  65. package/dist/helpers/twigWrapper/templateRoots.d.ts +11 -0
  66. package/dist/helpers/twigWrapper/templateRoots.mjs +4 -4
  67. package/dist/helpers/twigWrapper/tokens/hasTemplateSyntax.d.ts +1 -1
  68. package/dist/history/describe.d.ts +29 -0
  69. package/dist/history/describe.mjs +93 -0
  70. package/dist/history/diff.d.ts +33 -0
  71. package/dist/history/diff.mjs +73 -0
  72. package/dist/history/index.d.ts +3 -0
  73. package/dist/history/index.mjs +3 -0
  74. package/dist/history/types.d.ts +48 -0
  75. package/dist/history/types.mjs +0 -0
  76. package/dist/index.d.ts +1 -0
  77. package/dist/index.mjs +77 -66
  78. package/dist/navigation/index.d.ts +1 -1
  79. package/dist/navigation/index.mjs +2 -2
  80. package/dist/navigation/routes.d.ts +11 -1
  81. package/dist/navigation/routes.mjs +15 -10
  82. package/dist/network/graphql/builder/Mutations/Space/SpaceFixIssuesMutation.d.ts +14 -0
  83. package/dist/network/graphql/builder/Mutations/Space/SpaceFixIssuesMutation.mjs +16 -0
  84. package/dist/network/graphql/builder/Mutations/Space/SpaceUpdatePluginMutation.d.ts +4 -0
  85. package/dist/network/graphql/builder/Mutations/Space/SpaceUpdatePluginMutation.mjs +2 -2
  86. package/dist/network/graphql/builder/Mutations/Space/actions/SpaceRunActionMutation.mjs +1 -0
  87. package/dist/network/graphql/builder/Mutations/Space/functions/SpaceRemoveFunctionsMutation.d.ts +3 -0
  88. package/dist/network/graphql/builder/Mutations/Space/functions/SpaceRemoveFunctionsMutation.mjs +9 -0
  89. package/dist/network/graphql/builder/Mutations/Space/functions/SpaceSaveFunctionsMutation.d.ts +11 -0
  90. package/dist/network/graphql/builder/Mutations/Space/functions/SpaceSaveFunctionsMutation.mjs +24 -0
  91. package/dist/network/graphql/builder/Mutations/Space/functions/SpaceTryFunctionMutation.d.ts +4 -0
  92. package/dist/network/graphql/builder/Mutations/Space/functions/SpaceTryFunctionMutation.mjs +15 -0
  93. package/dist/network/graphql/builder/Mutations/Space/runtime/SpaceRemoveRuntimeMutation.d.ts +2 -0
  94. package/dist/network/graphql/builder/Mutations/Space/runtime/SpaceRemoveRuntimeMutation.mjs +9 -0
  95. package/dist/network/graphql/builder/Mutations/Space/runtime/SpaceRemoveRuntimeVariableMutation.d.ts +2 -0
  96. package/dist/network/graphql/builder/Mutations/Space/runtime/SpaceRemoveRuntimeVariableMutation.mjs +9 -0
  97. package/dist/network/graphql/builder/Mutations/Space/runtime/SpaceSetRuntimeSizeMutation.d.ts +2 -0
  98. package/dist/network/graphql/builder/Mutations/Space/runtime/SpaceSetRuntimeSizeMutation.mjs +9 -0
  99. package/dist/network/graphql/builder/Mutations/Space/runtime/SpaceSetRuntimeVariableMutation.d.ts +2 -0
  100. package/dist/network/graphql/builder/Mutations/Space/runtime/SpaceSetRuntimeVariableMutation.mjs +9 -0
  101. package/dist/network/graphql/builder/Mutations/Space/runtime/SpaceStartRuntimeMutation.d.ts +2 -0
  102. package/dist/network/graphql/builder/Mutations/Space/runtime/SpaceStartRuntimeMutation.mjs +9 -0
  103. package/dist/network/graphql/builder/Mutations/Space/runtime/SpaceStopRuntimeMutation.d.ts +2 -0
  104. package/dist/network/graphql/builder/Mutations/Space/runtime/SpaceStopRuntimeMutation.mjs +9 -0
  105. package/dist/network/graphql/builder/Mutations/Space/visitors/SpaceAddVisitorMutation.d.ts +2 -0
  106. package/dist/network/graphql/builder/Mutations/Space/visitors/SpaceAddVisitorMutation.mjs +11 -0
  107. package/dist/network/graphql/builder/Mutations/Space/visitors/SpaceRemoveVisitorMutation.d.ts +2 -0
  108. package/dist/network/graphql/builder/Mutations/Space/visitors/SpaceRemoveVisitorMutation.mjs +11 -0
  109. package/dist/network/graphql/builder/Mutations/index.d.ts +28 -0
  110. package/dist/network/graphql/builder/Mutations/index.mjs +108 -84
  111. package/dist/network/graphql/builder/Queries/Space/SpaceChangesQuery.d.ts +23 -0
  112. package/dist/network/graphql/builder/Queries/Space/SpaceChangesQuery.mjs +49 -0
  113. package/dist/network/graphql/builder/Queries/Space/SpaceFunctionsQuery.d.ts +6 -0
  114. package/dist/network/graphql/builder/Queries/Space/SpaceFunctionsQuery.mjs +13 -0
  115. package/dist/network/graphql/builder/Queries/Space/SpaceIssuesQuery.d.ts +17 -0
  116. package/dist/network/graphql/builder/Queries/Space/SpaceIssuesQuery.mjs +22 -0
  117. package/dist/network/graphql/builder/Queries/Space/SpaceRuntimeQuery.d.ts +6 -0
  118. package/dist/network/graphql/builder/Queries/Space/SpaceRuntimeQuery.mjs +32 -0
  119. package/dist/network/graphql/builder/Queries/Space/SpaceVisitorsQuery.d.ts +6 -0
  120. package/dist/network/graphql/builder/Queries/Space/SpaceVisitorsQuery.mjs +16 -0
  121. package/dist/network/graphql/builder/Queries/index.d.ts +17 -3
  122. package/dist/network/graphql/builder/Queries/index.mjs +30 -22
  123. package/dist/network/graphql/sdk/Mutations/index.d.ts +1 -1
  124. package/dist/network/graphql/sdk/Queries/InitQuery.d.ts +1 -1
  125. package/dist/network/graphql/sdk/Queries/InitQuery.mjs +2 -91
  126. package/dist/network/graphql/sdk/Queries/Segment/SegmentQuery.d.ts +1 -1
  127. package/dist/network/graphql/sdk/Queries/Segment/SegmentQuery.mjs +2 -44
  128. package/dist/network/graphql/sdk/Queries/Segment/SegmentsQuery.d.ts +1 -1
  129. package/dist/network/graphql/sdk/Queries/Segment/SegmentsQuery.mjs +2 -55
  130. package/dist/network/graphql/sdk/Queries/index.d.ts +1 -5
  131. package/dist/network/index.mjs +7 -7
  132. package/dist/network/spaceEvents.d.ts +33 -3
  133. package/dist/network/spaceEvents.mjs +102 -89
  134. package/dist/realtime/client.d.ts +46 -0
  135. package/dist/realtime/client.mjs +192 -0
  136. package/dist/realtime/index.d.ts +6 -0
  137. package/dist/realtime/index.mjs +4 -0
  138. package/dist/realtime/presence.d.ts +38 -0
  139. package/dist/realtime/presence.mjs +70 -0
  140. package/dist/realtime/topics.d.ts +36 -0
  141. package/dist/realtime/topics.mjs +25 -0
  142. package/dist/server/actions/useRealtimeSync.d.ts +9 -0
  143. package/dist/server/actions/useRealtimeSync.mjs +7 -0
  144. package/dist/state/index.d.ts +1 -0
  145. package/dist/state/index.mjs +3 -2
  146. package/dist/state/paintedState.d.ts +52 -0
  147. package/dist/state/paintedState.mjs +37 -0
  148. package/dist/state/runtimeStatePersist.d.ts +8 -1
  149. package/dist/state/runtimeStatePersist.mjs +79 -29
  150. package/dist/store/index.d.ts +45 -45
  151. package/dist/store/renderSettings.d.ts +6 -3
  152. package/dist/store/tracing/index.d.ts +1 -0
  153. package/dist/store/tracing/tracingCollector.d.ts +17 -1
  154. package/dist/store/tracing/tracingCollector.mjs +5 -0
  155. package/dist/style/index.d.ts +1 -0
  156. package/dist/style/index.mjs +3 -2
  157. package/dist/style/runtimeStyle.d.ts +29 -0
  158. package/dist/style/runtimeStyle.mjs +7 -0
  159. package/dist/style/styleConstants.d.ts +3 -2
  160. package/dist/style/styleConstants.mjs +2 -0
  161. package/dist/style/styleStates.d.ts +14 -1
  162. package/dist/style/styleStates.mjs +10 -7
  163. package/dist/theme/ThemeProvider.mjs +35 -29
  164. package/dist/theme/themeCookie.mjs +11 -15
  165. package/dist/types/ActionTypes.d.ts +4 -0
  166. package/dist/types/AuthTypes.d.ts +11 -1
  167. package/dist/types/CommonTypes.d.ts +6 -0
  168. package/dist/types/FunctionTypes.d.ts +52 -0
  169. package/dist/types/FunctionTypes.mjs +0 -0
  170. package/dist/types/PluginTypes.d.ts +0 -1
  171. package/dist/types/RealtimeTypes.d.ts +94 -0
  172. package/dist/types/RealtimeTypes.mjs +0 -0
  173. package/dist/types/SchemaTypes.d.ts +54 -0
  174. package/dist/types/SchemaTypes.mjs +8 -0
  175. package/dist/types/ServerTypes.d.ts +259 -15
  176. package/dist/types/SpaceTypes.d.ts +53 -0
  177. package/dist/types/StateTypes.d.ts +6 -0
  178. package/dist/types/StoreTypes.d.ts +11 -0
  179. package/dist/types/index.d.ts +2 -0
  180. package/dist/types/index.mjs +3 -2
  181. package/package.json +172 -11
  182. package/vite.config.ts +0 -12
  183. package/dist/network/graphql/builder/Queries/PluginsQuery.d.ts +0 -9
  184. package/dist/network/graphql/builder/Queries/PluginsQuery.mjs +0 -54
package/dist/index.mjs CHANGED
@@ -1,68 +1,79 @@
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 { filters as a } from "./helpers/twigWrapper/filters/filters.mjs";
4
- import { processTwig as o } from "./helpers/twigWrapper/processTwig/processTwig.mjs";
5
- import { hasTemplateSyntax as s } from "./helpers/twigWrapper/tokens/hasTemplateSyntax.mjs";
6
- import { hasValidToken as c } from "./helpers/twigWrapper/tokens/hasValidToken.mjs";
7
- import { templateRootNames as l } from "./helpers/twigWrapper/templateRoots.mjs";
8
- import u from "./builder/contexts/BuilderContext.mjs";
9
- import { contexts_exports as d } from "./builder/contexts/index.mjs";
10
- import { BODYLESS_METHODS as f, CONNECTOR_HTTP_METHODS as p, DEFAULT_READ_ENDPOINT as m, EMPTY_RESPONSE_METHODS as h, READ_ENDPOINT_NAMES as g, WRITE_ENDPOINT_NAMES as _ } from "./connectors/constants.mjs";
11
- import { connectorTokens as v, getConnectorTokens as y } from "./connectors/manifestTokens.mjs";
12
- import { connectorPresets as b, emptyManifest as x } from "./connectors/presets.mjs";
13
- import { validateConnectorManifest as S } from "./connectors/validateManifest.mjs";
14
- import C from "./helpers/fetchManifest.mjs";
15
- import w from "./helpers/generateFacade.mjs";
16
- import T from "./helpers/syntaxHighlight.mjs";
17
- import { formatDate as E, formatDateUTC as D, formatFromNow as O, formatUTCToLocal as k, getDurationMs as A, isDate as j, isValidFormat as M, parseDate as N, toUnixSeconds as P } from "./helpers/formatDate.mjs";
18
- import { isUserEdit as F } from "./helpers/reducerOrigin.mjs";
19
- import { evaluateRuleGroup as I } from "./helpers/ruleEvaluator.mjs";
20
- import { ParamsFromURL as L, delay as R, emptyObject as z, getDisplayName as B, getKeyDecoded as V, getPathsFromObeject as H, hexToRGB as U, isInViewport as W, makeId as G } from "./helpers/utils.mjs";
21
- import { disableReactDevTools as K } from "./helpers/security.mjs";
22
- import { createStripTypenameLink as q, stripTypenameDeep as J } from "./helpers/stripTypename.mjs";
23
- import Y, { utilityOptions as X } from "./dataSource/utility/index.mjs";
24
- import Z from "./dataSource/getBindingsDetails.mjs";
25
- import Q from "./dataSource/helpers/getSourceName.mjs";
26
- import $ from "./dataSource/hooks/useRegisterSource.mjs";
27
- import ee from "./dataSource/resolveVariables.mjs";
28
- import te from "./devTools/DevToolsContext.mjs";
29
- import { debugCookieName as ne } from "./devTools/debugCookie.mjs";
30
- import re from "./devTools/interactionLog.mjs";
31
- import ie, { createStoreDevToolsLogger as ae, pConsole as oe } from "./devTools/utils/PlitziConsole.mjs";
32
- import se from "./elements/ComponentContext.mjs";
33
- import ce from "./hooks/useFontHead.mjs";
34
- import le from "./hooks/useNetwork.mjs";
35
- import ue, { PlitziServiceContext as de, PlitziServiceProvider as fe } from "./hooks/usePlitziServiceContext.mjs";
36
- import pe from "./hooks/useStableValue.mjs";
37
- import { StyleVariableCategory as me } from "./types/StyleTypes.mjs";
38
- import he, { EMPTY_STYLE_SCHEMA as ge, StyleBindingsAllowed as _e, baseDefaultValue as ve, inheritableAttributesBase as ye } from "./style/styleConstants.mjs";
39
- import { fontLinkAssets as be } from "./style/fontAssets.mjs";
40
- import { SYSTEM_FONTS as xe, availableFonts as Se, familiesInCss as Ce, fontFamilyStack as we, fontUrlResolver as Te, fontsToHead as Ee, googleCss2Url as De, googleTextSubsetUrl as Oe, isSafeFontUrl as ke, primaryFamily as Ae } from "./style/fonts.mjs";
41
- import { FontValidationError as je, parseSpaceFont as Me } from "./style/fontValidation.mjs";
42
- import { fallbackForFamily as Ne, fontsFromCss as Pe } from "./style/fontsFromCss.mjs";
43
- import { STYLE_STATES as Fe, STYLE_STATE_LABELS as Ie, inCascadeOrder as Le, isKnownState as Re } from "./style/styleStates.mjs";
44
- import ze from "./schema/SchemaContext.mjs";
45
- import { EMPTY_SCHEMA as Be, VARIABLE_REGEX as Ve } from "./schema/schemaConstants.mjs";
46
- import { findLayoutCycle as He, resolveLayoutChain as Ue } from "./schema/layoutChain.mjs";
47
- import { collectServerElements as We, hasServerElements as Ge } from "./schema/serverElements.mjs";
48
- import Ke from "./network/NetworkContext.mjs";
49
- import qe from "./network/NetworkInternalContext.mjs";
50
- import { SpaceEvents as Je, spaceEventSchemas as Ye, validateSpaceEvent as Xe } from "./network/spaceEvents.mjs";
51
- import Ze from "./network/graphql/builder/Mutations/index.mjs";
52
- import Qe from "./network/graphql/builder/Queries/index.mjs";
53
- import $e from "./network/graphql/builder/Subscriptions/index.mjs";
54
- import et from "./network/graphql/sdk/Mutations/index.mjs";
55
- import tt from "./network/graphql/sdk/Queries/index.mjs";
56
- import nt from "./segments/SegmentsContext.mjs";
57
- import rt, { RTEvent as it, RTEventCloseCode as at, getInstance as ot, isRTEvent as st, setInstance as ct } from "./websockets/RTCodec.mjs";
58
- import { THEME_CLASSES as lt, THEME_COOKIE_NAME as ut, applyThemeClass as dt, isTheme as ft, readThemeCookie as pt, themeFromCookies as mt, writeThemeCookie as ht } from "./theme/themeCookie.mjs";
59
- import gt, { createThemeState as _t, createThemeStore as vt, resolveScheme as yt, setAreaTheme as bt, setMachineScheme as xt, setThemeMode as St, themeFor as Ct } from "./theme/themeStore.mjs";
60
- import { useThemeStore as wt } from "./theme/ThemeScope.mjs";
61
- import Tt from "./theme/ThemeProvider.mjs";
62
- import Et, { SPACE_THEME_AREA as Dt } from "./theme/useTheme.mjs";
63
- import Ot from "./server/actions/useActionsSync.mjs";
64
- import kt, { currentRscLocation as At, rscDataPath as jt } from "./server/rsc/refreshRsc.mjs";
65
- import Mt from "./server/rsc/useRscRefresh.mjs";
66
- import Nt from "./server/rsc/useRscSync.mjs";
67
- import { runtimeStatePersist as Pt, stateOwner as Ft } from "./state/runtimeStatePersist.mjs";
68
- export { f as BODYLESS_METHODS, u as BuilderContext, Ze as BuilderMutations, Qe as BuilderQueries, p as CONNECTOR_HTTP_METHODS, se as ComponentContext, m as DEFAULT_READ_ENDPOINT, te as DevToolsContext, h as EMPTY_RESPONSE_METHODS, Be as EMPTY_SCHEMA, ge as EMPTY_STYLE_SCHEMA, je as FontValidationError, Ke as NetworkContext, qe as NetworkInternalContext, L as ParamsFromURL, ie as PlitziConsole, de as PlitziServiceContext, fe as PlitziServiceProvider, g as READ_ENDPOINT_NAMES, rt as RTCodec, it as RTEvent, at as RTEventCloseCode, Dt as SPACE_THEME_AREA, Fe as STYLE_STATES, Ie as STYLE_STATE_LABELS, xe as SYSTEM_FONTS, ze as SchemaContext, et as SdkMutations, tt as SdkQueries, nt as SegmentsContext, $e as SpaceEventSubscription, Je as SpaceEvents, _e as StyleBindingsAllowed, me as StyleVariableCategory, lt as THEME_CLASSES, ut as THEME_COOKIE_NAME, Tt as ThemeProvider, Ve as VARIABLE_REGEX, _ as WRITE_ENDPOINT_NAMES, dt as applyThemeClass, e as authFailureFromResponse, Se as availableFonts, ve as baseDefaultValue, We as collectServerElements, b as connectorPresets, v as connectorTokens, d as contexts, i as createAuthFailureLink, ae as createStoreDevToolsLogger, q as createStripTypenameLink, _t as createThemeState, vt as createThemeStore, At as currentRscLocation, ne as debugCookieName, R as delay, K as disableReactDevTools, x as emptyManifest, z as emptyObject, I as evaluateRuleGroup, Ne as fallbackForFamily, Ce as familiesInCss, C as fetchManifest, a as filters, He as findLayoutCycle, we as fontFamilyStack, be as fontLinkAssets, Te as fontUrlResolver, Pe as fontsFromCss, Ee as fontsToHead, E as formatDate, D as formatDateUTC, O as formatFromNow, k as formatUTCToLocal, w as generateFacade, Z as getBindingsDetails, y as getConnectorTokens, B as getDisplayName, A as getDurationMs, ot as getInstance, V as getKeyDecoded, H as getPathsFromObeject, Q as getSourceName, De as googleCss2Url, Oe as googleTextSubsetUrl, Ge as hasServerElements, s as hasTemplateSyntax, c as hasValidToken, U as hexToRGB, Le as inCascadeOrder, ye as inheritableAttributesBase, j as isDate, W as isInViewport, re as isInteractionFlow, Re as isKnownState, st as isRTEvent, ke as isSafeFontUrl, ft as isTheme, F as isUserEdit, M as isValidFormat, G as makeId, t as onAuthFailure, oe as pConsole, N as parseDate, Me as parseSpaceFont, Ae as primaryFamily, o as processTwig, pt as readThemeCookie, kt as refreshRsc, n as reportAuthFailure, Ue as resolveLayoutChain, yt as resolveScheme, ee as resolveVariables, jt as rscDataPath, Pt as runtimeStatePersist, r as sameRegistrableDomain, bt as setAreaTheme, ct as setInstance, xt as setMachineScheme, St as setThemeMode, Ye as spaceEventSchemas, Ft as stateOwner, J as stripTypenameDeep, he as styleConstants, T as syntaxHighlight, l as templateRootNames, Ct as themeFor, mt as themeFromCookies, gt as themeStore, P as toUnixSeconds, Ot as useActionsSync, ce as useFontHead, le as useNetwork, ue as usePlitziServiceContext, $ as useRegisterSource, Mt as useRscRefresh, Nt as useRscSync, pe as useStableValue, Et as useTheme, wt as useThemeStore, Y as utility, X as utilityOptions, S as validateConnectorManifest, Xe as validateSpaceEvent, ht as writeThemeCookie };
3
+ import { VISITOR_NAME as a, checkVisitorRoles as o, visitorAccess as s } from "./auth/visitorRoles.mjs";
4
+ import { filters as c } from "./helpers/twigWrapper/filters/filters.mjs";
5
+ import { processTwig as l, processTwigParam as u, processTwigValue as d } from "./helpers/twigWrapper/processTwig/processTwig.mjs";
6
+ import { hasTemplateSyntax as f } from "./helpers/twigWrapper/tokens/hasTemplateSyntax.mjs";
7
+ import { hasValidToken as p } from "./helpers/twigWrapper/tokens/hasValidToken.mjs";
8
+ import { MAX_PARAM_PASSES as m, resolveStepParam as h } from "./helpers/twigWrapper/processTwig/resolveStepParam.mjs";
9
+ import { inspectTemplate as g } from "./helpers/twigWrapper/inspectTemplate.mjs";
10
+ import { templatePaths as _, templateRootNames as v } from "./helpers/twigWrapper/templateRoots.mjs";
11
+ import y from "./builder/contexts/BuilderContext.mjs";
12
+ import { contexts_exports as b } from "./builder/contexts/index.mjs";
13
+ import { BODYLESS_METHODS as x, CONNECTOR_HTTP_METHODS as S, DEFAULT_READ_ENDPOINT as C, EMPTY_RESPONSE_METHODS as w, READ_ENDPOINT_NAMES as T, WRITE_ENDPOINT_NAMES as E } from "./connectors/constants.mjs";
14
+ import { connectorTokens as D, getConnectorTokens as O } from "./connectors/manifestTokens.mjs";
15
+ import { connectorPresets as k, emptyManifest as A } from "./connectors/presets.mjs";
16
+ import { validateConnectorManifest as j } from "./connectors/validateManifest.mjs";
17
+ import { evaluateComputed as M, liveSources as N } from "./dataSource/computed.mjs";
18
+ import P from "./helpers/fetchManifest.mjs";
19
+ import F from "./helpers/generateFacade.mjs";
20
+ import I from "./helpers/syntaxHighlight.mjs";
21
+ import { cookieFromHeader as L, documentCookies as R } from "./helpers/cookies.mjs";
22
+ import { formatDate as z, formatDateUTC as B, formatFromNow as V, formatUTCToLocal as H, getDurationMs as U, isValidFormat as W, parseDate as G, toUnixSeconds as K } from "./helpers/formatDate.mjs";
23
+ import { isDate as q } from "./helpers/isDate.mjs";
24
+ import { isUserEdit as J } from "./helpers/reducerOrigin.mjs";
25
+ import { evaluateRuleGroup as Y } from "./helpers/ruleEvaluator.mjs";
26
+ import { ParamsFromURL as X, delay as Z, emptyObject as Q, getDisplayName as $, getKeyDecoded as ee, getPathsFromObeject as te, hexToRGB as ne, isInViewport as re, makeId as ie } from "./helpers/utils.mjs";
27
+ import { disableReactDevTools as ae } from "./helpers/security.mjs";
28
+ import { createStripTypenameLink as oe, stripTypenameDeep as se } from "./helpers/stripTypename.mjs";
29
+ import ce, { utilityOptions as le } from "./dataSource/utility/index.mjs";
30
+ import ue from "./dataSource/getBindingsDetails.mjs";
31
+ import de from "./dataSource/helpers/getSourceName.mjs";
32
+ import fe from "./dataSource/hooks/useRegisterSource.mjs";
33
+ import pe from "./dataSource/resolveVariables.mjs";
34
+ import me from "./devTools/DevToolsContext.mjs";
35
+ import { debugCookieName as he } from "./devTools/debugCookie.mjs";
36
+ import ge from "./devTools/interactionLog.mjs";
37
+ import _e, { createStoreDevToolsLogger as ve, pConsole as ye } from "./devTools/utils/PlitziConsole.mjs";
38
+ import be from "./elements/ComponentContext.mjs";
39
+ import { describeChange as xe, fieldChanges as Se, uniqueLines as Ce } from "./history/describe.mjs";
40
+ import { diffSchema as we, diffStyle as Te, jsonCopy as Ee, sameValue as De } from "./history/diff.mjs";
41
+ import Oe from "./hooks/useFontHead.mjs";
42
+ import ke from "./hooks/useNetwork.mjs";
43
+ import Ae, { PlitziServiceContext as je, PlitziServiceProvider as Me } from "./hooks/usePlitziServiceContext.mjs";
44
+ import Ne from "./hooks/useStableValue.mjs";
45
+ import { WHILE_RUNNING_MODES as Pe } from "./types/SchemaTypes.mjs";
46
+ import { StyleVariableCategory as Fe } from "./types/StyleTypes.mjs";
47
+ import Ie, { EMPTY_STYLE_SCHEMA as Le, StyleBindingsAllowed as Re, baseDefaultValue as ze, inheritableAttributesBase as Be } from "./style/styleConstants.mjs";
48
+ import { fontLinkAssets as Ve } from "./style/fontAssets.mjs";
49
+ import { SYSTEM_FONTS as He, availableFonts as Ue, familiesInCss as We, fontFamilyStack as Ge, fontUrlResolver as Ke, fontsToHead as qe, googleCss2Url as Je, googleTextSubsetUrl as Ye, isSafeFontUrl as Xe, primaryFamily as Ze } from "./style/fonts.mjs";
50
+ import { FontValidationError as Qe, parseSpaceFont as $e } from "./style/fontValidation.mjs";
51
+ import { fallbackForFamily as et, fontsFromCss as tt } from "./style/fontsFromCss.mjs";
52
+ import { RUNTIME_STYLE_ID as nt, markStyleCache as rt, styleCacheFromDocument as it, styleCacheTravelsInDocument as at } from "./style/runtimeStyle.mjs";
53
+ import { HIDDEN_CLASS as ot, STYLE_STATES as st, STYLE_STATE_LABELS as ct, inCascadeOrder as lt, isKnownState as ut, isStartingState as dt, stateSuffix as ft } from "./style/styleStates.mjs";
54
+ import pt from "./schema/SchemaContext.mjs";
55
+ import { EMPTY_SCHEMA as mt, VARIABLE_REGEX as ht } from "./schema/schemaConstants.mjs";
56
+ import { findLayoutCycle as gt, resolveLayoutChain as _t } from "./schema/layoutChain.mjs";
57
+ import { collectServerElements as vt, hasServerElements as yt } from "./schema/serverElements.mjs";
58
+ import bt from "./network/NetworkContext.mjs";
59
+ import xt from "./network/NetworkInternalContext.mjs";
60
+ import { SpaceEvents as St, schemaFromWire as Ct, schemaToWire as wt, spaceEventSchemas as Tt, validateSpaceEvent as Et } from "./network/spaceEvents.mjs";
61
+ import Dt from "./network/graphql/builder/Mutations/index.mjs";
62
+ import Ot from "./network/graphql/builder/Queries/index.mjs";
63
+ import kt from "./network/graphql/builder/Subscriptions/index.mjs";
64
+ import At from "./network/graphql/sdk/Mutations/index.mjs";
65
+ import jt from "./network/graphql/sdk/Queries/index.mjs";
66
+ import Mt from "./segments/SegmentsContext.mjs";
67
+ import Nt, { RTEvent as Pt, RTEventCloseCode as Ft, getInstance as It, isRTEvent as Lt, setInstance as Rt } from "./websockets/RTCodec.mjs";
68
+ import { THEME_CLASSES as zt, THEME_COOKIE_NAME as Bt, applyThemeClass as Vt, isTheme as Ht, readThemeCookie as Ut, themeFromCookies as Wt, writeThemeCookie as Gt } from "./theme/themeCookie.mjs";
69
+ import Kt, { createThemeState as qt, createThemeStore as Jt, resolveScheme as Yt, setAreaTheme as Xt, setMachineScheme as Zt, setThemeMode as Qt, themeFor as $t } from "./theme/themeStore.mjs";
70
+ import { useThemeStore as en } from "./theme/ThemeScope.mjs";
71
+ import tn from "./theme/ThemeProvider.mjs";
72
+ import nn, { SPACE_THEME_AREA as rn } from "./theme/useTheme.mjs";
73
+ import an from "./server/actions/useActionsSync.mjs";
74
+ import on, { currentRscLocation as sn, rscDataPath as cn } from "./server/rsc/refreshRsc.mjs";
75
+ import ln from "./server/rsc/useRscRefresh.mjs";
76
+ import un from "./server/rsc/useRscSync.mjs";
77
+ import { PAINTED_STATE_BUDGET as dn, clearPaintedEntry as fn, paintedEntryFromCookies as pn, paintedKeys as mn, paintedStateCookieName as hn, paintedStateFor as gn, pickPainted as _n, readPaintedEntry as vn, writePaintedEntry as yn } from "./state/paintedState.mjs";
78
+ import { runtimeStatePersist as bn, stateOwner as xn } from "./state/runtimeStatePersist.mjs";
79
+ export { x as BODYLESS_METHODS, y as BuilderContext, Dt as BuilderMutations, Ot as BuilderQueries, S as CONNECTOR_HTTP_METHODS, be as ComponentContext, C as DEFAULT_READ_ENDPOINT, me as DevToolsContext, w as EMPTY_RESPONSE_METHODS, mt as EMPTY_SCHEMA, Le as EMPTY_STYLE_SCHEMA, Qe as FontValidationError, ot as HIDDEN_CLASS, m as MAX_PARAM_PASSES, bt as NetworkContext, xt as NetworkInternalContext, dn as PAINTED_STATE_BUDGET, X as ParamsFromURL, _e as PlitziConsole, je as PlitziServiceContext, Me as PlitziServiceProvider, T as READ_ENDPOINT_NAMES, Nt as RTCodec, Pt as RTEvent, Ft as RTEventCloseCode, nt as RUNTIME_STYLE_ID, rn as SPACE_THEME_AREA, st as STYLE_STATES, ct as STYLE_STATE_LABELS, He as SYSTEM_FONTS, pt as SchemaContext, At as SdkMutations, jt as SdkQueries, Mt as SegmentsContext, kt as SpaceEventSubscription, St as SpaceEvents, Re as StyleBindingsAllowed, Fe as StyleVariableCategory, zt as THEME_CLASSES, Bt as THEME_COOKIE_NAME, tn as ThemeProvider, ht as VARIABLE_REGEX, a as VISITOR_NAME, Pe as WHILE_RUNNING_MODES, E as WRITE_ENDPOINT_NAMES, Vt as applyThemeClass, e as authFailureFromResponse, Ue as availableFonts, ze as baseDefaultValue, o as checkVisitorRoles, fn as clearPaintedEntry, vt as collectServerElements, k as connectorPresets, D as connectorTokens, b as contexts, L as cookieFromHeader, i as createAuthFailureLink, ve as createStoreDevToolsLogger, oe as createStripTypenameLink, qt as createThemeState, Jt as createThemeStore, sn as currentRscLocation, he as debugCookieName, Z as delay, xe as describeChange, we as diffSchema, Te as diffStyle, ae as disableReactDevTools, R as documentCookies, A as emptyManifest, Q as emptyObject, M as evaluateComputed, Y as evaluateRuleGroup, et as fallbackForFamily, We as familiesInCss, P as fetchManifest, Se as fieldChanges, c as filters, gt as findLayoutCycle, Ge as fontFamilyStack, Ve as fontLinkAssets, Ke as fontUrlResolver, tt as fontsFromCss, qe as fontsToHead, z as formatDate, B as formatDateUTC, V as formatFromNow, H as formatUTCToLocal, F as generateFacade, ue as getBindingsDetails, O as getConnectorTokens, $ as getDisplayName, U as getDurationMs, It as getInstance, ee as getKeyDecoded, te as getPathsFromObeject, de as getSourceName, Je as googleCss2Url, Ye as googleTextSubsetUrl, yt as hasServerElements, f as hasTemplateSyntax, p as hasValidToken, ne as hexToRGB, lt as inCascadeOrder, Be as inheritableAttributesBase, g as inspectTemplate, q as isDate, re as isInViewport, ge as isInteractionFlow, ut as isKnownState, Lt as isRTEvent, Xe as isSafeFontUrl, dt as isStartingState, Ht as isTheme, J as isUserEdit, W as isValidFormat, Ee as jsonCopy, N as liveSources, ie as makeId, rt as markStyleCache, t as onAuthFailure, ye as pConsole, pn as paintedEntryFromCookies, mn as paintedKeys, hn as paintedStateCookieName, gn as paintedStateFor, G as parseDate, $e as parseSpaceFont, _n as pickPainted, Ze as primaryFamily, l as processTwig, u as processTwigParam, d as processTwigValue, vn as readPaintedEntry, Ut as readThemeCookie, on as refreshRsc, n as reportAuthFailure, _t as resolveLayoutChain, Yt as resolveScheme, h as resolveStepParam, pe as resolveVariables, cn as rscDataPath, bn as runtimeStatePersist, r as sameRegistrableDomain, De as sameValue, Ct as schemaFromWire, wt as schemaToWire, Xt as setAreaTheme, Rt as setInstance, Zt as setMachineScheme, Qt as setThemeMode, Tt as spaceEventSchemas, xn as stateOwner, ft as stateSuffix, se as stripTypenameDeep, it as styleCacheFromDocument, at as styleCacheTravelsInDocument, Ie as styleConstants, I as syntaxHighlight, _ as templatePaths, v as templateRootNames, $t as themeFor, Wt as themeFromCookies, Kt as themeStore, K as toUnixSeconds, Ce as uniqueLines, an as useActionsSync, Oe as useFontHead, ke as useNetwork, Ae as usePlitziServiceContext, fe as useRegisterSource, ln as useRscRefresh, un as useRscSync, Ne as useStableValue, nn as useTheme, en as useThemeStore, ce as utility, le as utilityOptions, j as validateConnectorManifest, Et as validateSpaceEvent, s as visitorAccess, yn as writePaintedEntry, Gt as writeThemeCookie };
@@ -1,4 +1,4 @@
1
1
  export { matchPath } from './matchPath';
2
- export { getPageFullPath, getPaths, isAbsoluteUrl, isPageAuthored, matchRoutePath, getRouteParams } from './routes';
2
+ export { getPageFullPath, getPaths, isAbsoluteUrl, isPageAuthored, matchRoutePath, getRouteParams, getSlugParams, navigationTarget } 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, 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 };
2
+ import { getPageFullPath as t, getPaths as n, getRouteParams as r, getSlugParams as i, isAbsoluteUrl as a, isPageAuthored as o, matchRoutePath as s, navigationTarget as c } from "./routes.mjs";
3
+ export { t as getPageFullPath, n as getPaths, r as getRouteParams, i as getSlugParams, a as isAbsoluteUrl, o as isPageAuthored, e as matchPath, s as matchRoutePath, c as navigationTarget };
@@ -22,6 +22,14 @@ export type Path = {
22
22
  export declare const isAbsoluteUrl: (url: string) => boolean;
23
23
  declare function getPageFullPath(pages: Record<string, Element>, pageFolders: PageFolder[], pageId: string, asString: true): string;
24
24
  declare function getPageFullPath(pages: Record<string, Element>, pageFolders: PageFolder[], pageId: string, asString?: false): Record<string, string>;
25
+ /**
26
+ * Where a navigation to `target` goes: a page id resolves to that page's full path — its folders' slugs before its own,
27
+ * exactly what a link to it resolves to — and anything else (a path, a slug) is taken as the path it already is.
28
+ *
29
+ * The router's navigation and a link used to disagree about a page in a folder: the link went to `/account/security`,
30
+ * a flow's `navigate` to `/security`, and to the home page for a folder's index — whose own slug is empty.
31
+ */
32
+ declare const navigationTarget: (pages: Record<string, Element>, pageFolders: PageFolder[], target: string) => string;
25
33
  declare const isPageAuthored: (accessLevel?: NavigationAccessLevel, authenticated?: boolean, previewMode?: boolean) => boolean;
26
34
  declare const getPaths: (pages?: Record<string, Element>, pageFolders?: PageFolder[], authenticated?: boolean, basePath?: string, previewMode?: boolean, strictMode?: boolean) => Path[];
27
35
  declare const matchRoutePath: (paths: Path[], pathName: string, authenticated: boolean) => {
@@ -33,4 +41,6 @@ declare const matchRoutePath: (paths: Path[], pathName: string, authenticated: b
33
41
  pageId?: string;
34
42
  };
35
43
  declare const getRouteParams: (path: string) => string[];
36
- export { getPageFullPath, getPaths, matchRoutePath, isPageAuthored, getRouteParams };
44
+ /** The params a page's slug declares, in either spelling a slug accepts: `post/{{slug}}` and `:spaceId/update`. */
45
+ declare const getSlugParams: (slug: string) => string[];
46
+ export { getPageFullPath, getPaths, matchRoutePath, isPageAuthored, getRouteParams, getSlugParams, navigationTarget };
@@ -1,6 +1,6 @@
1
1
  import { matchPath as e } from "./matchPath.mjs";
2
2
  //#region src/navigation/routes.ts
3
- var t = (e) => /^https?:\/\//i.test(e), n = (e) => t(e) || e.includes("{{"), r = (e) => e.replaceAll(/\/+/g, "/"), i = (e) => r(e.replace(/{{([a-zA-Z0-9-_:*/]+)}}/i, ":$1")), a = (e, t) => {
3
+ var t = (e) => /^https?:\/\//i.test(e), n = (e) => t(e) || e.includes("{{"), r = (e) => e.replaceAll(/\/+/g, "/"), i = (e) => r(e.replace(/{{([a-zA-Z0-9-_:*/]+)}}/gi, ":$1")), a = (e, t) => {
4
4
  if (!t || !e[t]) return "";
5
5
  let { slug: n, parentId: r } = e[t];
6
6
  return r ? `${a(e, r)}/${n}` : n;
@@ -34,10 +34,15 @@ function o(e, t, n, o = !1) {
34
34
  [i(`/${n}`)]: n
35
35
  };
36
36
  }
37
- var s = (e, t, n = !0) => !e || !n || t === void 0 || t && e === "authenticated" || !t && e === "public" ? !0 : t && e === "public" ? !1 : !e, c = (e = {}, t = [], r, i = "", a = !0, c = !0) => {
38
- let l = Object.keys(e).reduce((c, l) => {
37
+ var s = (e, t, n) => {
38
+ let r = e[n];
39
+ if (!r) return n;
40
+ let { slug: i, default: a } = r.attributes;
41
+ return typeof i == "string" ? o(e, t, n, !0) : a ? "/" : `/${n}`;
42
+ }, c = (e, t, n = !0) => !e || !n || t === void 0 || t && e === "authenticated" || !t && e === "public" ? !0 : t && e === "public" ? !1 : !e, l = (e = {}, t = [], r, i = "", a = !0, s = !0) => {
43
+ let l = Object.keys(e).reduce((s, l) => {
39
44
  let { attributes: { accessLevel: u, enabled: d = !0, unauthorizedBehaviour: f } } = e[l], p = e[l].attributes.unauthorizedPageRedirect;
40
- if (!d && a) return c;
45
+ if (!d && a) return s;
41
46
  p &&= n(p) ? p : o(e, t, p, !0);
42
47
  let m = o(e, t, l), h = Object.keys(m).map((e) => ({
43
48
  pageId: l,
@@ -47,11 +52,11 @@ var s = (e, t, n = !0) => !e || !n || t === void 0 || t && e === "authenticated"
47
52
  isRaw: `/${l}` === e,
48
53
  unauthorizedBehaviour: f,
49
54
  unauthorizedPageRedirect: p,
50
- hasAccess: s(u, r, a)
55
+ hasAccess: c(u, r, a)
51
56
  }));
52
- return [...c, ...h];
57
+ return [...s, ...h];
53
58
  }, []).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 (!l.find((e) => e.path === "*") && !c) {
59
+ if (!l.find((e) => e.path === "*") && !s) {
55
60
  let e = l.find((e) => e.path === "/" && e.hasAccess);
56
61
  e && e.unauthorizedBehaviour === "redirect" && e.unauthorizedPageRedirect && l.push({
57
62
  ...e,
@@ -63,7 +68,7 @@ var s = (e, t, n = !0) => !e || !n || t === void 0 || t && e === "authenticated"
63
68
  });
64
69
  }
65
70
  return l;
66
- }, l = (t, n, r) => {
71
+ }, u = (t, n, r) => {
67
72
  if (!n) return {
68
73
  action: {
69
74
  type: "accessDenied",
@@ -119,6 +124,6 @@ var s = (e, t, n = !0) => !e || !n || t === void 0 || t && e === "authenticated"
119
124
  },
120
125
  pathMatch: void 0
121
126
  };
122
- }, u = (e) => !e || typeof e != "string" ? [] : (e.match(/:[a-zA-Z0-9-_:*]+/gim) || []).map((e) => e.replace(":", ""));
127
+ }, d = (e) => !e || typeof e != "string" ? [] : (e.match(/:[a-zA-Z0-9-_:*]+/gim) || []).map((e) => e.replace(":", "")), f = (e) => d(i(e));
123
128
  //#endregion
124
- export { o as getPageFullPath, c as getPaths, u as getRouteParams, t as isAbsoluteUrl, s as isPageAuthored, l as matchRoutePath };
129
+ export { o as getPageFullPath, l as getPaths, d as getRouteParams, f as getSlugParams, t as isAbsoluteUrl, c as isPageAuthored, u as matchRoutePath, s as navigationTarget };
@@ -0,0 +1,14 @@
1
+ import { SchemaRaw } from '../../../../../types';
2
+ /** One change the fix made, keyed by the issue it settles. */
3
+ export type TSpaceFix = {
4
+ code: string;
5
+ elementId: string | null;
6
+ message: string;
7
+ };
8
+ /** What was changed, and the schema as it is now stored — `flat` as a list, the shape the live channel carries. */
9
+ export type TSpaceFixIssuesMutation = {
10
+ applied: TSpaceFix[];
11
+ schema: SchemaRaw;
12
+ };
13
+ declare const SpaceFixIssuesMutation: import('graphql').DocumentNode;
14
+ export default SpaceFixIssuesMutation;
@@ -0,0 +1,16 @@
1
+ import { gql as e } from "@apollo/client/core";
2
+ //#region src/network/graphql/builder/Mutations/Space/SpaceFixIssuesMutation.ts
3
+ var t = e`
4
+ mutation SpaceFixIssues($environment: String!) {
5
+ SpaceFixIssues(environment: $environment) {
6
+ applied {
7
+ code
8
+ elementId
9
+ message
10
+ }
11
+ schema
12
+ }
13
+ }
14
+ `;
15
+ //#endregion
16
+ export { t as default };
@@ -2,5 +2,9 @@ import { PluginRaw } from '../../../../../types';
2
2
  export type TSpaceUpdatePluginMutation = {
3
3
  plugins: PluginRaw[];
4
4
  };
5
+ /**
6
+ * A plugin's address, its settings, or both — whichever is sent. What is left out is kept: saving the settings does not
7
+ * move the plugin, and a new version does not forget how the space configured it.
8
+ */
5
9
  declare const SpaceUpdatePluginMutation: import('graphql').DocumentNode;
6
10
  export default SpaceUpdatePluginMutation;
@@ -1,8 +1,8 @@
1
1
  import { gql as e } from "@apollo/client/core";
2
2
  //#region src/network/graphql/builder/Mutations/Space/SpaceUpdatePluginMutation.ts
3
3
  var t = e`
4
- mutation SpaceUpdatePluginMutation($environment: String!, $pluginType: String!, $resource: String!) {
5
- SpaceUpdatePlugin(environment: $environment, pluginType: $pluginType, resource: $resource) {
4
+ mutation SpaceUpdatePluginMutation($environment: String!, $pluginType: String!, $resource: String, $settings: Json) {
5
+ SpaceUpdatePlugin(environment: $environment, pluginType: $pluginType, resource: $resource, settings: $settings) {
6
6
  plugins {
7
7
  type
8
8
  resource
@@ -7,6 +7,7 @@ var t = e`
7
7
  status
8
8
  output
9
9
  trace
10
+ steps
10
11
  }
11
12
  }
12
13
  `;
@@ -0,0 +1,3 @@
1
+ export type TSpaceRemoveFunctionsMutation = boolean;
2
+ declare const SpaceRemoveFunctionsMutation: import('graphql').DocumentNode;
3
+ export default SpaceRemoveFunctionsMutation;
@@ -0,0 +1,9 @@
1
+ import { gql as e } from "@apollo/client/core";
2
+ //#region src/network/graphql/builder/Mutations/Space/functions/SpaceRemoveFunctionsMutation.ts
3
+ var t = e`
4
+ mutation SpaceRemoveFunctionsMutation {
5
+ SpaceRemoveFunctions
6
+ }
7
+ `;
8
+ //#endregion
9
+ export { t as default };
@@ -0,0 +1,11 @@
1
+ import { FunctionsManifest, FunctionsProblem, FunctionsRefusal } from '../../../../../../types';
2
+ /** As GraphQL carries it: one shape with every field, `ok` saying which of them mean something. */
3
+ export type TSpaceSaveFunctionsMutation = {
4
+ ok: boolean;
5
+ version: string | null;
6
+ manifest: FunctionsManifest | null;
7
+ problems: FunctionsProblem[];
8
+ refusal: FunctionsRefusal | null;
9
+ };
10
+ declare const SpaceSaveFunctionsMutation: import('graphql').DocumentNode;
11
+ export default SpaceSaveFunctionsMutation;
@@ -0,0 +1,24 @@
1
+ import { gql as e } from "@apollo/client/core";
2
+ //#region src/network/graphql/builder/Mutations/Space/functions/SpaceSaveFunctionsMutation.ts
3
+ var t = e`
4
+ mutation SpaceSaveFunctionsMutation($files: Json!, $base: String) {
5
+ SpaceSaveFunctions(files: $files, base: $base) {
6
+ ok
7
+ version
8
+ manifest
9
+ problems {
10
+ file
11
+ line
12
+ column
13
+ message
14
+ }
15
+ refusal {
16
+ status
17
+ error
18
+ limit
19
+ }
20
+ }
21
+ }
22
+ `;
23
+ //#endregion
24
+ export { t as default };
@@ -0,0 +1,4 @@
1
+ import { ActionRunReport } from '../../../../../../types';
2
+ export type TSpaceTryFunctionMutation = ActionRunReport;
3
+ declare const SpaceTryFunctionMutation: import('graphql').DocumentNode;
4
+ export default SpaceTryFunctionMutation;
@@ -0,0 +1,15 @@
1
+ import { gql as e } from "@apollo/client/core";
2
+ //#region src/network/graphql/builder/Mutations/Space/functions/SpaceTryFunctionMutation.ts
3
+ var t = e`
4
+ mutation SpaceTryFunctionMutation($task: String!, $params: Json) {
5
+ SpaceTryFunction(task: $task, params: $params) {
6
+ runId
7
+ status
8
+ output
9
+ trace
10
+ steps
11
+ }
12
+ }
13
+ `;
14
+ //#endregion
15
+ export { t as default };
@@ -0,0 +1,2 @@
1
+ declare const SpaceRemoveRuntimeMutation: import('graphql').DocumentNode;
2
+ export default SpaceRemoveRuntimeMutation;
@@ -0,0 +1,9 @@
1
+ import { gql as e } from "@apollo/client/core";
2
+ //#region src/network/graphql/builder/Mutations/Space/runtime/SpaceRemoveRuntimeMutation.ts
3
+ var t = e`
4
+ mutation SpaceRemoveRuntimeMutation {
5
+ SpaceRemoveRuntime
6
+ }
7
+ `;
8
+ //#endregion
9
+ export { t as default };
@@ -0,0 +1,2 @@
1
+ declare const SpaceRemoveRuntimeVariableMutation: import('graphql').DocumentNode;
2
+ export default SpaceRemoveRuntimeVariableMutation;
@@ -0,0 +1,9 @@
1
+ import { gql as e } from "@apollo/client/core";
2
+ //#region src/network/graphql/builder/Mutations/Space/runtime/SpaceRemoveRuntimeVariableMutation.ts
3
+ var t = e`
4
+ mutation SpaceRemoveRuntimeVariableMutation($name: String!) {
5
+ SpaceRemoveRuntimeVariable(name: $name)
6
+ }
7
+ `;
8
+ //#endregion
9
+ export { t as default };
@@ -0,0 +1,2 @@
1
+ declare const SpaceSetRuntimeSizeMutation: import('graphql').DocumentNode;
2
+ export default SpaceSetRuntimeSizeMutation;
@@ -0,0 +1,9 @@
1
+ import { gql as e } from "@apollo/client/core";
2
+ //#region src/network/graphql/builder/Mutations/Space/runtime/SpaceSetRuntimeSizeMutation.ts
3
+ var t = e`
4
+ mutation SpaceSetRuntimeSizeMutation($environment: String!, $size: String!) {
5
+ SpaceSetRuntimeSize(environment: $environment, size: $size)
6
+ }
7
+ `;
8
+ //#endregion
9
+ export { t as default };
@@ -0,0 +1,2 @@
1
+ declare const SpaceSetRuntimeVariableMutation: import('graphql').DocumentNode;
2
+ export default SpaceSetRuntimeVariableMutation;
@@ -0,0 +1,9 @@
1
+ import { gql as e } from "@apollo/client/core";
2
+ //#region src/network/graphql/builder/Mutations/Space/runtime/SpaceSetRuntimeVariableMutation.ts
3
+ var t = e`
4
+ mutation SpaceSetRuntimeVariableMutation($name: String!, $value: String!) {
5
+ SpaceSetRuntimeVariable(name: $name, value: $value)
6
+ }
7
+ `;
8
+ //#endregion
9
+ export { t as default };
@@ -0,0 +1,2 @@
1
+ declare const SpaceStartRuntimeMutation: import('graphql').DocumentNode;
2
+ export default SpaceStartRuntimeMutation;
@@ -0,0 +1,9 @@
1
+ import { gql as e } from "@apollo/client/core";
2
+ //#region src/network/graphql/builder/Mutations/Space/runtime/SpaceStartRuntimeMutation.ts
3
+ var t = e`
4
+ mutation SpaceStartRuntimeMutation($environment: String!) {
5
+ SpaceStartRuntime(environment: $environment)
6
+ }
7
+ `;
8
+ //#endregion
9
+ export { t as default };
@@ -0,0 +1,2 @@
1
+ declare const SpaceStopRuntimeMutation: import('graphql').DocumentNode;
2
+ export default SpaceStopRuntimeMutation;
@@ -0,0 +1,9 @@
1
+ import { gql as e } from "@apollo/client/core";
2
+ //#region src/network/graphql/builder/Mutations/Space/runtime/SpaceStopRuntimeMutation.ts
3
+ var t = e`
4
+ mutation SpaceStopRuntimeMutation($environment: String!) {
5
+ SpaceStopRuntime(environment: $environment)
6
+ }
7
+ `;
8
+ //#endregion
9
+ export { t as default };
@@ -0,0 +1,2 @@
1
+ declare const SpaceAddVisitorMutation: import('graphql').DocumentNode;
2
+ export default SpaceAddVisitorMutation;
@@ -0,0 +1,11 @@
1
+ import { gql as e } from "@apollo/client/core";
2
+ //#region src/network/graphql/builder/Mutations/Space/visitors/SpaceAddVisitorMutation.ts
3
+ var t = e`
4
+ mutation SpaceAddVisitorMutation($email: String!, $role: String!) {
5
+ SpaceAddVisitor(email: $email, role: $role) {
6
+ id
7
+ }
8
+ }
9
+ `;
10
+ //#endregion
11
+ export { t as default };
@@ -0,0 +1,2 @@
1
+ declare const SpaceRemoveVisitorMutation: import('graphql').DocumentNode;
2
+ export default SpaceRemoveVisitorMutation;
@@ -0,0 +1,11 @@
1
+ import { gql as e } from "@apollo/client/core";
2
+ //#region src/network/graphql/builder/Mutations/Space/visitors/SpaceRemoveVisitorMutation.ts
3
+ var t = e`
4
+ mutation SpaceRemoveVisitorMutation($id: Int!) {
5
+ SpaceRemoveVisitor(id: $id) {
6
+ id
7
+ }
8
+ }
9
+ `;
10
+ //#endregion
11
+ export { t as default };