@plitzi/sdk-shared 0.37.9 → 0.38.1
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.
- package/CHANGELOG.md +601 -0
- package/dist/actions/index.d.ts +1 -1
- package/dist/actions/index.mjs +3 -3
- package/dist/actions/triggerParams.mjs +7 -6
- package/dist/actions/validateDocument.d.ts +3 -0
- package/dist/actions/validateDocument.mjs +89 -88
- package/dist/authoring/elementCallbacks.d.ts +65 -0
- package/dist/authoring/elementCallbacks.mjs +72 -8
- package/dist/authoring/index.mjs +3 -3
- package/dist/builder/contexts/BuilderContext.d.ts +18 -7
- package/dist/connectors/index.d.ts +1 -1
- package/dist/connectors/index.mjs +2 -2
- package/dist/connectors/validateManifest.d.ts +3 -0
- package/dist/connectors/validateManifest.mjs +77 -76
- package/dist/dataSource/computed.mjs +25 -29
- package/dist/dataSource/globalSources.d.ts +15 -0
- package/dist/dataSource/globalSources.mjs +13 -0
- package/dist/dataSource/index.d.ts +2 -0
- package/dist/dataSource/index.mjs +8 -7
- package/dist/devTools/utils/PlitziConsole.d.ts +9 -0
- package/dist/devTools/utils/PlitziConsole.mjs +27 -7
- package/dist/flags/flagsCookie.d.ts +26 -0
- package/dist/flags/flagsCookie.mjs +20 -0
- package/dist/flags/index.d.ts +3 -0
- package/dist/flags/index.mjs +4 -0
- package/dist/flags/resolveFlags.d.ts +60 -0
- package/dist/flags/resolveFlags.mjs +38 -0
- package/dist/flags/schemaFlag.d.ts +11 -0
- package/dist/flags/schemaFlag.mjs +9 -0
- package/dist/flags/useFlagResolution.d.ts +13 -0
- package/dist/flags/useFlagResolution.mjs +43 -0
- package/dist/helpers/eventTarget.d.ts +10 -0
- package/dist/helpers/eventTarget.mjs +4 -0
- package/dist/helpers/images.d.ts +18 -0
- package/dist/helpers/images.mjs +13 -0
- package/dist/helpers/index.d.ts +3 -0
- package/dist/helpers/index.mjs +21 -18
- package/dist/helpers/interval.d.ts +18 -0
- package/dist/helpers/interval.mjs +7 -0
- package/dist/helpers/isRecord.d.ts +2 -0
- package/dist/helpers/isRecord.mjs +4 -0
- package/dist/helpers/scroll.d.ts +42 -0
- package/dist/helpers/scroll.mjs +30 -0
- package/dist/helpers/twigWrapper/TemplateCache/TemplateCache.mjs +1 -1
- package/dist/helpers/twigWrapper/filters/filters.mjs +38 -2
- package/dist/history/describe.mjs +3 -1
- package/dist/history/diff.d.ts +1 -1
- package/dist/history/diff.mjs +1 -0
- package/dist/history/types.d.ts +1 -1
- package/dist/hooks/index.mjs +5 -5
- package/dist/index.d.ts +1 -0
- package/dist/index.mjs +90 -76
- package/dist/navigation/routes.mjs +6 -4
- package/dist/network/graphql/builder/Mutations/Space/SpaceAddSnippetMutation.d.ts +2 -0
- package/dist/network/graphql/builder/Mutations/Space/SpaceAddSnippetMutation.mjs +4 -0
- package/dist/network/graphql/builder/Mutations/Space/flags/SpacePublishFlagsMutation.d.ts +12 -0
- package/dist/network/graphql/builder/Mutations/Space/flags/SpacePublishFlagsMutation.mjs +4 -0
- package/dist/network/graphql/builder/Mutations/Space/flags/SpaceRemoveFlagMutation.d.ts +2 -0
- package/dist/network/graphql/builder/Mutations/Space/flags/SpaceRemoveFlagMutation.mjs +4 -0
- package/dist/network/graphql/builder/Mutations/Space/flags/SpaceSetFlagMutation.d.ts +3 -0
- package/dist/network/graphql/builder/Mutations/Space/flags/SpaceSetFlagMutation.mjs +4 -0
- package/dist/network/graphql/builder/Mutations/index.d.ts +5 -1
- package/dist/network/graphql/builder/Mutations/index.mjs +122 -116
- package/dist/network/graphql/builder/Queries/InitQuery.d.ts +3 -1
- package/dist/network/graphql/builder/Queries/InitQuery.mjs +1 -1
- package/dist/network/graphql/builder/Queries/Space/SpaceIssuesQuery.d.ts +16 -2
- package/dist/network/graphql/builder/Queries/Space/SpaceIssuesQuery.mjs +1 -1
- package/dist/network/graphql/builder/Queries/index.d.ts +1 -1
- package/dist/network/graphql/sdk/Queries/InitQuery.d.ts +1 -1
- package/dist/network/graphql/sdk/Queries/InitQuery.mjs +1 -1
- package/dist/network/index.mjs +8 -7
- package/dist/network/spaceEvents.d.ts +12 -6
- package/dist/network/spaceEvents.mjs +153 -154
- package/dist/realtime/client.mjs +123 -95
- package/dist/realtime/topics.mjs +18 -17
- package/dist/schema/anchor.d.ts +8 -0
- package/dist/schema/anchor.mjs +4 -0
- package/dist/schema/index.d.ts +2 -0
- package/dist/schema/index.mjs +6 -4
- package/dist/schema/serverElements.d.ts +6 -2
- package/dist/schema/serverElements.mjs +17 -16
- package/dist/schema/snippet.d.ts +7 -0
- package/dist/schema/snippet.mjs +9 -0
- package/dist/schema/wire.d.ts +11 -0
- package/dist/schema/wire.mjs +27 -0
- package/dist/server/actions/useImagesSync.d.ts +9 -0
- package/dist/server/actions/useImagesSync.mjs +7 -0
- package/dist/server/rsc/refreshRsc.mjs +8 -8
- package/dist/source/snapshot.mjs +23 -22
- package/dist/state/paintedState.mjs +13 -12
- package/dist/state/runtimeStatePersist.mjs +50 -49
- package/dist/store/index.d.ts +45 -45
- package/dist/style/breakpoints.d.ts +11 -0
- package/dist/style/breakpoints.mjs +8 -0
- package/dist/style/displayModes.d.ts +5 -0
- package/dist/style/displayModes.mjs +8 -0
- package/dist/style/fontValidation.mjs +52 -51
- package/dist/style/fonts.d.ts +0 -12
- package/dist/style/fonts.mjs +11 -11
- package/dist/style/index.d.ts +4 -0
- package/dist/style/index.mjs +11 -7
- package/dist/style/layoutGrid.d.ts +30 -0
- package/dist/style/layoutGrid.mjs +33 -0
- package/dist/style/notifications.d.ts +52 -0
- package/dist/style/notifications.mjs +55 -0
- package/dist/style/snippetStyle.d.ts +23 -0
- package/dist/style/snippetStyle.mjs +32 -0
- package/dist/style/styleConstants.d.ts +7 -2
- package/dist/style/styleConstants.mjs +10 -0
- package/dist/style/styleStates.d.ts +11 -2
- package/dist/style/styleStates.mjs +12 -9
- package/dist/theme/ThemeProvider.mjs +20 -20
- package/dist/types/CommonTypes.d.ts +3 -0
- package/dist/types/DevToolsTypes.d.ts +29 -4
- package/dist/types/EventBridgeTypes.d.ts +2 -2
- package/dist/types/PluginTypes.d.ts +1 -1
- package/dist/types/ResourceTypes.d.ts +2 -2
- package/dist/types/SchemaTypes.d.ts +62 -3
- package/dist/types/ServerTypes.d.ts +47 -0
- package/dist/types/SnippetTypes.d.ts +28 -0
- package/dist/types/StoreTypes.d.ts +25 -0
- package/dist/types/StyleTypes.d.ts +2 -1
- package/dist/types/StyleTypes.mjs +2 -2
- package/dist/types/index.d.ts +1 -1
- package/dist/types/index.mjs +2 -2
- package/dist/websockets/RTCodec.d.ts +1 -0
- package/dist/websockets/RTCodec.mjs +14 -12
- package/dist/websockets/index.mjs +2 -2
- package/package.json +115 -19
- package/tailwind.config.js +1 -6
- package/vite.config.ts +16 -4
- package/dist/network/graphql/builder/Mutations/Space/SpaceAddTemplateMutation.d.ts +0 -2
- package/dist/network/graphql/builder/Mutations/Space/SpaceAddTemplateMutation.mjs +0 -4
- package/dist/types/TemplateTypes.d.ts +0 -20
- /package/dist/types/{TemplateTypes.mjs → SnippetTypes.mjs} +0 -0
package/dist/index.mjs
CHANGED
|
@@ -1,76 +1,90 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import v from "./
|
|
11
|
-
import
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import N from "./
|
|
18
|
-
import
|
|
19
|
-
import
|
|
20
|
-
import
|
|
21
|
-
import
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import
|
|
28
|
-
import
|
|
29
|
-
import ce from "./
|
|
30
|
-
import
|
|
31
|
-
import
|
|
32
|
-
import
|
|
33
|
-
import
|
|
34
|
-
import
|
|
35
|
-
import
|
|
36
|
-
import
|
|
37
|
-
import {
|
|
38
|
-
import
|
|
39
|
-
import Te from "./
|
|
40
|
-
import
|
|
41
|
-
import
|
|
42
|
-
import
|
|
43
|
-
import {
|
|
44
|
-
import
|
|
45
|
-
import
|
|
46
|
-
import {
|
|
47
|
-
import
|
|
48
|
-
import
|
|
49
|
-
import {
|
|
50
|
-
import {
|
|
51
|
-
import {
|
|
52
|
-
import ut from "./
|
|
53
|
-
import {
|
|
54
|
-
import {
|
|
55
|
-
import {
|
|
56
|
-
import
|
|
57
|
-
import
|
|
58
|
-
import {
|
|
59
|
-
import
|
|
60
|
-
import
|
|
61
|
-
import
|
|
62
|
-
import
|
|
63
|
-
import
|
|
64
|
-
import
|
|
65
|
-
import {
|
|
66
|
-
import
|
|
67
|
-
import {
|
|
68
|
-
import
|
|
69
|
-
import
|
|
70
|
-
import
|
|
71
|
-
import
|
|
72
|
-
import
|
|
73
|
-
import
|
|
74
|
-
import
|
|
75
|
-
import
|
|
76
|
-
|
|
1
|
+
import { isRecord as e } from "./helpers/isRecord.mjs";
|
|
2
|
+
import { authFailureFromResponse as t, onAuthFailure as n, reportAuthFailure as r, sameRegistrableDomain as i } from "./auth/failureChannel.mjs";
|
|
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 { isConnectorManifestDraft as j, validateConnectorManifest as M } from "./connectors/validateManifest.mjs";
|
|
17
|
+
import { COMPUTED_GLOBALS as N, GLOBAL_SOURCES as P } from "./dataSource/globalSources.mjs";
|
|
18
|
+
import { evaluateComputed as F, liveSources as I } from "./dataSource/computed.mjs";
|
|
19
|
+
import L from "./helpers/fetchManifest.mjs";
|
|
20
|
+
import R from "./helpers/generateFacade.mjs";
|
|
21
|
+
import z from "./helpers/syntaxHighlight.mjs";
|
|
22
|
+
import { cookieFromHeader as B, documentCookies as V } from "./helpers/cookies.mjs";
|
|
23
|
+
import { elementOf as H, isElementTarget as U, isNodeTarget as W, nodeOf as G } from "./helpers/eventTarget.mjs";
|
|
24
|
+
import { formatDate as K, formatDateUTC as q, formatFromNow as J, formatUTCToLocal as Y, getDurationMs as X, isValidFormat as Z, parseDate as Q, toUnixSeconds as $ } from "./helpers/formatDate.mjs";
|
|
25
|
+
import { INTERVAL_TRIGGER as ee, MIN_INTERVAL_MS as te, intervalOf as ne } from "./helpers/interval.mjs";
|
|
26
|
+
import { isDate as re } from "./helpers/isDate.mjs";
|
|
27
|
+
import { isUserEdit as ie } from "./helpers/reducerOrigin.mjs";
|
|
28
|
+
import { evaluateRuleGroup as ae } from "./helpers/ruleEvaluator.mjs";
|
|
29
|
+
import { ParamsFromURL as oe, delay as se, emptyObject as ce, getDisplayName as le, getKeyDecoded as ue, getPathsFromObeject as de, hexToRGB as fe, isInViewport as pe, makeId as me } from "./helpers/utils.mjs";
|
|
30
|
+
import { disableReactDevTools as he } from "./helpers/security.mjs";
|
|
31
|
+
import ge, { utilityOptions as _e } from "./dataSource/utility/index.mjs";
|
|
32
|
+
import ve from "./dataSource/getBindingsDetails.mjs";
|
|
33
|
+
import ye from "./dataSource/helpers/getSourceName.mjs";
|
|
34
|
+
import be from "./dataSource/hooks/useRegisterSource.mjs";
|
|
35
|
+
import xe from "./dataSource/resolveVariables.mjs";
|
|
36
|
+
import Se from "./devTools/DevToolsContext.mjs";
|
|
37
|
+
import { debugCookieName as Ce } from "./devTools/debugCookie.mjs";
|
|
38
|
+
import we from "./devTools/interactionLog.mjs";
|
|
39
|
+
import Te, { createStoreDevToolsLogger as Ee, pConsole as De } from "./devTools/utils/PlitziConsole.mjs";
|
|
40
|
+
import Oe from "./elements/ComponentContext.mjs";
|
|
41
|
+
import { FLAG_GATE_PATTERN as ke, FLAG_NAME_PATTERN as Ae, isFlagName as je, isSchemaFlag as Me } from "./flags/schemaFlag.mjs";
|
|
42
|
+
import { flagsCookieName as Ne, forcedFlagsFromCookies as Pe, parseFlagList as Fe, serializeFlagList as Ie, withForcedFlag as Le, writeForcedFlags as Re } from "./flags/flagsCookie.mjs";
|
|
43
|
+
import { FLAG_LAYERS as ze, flagUserFromSSR as Be, flagValues as Ve, hasConditions as He, passesFlagGate as Ue, resolveFlags as We, undeclaredFlagOverrides as Ge } from "./flags/resolveFlags.mjs";
|
|
44
|
+
import Ke from "./hooks/useStableValue.mjs";
|
|
45
|
+
import { describeChange as qe, fieldChanges as Je, uniqueLines as Ye } from "./history/describe.mjs";
|
|
46
|
+
import { diffSchema as Xe, diffStyle as Ze, jsonCopy as Qe, sameValue as $e } from "./history/diff.mjs";
|
|
47
|
+
import et from "./hooks/useFontHead.mjs";
|
|
48
|
+
import tt from "./hooks/useNetwork.mjs";
|
|
49
|
+
import nt, { PlitziServiceContext as rt, PlitziServiceProvider as it } from "./hooks/usePlitziServiceContext.mjs";
|
|
50
|
+
import { WHILE_RUNNING_MODES as at } from "./types/SchemaTypes.mjs";
|
|
51
|
+
import { StyleVariableCategory as ot, isStyleVariableCategory as st } from "./types/StyleTypes.mjs";
|
|
52
|
+
import ct, { EMPTY_STYLE_SCHEMA as lt, StyleBindingsAllowed as ut, baseDefaultValue as dt, inheritableAttributesBase as ft } from "./style/styleConstants.mjs";
|
|
53
|
+
import { DISPLAY_MODE_MIN_WIDTH as pt, displayModeAt as mt, displayModeWidthRem as ht } from "./style/breakpoints.mjs";
|
|
54
|
+
import { DISPLAY_MODES as gt, isDisplayMode as _t } from "./style/displayModes.mjs";
|
|
55
|
+
import { fontLinkAssets as vt } from "./style/fontAssets.mjs";
|
|
56
|
+
import { SYSTEM_FONTS as yt, availableFonts as bt, familiesInCss as xt, fontFamilyStack as St, fontUrlResolver as Ct, fontsToHead as wt, googleCss2Url as Tt, googleTextSubsetUrl as Et, isSafeFontUrl as Dt, primaryFamily as Ot } from "./style/fonts.mjs";
|
|
57
|
+
import { FontValidationError as kt, parseSpaceFont as At } from "./style/fontValidation.mjs";
|
|
58
|
+
import { fallbackForFamily as jt, fontsFromCss as Mt } from "./style/fontsFromCss.mjs";
|
|
59
|
+
import { LAYOUT_GRIDS as Nt, layoutGridCss as Pt, layoutGridLook as Ft } from "./style/layoutGrid.mjs";
|
|
60
|
+
import { RUNTIME_STYLE_ID as It, markStyleCache as Lt, styleCacheFromDocument as Rt, styleCacheTravelsInDocument as zt } from "./style/runtimeStyle.mjs";
|
|
61
|
+
import { mergeSnippetStyle as Bt, sameSelector as Vt, selectorsOf as Ht } from "./style/snippetStyle.mjs";
|
|
62
|
+
import { CURRENT_PAGE_SELECTOR as Ut, HIDDEN_CLASS as Wt, STYLE_STATES as Gt, STYLE_STATE_LABELS as Kt, inCascadeOrder as qt, isKnownState as Jt, isStartingState as Yt, stateSuffix as Xt } from "./style/styleStates.mjs";
|
|
63
|
+
import Zt from "./schema/SchemaContext.mjs";
|
|
64
|
+
import { ANCHOR_PATTERN as Qt, isAnchor as $t } from "./schema/anchor.mjs";
|
|
65
|
+
import { COMPONENT_PROPS_SOURCE as en, EMPTY_SCHEMA as tn, VARIABLE_REGEX as nn } from "./schema/schemaConstants.mjs";
|
|
66
|
+
import { findLayoutCycle as rn, resolveLayoutChain as an } from "./schema/layoutChain.mjs";
|
|
67
|
+
import { collectServerElements as on, hasServerElements as sn } from "./schema/serverElements.mjs";
|
|
68
|
+
import { isSnippet as cn } from "./schema/snippet.mjs";
|
|
69
|
+
import ln from "./network/NetworkContext.mjs";
|
|
70
|
+
import un from "./network/NetworkInternalContext.mjs";
|
|
71
|
+
import { elementFromWire as dn, schemaFromWire as fn, schemaToWire as pn } from "./schema/wire.mjs";
|
|
72
|
+
import { SpaceEvents as mn, spaceEventSchemas as hn, validateSpaceEvent as gn } from "./network/spaceEvents.mjs";
|
|
73
|
+
import _n from "./network/graphql/builder/Mutations/index.mjs";
|
|
74
|
+
import vn from "./network/graphql/builder/Queries/index.mjs";
|
|
75
|
+
import yn from "./network/graphql/builder/Subscriptions/index.mjs";
|
|
76
|
+
import bn from "./network/graphql/sdk/Mutations/index.mjs";
|
|
77
|
+
import xn from "./network/graphql/sdk/Queries/index.mjs";
|
|
78
|
+
import Sn, { RTEvent as Cn, RTEventCloseCode as wn, getInstance as Tn, isRTEvent as En, isRTEventCloseCode as Dn, setInstance as On } from "./websockets/RTCodec.mjs";
|
|
79
|
+
import { THEME_CLASSES as kn, THEME_COOKIE_NAME as An, applyThemeClass as jn, isTheme as Mn, readThemeCookie as Nn, themeFromCookies as Pn, writeThemeCookie as Fn } from "./theme/themeCookie.mjs";
|
|
80
|
+
import In, { createThemeState as Ln, createThemeStore as Rn, resolveScheme as zn, setAreaTheme as Bn, setMachineScheme as Vn, setThemeMode as Hn, themeFor as Un } from "./theme/themeStore.mjs";
|
|
81
|
+
import { useThemeStore as Wn } from "./theme/ThemeScope.mjs";
|
|
82
|
+
import Gn from "./theme/ThemeProvider.mjs";
|
|
83
|
+
import Kn, { SPACE_THEME_AREA as qn } from "./theme/useTheme.mjs";
|
|
84
|
+
import Jn from "./server/actions/useActionsSync.mjs";
|
|
85
|
+
import Yn, { currentRscLocation as Xn, rscDataPath as Zn } from "./server/rsc/refreshRsc.mjs";
|
|
86
|
+
import Qn from "./server/rsc/useRscRefresh.mjs";
|
|
87
|
+
import $n from "./server/rsc/useRscSync.mjs";
|
|
88
|
+
import { PAINTED_STATE_BUDGET as er, clearPaintedEntry as tr, paintedEntryFromCookies as nr, paintedKeys as rr, paintedStateCookieName as ir, paintedStateFor as ar, pickPainted as or, readPaintedEntry as sr, writePaintedEntry as cr } from "./state/paintedState.mjs";
|
|
89
|
+
import { runtimeStatePersist as lr, stateOwner as ur } from "./state/runtimeStatePersist.mjs";
|
|
90
|
+
export { Qt as ANCHOR_PATTERN, x as BODYLESS_METHODS, y as BuilderContext, _n as BuilderMutations, vn as BuilderQueries, en as COMPONENT_PROPS_SOURCE, N as COMPUTED_GLOBALS, S as CONNECTOR_HTTP_METHODS, Ut as CURRENT_PAGE_SELECTOR, Oe as ComponentContext, C as DEFAULT_READ_ENDPOINT, gt as DISPLAY_MODES, pt as DISPLAY_MODE_MIN_WIDTH, Se as DevToolsContext, w as EMPTY_RESPONSE_METHODS, tn as EMPTY_SCHEMA, lt as EMPTY_STYLE_SCHEMA, ke as FLAG_GATE_PATTERN, ze as FLAG_LAYERS, Ae as FLAG_NAME_PATTERN, kt as FontValidationError, P as GLOBAL_SOURCES, Wt as HIDDEN_CLASS, ee as INTERVAL_TRIGGER, Nt as LAYOUT_GRIDS, m as MAX_PARAM_PASSES, te as MIN_INTERVAL_MS, ln as NetworkContext, un as NetworkInternalContext, er as PAINTED_STATE_BUDGET, oe as ParamsFromURL, Te as PlitziConsole, rt as PlitziServiceContext, it as PlitziServiceProvider, T as READ_ENDPOINT_NAMES, Sn as RTCodec, Cn as RTEvent, wn as RTEventCloseCode, It as RUNTIME_STYLE_ID, qn as SPACE_THEME_AREA, Gt as STYLE_STATES, Kt as STYLE_STATE_LABELS, yt as SYSTEM_FONTS, Zt as SchemaContext, bn as SdkMutations, xn as SdkQueries, yn as SpaceEventSubscription, mn as SpaceEvents, ut as StyleBindingsAllowed, ot as StyleVariableCategory, kn as THEME_CLASSES, An as THEME_COOKIE_NAME, Gn as ThemeProvider, nn as VARIABLE_REGEX, a as VISITOR_NAME, at as WHILE_RUNNING_MODES, E as WRITE_ENDPOINT_NAMES, jn as applyThemeClass, t as authFailureFromResponse, bt as availableFonts, dt as baseDefaultValue, o as checkVisitorRoles, tr as clearPaintedEntry, on as collectServerElements, k as connectorPresets, D as connectorTokens, b as contexts, B as cookieFromHeader, Ee as createStoreDevToolsLogger, Ln as createThemeState, Rn as createThemeStore, Xn as currentRscLocation, Ce as debugCookieName, se as delay, qe as describeChange, Xe as diffSchema, Ze as diffStyle, he as disableReactDevTools, mt as displayModeAt, ht as displayModeWidthRem, V as documentCookies, dn as elementFromWire, H as elementOf, A as emptyManifest, ce as emptyObject, F as evaluateComputed, ae as evaluateRuleGroup, jt as fallbackForFamily, xt as familiesInCss, L as fetchManifest, Je as fieldChanges, c as filters, rn as findLayoutCycle, Be as flagUserFromSSR, Ve as flagValues, Ne as flagsCookieName, St as fontFamilyStack, vt as fontLinkAssets, Ct as fontUrlResolver, Mt as fontsFromCss, wt as fontsToHead, Pe as forcedFlagsFromCookies, K as formatDate, q as formatDateUTC, J as formatFromNow, Y as formatUTCToLocal, R as generateFacade, ve as getBindingsDetails, O as getConnectorTokens, le as getDisplayName, X as getDurationMs, Tn as getInstance, ue as getKeyDecoded, de as getPathsFromObeject, ye as getSourceName, Tt as googleCss2Url, Et as googleTextSubsetUrl, He as hasConditions, sn as hasServerElements, f as hasTemplateSyntax, p as hasValidToken, fe as hexToRGB, qt as inCascadeOrder, ft as inheritableAttributesBase, g as inspectTemplate, ne as intervalOf, $t as isAnchor, j as isConnectorManifestDraft, re as isDate, _t as isDisplayMode, U as isElementTarget, je as isFlagName, pe as isInViewport, we as isInteractionFlow, Jt as isKnownState, W as isNodeTarget, En as isRTEvent, Dn as isRTEventCloseCode, e as isRecord, Dt as isSafeFontUrl, Me as isSchemaFlag, cn as isSnippet, Yt as isStartingState, st as isStyleVariableCategory, Mn as isTheme, ie as isUserEdit, Z as isValidFormat, Qe as jsonCopy, Pt as layoutGridCss, Ft as layoutGridLook, I as liveSources, me as makeId, Lt as markStyleCache, Bt as mergeSnippetStyle, G as nodeOf, n as onAuthFailure, De as pConsole, nr as paintedEntryFromCookies, rr as paintedKeys, ir as paintedStateCookieName, ar as paintedStateFor, Q as parseDate, Fe as parseFlagList, At as parseSpaceFont, Ue as passesFlagGate, or as pickPainted, Ot as primaryFamily, l as processTwig, u as processTwigParam, d as processTwigValue, sr as readPaintedEntry, Nn as readThemeCookie, Yn as refreshRsc, r as reportAuthFailure, We as resolveFlags, an as resolveLayoutChain, zn as resolveScheme, h as resolveStepParam, xe as resolveVariables, Zn as rscDataPath, lr as runtimeStatePersist, i as sameRegistrableDomain, Vt as sameSelector, $e as sameValue, fn as schemaFromWire, pn as schemaToWire, Ht as selectorsOf, Ie as serializeFlagList, Bn as setAreaTheme, On as setInstance, Vn as setMachineScheme, Hn as setThemeMode, hn as spaceEventSchemas, ur as stateOwner, Xt as stateSuffix, Rt as styleCacheFromDocument, zt as styleCacheTravelsInDocument, ct as styleConstants, z as syntaxHighlight, _ as templatePaths, v as templateRootNames, Un as themeFor, Pn as themeFromCookies, In as themeStore, $ as toUnixSeconds, Ge as undeclaredFlagOverrides, Ye as uniqueLines, Jn as useActionsSync, et as useFontHead, tt as useNetwork, nt as usePlitziServiceContext, be as useRegisterSource, Qn as useRscRefresh, $n as useRscSync, Ke as useStableValue, Kn as useTheme, Wn as useThemeStore, ge as utility, _e as utilityOptions, M as validateConnectorManifest, gn as validateSpaceEvent, s as visitorAccess, Le as withForcedFlag, Re as writeForcedFlags, cr as writePaintedEntry, Fn as writeThemeCookie };
|
|
@@ -35,10 +35,12 @@ function o(e, t, n, o = !1) {
|
|
|
35
35
|
};
|
|
36
36
|
}
|
|
37
37
|
var s = (e, t, n) => {
|
|
38
|
-
let r =
|
|
39
|
-
if (
|
|
40
|
-
let
|
|
41
|
-
|
|
38
|
+
let r = n.indexOf("#");
|
|
39
|
+
if (r > 0) return `${s(e, t, n.slice(0, r))}${n.slice(r)}`;
|
|
40
|
+
let i = e[n];
|
|
41
|
+
if (!i) return n;
|
|
42
|
+
let { slug: a, default: c } = i.attributes;
|
|
43
|
+
return typeof a == "string" ? o(e, t, n, !0) : c ? "/" : `/${n}`;
|
|
42
44
|
}, 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
45
|
let l = Object.keys(e).reduce((s, l) => {
|
|
44
46
|
let { attributes: { accessLevel: u, enabled: d = !0, unauthorizedBehaviour: f } } = e[l], p = e[l].attributes.unauthorizedPageRedirect;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const SpaceAddSnippetMutation = "\n mutation SpaceAddSnippetMutation(\n $environment: String!\n $element: Json!\n $style: Json\n $dropPosition: String!\n $to: String!\n $initialItems: [Json]!\n $variables: [SpaceVariableInput]\n ) {\n SpaceAddSnippet(\n environment: $environment\n element: $element\n style: $style\n dropPosition: $dropPosition\n to: $to\n initialItems: $initialItems\n variables: $variables\n ) {\n id\n definition {\n label\n type\n initialState\n styleSelectors\n bindings\n interactions\n parentId\n rootId\n items\n }\n attributes\n }\n }\n";
|
|
2
|
+
export default SpaceAddSnippetMutation;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
//#region src/network/graphql/builder/Mutations/Space/SpaceAddSnippetMutation.ts
|
|
2
|
+
var e = "\n mutation SpaceAddSnippetMutation(\n $environment: String!\n $element: Json!\n $style: Json\n $dropPosition: String!\n $to: String!\n $initialItems: [Json]!\n $variables: [SpaceVariableInput]\n ) {\n SpaceAddSnippet(\n environment: $environment\n element: $element\n style: $style\n dropPosition: $dropPosition\n to: $to\n initialItems: $initialItems\n variables: $variables\n ) {\n id\n definition {\n label\n type\n initialState\n styleSelectors\n bindings\n interactions\n parentId\n rootId\n items\n }\n attributes\n }\n }\n";
|
|
3
|
+
//#endregion
|
|
4
|
+
export { e as default };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export type TSpacePublishFlagsMutation = {
|
|
2
|
+
environment: string;
|
|
3
|
+
/** The content's hash: what every cache of the environment's pages is keyed by. */
|
|
4
|
+
hash: string;
|
|
5
|
+
publishedAt: string;
|
|
6
|
+
};
|
|
7
|
+
/**
|
|
8
|
+
* Publishes the draft's flags to an environment, and only them. Flags are not part of a snapshot — an environment has
|
|
9
|
+
* one set, shared by every revision it serves — so this makes no revision: the pages the environment serves now switch.
|
|
10
|
+
*/
|
|
11
|
+
declare const SpacePublishFlagsMutation = "\n mutation SpacePublishFlagsMutation($environment: String!, $description: String!) {\n SpacePublishFlags(environment: $environment, description: $description) {\n environment\n hash\n publishedAt\n }\n }\n";
|
|
12
|
+
export default SpacePublishFlagsMutation;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
//#region src/network/graphql/builder/Mutations/Space/flags/SpacePublishFlagsMutation.ts
|
|
2
|
+
var e = "\n mutation SpacePublishFlagsMutation($environment: String!, $description: String!) {\n SpacePublishFlags(environment: $environment, description: $description) {\n environment\n hash\n publishedAt\n }\n }\n";
|
|
3
|
+
//#endregion
|
|
4
|
+
export { e as default };
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
//#region src/network/graphql/builder/Mutations/Space/flags/SpaceRemoveFlagMutation.ts
|
|
2
|
+
var e = "\n mutation SpaceRemoveFlagMutation($environment: String!, $name: String!) {\n SpaceRemoveFlag(environment: $environment, name: $name) {\n name\n }\n }\n";
|
|
3
|
+
//#endregion
|
|
4
|
+
export { e as default };
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
/** Declares a feature flag, or changes one: a flag is keyed by its name, so the two are the same write. */
|
|
2
|
+
declare const SpaceSetFlagMutation = "\n mutation SpaceSetFlagMutation($environment: String!, $name: String!, $flag: JSON!) {\n SpaceSetFlag(environment: $environment, name: $name, flag: $flag) {\n name\n flag\n }\n }\n";
|
|
3
|
+
export default SpaceSetFlagMutation;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
//#region src/network/graphql/builder/Mutations/Space/flags/SpaceSetFlagMutation.ts
|
|
2
|
+
var e = "\n mutation SpaceSetFlagMutation($environment: String!, $name: String!, $flag: JSON!) {\n SpaceSetFlag(environment: $environment, name: $name, flag: $flag) {\n name\n flag\n }\n }\n";
|
|
3
|
+
//#endregion
|
|
4
|
+
export { e as default };
|
|
@@ -16,6 +16,7 @@ import { TSpaceUpdateComponentMutation } from './Space/components/SpaceUpdateCom
|
|
|
16
16
|
import { TSpaceAddConnectorMutation } from './Space/connectors/SpaceAddConnectorMutation';
|
|
17
17
|
import { TSpaceRemoveConnectorMutation } from './Space/connectors/SpaceRemoveConnectorMutation';
|
|
18
18
|
import { TSpaceUpdateConnectorMutation } from './Space/connectors/SpaceUpdateConnectorMutation';
|
|
19
|
+
import { TSpacePublishFlagsMutation } from './Space/flags/SpacePublishFlagsMutation';
|
|
19
20
|
import { TSpaceAddPageFolderMutation } from './Space/folders/SpaceAddPageFolderMutation';
|
|
20
21
|
import { TSpaceRemovePageFolderMutation } from './Space/folders/SpaceRemovePageFolderMutation';
|
|
21
22
|
import { TSpaceUpdatePageFolderMutation } from './Space/folders/SpaceUpdatePageFolderMutation';
|
|
@@ -49,6 +50,8 @@ export type BuilderMutationsMap = {
|
|
|
49
50
|
SpaceAddVariable: unknown;
|
|
50
51
|
SpaceUpdateVariable: unknown;
|
|
51
52
|
SpaceRemoveVariable: unknown;
|
|
53
|
+
SpaceSetFlag: unknown;
|
|
54
|
+
SpaceRemoveFlag: unknown;
|
|
52
55
|
SpaceAddElement: unknown;
|
|
53
56
|
SpaceUpdateElement: unknown;
|
|
54
57
|
SpaceRenameElement: TSpaceRenameElementMutation;
|
|
@@ -60,7 +63,7 @@ export type BuilderMutationsMap = {
|
|
|
60
63
|
SpaceUpdateComponent: TSpaceUpdateComponentMutation;
|
|
61
64
|
SpaceRemoveComponent: TSpaceRemoveComponentMutation;
|
|
62
65
|
SpaceDetachInstance: TSpaceDetachInstanceMutation;
|
|
63
|
-
|
|
66
|
+
SpaceAddSnippet: unknown;
|
|
64
67
|
SpaceAddPlugin: TSpaceAddPluginMutation;
|
|
65
68
|
SpaceUpdatePlugin: TSpaceUpdatePluginMutation;
|
|
66
69
|
SpaceRemovePlugin: unknown;
|
|
@@ -97,6 +100,7 @@ export type BuilderMutationsMap = {
|
|
|
97
100
|
SpaceRemoveRuntimeVariable: string[];
|
|
98
101
|
SpaceRemoveRuntime: boolean;
|
|
99
102
|
SpacePublish: TSpacePublishMutation;
|
|
103
|
+
SpacePublishFlags: TSpacePublishFlagsMutation;
|
|
100
104
|
SpaceFixIssues: TSpaceFixIssuesMutation;
|
|
101
105
|
SpaceDeploy: TSpaceDeployMutation;
|
|
102
106
|
SpaceUpdateSettings: unknown;
|
|
@@ -19,95 +19,100 @@ import _ from "./Space/connectors/SpaceUpdateConnectorMutation.mjs";
|
|
|
19
19
|
import v from "./Space/credentials/SpaceAddCredentialMutation.mjs";
|
|
20
20
|
import y from "./Space/credentials/SpaceRemoveCredentialMutation.mjs";
|
|
21
21
|
import b from "./Space/credentials/SpaceUpdateCredentialMutation.mjs";
|
|
22
|
-
import x from "./Space/
|
|
23
|
-
import S from "./Space/
|
|
24
|
-
import C from "./Space/
|
|
25
|
-
import w from "./Space/
|
|
26
|
-
import T from "./Space/
|
|
27
|
-
import E from "./Space/
|
|
28
|
-
import D from "./Space/functions/
|
|
29
|
-
import O from "./Space/
|
|
30
|
-
import k from "./Space/
|
|
31
|
-
import A from "./Space/
|
|
32
|
-
import j from "./Space/pages/
|
|
33
|
-
import M from "./Space/
|
|
34
|
-
import N from "./Space/
|
|
35
|
-
import P from "./Space/
|
|
36
|
-
import F from "./Space/
|
|
37
|
-
import I from "./Space/
|
|
38
|
-
import L from "./Space/
|
|
39
|
-
import R from "./Space/runtime/
|
|
40
|
-
import z from "./Space/runtime/
|
|
41
|
-
import B from "./Space/runtime/
|
|
42
|
-
import V from "./Space/
|
|
43
|
-
import H from "./Space/
|
|
44
|
-
import U from "./Space/
|
|
45
|
-
import W from "./Space/
|
|
46
|
-
import G from "./Space/
|
|
47
|
-
import K from "./Space/
|
|
48
|
-
import q from "./Space/
|
|
49
|
-
import J from "./Space/
|
|
50
|
-
import Y from "./Space/
|
|
51
|
-
import X from "./Space/
|
|
52
|
-
import Z from "./Space/
|
|
53
|
-
import Q from "./Space/
|
|
54
|
-
import $ from "./Space/
|
|
55
|
-
import ee from "./Space/
|
|
56
|
-
import te from "./Space/
|
|
57
|
-
import ne from "./Space/
|
|
58
|
-
import re from "./Space/
|
|
59
|
-
import ie from "./Space/
|
|
60
|
-
import ae from "./Space/
|
|
61
|
-
import oe from "./Space/
|
|
62
|
-
import se from "./Space/
|
|
63
|
-
import ce from "./Space/
|
|
64
|
-
import le from "./
|
|
65
|
-
import ue from "./
|
|
66
|
-
import de from "./
|
|
67
|
-
import fe from "./Style/
|
|
68
|
-
import pe from "./Style/
|
|
69
|
-
import me from "./Style/
|
|
70
|
-
import he from "./Style/selectors/
|
|
71
|
-
import ge from "./Style/
|
|
72
|
-
import _e from "./Style/
|
|
73
|
-
import ve from "./Style/
|
|
74
|
-
import ye from "./Style/
|
|
75
|
-
import be from "./Style/
|
|
76
|
-
import xe from "./Style/
|
|
77
|
-
import Se from "./Style/
|
|
78
|
-
import Ce from "./Style/
|
|
22
|
+
import x from "./Space/flags/SpacePublishFlagsMutation.mjs";
|
|
23
|
+
import S from "./Space/flags/SpaceRemoveFlagMutation.mjs";
|
|
24
|
+
import C from "./Space/flags/SpaceSetFlagMutation.mjs";
|
|
25
|
+
import w from "./Space/folders/SpaceAddPageFolderMutation.mjs";
|
|
26
|
+
import T from "./Space/folders/SpaceRemovePageFolderMutation.mjs";
|
|
27
|
+
import E from "./Space/folders/SpaceUpdatePageFolderMutation.mjs";
|
|
28
|
+
import D from "./Space/functions/SpaceInstallTemplateFunctionsMutation.mjs";
|
|
29
|
+
import O from "./Space/functions/SpaceRemoveFunctionsMutation.mjs";
|
|
30
|
+
import k from "./Space/functions/SpaceSaveFunctionsMutation.mjs";
|
|
31
|
+
import A from "./Space/functions/SpaceTryFunctionMutation.mjs";
|
|
32
|
+
import j from "./Space/pages/SpaceAddPageMutation.mjs";
|
|
33
|
+
import M from "./Space/pages/SpaceHomePageMutation.mjs";
|
|
34
|
+
import N from "./Space/pages/SpaceRemovePageMutation.mjs";
|
|
35
|
+
import P from "./Space/pages/SpaceUpdatePageMutation.mjs";
|
|
36
|
+
import F from "./Space/resources/SpaceAddResourceMutation.mjs";
|
|
37
|
+
import I from "./Space/resources/SpaceMoveResourceMutation.mjs";
|
|
38
|
+
import L from "./Space/resources/SpaceRemoveResourceMutation.mjs";
|
|
39
|
+
import R from "./Space/runtime/SpaceRemoveRuntimeMutation.mjs";
|
|
40
|
+
import z from "./Space/runtime/SpaceRemoveRuntimeVariableMutation.mjs";
|
|
41
|
+
import B from "./Space/runtime/SpaceSetRuntimeSizeMutation.mjs";
|
|
42
|
+
import V from "./Space/runtime/SpaceSetRuntimeVariableMutation.mjs";
|
|
43
|
+
import H from "./Space/runtime/SpaceStartRuntimeMutation.mjs";
|
|
44
|
+
import U from "./Space/runtime/SpaceStopRuntimeMutation.mjs";
|
|
45
|
+
import W from "./Space/SpaceAddElementMutation.mjs";
|
|
46
|
+
import G from "./Space/SpaceAddPluginMutation.mjs";
|
|
47
|
+
import K from "./Space/SpaceAddSnippetMutation.mjs";
|
|
48
|
+
import q from "./Space/SpaceCloneElementMutation.mjs";
|
|
49
|
+
import J from "./Space/SpaceDeployMutation.mjs";
|
|
50
|
+
import Y from "./Space/SpaceFixIssuesMutation.mjs";
|
|
51
|
+
import X from "./Space/SpaceMoveElementMutation.mjs";
|
|
52
|
+
import Z from "./Space/SpacePublishMutation.mjs";
|
|
53
|
+
import Q from "./Space/SpaceRemoveElementMutation.mjs";
|
|
54
|
+
import $ from "./Space/SpaceRemovePluginMutation.mjs";
|
|
55
|
+
import ee from "./Space/SpaceRenameElementMutation.mjs";
|
|
56
|
+
import te from "./Space/SpaceUpdateElementMutation.mjs";
|
|
57
|
+
import ne from "./Space/SpaceUpdateElementsMutation.mjs";
|
|
58
|
+
import re from "./Space/SpaceUpdateMutation.mjs";
|
|
59
|
+
import ie from "./Space/SpaceUpdatePluginMutation.mjs";
|
|
60
|
+
import ae from "./Space/SpaceUpdateSchemaMutation.mjs";
|
|
61
|
+
import oe from "./Space/SpaceUpdateSettingsMutation.mjs";
|
|
62
|
+
import se from "./Space/variables/SpaceAddVariableMutation.mjs";
|
|
63
|
+
import ce from "./Space/variables/SpaceRemoveVariableMutation.mjs";
|
|
64
|
+
import le from "./Space/variables/SpaceUpdateVariableMutation.mjs";
|
|
65
|
+
import ue from "./Space/visitors/SpaceAddVisitorMutation.mjs";
|
|
66
|
+
import de from "./Space/visitors/SpaceRemoveVisitorMutation.mjs";
|
|
67
|
+
import fe from "./Style/fonts/StyleAddFontMutation.mjs";
|
|
68
|
+
import pe from "./Style/fonts/StyleRemoveFontMutation.mjs";
|
|
69
|
+
import me from "./Style/fonts/StyleUpdateFontMutation.mjs";
|
|
70
|
+
import he from "./Style/selectors/StyleAddSelectorMutation.mjs";
|
|
71
|
+
import ge from "./Style/selectors/StyleRemoveSelectorMutation.mjs";
|
|
72
|
+
import _e from "./Style/selectors/StyleRemoveSelectorsMutation.mjs";
|
|
73
|
+
import ve from "./Style/selectors/StyleUpdateSelectorMutation.mjs";
|
|
74
|
+
import ye from "./Style/selectorVariables/StyleAddSelectorVariableMutation.mjs";
|
|
75
|
+
import be from "./Style/selectorVariables/StyleRemoveSelectorVariableMutation.mjs";
|
|
76
|
+
import xe from "./Style/selectorVariables/StyleUpdateSelectorVariableMutation.mjs";
|
|
77
|
+
import Se from "./Style/StyleUpdateMutation.mjs";
|
|
78
|
+
import Ce from "./Style/StyleUpdateSettingsMutation.mjs";
|
|
79
|
+
import we from "./Style/variables/StyleAddVariableMutation.mjs";
|
|
80
|
+
import Te from "./Style/variables/StyleRemoveVariableMutation.mjs";
|
|
81
|
+
import Ee from "./Style/variables/StyleUpdateVariableMutation.mjs";
|
|
79
82
|
//#region src/network/graphql/builder/Mutations/index.ts
|
|
80
|
-
var
|
|
81
|
-
SpaceUpdate:
|
|
82
|
-
SpaceUpdateSchema:
|
|
83
|
-
SpaceAddPage:
|
|
84
|
-
SpaceHomePage:
|
|
85
|
-
SpaceUpdatePage:
|
|
86
|
-
SpaceRemovePage:
|
|
87
|
-
SpaceAddPageFolder:
|
|
88
|
-
SpaceUpdatePageFolder:
|
|
89
|
-
SpaceRemovePageFolder:
|
|
90
|
-
SpaceAddVariable:
|
|
91
|
-
SpaceUpdateVariable:
|
|
92
|
-
SpaceRemoveVariable:
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
83
|
+
var De = {
|
|
84
|
+
SpaceUpdate: re,
|
|
85
|
+
SpaceUpdateSchema: ae,
|
|
86
|
+
SpaceAddPage: j,
|
|
87
|
+
SpaceHomePage: M,
|
|
88
|
+
SpaceUpdatePage: P,
|
|
89
|
+
SpaceRemovePage: N,
|
|
90
|
+
SpaceAddPageFolder: w,
|
|
91
|
+
SpaceUpdatePageFolder: E,
|
|
92
|
+
SpaceRemovePageFolder: T,
|
|
93
|
+
SpaceAddVariable: se,
|
|
94
|
+
SpaceUpdateVariable: le,
|
|
95
|
+
SpaceRemoveVariable: ce,
|
|
96
|
+
SpaceSetFlag: C,
|
|
97
|
+
SpaceRemoveFlag: S,
|
|
98
|
+
SpaceAddElement: W,
|
|
99
|
+
SpaceUpdateElement: te,
|
|
100
|
+
SpaceRenameElement: ee,
|
|
101
|
+
SpaceUpdateElements: ne,
|
|
102
|
+
SpaceRemoveElement: Q,
|
|
103
|
+
SpaceMoveElement: X,
|
|
104
|
+
SpaceCloneElement: q,
|
|
100
105
|
SpaceAddComponent: d,
|
|
101
106
|
SpaceUpdateComponent: m,
|
|
102
107
|
SpaceRemoveComponent: p,
|
|
103
108
|
SpaceDetachInstance: f,
|
|
104
|
-
|
|
105
|
-
SpaceAddPlugin:
|
|
106
|
-
SpaceUpdatePlugin:
|
|
107
|
-
SpaceRemovePlugin:
|
|
108
|
-
SpaceAddResource:
|
|
109
|
-
SpaceMoveResource:
|
|
110
|
-
SpaceRemoveResource:
|
|
109
|
+
SpaceAddSnippet: K,
|
|
110
|
+
SpaceAddPlugin: G,
|
|
111
|
+
SpaceUpdatePlugin: ie,
|
|
112
|
+
SpaceRemovePlugin: $,
|
|
113
|
+
SpaceAddResource: F,
|
|
114
|
+
SpaceMoveResource: I,
|
|
115
|
+
SpaceRemoveResource: L,
|
|
111
116
|
SpaceAddCdn: a,
|
|
112
117
|
SpaceUpdateCdn: u,
|
|
113
118
|
SpaceSetCdnCredential: c,
|
|
@@ -119,43 +124,44 @@ var we = {
|
|
|
119
124
|
SpaceUpdateAction: r,
|
|
120
125
|
SpaceRemoveAction: t,
|
|
121
126
|
SpaceRunAction: n,
|
|
122
|
-
SpaceSaveFunctions:
|
|
123
|
-
SpaceRemoveFunctions:
|
|
124
|
-
SpaceInstallTemplateFunctions:
|
|
125
|
-
SpaceTryFunction:
|
|
127
|
+
SpaceSaveFunctions: k,
|
|
128
|
+
SpaceRemoveFunctions: O,
|
|
129
|
+
SpaceInstallTemplateFunctions: D,
|
|
130
|
+
SpaceTryFunction: A,
|
|
126
131
|
SpaceAddConnector: h,
|
|
127
132
|
SpaceUpdateConnector: _,
|
|
128
133
|
SpaceRemoveConnector: g,
|
|
129
134
|
SpaceAddCredential: v,
|
|
130
135
|
SpaceUpdateCredential: b,
|
|
131
136
|
SpaceRemoveCredential: y,
|
|
132
|
-
SpaceAddVisitor:
|
|
133
|
-
SpaceRemoveVisitor:
|
|
134
|
-
SpaceSetRuntimeVariable:
|
|
135
|
-
SpaceSetRuntimeSize:
|
|
136
|
-
SpaceStartRuntime:
|
|
137
|
-
SpaceStopRuntime:
|
|
138
|
-
SpaceRemoveRuntimeVariable:
|
|
139
|
-
SpaceRemoveRuntime:
|
|
140
|
-
SpacePublish:
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
137
|
+
SpaceAddVisitor: ue,
|
|
138
|
+
SpaceRemoveVisitor: de,
|
|
139
|
+
SpaceSetRuntimeVariable: V,
|
|
140
|
+
SpaceSetRuntimeSize: B,
|
|
141
|
+
SpaceStartRuntime: H,
|
|
142
|
+
SpaceStopRuntime: U,
|
|
143
|
+
SpaceRemoveRuntimeVariable: z,
|
|
144
|
+
SpaceRemoveRuntime: R,
|
|
145
|
+
SpacePublish: Z,
|
|
146
|
+
SpacePublishFlags: x,
|
|
147
|
+
SpaceFixIssues: Y,
|
|
148
|
+
SpaceDeploy: J,
|
|
149
|
+
SpaceUpdateSettings: oe,
|
|
150
|
+
StyleAddSelector: he,
|
|
151
|
+
StyleUpdateSelector: ve,
|
|
152
|
+
StyleRemoveSelector: ge,
|
|
153
|
+
StyleRemoveSelectors: _e,
|
|
154
|
+
StyleAddSelectorVariable: ye,
|
|
155
|
+
StyleUpdateSelectorVariable: xe,
|
|
156
|
+
StyleRemoveSelectorVariable: be,
|
|
157
|
+
StyleAddFont: fe,
|
|
158
|
+
StyleUpdateFont: me,
|
|
159
|
+
StyleRemoveFont: pe,
|
|
160
|
+
StyleAddVariable: we,
|
|
161
|
+
StyleUpdateVariable: Ee,
|
|
162
|
+
StyleRemoveVariable: Te,
|
|
163
|
+
StyleUpdate: Se,
|
|
164
|
+
StyleUpdateSettings: Ce
|
|
159
165
|
};
|
|
160
166
|
//#endregion
|
|
161
|
-
export {
|
|
167
|
+
export { De as default };
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { PluginRaw, SchemaRaw, Style } from '../../../../types';
|
|
2
2
|
export type TInitQuery = {
|
|
3
|
+
/** The editor's own feature flags, resolved by the platform for whoever opened it. */
|
|
4
|
+
PlatformFlags?: Record<string, boolean>;
|
|
3
5
|
Space?: {
|
|
4
6
|
definition: SchemaRaw['definition'];
|
|
5
7
|
plugins: PluginRaw[];
|
|
@@ -7,5 +9,5 @@ export type TInitQuery = {
|
|
|
7
9
|
style: Style;
|
|
8
10
|
};
|
|
9
11
|
};
|
|
10
|
-
declare const InitQuery = "\n query InitQuery($environment: String!, $revision: Int) {\n Space(environment: $environment, revision: $revision) {\n definition {\n name\n permanentUrl\n }\n schema {\n settings\n rsc\n flat {\n id\n definition {\n label\n type\n initialState\n styleSelectors\n bindings\n interactions\n parentId\n rootId\n items\n runtime\n loadStrategy\n }\n attributes\n }\n pages\n components\n pageFolders {\n id\n name\n slug\n parentId\n }\n variables {\n name\n category\n type\n value\n subValues {\n when\n value\n }\n }\n }\n plugins {\n type\n resource\n settings\n }\n style {\n id\n platform\n variables\n mode\n fonts\n cache\n }\n }\n }\n";
|
|
12
|
+
declare const InitQuery = "\n query InitQuery($environment: String!, $revision: Int) {\n PlatformFlags\n Space(environment: $environment, revision: $revision) {\n definition {\n name\n permanentUrl\n }\n schema {\n settings\n rsc\n flat {\n id\n definition {\n label\n type\n initialState\n styleSelectors\n bindings\n interactions\n parentId\n rootId\n items\n runtime\n loadStrategy\n flag {\n name\n is\n }\n anchor\n }\n attributes\n }\n pages\n components\n flags\n pageFolders {\n id\n name\n slug\n parentId\n }\n variables {\n name\n category\n type\n value\n subValues {\n when\n value\n }\n }\n }\n plugins {\n type\n resource\n settings\n }\n style {\n id\n platform\n variables\n mode\n fonts\n cache\n }\n }\n }\n";
|
|
11
13
|
export default InitQuery;
|