@plitzi/sdk-shared 0.38.16 → 0.38.18
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 +107 -0
- package/dist/actions/cron.mjs +5 -9
- package/dist/actions/validateDocument.mjs +24 -50
- package/dist/connectors/validateManifest.mjs +28 -73
- package/dist/dataSource/helpers/index.mjs +1 -2
- package/dist/dataSource/index.d.ts +1 -1
- package/dist/dataSource/index.mjs +6 -8
- package/dist/dataSource/utility/dateConverter.mjs +1 -1
- package/dist/dataSource/utility/index.d.ts +1 -0
- package/dist/dataSource/utility/index.mjs +16 -15
- package/dist/{helpers → dates}/formatDate.mjs +1 -1
- package/dist/dates/index.d.ts +6 -0
- package/dist/dates/index.mjs +3 -0
- package/dist/{helpers → dates}/isDate.mjs +1 -1
- package/dist/devTools/index.d.ts +1 -3
- package/dist/devTools/index.mjs +5 -6
- package/dist/devTools/{DevToolsContext.d.ts → react/DevToolsContext.d.ts} +1 -1
- package/dist/devTools/{DevToolsContext.mjs → react/DevToolsContext.mjs} +1 -1
- package/dist/devTools/react/index.d.ts +3 -0
- package/dist/devTools/react/index.mjs +1 -0
- package/dist/devTools/utils/PlitziConsole.mjs +8 -12
- package/dist/elements/index.mjs +1 -2
- package/dist/flags/flagsCookie.mjs +4 -4
- package/dist/flags/index.mjs +2 -2
- package/dist/flags/react/index.d.ts +3 -0
- package/dist/flags/react/index.mjs +1 -0
- package/dist/flags/{useFlagResolution.d.ts → react/useFlagResolution.d.ts} +2 -4
- package/dist/flags/react/useFlagResolution.mjs +35 -0
- package/dist/flags/resolveFlags.d.ts +3 -1
- package/dist/flags/resolveFlags.mjs +16 -8
- package/dist/helpers/index.d.ts +8 -2
- package/dist/helpers/index.mjs +19 -13
- package/dist/helpers/keys.mjs +4 -8
- package/dist/helpers/twigWrapper/Evaluator/index.mjs +1 -2
- package/dist/helpers/twigWrapper/Parser/ExpressionParser.mjs +12 -26
- package/dist/helpers/twigWrapper/Parser/index.mjs +1 -2
- package/dist/helpers/twigWrapper/TemplateCache/index.mjs +1 -2
- package/dist/helpers/twigWrapper/charClass.mjs +2 -6
- package/dist/helpers/twigWrapper/filters/index.mjs +1 -2
- package/dist/helpers/twigWrapper/templateRoots.mjs +3 -8
- package/dist/hooks/useNetwork.mjs +1 -4
- package/dist/index.d.ts +5 -19
- package/dist/index.mjs +3 -99
- package/dist/network/graphql/builder/Mutations/index.d.ts +1 -0
- package/dist/network/graphql/builder/Mutations/index.mjs +148 -148
- package/dist/network/graphql/builder/Queries/index.mjs +4 -4
- package/dist/network/index.mjs +8 -8
- package/dist/plugins/{bundle.mjs → bundle/bundle.mjs} +1 -1
- package/dist/plugins/bundle/index.d.ts +2 -0
- package/dist/plugins/bundle/index.mjs +1 -0
- package/dist/plugins/index.d.ts +1 -0
- package/dist/plugins/index.mjs +1 -0
- package/dist/plugins/{PluginsContext.d.ts → react/PluginsContext.d.ts} +1 -1
- package/dist/plugins/{PluginsContext.mjs → react/PluginsContext.mjs} +1 -1
- package/dist/plugins/react/index.d.ts +3 -0
- package/dist/plugins/react/index.mjs +1 -0
- package/dist/project/index.d.ts +8 -0
- package/dist/project/index.mjs +5 -0
- package/dist/project/layout.mjs +5 -5
- package/dist/project/{paths.d.ts → paths/index.d.ts} +8 -1
- package/dist/project/paths/index.mjs +4 -0
- package/dist/project/root.mjs +1 -1
- package/dist/queries/queryCache.mjs +1 -7
- package/dist/realtime/client.mjs +3 -12
- package/dist/schema/index.d.ts +5 -3
- package/dist/schema/index.mjs +11 -7
- package/dist/schema/{SchemaContext.d.ts → react/SchemaContext.d.ts} +1 -1
- package/dist/schema/{SchemaContext.mjs → react/SchemaContext.mjs} +1 -1
- package/dist/schema/react/index.d.ts +3 -0
- package/dist/schema/react/index.mjs +1 -0
- package/dist/server/actions/useActionsSync.mjs +1 -1
- package/dist/server/actions/useImagesSync.mjs +1 -1
- package/dist/server/actions/useRealtimeSync.mjs +1 -1
- package/dist/server/index.d.ts +3 -0
- package/dist/server/index.mjs +7 -4
- package/dist/server/rsc/refreshRsc.mjs +11 -11
- package/dist/server/rsc/useRscSync.mjs +1 -1
- package/dist/server/usePluginRoute.mjs +1 -1
- package/dist/state/runtimeStatePersist.mjs +9 -15
- package/dist/store/index.d.ts +1 -193
- package/dist/store/index.mjs +6 -9
- package/dist/store/renderSettings.mjs +1 -1
- package/dist/store/storeHooks.d.ts +193 -0
- package/dist/store/storeHooks.mjs +5 -0
- package/dist/store/tracing/tracingCollector.mjs +1 -5
- package/dist/style/fonts.mjs +17 -25
- package/dist/style/index.d.ts +2 -0
- package/dist/style/index.mjs +17 -15
- package/dist/style/react/index.d.ts +5 -0
- package/dist/style/react/index.mjs +3 -0
- package/dist/style/{useDisplayMode.d.ts → react/useDisplayMode.d.ts} +1 -1
- package/dist/style/{useDisplayMode.mjs → react/useDisplayMode.mjs} +2 -2
- package/dist/style/{useElementSize.mjs → react/useElementSize.mjs} +1 -1
- package/dist/style/stylePseudos.mjs +2 -5
- package/dist/style/styleTarget.mjs +6 -6
- package/dist/theme/ThemeProvider.mjs +2 -2
- package/dist/theme/cookie/index.d.ts +1 -0
- package/dist/theme/cookie/index.mjs +1 -0
- package/dist/theme/{themeCookie.d.ts → cookie/themeCookie.d.ts} +1 -1
- package/dist/theme/{themeCookie.mjs → cookie/themeCookie.mjs} +2 -2
- package/dist/theme/index.d.ts +2 -1
- package/dist/theme/index.mjs +5 -5
- package/dist/types/SchemaTypes.d.ts +2 -1
- package/dist/types/ServerTypes.d.ts +27 -11
- package/dist/websockets/index.mjs +1 -2
- package/package.json +21 -1607
- package/vite.config.ts +20 -4
- package/dist/auth/authFailureLink.d.ts +0 -9
- package/dist/auth/authFailureLink.mjs +0 -20
- package/dist/dataSource/hooks/index.d.ts +0 -4
- package/dist/dataSource/hooks/index.mjs +0 -3
- package/dist/dataSource/hooks/useRegisterSource.d.ts +0 -9
- package/dist/dataSource/hooks/useRegisterSource.mjs +0 -40
- package/dist/dataSource/hooks/useResolvedVariables.d.ts +0 -12
- package/dist/dataSource/hooks/useResolvedVariables.mjs +0 -28
- package/dist/flags/useFlagResolution.mjs +0 -43
- package/dist/helpers/stripTypename.d.ts +0 -15
- package/dist/helpers/stripTypename.mjs +0 -41
- package/dist/project/paths.mjs +0 -4
- package/dist/server/rsc/projectData.d.ts +0 -6
- package/dist/server/rsc/projectData.mjs +0 -4
- /package/dist/{helpers → dates}/formatDate.d.ts +0 -0
- /package/dist/{helpers → dates}/isDate.d.ts +0 -0
- /package/dist/plugins/{bundle.d.ts → bundle/bundle.d.ts} +0 -0
- /package/dist/style/{useElementSize.d.ts → react/useElementSize.d.ts} +0 -0
|
@@ -1,169 +1,169 @@
|
|
|
1
|
-
import e from "./Space/
|
|
2
|
-
import t from "./Space/
|
|
3
|
-
import n from "./Space/
|
|
4
|
-
import r from "./Space/
|
|
5
|
-
import i from "./Space/
|
|
6
|
-
import a from "./Space/
|
|
7
|
-
import o from "./Space/
|
|
8
|
-
import s from "./Space/
|
|
9
|
-
import c from "./Space/
|
|
10
|
-
import l from "./Space/
|
|
11
|
-
import u from "./Space/
|
|
12
|
-
import d from "./Space/
|
|
13
|
-
import f from "./Space/
|
|
14
|
-
import p from "./Space/
|
|
15
|
-
import m from "./Space/
|
|
16
|
-
import h from "./Space/
|
|
17
|
-
import g from "./Space/
|
|
18
|
-
import _ from "./Space/
|
|
19
|
-
import v from "./Space/
|
|
20
|
-
import y from "./Space/
|
|
21
|
-
import b from "./Space/
|
|
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/
|
|
29
|
-
import O from "./Space/
|
|
30
|
-
import k from "./Space/
|
|
31
|
-
import A from "./Space/
|
|
32
|
-
import j from "./Space/
|
|
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/
|
|
40
|
-
import z from "./Space/
|
|
41
|
-
import B from "./Space/
|
|
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/
|
|
1
|
+
import e from "./Space/SpaceAddElementMutation.mjs";
|
|
2
|
+
import t from "./Space/SpaceAddPluginMutation.mjs";
|
|
3
|
+
import n from "./Space/SpaceAddSnippetMutation.mjs";
|
|
4
|
+
import r from "./Space/SpaceCloneElementMutation.mjs";
|
|
5
|
+
import i from "./Space/SpaceDeployMutation.mjs";
|
|
6
|
+
import a from "./Space/SpaceFixIssuesMutation.mjs";
|
|
7
|
+
import o from "./Space/SpaceMoveElementMutation.mjs";
|
|
8
|
+
import s from "./Space/SpacePublishMutation.mjs";
|
|
9
|
+
import c from "./Space/SpaceRemoveElementMutation.mjs";
|
|
10
|
+
import l from "./Space/SpaceRemovePluginMutation.mjs";
|
|
11
|
+
import u from "./Space/SpaceRenameElementMutation.mjs";
|
|
12
|
+
import d from "./Space/SpaceUpdateElementMutation.mjs";
|
|
13
|
+
import f from "./Space/SpaceUpdateElementsMutation.mjs";
|
|
14
|
+
import p from "./Space/SpaceUpdateMutation.mjs";
|
|
15
|
+
import m from "./Space/SpaceUpdatePluginMutation.mjs";
|
|
16
|
+
import h from "./Space/SpaceUpdateSchemaMutation.mjs";
|
|
17
|
+
import g from "./Space/SpaceUpdateSettingsMutation.mjs";
|
|
18
|
+
import _ from "./Space/actions/SpaceAddActionMutation.mjs";
|
|
19
|
+
import v from "./Space/actions/SpaceRemoveActionMutation.mjs";
|
|
20
|
+
import y from "./Space/actions/SpaceRunActionMutation.mjs";
|
|
21
|
+
import b from "./Space/actions/SpaceUpdateActionMutation.mjs";
|
|
22
|
+
import x from "./Space/cdns/SpaceAddCdnBucketMutation.mjs";
|
|
23
|
+
import S from "./Space/cdns/SpaceAddCdnMutation.mjs";
|
|
24
|
+
import C from "./Space/cdns/SpaceRemoveCdnBucketMutation.mjs";
|
|
25
|
+
import w from "./Space/cdns/SpaceRemoveCdnMutation.mjs";
|
|
26
|
+
import T from "./Space/cdns/SpaceSetCdnCredentialMutation.mjs";
|
|
27
|
+
import E from "./Space/cdns/SpaceUpdateCdnBucketMutation.mjs";
|
|
28
|
+
import D from "./Space/cdns/SpaceUpdateCdnMutation.mjs";
|
|
29
|
+
import O from "./Space/components/SpaceAddComponentMutation.mjs";
|
|
30
|
+
import k from "./Space/components/SpaceDetachInstanceMutation.mjs";
|
|
31
|
+
import A from "./Space/components/SpaceRemoveComponentMutation.mjs";
|
|
32
|
+
import j from "./Space/components/SpaceUpdateComponentMutation.mjs";
|
|
33
|
+
import M from "./Space/connectors/SpaceAddConnectorMutation.mjs";
|
|
34
|
+
import N from "./Space/connectors/SpaceRemoveConnectorMutation.mjs";
|
|
35
|
+
import P from "./Space/connectors/SpaceUpdateConnectorMutation.mjs";
|
|
36
|
+
import F from "./Space/credentials/SpaceAddCredentialMutation.mjs";
|
|
37
|
+
import I from "./Space/credentials/SpaceRemoveCredentialMutation.mjs";
|
|
38
|
+
import L from "./Space/credentials/SpaceUpdateCredentialMutation.mjs";
|
|
39
|
+
import R from "./Space/data/SpaceSaveDataMutation.mjs";
|
|
40
|
+
import z from "./Space/flags/SpacePublishFlagsMutation.mjs";
|
|
41
|
+
import B from "./Space/flags/SpaceRemoveFlagMutation.mjs";
|
|
42
|
+
import V from "./Space/flags/SpaceSetFlagMutation.mjs";
|
|
43
|
+
import H from "./Space/folders/SpaceAddPageFolderMutation.mjs";
|
|
44
|
+
import U from "./Space/folders/SpaceRemovePageFolderMutation.mjs";
|
|
45
|
+
import W from "./Space/folders/SpaceUpdatePageFolderMutation.mjs";
|
|
46
|
+
import G from "./Space/functions/SpaceInstallTemplateFunctionsMutation.mjs";
|
|
47
|
+
import K from "./Space/functions/SpaceRemoveFunctionsMutation.mjs";
|
|
48
|
+
import q from "./Space/functions/SpaceSaveFunctionsMutation.mjs";
|
|
49
|
+
import J from "./Space/functions/SpaceTryFunctionMutation.mjs";
|
|
50
|
+
import Y from "./Space/pages/SpaceAddPageMutation.mjs";
|
|
51
|
+
import X from "./Space/pages/SpaceHomePageMutation.mjs";
|
|
52
|
+
import Z from "./Space/pages/SpaceRemovePageMutation.mjs";
|
|
53
|
+
import Q from "./Space/pages/SpaceUpdatePageMutation.mjs";
|
|
54
|
+
import $ from "./Space/resources/SpaceAddResourceMutation.mjs";
|
|
55
|
+
import ee from "./Space/resources/SpaceMoveResourceMutation.mjs";
|
|
56
|
+
import te from "./Space/resources/SpaceRemoveResourceMutation.mjs";
|
|
57
|
+
import ne from "./Space/runtime/SpaceRemoveRuntimeMutation.mjs";
|
|
58
|
+
import re from "./Space/runtime/SpaceRemoveRuntimeVariableMutation.mjs";
|
|
59
|
+
import ie from "./Space/runtime/SpaceSetRuntimeSizeMutation.mjs";
|
|
60
|
+
import ae from "./Space/runtime/SpaceSetRuntimeVariableMutation.mjs";
|
|
61
|
+
import oe from "./Space/runtime/SpaceStartRuntimeMutation.mjs";
|
|
62
|
+
import se from "./Space/runtime/SpaceStopRuntimeMutation.mjs";
|
|
63
63
|
import ce from "./Space/variables/SpaceAddVariableMutation.mjs";
|
|
64
64
|
import le from "./Space/variables/SpaceRemoveVariableMutation.mjs";
|
|
65
65
|
import ue from "./Space/variables/SpaceUpdateVariableMutation.mjs";
|
|
66
66
|
import de from "./Space/visitors/SpaceAddVisitorMutation.mjs";
|
|
67
67
|
import fe from "./Space/visitors/SpaceRemoveVisitorMutation.mjs";
|
|
68
|
-
import pe from "./Style/
|
|
69
|
-
import me from "./Style/
|
|
70
|
-
import he from "./Style/fonts/
|
|
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/selectorVariables/
|
|
76
|
-
import xe from "./Style/
|
|
77
|
-
import Se from "./Style/
|
|
78
|
-
import Ce from "./Style/
|
|
79
|
-
import we from "./Style/
|
|
68
|
+
import pe from "./Style/StyleUpdateMutation.mjs";
|
|
69
|
+
import me from "./Style/StyleUpdateSettingsMutation.mjs";
|
|
70
|
+
import he from "./Style/fonts/StyleAddFontMutation.mjs";
|
|
71
|
+
import ge from "./Style/fonts/StyleRemoveFontMutation.mjs";
|
|
72
|
+
import _e from "./Style/fonts/StyleUpdateFontMutation.mjs";
|
|
73
|
+
import ve from "./Style/selectorVariables/StyleAddSelectorVariableMutation.mjs";
|
|
74
|
+
import ye from "./Style/selectorVariables/StyleRemoveSelectorVariableMutation.mjs";
|
|
75
|
+
import be from "./Style/selectorVariables/StyleUpdateSelectorVariableMutation.mjs";
|
|
76
|
+
import xe from "./Style/selectors/StyleAddSelectorMutation.mjs";
|
|
77
|
+
import Se from "./Style/selectors/StyleRemoveSelectorMutation.mjs";
|
|
78
|
+
import Ce from "./Style/selectors/StyleRemoveSelectorsMutation.mjs";
|
|
79
|
+
import we from "./Style/selectors/StyleUpdateSelectorMutation.mjs";
|
|
80
80
|
import Te from "./Style/variables/StyleAddVariableMutation.mjs";
|
|
81
81
|
import Ee from "./Style/variables/StyleRemoveVariableMutation.mjs";
|
|
82
82
|
import De from "./Style/variables/StyleUpdateVariableMutation.mjs";
|
|
83
83
|
//#region src/network/graphql/builder/Mutations/index.ts
|
|
84
84
|
var Oe = {
|
|
85
|
-
SpaceUpdate:
|
|
86
|
-
SpaceUpdateSchema:
|
|
87
|
-
SpaceAddPage:
|
|
88
|
-
SpaceHomePage:
|
|
89
|
-
SpaceUpdatePage:
|
|
90
|
-
SpaceRemovePage:
|
|
91
|
-
SpaceAddPageFolder:
|
|
92
|
-
SpaceUpdatePageFolder:
|
|
93
|
-
SpaceRemovePageFolder:
|
|
85
|
+
SpaceUpdate: p,
|
|
86
|
+
SpaceUpdateSchema: h,
|
|
87
|
+
SpaceAddPage: Y,
|
|
88
|
+
SpaceHomePage: X,
|
|
89
|
+
SpaceUpdatePage: Q,
|
|
90
|
+
SpaceRemovePage: Z,
|
|
91
|
+
SpaceAddPageFolder: H,
|
|
92
|
+
SpaceUpdatePageFolder: W,
|
|
93
|
+
SpaceRemovePageFolder: U,
|
|
94
94
|
SpaceAddVariable: ce,
|
|
95
95
|
SpaceUpdateVariable: ue,
|
|
96
96
|
SpaceRemoveVariable: le,
|
|
97
|
-
SpaceSetFlag:
|
|
98
|
-
SpaceRemoveFlag:
|
|
99
|
-
SpaceAddElement:
|
|
100
|
-
SpaceUpdateElement:
|
|
101
|
-
SpaceRenameElement:
|
|
102
|
-
SpaceUpdateElements:
|
|
103
|
-
SpaceRemoveElement:
|
|
104
|
-
SpaceMoveElement:
|
|
105
|
-
SpaceCloneElement:
|
|
106
|
-
SpaceAddComponent:
|
|
107
|
-
SpaceUpdateComponent:
|
|
108
|
-
SpaceRemoveComponent:
|
|
109
|
-
SpaceDetachInstance:
|
|
110
|
-
SpaceAddSnippet:
|
|
111
|
-
SpaceAddPlugin:
|
|
112
|
-
SpaceUpdatePlugin:
|
|
113
|
-
SpaceRemovePlugin:
|
|
114
|
-
SpaceAddResource:
|
|
115
|
-
SpaceMoveResource:
|
|
116
|
-
SpaceRemoveResource:
|
|
117
|
-
SpaceAddCdn:
|
|
118
|
-
SpaceUpdateCdn:
|
|
119
|
-
SpaceSetCdnCredential:
|
|
120
|
-
SpaceRemoveCdn:
|
|
121
|
-
SpaceAddCdnBucket:
|
|
122
|
-
SpaceUpdateCdnBucket:
|
|
123
|
-
SpaceRemoveCdnBucket:
|
|
124
|
-
SpaceAddAction:
|
|
125
|
-
SpaceUpdateAction:
|
|
126
|
-
SpaceRemoveAction:
|
|
127
|
-
SpaceRunAction:
|
|
128
|
-
SpaceSaveData:
|
|
129
|
-
SpaceSaveFunctions:
|
|
130
|
-
SpaceRemoveFunctions:
|
|
131
|
-
SpaceInstallTemplateFunctions:
|
|
132
|
-
SpaceTryFunction:
|
|
133
|
-
SpaceAddConnector:
|
|
134
|
-
SpaceUpdateConnector:
|
|
135
|
-
SpaceRemoveConnector:
|
|
136
|
-
SpaceAddCredential:
|
|
137
|
-
SpaceUpdateCredential:
|
|
138
|
-
SpaceRemoveCredential:
|
|
97
|
+
SpaceSetFlag: V,
|
|
98
|
+
SpaceRemoveFlag: B,
|
|
99
|
+
SpaceAddElement: e,
|
|
100
|
+
SpaceUpdateElement: d,
|
|
101
|
+
SpaceRenameElement: u,
|
|
102
|
+
SpaceUpdateElements: f,
|
|
103
|
+
SpaceRemoveElement: c,
|
|
104
|
+
SpaceMoveElement: o,
|
|
105
|
+
SpaceCloneElement: r,
|
|
106
|
+
SpaceAddComponent: O,
|
|
107
|
+
SpaceUpdateComponent: j,
|
|
108
|
+
SpaceRemoveComponent: A,
|
|
109
|
+
SpaceDetachInstance: k,
|
|
110
|
+
SpaceAddSnippet: n,
|
|
111
|
+
SpaceAddPlugin: t,
|
|
112
|
+
SpaceUpdatePlugin: m,
|
|
113
|
+
SpaceRemovePlugin: l,
|
|
114
|
+
SpaceAddResource: $,
|
|
115
|
+
SpaceMoveResource: ee,
|
|
116
|
+
SpaceRemoveResource: te,
|
|
117
|
+
SpaceAddCdn: S,
|
|
118
|
+
SpaceUpdateCdn: D,
|
|
119
|
+
SpaceSetCdnCredential: T,
|
|
120
|
+
SpaceRemoveCdn: w,
|
|
121
|
+
SpaceAddCdnBucket: x,
|
|
122
|
+
SpaceUpdateCdnBucket: E,
|
|
123
|
+
SpaceRemoveCdnBucket: C,
|
|
124
|
+
SpaceAddAction: _,
|
|
125
|
+
SpaceUpdateAction: b,
|
|
126
|
+
SpaceRemoveAction: v,
|
|
127
|
+
SpaceRunAction: y,
|
|
128
|
+
SpaceSaveData: R,
|
|
129
|
+
SpaceSaveFunctions: q,
|
|
130
|
+
SpaceRemoveFunctions: K,
|
|
131
|
+
SpaceInstallTemplateFunctions: G,
|
|
132
|
+
SpaceTryFunction: J,
|
|
133
|
+
SpaceAddConnector: M,
|
|
134
|
+
SpaceUpdateConnector: P,
|
|
135
|
+
SpaceRemoveConnector: N,
|
|
136
|
+
SpaceAddCredential: F,
|
|
137
|
+
SpaceUpdateCredential: L,
|
|
138
|
+
SpaceRemoveCredential: I,
|
|
139
139
|
SpaceAddVisitor: de,
|
|
140
140
|
SpaceRemoveVisitor: fe,
|
|
141
|
-
SpaceSetRuntimeVariable:
|
|
142
|
-
SpaceSetRuntimeSize:
|
|
143
|
-
SpaceStartRuntime:
|
|
144
|
-
SpaceStopRuntime:
|
|
145
|
-
SpaceRemoveRuntimeVariable:
|
|
146
|
-
SpaceRemoveRuntime:
|
|
147
|
-
SpacePublish:
|
|
148
|
-
SpacePublishFlags:
|
|
149
|
-
SpaceFixIssues:
|
|
150
|
-
SpaceDeploy:
|
|
151
|
-
SpaceUpdateSettings:
|
|
152
|
-
StyleAddSelector:
|
|
153
|
-
StyleUpdateSelector:
|
|
154
|
-
StyleRemoveSelector:
|
|
155
|
-
StyleRemoveSelectors:
|
|
156
|
-
StyleAddSelectorVariable:
|
|
157
|
-
StyleUpdateSelectorVariable:
|
|
158
|
-
StyleRemoveSelectorVariable:
|
|
159
|
-
StyleAddFont:
|
|
160
|
-
StyleUpdateFont:
|
|
161
|
-
StyleRemoveFont:
|
|
141
|
+
SpaceSetRuntimeVariable: ae,
|
|
142
|
+
SpaceSetRuntimeSize: ie,
|
|
143
|
+
SpaceStartRuntime: oe,
|
|
144
|
+
SpaceStopRuntime: se,
|
|
145
|
+
SpaceRemoveRuntimeVariable: re,
|
|
146
|
+
SpaceRemoveRuntime: ne,
|
|
147
|
+
SpacePublish: s,
|
|
148
|
+
SpacePublishFlags: z,
|
|
149
|
+
SpaceFixIssues: a,
|
|
150
|
+
SpaceDeploy: i,
|
|
151
|
+
SpaceUpdateSettings: g,
|
|
152
|
+
StyleAddSelector: xe,
|
|
153
|
+
StyleUpdateSelector: we,
|
|
154
|
+
StyleRemoveSelector: Se,
|
|
155
|
+
StyleRemoveSelectors: Ce,
|
|
156
|
+
StyleAddSelectorVariable: ve,
|
|
157
|
+
StyleUpdateSelectorVariable: be,
|
|
158
|
+
StyleRemoveSelectorVariable: ye,
|
|
159
|
+
StyleAddFont: he,
|
|
160
|
+
StyleUpdateFont: _e,
|
|
161
|
+
StyleRemoveFont: ge,
|
|
162
162
|
StyleAddVariable: Te,
|
|
163
163
|
StyleUpdateVariable: De,
|
|
164
164
|
StyleRemoveVariable: Ee,
|
|
165
|
-
StyleUpdate:
|
|
166
|
-
StyleUpdateSettings:
|
|
165
|
+
StyleUpdate: pe,
|
|
166
|
+
StyleUpdateSettings: me
|
|
167
167
|
};
|
|
168
168
|
//#endregion
|
|
169
169
|
export { Oe as default };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import e from "./InitQuery.mjs";
|
|
2
2
|
import t from "./Space/SpaceActionEventsQuery.mjs";
|
|
3
|
-
import n from "./Space/
|
|
4
|
-
import r from "./Space/
|
|
3
|
+
import n from "./Space/SpaceActionTasksQuery.mjs";
|
|
4
|
+
import r from "./Space/SpaceActionsQuery.mjs";
|
|
5
5
|
import i from "./Space/SpaceCdnsQuery.mjs";
|
|
6
6
|
import a from "./Space/SpaceChangesQuery.mjs";
|
|
7
7
|
import o from "./Space/SpaceCheckActionQuery.mjs";
|
|
@@ -27,10 +27,10 @@ var y = {
|
|
|
27
27
|
SpaceResources: h,
|
|
28
28
|
SpaceDeployments: u,
|
|
29
29
|
SpaceCdns: i,
|
|
30
|
-
SpaceActions:
|
|
30
|
+
SpaceActions: r,
|
|
31
31
|
SpaceActionEvents: t,
|
|
32
32
|
SpaceCheckAction: o,
|
|
33
|
-
SpaceActionTasks:
|
|
33
|
+
SpaceActionTasks: n,
|
|
34
34
|
SpaceData: l,
|
|
35
35
|
SpaceFunctions: d,
|
|
36
36
|
SpaceConnectors: s,
|
package/dist/network/index.mjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import e from "./NetworkContext.mjs";
|
|
2
2
|
import t from "./NetworkInternalContext.mjs";
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import f from "./
|
|
10
|
-
export {
|
|
3
|
+
import n from "./graphql/builder/Mutations/index.mjs";
|
|
4
|
+
import r from "./graphql/builder/Queries/index.mjs";
|
|
5
|
+
import i from "./graphql/builder/Subscriptions/index.mjs";
|
|
6
|
+
import a from "./graphql/sdk/Mutations/index.mjs";
|
|
7
|
+
import o from "./graphql/sdk/Queries/index.mjs";
|
|
8
|
+
import { elementFromWire as s, schemaFromWire as c, schemaToWire as l } from "../schema/wire.mjs";
|
|
9
|
+
import { SpaceEvents as u, spaceEventSchemas as d, validateSpaceEvent as f } from "./spaceEvents.mjs";
|
|
10
|
+
export { n as BuilderMutations, r as BuilderQueries, e as NetworkContext, t as NetworkInternalContext, a as SdkMutations, o as SdkQueries, i as SpaceEventSubscription, u as SpaceEvents, s as elementFromWire, c as schemaFromWire, l as schemaToWire, d as spaceEventSchemas, f as validateSpaceEvent };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { PLUGIN_INLINED_ASSETS, pluginAssetLoaders, pluginImportQueries } from "./bundle.mjs";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './declaration';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { pluginDeclarationOf, pluginTypesOf } from "./declaration.mjs";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as PluginsContext } from "./PluginsContext.mjs";
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A project on disk — its layout, its paths, its root — as the CLI and the page server read it. Node only, so never
|
|
3
|
+
* part of the package's root, which a browser imports.
|
|
4
|
+
*/
|
|
5
|
+
export * from './layout';
|
|
6
|
+
export * from './network';
|
|
7
|
+
export * from './paths';
|
|
8
|
+
export * from './root';
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { AUTHOR_FILE as e, BUILD_DIR as t, CLI_DIR as n, DATA_DIR as r, DEV_SERVER_FILE as i, FUNCTIONS_DIR as a, KV_FILE as o, PLUGINS_DIR as s, PLUGIN_DECLARATION_FILE as c, PLUGIN_ENTRIES as l, PLUGIN_FUNCTIONS_DIR as u, PLUGIN_MANIFEST_FILE as d, PROJECT_DATA_PREFIX as f, PROJECT_STATE as p, PROJECT_TMP as m, PUBLIC_DIR as h, RUNTIME_BUNDLE as g, RUNTIME_DIR as _, RUNTIME_ENTRY as v, SOURCE_DIR as y, SPACE_DIR as b, SPACE_ENTRY as x, VENDOR_PLUGINS_DIR as S } from "./paths/index.mjs";
|
|
2
|
+
import { PROJECT_LAYOUT_CODES as C, ProjectLayoutError as w, assertProjectLayout as T, checkPluginFolder as E, checkProjectLayout as D, elementEntry as O, layoutFindingText as k, pluginEntry as A, pluginTypeOf as j, readVendorPlugin as M } from "./layout.mjs";
|
|
3
|
+
import { localNetworkName as N, networkAddresses as P } from "./network.mjs";
|
|
4
|
+
import { ProjectRootError as F, checkProjectRoot as I, projectModule as L, projectRoot as R } from "./root.mjs";
|
|
5
|
+
export { e as AUTHOR_FILE, t as BUILD_DIR, n as CLI_DIR, r as DATA_DIR, i as DEV_SERVER_FILE, a as FUNCTIONS_DIR, o as KV_FILE, s as PLUGINS_DIR, c as PLUGIN_DECLARATION_FILE, l as PLUGIN_ENTRIES, u as PLUGIN_FUNCTIONS_DIR, d as PLUGIN_MANIFEST_FILE, f as PROJECT_DATA_PREFIX, C as PROJECT_LAYOUT_CODES, p as PROJECT_STATE, m as PROJECT_TMP, h as PUBLIC_DIR, w as ProjectLayoutError, F as ProjectRootError, g as RUNTIME_BUNDLE, _ as RUNTIME_DIR, v as RUNTIME_ENTRY, y as SOURCE_DIR, b as SPACE_DIR, x as SPACE_ENTRY, S as VENDOR_PLUGINS_DIR, T as assertProjectLayout, E as checkPluginFolder, D as checkProjectLayout, I as checkProjectRoot, O as elementEntry, k as layoutFindingText, N as localNetworkName, P as networkAddresses, A as pluginEntry, j as pluginTypeOf, L as projectModule, R as projectRoot, M as readVendorPlugin };
|
package/dist/project/layout.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { isRecord as e } from "../helpers/isRecord.mjs";
|
|
2
|
-
import { AUTHOR_FILE as t, DATA_DIR as n, FUNCTIONS_DIR as r, PLUGINS_DIR as i, PLUGIN_DECLARATION_FILE as a, PLUGIN_ENTRIES as o, PLUGIN_FUNCTIONS_DIR as s, PLUGIN_MANIFEST_FILE as c, PUBLIC_DIR as l, RUNTIME_DIR as u, SPACE_DIR as d, SPACE_ENTRY as f, VENDOR_PLUGINS_DIR as p } from "./paths.mjs";
|
|
2
|
+
import { AUTHOR_FILE as t, DATA_DIR as n, FUNCTIONS_DIR as r, PLUGINS_DIR as i, PLUGIN_DECLARATION_FILE as a, PLUGIN_ENTRIES as o, PLUGIN_FUNCTIONS_DIR as s, PLUGIN_MANIFEST_FILE as c, PUBLIC_DIR as l, RUNTIME_DIR as u, SPACE_DIR as d, SPACE_ENTRY as f, VENDOR_PLUGINS_DIR as p } from "./paths/index.mjs";
|
|
3
3
|
import m from "node:path";
|
|
4
4
|
import { readFileSync as h, readdirSync as g, statSync as _ } from "node:fs";
|
|
5
5
|
//#region src/project/layout.ts
|
|
@@ -309,7 +309,7 @@ var v = {
|
|
|
309
309
|
};
|
|
310
310
|
return a ? y("folder-misplaced", `${i}/`, `${i}/ holds ${a}, and nothing reads it there — ${s}`, c, l) : y("folder-near-miss", `${i}/`, `${i}/ is read by nothing — ${s}`, c, l);
|
|
311
311
|
})), re = (e, n) => {
|
|
312
|
-
if (!C(e,
|
|
312
|
+
if (!C(e, "src/space/index.ts", "file")) return n.some((e) => e.code === "folder-misplaced" && e.autofix?.action === "move" && e.autofix.to === "src/space/") ? [] : L(e, {
|
|
313
313
|
folder: d,
|
|
314
314
|
accepted: ["index.ts"],
|
|
315
315
|
code: "space-entry-missing",
|
|
@@ -347,9 +347,9 @@ var v = {
|
|
|
347
347
|
} catch {
|
|
348
348
|
return !1;
|
|
349
349
|
}
|
|
350
|
-
}, le = (e,
|
|
351
|
-
mode:
|
|
352
|
-
space:
|
|
350
|
+
}, le = (e, t) => ({
|
|
351
|
+
mode: t.mode ?? (Z(e) ? "server" : "client"),
|
|
352
|
+
space: t.space ?? (C(e, "src/space", "folder") || C(e, "plitzi/author.ts", "file") ? "local" : "cloud")
|
|
353
353
|
}), Q = (e, t = {}) => {
|
|
354
354
|
let n = le(e, t), i = X(e, n), a = [
|
|
355
355
|
...W(e),
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* The layout of a project `@plitzi/cli` writes, relative to its root
|
|
2
|
+
* The layout of a project `@plitzi/cli` writes, relative to its root — names alone, nothing of Node, so a browser imports
|
|
3
|
+
* them too (`@plitzi/sdk-shared/project/paths`; the folder above it is Node only): the one place the CLI that writes and checks it,
|
|
3
4
|
* the server that serves it (`@plitzi/sdk-server/project`) and the authoring that checks its space
|
|
4
5
|
* (`@plitzi/sdk-authoring/node`'s `projectAuthoring`) read it from.
|
|
5
6
|
*
|
|
@@ -59,6 +60,12 @@ export declare const PUBLIC_DIR = "public";
|
|
|
59
60
|
* `/data/<file>` on the server. A project with no server keeps it in `public/data/`, where the browser fetches it.
|
|
60
61
|
*/
|
|
61
62
|
export declare const DATA_DIR = "src/data";
|
|
63
|
+
/**
|
|
64
|
+
* Where a project's own data answers: a provider whose `query` is `/data/<file>` reads `<file>` from the folder the
|
|
65
|
+
* server keeps it in (`dataDir`), which is never served — so only a provider resolved on the server reads it. The
|
|
66
|
+
* server's resolver and the authoring check that refuses a browser read hold the same prefix.
|
|
67
|
+
*/
|
|
68
|
+
export declare const PROJECT_DATA_PREFIX = "/data/";
|
|
62
69
|
/** The project's own server code — the tasks and `/fn/` routes `defineFunctions` declares — built at boot. */
|
|
63
70
|
export declare const FUNCTIONS_DIR = "src/functions";
|
|
64
71
|
/**
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
//#region src/project/paths/index.ts
|
|
2
|
+
var e = "tmp", t = "src", n = "plitzi", r = `${n}/author.ts`, i = "src/space", a = `${i}/index.ts`, o = "src/plugins", s = ["index.ts", "index.tsx"], c = "declaration.ts", l = "functions", u = "vendor/plugins", d = "plugin-manifest.json", f = "vendor/runtime.bundle", p = "public", m = "src/data", h = "/data/", g = "src/functions", _ = "src/runtime", v = `${_}/index.ts`, y = "dist", b = "state", x = `${b}/kv.json`, S = "tmp/dev-server.json";
|
|
3
|
+
//#endregion
|
|
4
|
+
export { r as AUTHOR_FILE, y as BUILD_DIR, n as CLI_DIR, m as DATA_DIR, S as DEV_SERVER_FILE, g as FUNCTIONS_DIR, x as KV_FILE, o as PLUGINS_DIR, c as PLUGIN_DECLARATION_FILE, s as PLUGIN_ENTRIES, l as PLUGIN_FUNCTIONS_DIR, d as PLUGIN_MANIFEST_FILE, h as PROJECT_DATA_PREFIX, b as PROJECT_STATE, e as PROJECT_TMP, p as PUBLIC_DIR, f as RUNTIME_BUNDLE, _ as RUNTIME_DIR, v as RUNTIME_ENTRY, t as SOURCE_DIR, i as SPACE_DIR, a as SPACE_ENTRY, u as VENDOR_PLUGINS_DIR };
|
package/dist/project/root.mjs
CHANGED
|
@@ -179,13 +179,7 @@ var t = 3e5, n = (e) => {
|
|
|
179
179
|
clearTimeout(e.gcTimer), e.gcTimer = void 0, e.collectAt = void 0;
|
|
180
180
|
}
|
|
181
181
|
scheduleGc(e) {
|
|
182
|
-
|
|
183
|
-
if (this.cancelGc(e), e.gcTime <= 0) {
|
|
184
|
-
this.collect(e);
|
|
185
|
-
return;
|
|
186
|
-
}
|
|
187
|
-
e.collectAt = Date.now() + e.gcTime, e.gcTimer = setTimeout(() => this.collect(e), e.gcTime);
|
|
188
|
-
}
|
|
182
|
+
e.holds > 0 || e.observers.size > 0 || (this.cancelGc(e), e.gcTime <= 0 ? this.collect(e) : (e.collectAt = Date.now() + e.gcTime, e.gcTimer = setTimeout(() => this.collect(e), e.gcTime)));
|
|
189
183
|
}
|
|
190
184
|
collect(e) {
|
|
191
185
|
let t = n(e.key);
|
package/dist/realtime/client.mjs
CHANGED
|
@@ -103,11 +103,8 @@ var t = 30, n = [
|
|
|
103
103
|
credentials: "same-origin",
|
|
104
104
|
signal: r.signal
|
|
105
105
|
}).then(async (e) => {
|
|
106
|
-
if (!e.ok) {
|
|
107
|
-
|
|
108
|
-
return;
|
|
109
|
-
}
|
|
110
|
-
throw await l(e), Error("The realtime stream ended");
|
|
106
|
+
if (!e.ok) y = /* @__PURE__ */ new Map(), E(t.split(",").map((t) => [t, `http_${String(e.status)}`])), T("closed");
|
|
107
|
+
else throw await l(e), Error("The realtime stream ended");
|
|
111
108
|
}).catch(() => {
|
|
112
109
|
r.signal.aborted || A(c);
|
|
113
110
|
}), c;
|
|
@@ -144,13 +141,7 @@ var t = 30, n = [
|
|
|
144
141
|
let t = c(e.data);
|
|
145
142
|
t?.event === "ready" && i(t.data) ? (f = !0, k(g, t.data)) : t?.event === "message" && a(t.data) ? O(t.data) : t?.event === "ack" && o(t.data) && (u.get(t.data.id)?.(t.data.ok), u.delete(t.data.id));
|
|
146
143
|
}, s.onclose = () => {
|
|
147
|
-
|
|
148
|
-
if (!f) {
|
|
149
|
-
C = !1, N();
|
|
150
|
-
return;
|
|
151
|
-
}
|
|
152
|
-
A(g);
|
|
153
|
-
}
|
|
144
|
+
h(), !(m || v !== g) && (f ? A(g) : (C = !1, N()));
|
|
154
145
|
}, g;
|
|
155
146
|
};
|
|
156
147
|
function N() {
|
package/dist/schema/index.d.ts
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
import { default as SchemaContext } from './SchemaContext';
|
|
2
1
|
export * from './anchor';
|
|
3
2
|
export * from './schemaConstants';
|
|
4
|
-
export * from './SchemaContext';
|
|
5
3
|
export * from './layoutChain';
|
|
6
4
|
export * from './serverElements';
|
|
7
5
|
export * from './snippet';
|
|
8
|
-
export
|
|
6
|
+
export * from './motion';
|
|
7
|
+
export * from './motionReveal';
|
|
8
|
+
export * from './wire';
|
|
9
|
+
export * from './pageElements';
|
|
10
|
+
export * from './markdownHeadings';
|
package/dist/schema/index.mjs
CHANGED
|
@@ -1,7 +1,11 @@
|
|
|
1
|
-
import e from "./
|
|
2
|
-
import { ANCHOR_PATTERN as
|
|
3
|
-
import { COMPONENT_PROPS_SOURCE as
|
|
4
|
-
import { findLayoutCycle as
|
|
5
|
-
import { collectServerElements as
|
|
6
|
-
import { isSnippet as
|
|
7
|
-
|
|
1
|
+
import { elementFromWire as e, schemaFromWire as t, schemaToWire as n } from "./wire.mjs";
|
|
2
|
+
import { ANCHOR_PATTERN as r, anchorOf as i, isAnchor as a, uniqueAnchor as o } from "./anchor.mjs";
|
|
3
|
+
import { COMPONENT_PROPS_SOURCE as s, EMPTY_SCHEMA as c, VARIABLE_REGEX as l } from "./schemaConstants.mjs";
|
|
4
|
+
import { findLayoutCycle as u, resolveLayoutChain as d } from "./layoutChain.mjs";
|
|
5
|
+
import { collectServerElements as f, hasServerElements as p, notFoundProvider as m, pageNotFound as h, pageSeoText as g, pageServerContext as _ } from "./serverElements.mjs";
|
|
6
|
+
import { isSnippet as v } from "./snippet.mjs";
|
|
7
|
+
import { MOTION_DEFAULT_DURATION as y, MOTION_ENTERS as b, MOTION_ENTER_EASING as x, MOTION_ENTER_FRAMES as S, MOTION_ENTER_FROM as C, MOTION_LOOPS as w, MOTION_LOOP_FRAMES as T, MOTION_MAX_MS as E, MOTION_PLAY_CSS as D, MOTION_SEEN_ATTRIBUTE as O, MOTION_SEEN_CSS as k, MOTION_STILL_CSS as A, MOTION_TRIGGERS as j, MOTION_VIEW_SELECTOR as M, MOVING_SELECTOR as N, isMotion as P, isMotionAnimation as F, motionAttributes as I, motionProblems as L } from "./motion.mjs";
|
|
8
|
+
import { revealOnView as R } from "./motionReveal.mjs";
|
|
9
|
+
import { pageElementTypes as z } from "./pageElements.mjs";
|
|
10
|
+
import { headingText as B, markdownHeadings as V } from "./markdownHeadings.mjs";
|
|
11
|
+
export { r as ANCHOR_PATTERN, s as COMPONENT_PROPS_SOURCE, c as EMPTY_SCHEMA, y as MOTION_DEFAULT_DURATION, b as MOTION_ENTERS, x as MOTION_ENTER_EASING, S as MOTION_ENTER_FRAMES, C as MOTION_ENTER_FROM, w as MOTION_LOOPS, T as MOTION_LOOP_FRAMES, E as MOTION_MAX_MS, D as MOTION_PLAY_CSS, O as MOTION_SEEN_ATTRIBUTE, k as MOTION_SEEN_CSS, A as MOTION_STILL_CSS, j as MOTION_TRIGGERS, M as MOTION_VIEW_SELECTOR, N as MOVING_SELECTOR, l as VARIABLE_REGEX, i as anchorOf, f as collectServerElements, e as elementFromWire, u as findLayoutCycle, p as hasServerElements, B as headingText, a as isAnchor, P as isMotion, F as isMotionAnimation, v as isSnippet, V as markdownHeadings, I as motionAttributes, L as motionProblems, m as notFoundProvider, z as pageElementTypes, h as pageNotFound, g as pageSeoText, _ as pageServerContext, d as resolveLayoutChain, R as revealOnView, t as schemaFromWire, n as schemaToWire, o as uniqueAnchor };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as SchemaContext } from "./SchemaContext.mjs";
|