@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
|
@@ -13,6 +13,7 @@ export declare enum StyleVariableCategory {
|
|
|
13
13
|
SHADOW = "shadow",
|
|
14
14
|
CUSTOM = "custom"
|
|
15
15
|
}
|
|
16
|
+
export declare const isStyleVariableCategory: (value: unknown) => value is StyleVariableCategory;
|
|
16
17
|
export type StyleThemeValue = Partial<Record<ColorScheme | 'default', string>>;
|
|
17
18
|
export type StyleVariableValue = string | number | StyleThemeValue;
|
|
18
19
|
export type StyleVariableGroup = Record<string, StyleVariableValue>;
|
|
@@ -149,6 +150,6 @@ export type StyleContextValue = {
|
|
|
149
150
|
styleAddFont?: unknown;
|
|
150
151
|
styleUpdateFont?: unknown;
|
|
151
152
|
styleRemoveFont?: unknown;
|
|
152
|
-
|
|
153
|
+
styleAddSnippet?: unknown;
|
|
153
154
|
styleUpdateSettings?: unknown;
|
|
154
155
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
//#region src/types/StyleTypes.ts
|
|
2
2
|
var e = /* @__PURE__ */ function(e) {
|
|
3
3
|
return e.COLOR = "color", e.SPACING = "spacing", e.SHADOW = "shadow", e.CUSTOM = "custom", e;
|
|
4
|
-
}({});
|
|
4
|
+
}({}), t = Object.values(e), n = (e) => typeof e == "string" && t.includes(e);
|
|
5
5
|
//#endregion
|
|
6
|
-
export { e as StyleVariableCategory };
|
|
6
|
+
export { e as StyleVariableCategory, n as isStyleVariableCategory };
|
package/dist/types/index.d.ts
CHANGED
package/dist/types/index.mjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { WHILE_RUNNING_MODES as e } from "./SchemaTypes.mjs";
|
|
2
|
-
import { StyleVariableCategory as t } from "./StyleTypes.mjs";
|
|
3
|
-
export { t as StyleVariableCategory, e as WHILE_RUNNING_MODES };
|
|
2
|
+
import { StyleVariableCategory as t, isStyleVariableCategory as n } from "./StyleTypes.mjs";
|
|
3
|
+
export { t as StyleVariableCategory, e as WHILE_RUNNING_MODES, n as isStyleVariableCategory };
|
|
@@ -18,6 +18,7 @@ export declare enum RTEvent {
|
|
|
18
18
|
COLLABORATOR_DISCONNECTED = 13
|
|
19
19
|
}
|
|
20
20
|
export declare const isRTEvent: (value: unknown) => value is RTEvent;
|
|
21
|
+
export declare const isRTEventCloseCode: (value: unknown) => value is RTEventCloseCode;
|
|
21
22
|
export type RTMessageManagedClient = {
|
|
22
23
|
type: RTEvent.INIT;
|
|
23
24
|
payload: undefined;
|
|
@@ -3,7 +3,7 @@ var e = /* @__PURE__ */ function(e) {
|
|
|
3
3
|
return e[e.NORMAL = 1e3] = "NORMAL", e[e.AWAY = 1001] = "AWAY", e[e.ABNORMAL = 1002] = "ABNORMAL", e[e.UNSUPPORTED = 1003] = "UNSUPPORTED", e[e.UNKNOWN = 4e3] = "UNKNOWN", e[e.NOT_AUTHORISED = 4001] = "NOT_AUTHORISED", e[e.INSTANCE_ID_NOT_FOUND = 4002] = "INSTANCE_ID_NOT_FOUND", e[e.USER_TOKEN_NOT_FOUND = 4003] = "USER_TOKEN_NOT_FOUND", e;
|
|
4
4
|
}({}), t = /* @__PURE__ */ function(e) {
|
|
5
5
|
return e[e.INIT = 0] = "INIT", e[e.KA = 1] = "KA", e[e.MOUSE = 10] = "MOUSE", e[e.ELEMENT = 11] = "ELEMENT", e[e.COLLABORATOR_CONNECTED = 12] = "COLLABORATOR_CONNECTED", e[e.COLLABORATOR_DISCONNECTED = 13] = "COLLABORATOR_DISCONNECTED", e;
|
|
6
|
-
}({}), n = (e) => typeof e == "number" && e in t, r = class {
|
|
6
|
+
}({}), n = (e) => typeof e == "number" && e in t, r = (t) => typeof t == "number" && t in e, i = class {
|
|
7
7
|
encoder;
|
|
8
8
|
decoder;
|
|
9
9
|
constructor() {
|
|
@@ -14,22 +14,24 @@ var e = /* @__PURE__ */ function(e) {
|
|
|
14
14
|
return o.setUint8(0, e), o.setUint32(1, i.length), i.length > 0 && new Uint8Array(a, 5).set(i), a;
|
|
15
15
|
}
|
|
16
16
|
decode(e) {
|
|
17
|
-
let t = new DataView(e),
|
|
18
|
-
if (r
|
|
19
|
-
|
|
17
|
+
let t = new DataView(e), r = t.getUint8(0);
|
|
18
|
+
if (!n(r)) throw Error(`RTCodec: unknown event ${String(r)}`);
|
|
19
|
+
let i = t.getUint32(1);
|
|
20
|
+
if (i === 0) return {
|
|
21
|
+
type: r,
|
|
20
22
|
payload: void 0
|
|
21
23
|
};
|
|
22
|
-
let
|
|
24
|
+
let a = new Uint8Array(e, 5, i);
|
|
23
25
|
return {
|
|
24
|
-
type:
|
|
25
|
-
payload: JSON.parse(this.decoder.decode(
|
|
26
|
+
type: r,
|
|
27
|
+
payload: JSON.parse(this.decoder.decode(a))
|
|
26
28
|
};
|
|
27
29
|
}
|
|
28
|
-
},
|
|
29
|
-
|
|
30
|
+
}, a = void 0, o = (e) => {
|
|
31
|
+
a = e;
|
|
30
32
|
};
|
|
31
|
-
function
|
|
32
|
-
return e && !
|
|
33
|
+
function s(e = !0) {
|
|
34
|
+
return e && !a && (a = new i()), a;
|
|
33
35
|
}
|
|
34
36
|
//#endregion
|
|
35
|
-
export { t as RTEvent, e as RTEventCloseCode,
|
|
37
|
+
export { t as RTEvent, e as RTEventCloseCode, i as default, s as getInstance, n as isRTEvent, r as isRTEventCloseCode, o as setInstance };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import e, { RTEvent as t, RTEventCloseCode as n, getInstance as r, isRTEvent as i,
|
|
2
|
-
export { e as RTCodec, t as RTEvent, n as RTEventCloseCode, r as getInstance, i as isRTEvent, a as setInstance };
|
|
1
|
+
import e, { RTEvent as t, RTEventCloseCode as n, getInstance as r, isRTEvent as i, isRTEventCloseCode as a, setInstance as o } from "./RTCodec.mjs";
|
|
2
|
+
export { e as RTCodec, t as RTEvent, n as RTEventCloseCode, r as getInstance, i as isRTEvent, a as isRTEventCloseCode, o as setInstance };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@plitzi/sdk-shared",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.38.1",
|
|
4
4
|
"license": "AGPL-3.0",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist",
|
|
@@ -158,6 +158,10 @@
|
|
|
158
158
|
"types": "./dist/dataSource/getBindingsDetails.d.ts",
|
|
159
159
|
"import": "./dist/dataSource/getBindingsDetails.mjs"
|
|
160
160
|
},
|
|
161
|
+
"./dataSource/globalSources": {
|
|
162
|
+
"types": "./dist/dataSource/globalSources.d.ts",
|
|
163
|
+
"import": "./dist/dataSource/globalSources.mjs"
|
|
164
|
+
},
|
|
161
165
|
"./dataSource/helpers": {
|
|
162
166
|
"types": "./dist/dataSource/helpers/index.d.ts",
|
|
163
167
|
"import": "./dist/dataSource/helpers/index.mjs"
|
|
@@ -278,6 +282,30 @@
|
|
|
278
282
|
"types": "./dist/elements/index.d.ts",
|
|
279
283
|
"import": "./dist/elements/index.mjs"
|
|
280
284
|
},
|
|
285
|
+
"./flags": {
|
|
286
|
+
"types": "./dist/flags/index.d.ts",
|
|
287
|
+
"import": "./dist/flags/index.mjs"
|
|
288
|
+
},
|
|
289
|
+
"./flags/flagsCookie": {
|
|
290
|
+
"types": "./dist/flags/flagsCookie.d.ts",
|
|
291
|
+
"import": "./dist/flags/flagsCookie.mjs"
|
|
292
|
+
},
|
|
293
|
+
"./flags/index": {
|
|
294
|
+
"types": "./dist/flags/index.d.ts",
|
|
295
|
+
"import": "./dist/flags/index.mjs"
|
|
296
|
+
},
|
|
297
|
+
"./flags/resolveFlags": {
|
|
298
|
+
"types": "./dist/flags/resolveFlags.d.ts",
|
|
299
|
+
"import": "./dist/flags/resolveFlags.mjs"
|
|
300
|
+
},
|
|
301
|
+
"./flags/schemaFlag": {
|
|
302
|
+
"types": "./dist/flags/schemaFlag.d.ts",
|
|
303
|
+
"import": "./dist/flags/schemaFlag.mjs"
|
|
304
|
+
},
|
|
305
|
+
"./flags/useFlagResolution": {
|
|
306
|
+
"types": "./dist/flags/useFlagResolution.d.ts",
|
|
307
|
+
"import": "./dist/flags/useFlagResolution.mjs"
|
|
308
|
+
},
|
|
281
309
|
"./helpers": {
|
|
282
310
|
"types": "./dist/helpers/index.d.ts",
|
|
283
311
|
"import": "./dist/helpers/index.mjs"
|
|
@@ -286,6 +314,10 @@
|
|
|
286
314
|
"types": "./dist/helpers/cookies.d.ts",
|
|
287
315
|
"import": "./dist/helpers/cookies.mjs"
|
|
288
316
|
},
|
|
317
|
+
"./helpers/eventTarget": {
|
|
318
|
+
"types": "./dist/helpers/eventTarget.d.ts",
|
|
319
|
+
"import": "./dist/helpers/eventTarget.mjs"
|
|
320
|
+
},
|
|
289
321
|
"./helpers/fetchManifest": {
|
|
290
322
|
"types": "./dist/helpers/fetchManifest.d.ts",
|
|
291
323
|
"import": "./dist/helpers/fetchManifest.mjs"
|
|
@@ -298,14 +330,26 @@
|
|
|
298
330
|
"types": "./dist/helpers/generateFacade.d.ts",
|
|
299
331
|
"import": "./dist/helpers/generateFacade.mjs"
|
|
300
332
|
},
|
|
333
|
+
"./helpers/images": {
|
|
334
|
+
"types": "./dist/helpers/images.d.ts",
|
|
335
|
+
"import": "./dist/helpers/images.mjs"
|
|
336
|
+
},
|
|
301
337
|
"./helpers/index": {
|
|
302
338
|
"types": "./dist/helpers/index.d.ts",
|
|
303
339
|
"import": "./dist/helpers/index.mjs"
|
|
304
340
|
},
|
|
341
|
+
"./helpers/interval": {
|
|
342
|
+
"types": "./dist/helpers/interval.d.ts",
|
|
343
|
+
"import": "./dist/helpers/interval.mjs"
|
|
344
|
+
},
|
|
305
345
|
"./helpers/isDate": {
|
|
306
346
|
"types": "./dist/helpers/isDate.d.ts",
|
|
307
347
|
"import": "./dist/helpers/isDate.mjs"
|
|
308
348
|
},
|
|
349
|
+
"./helpers/isRecord": {
|
|
350
|
+
"types": "./dist/helpers/isRecord.d.ts",
|
|
351
|
+
"import": "./dist/helpers/isRecord.mjs"
|
|
352
|
+
},
|
|
309
353
|
"./helpers/keys": {
|
|
310
354
|
"types": "./dist/helpers/keys.d.ts",
|
|
311
355
|
"import": "./dist/helpers/keys.mjs"
|
|
@@ -318,6 +362,10 @@
|
|
|
318
362
|
"types": "./dist/helpers/ruleEvaluator.d.ts",
|
|
319
363
|
"import": "./dist/helpers/ruleEvaluator.mjs"
|
|
320
364
|
},
|
|
365
|
+
"./helpers/scroll": {
|
|
366
|
+
"types": "./dist/helpers/scroll.d.ts",
|
|
367
|
+
"import": "./dist/helpers/scroll.mjs"
|
|
368
|
+
},
|
|
321
369
|
"./helpers/security": {
|
|
322
370
|
"types": "./dist/helpers/security.d.ts",
|
|
323
371
|
"import": "./dist/helpers/security.mjs"
|
|
@@ -571,9 +619,9 @@
|
|
|
571
619
|
"types": "./dist/network/graphql/builder/Mutations/Space/SpaceAddPluginMutation.d.ts",
|
|
572
620
|
"import": "./dist/network/graphql/builder/Mutations/Space/SpaceAddPluginMutation.mjs"
|
|
573
621
|
},
|
|
574
|
-
"./network/graphql/builder/Mutations/Space/
|
|
575
|
-
"types": "./dist/network/graphql/builder/Mutations/Space/
|
|
576
|
-
"import": "./dist/network/graphql/builder/Mutations/Space/
|
|
622
|
+
"./network/graphql/builder/Mutations/Space/SpaceAddSnippetMutation": {
|
|
623
|
+
"types": "./dist/network/graphql/builder/Mutations/Space/SpaceAddSnippetMutation.d.ts",
|
|
624
|
+
"import": "./dist/network/graphql/builder/Mutations/Space/SpaceAddSnippetMutation.mjs"
|
|
577
625
|
},
|
|
578
626
|
"./network/graphql/builder/Mutations/Space/SpaceCloneElementMutation": {
|
|
579
627
|
"types": "./dist/network/graphql/builder/Mutations/Space/SpaceCloneElementMutation.d.ts",
|
|
@@ -715,6 +763,18 @@
|
|
|
715
763
|
"types": "./dist/network/graphql/builder/Mutations/Space/credentials/SpaceUpdateCredentialMutation.d.ts",
|
|
716
764
|
"import": "./dist/network/graphql/builder/Mutations/Space/credentials/SpaceUpdateCredentialMutation.mjs"
|
|
717
765
|
},
|
|
766
|
+
"./network/graphql/builder/Mutations/Space/flags/SpacePublishFlagsMutation": {
|
|
767
|
+
"types": "./dist/network/graphql/builder/Mutations/Space/flags/SpacePublishFlagsMutation.d.ts",
|
|
768
|
+
"import": "./dist/network/graphql/builder/Mutations/Space/flags/SpacePublishFlagsMutation.mjs"
|
|
769
|
+
},
|
|
770
|
+
"./network/graphql/builder/Mutations/Space/flags/SpaceRemoveFlagMutation": {
|
|
771
|
+
"types": "./dist/network/graphql/builder/Mutations/Space/flags/SpaceRemoveFlagMutation.d.ts",
|
|
772
|
+
"import": "./dist/network/graphql/builder/Mutations/Space/flags/SpaceRemoveFlagMutation.mjs"
|
|
773
|
+
},
|
|
774
|
+
"./network/graphql/builder/Mutations/Space/flags/SpaceSetFlagMutation": {
|
|
775
|
+
"types": "./dist/network/graphql/builder/Mutations/Space/flags/SpaceSetFlagMutation.d.ts",
|
|
776
|
+
"import": "./dist/network/graphql/builder/Mutations/Space/flags/SpaceSetFlagMutation.mjs"
|
|
777
|
+
},
|
|
718
778
|
"./network/graphql/builder/Mutations/Space/folders/SpaceAddPageFolderMutation": {
|
|
719
779
|
"types": "./dist/network/graphql/builder/Mutations/Space/folders/SpaceAddPageFolderMutation.d.ts",
|
|
720
780
|
"import": "./dist/network/graphql/builder/Mutations/Space/folders/SpaceAddPageFolderMutation.mjs"
|
|
@@ -1063,6 +1123,10 @@
|
|
|
1063
1123
|
"types": "./dist/schema/SchemaContext.d.ts",
|
|
1064
1124
|
"import": "./dist/schema/SchemaContext.mjs"
|
|
1065
1125
|
},
|
|
1126
|
+
"./schema/anchor": {
|
|
1127
|
+
"types": "./dist/schema/anchor.d.ts",
|
|
1128
|
+
"import": "./dist/schema/anchor.mjs"
|
|
1129
|
+
},
|
|
1066
1130
|
"./schema/index": {
|
|
1067
1131
|
"types": "./dist/schema/index.d.ts",
|
|
1068
1132
|
"import": "./dist/schema/index.mjs"
|
|
@@ -1079,6 +1143,14 @@
|
|
|
1079
1143
|
"types": "./dist/schema/serverElements.d.ts",
|
|
1080
1144
|
"import": "./dist/schema/serverElements.mjs"
|
|
1081
1145
|
},
|
|
1146
|
+
"./schema/snippet": {
|
|
1147
|
+
"types": "./dist/schema/snippet.d.ts",
|
|
1148
|
+
"import": "./dist/schema/snippet.mjs"
|
|
1149
|
+
},
|
|
1150
|
+
"./schema/wire": {
|
|
1151
|
+
"types": "./dist/schema/wire.d.ts",
|
|
1152
|
+
"import": "./dist/schema/wire.mjs"
|
|
1153
|
+
},
|
|
1082
1154
|
"./server": {
|
|
1083
1155
|
"types": "./dist/server/index.d.ts",
|
|
1084
1156
|
"import": "./dist/server/index.mjs"
|
|
@@ -1087,6 +1159,10 @@
|
|
|
1087
1159
|
"types": "./dist/server/actions/useActionsSync.d.ts",
|
|
1088
1160
|
"import": "./dist/server/actions/useActionsSync.mjs"
|
|
1089
1161
|
},
|
|
1162
|
+
"./server/actions/useImagesSync": {
|
|
1163
|
+
"types": "./dist/server/actions/useImagesSync.d.ts",
|
|
1164
|
+
"import": "./dist/server/actions/useImagesSync.mjs"
|
|
1165
|
+
},
|
|
1090
1166
|
"./server/actions/useRealtimeSync": {
|
|
1091
1167
|
"types": "./dist/server/actions/useRealtimeSync.d.ts",
|
|
1092
1168
|
"import": "./dist/server/actions/useRealtimeSync.mjs"
|
|
@@ -1203,6 +1279,14 @@
|
|
|
1203
1279
|
"types": "./dist/style/index.d.ts",
|
|
1204
1280
|
"import": "./dist/style/index.mjs"
|
|
1205
1281
|
},
|
|
1282
|
+
"./style/breakpoints": {
|
|
1283
|
+
"types": "./dist/style/breakpoints.d.ts",
|
|
1284
|
+
"import": "./dist/style/breakpoints.mjs"
|
|
1285
|
+
},
|
|
1286
|
+
"./style/displayModes": {
|
|
1287
|
+
"types": "./dist/style/displayModes.d.ts",
|
|
1288
|
+
"import": "./dist/style/displayModes.mjs"
|
|
1289
|
+
},
|
|
1206
1290
|
"./style/fontAssets": {
|
|
1207
1291
|
"types": "./dist/style/fontAssets.d.ts",
|
|
1208
1292
|
"import": "./dist/style/fontAssets.mjs"
|
|
@@ -1223,10 +1307,22 @@
|
|
|
1223
1307
|
"types": "./dist/style/index.d.ts",
|
|
1224
1308
|
"import": "./dist/style/index.mjs"
|
|
1225
1309
|
},
|
|
1310
|
+
"./style/layoutGrid": {
|
|
1311
|
+
"types": "./dist/style/layoutGrid.d.ts",
|
|
1312
|
+
"import": "./dist/style/layoutGrid.mjs"
|
|
1313
|
+
},
|
|
1314
|
+
"./style/notifications": {
|
|
1315
|
+
"types": "./dist/style/notifications.d.ts",
|
|
1316
|
+
"import": "./dist/style/notifications.mjs"
|
|
1317
|
+
},
|
|
1226
1318
|
"./style/runtimeStyle": {
|
|
1227
1319
|
"types": "./dist/style/runtimeStyle.d.ts",
|
|
1228
1320
|
"import": "./dist/style/runtimeStyle.mjs"
|
|
1229
1321
|
},
|
|
1322
|
+
"./style/snippetStyle": {
|
|
1323
|
+
"types": "./dist/style/snippetStyle.d.ts",
|
|
1324
|
+
"import": "./dist/style/snippetStyle.mjs"
|
|
1325
|
+
},
|
|
1230
1326
|
"./style/styleConstants": {
|
|
1231
1327
|
"types": "./dist/style/styleConstants.d.ts",
|
|
1232
1328
|
"import": "./dist/style/styleConstants.mjs"
|
|
@@ -1334,6 +1430,9 @@
|
|
|
1334
1430
|
"./types/ServerTypes": {
|
|
1335
1431
|
"types": "./dist/types/ServerTypes.d.ts"
|
|
1336
1432
|
},
|
|
1433
|
+
"./types/SnippetTypes": {
|
|
1434
|
+
"types": "./dist/types/SnippetTypes.d.ts"
|
|
1435
|
+
},
|
|
1337
1436
|
"./types/SpaceTypes": {
|
|
1338
1437
|
"types": "./dist/types/SpaceTypes.d.ts"
|
|
1339
1438
|
},
|
|
@@ -1347,9 +1446,6 @@
|
|
|
1347
1446
|
"types": "./dist/types/StyleTypes.d.ts",
|
|
1348
1447
|
"import": "./dist/types/StyleTypes.mjs"
|
|
1349
1448
|
},
|
|
1350
|
-
"./types/TemplateTypes": {
|
|
1351
|
-
"types": "./dist/types/TemplateTypes.d.ts"
|
|
1352
|
-
},
|
|
1353
1449
|
"./types/ThemeTypes": {
|
|
1354
1450
|
"types": "./dist/types/ThemeTypes.d.ts"
|
|
1355
1451
|
},
|
|
@@ -1382,11 +1478,11 @@
|
|
|
1382
1478
|
"build:prod": "vite build && node ./scripts/generate-exports.mjs"
|
|
1383
1479
|
},
|
|
1384
1480
|
"dependencies": {
|
|
1385
|
-
"@modelcontextprotocol/sdk": "^1.
|
|
1481
|
+
"@modelcontextprotocol/sdk": "^1.32.0",
|
|
1386
1482
|
"@plitzi/nexus": "^1.4.0",
|
|
1387
|
-
"@plitzi/plitzi-ui": "^1.6.
|
|
1483
|
+
"@plitzi/plitzi-ui": "^1.6.29",
|
|
1388
1484
|
"date-fns": "^4.4.0",
|
|
1389
|
-
"immer": "^11.1.
|
|
1485
|
+
"immer": "^11.1.21",
|
|
1390
1486
|
"zod": "^4.6.5"
|
|
1391
1487
|
},
|
|
1392
1488
|
"peerDependencies": {
|
|
@@ -1411,24 +1507,24 @@
|
|
|
1411
1507
|
"@types/react": "^19.3.0",
|
|
1412
1508
|
"@types/react-dom": "^19.3.0",
|
|
1413
1509
|
"@vitejs/plugin-react": "^6.1.1",
|
|
1414
|
-
"@vitest/coverage-v8": "^5.0.
|
|
1510
|
+
"@vitest/coverage-v8": "^5.0.3",
|
|
1415
1511
|
"babel-minify": "^0.5.2",
|
|
1416
1512
|
"eslint": "^9.39.5",
|
|
1417
1513
|
"eslint-config-airbnb": "^19.0.4",
|
|
1418
1514
|
"eslint-config-prettier": "^10.1.8",
|
|
1419
|
-
"eslint-config-turbo": "^2.11.
|
|
1515
|
+
"eslint-config-turbo": "^2.11.7",
|
|
1420
1516
|
"eslint-import-resolver-alias": "^1.1.2",
|
|
1421
1517
|
"eslint-plugin-cypress": "^7.0.2",
|
|
1422
1518
|
"eslint-plugin-flowtype": "8.0.3",
|
|
1423
1519
|
"eslint-plugin-import": "^2.32.0",
|
|
1424
|
-
"eslint-plugin-jsdoc": "^
|
|
1520
|
+
"eslint-plugin-jsdoc": "^65.0.2",
|
|
1425
1521
|
"eslint-plugin-jsx-a11y": "^6.10.2",
|
|
1426
1522
|
"eslint-plugin-prettier": "^5.5.6",
|
|
1427
1523
|
"eslint-plugin-react": "^7.37.5",
|
|
1428
1524
|
"eslint-plugin-react-hooks": "^7.1.1",
|
|
1429
1525
|
"eslint-plugin-react-refresh": "^0.5.7",
|
|
1430
|
-
"eslint-plugin-storybook": "^10.6.
|
|
1431
|
-
"globals": "^17.
|
|
1526
|
+
"eslint-plugin-storybook": "^10.6.1",
|
|
1527
|
+
"globals": "^17.13.0",
|
|
1432
1528
|
"jsdom": "^30.1.1",
|
|
1433
1529
|
"postcss": "^8.5.28",
|
|
1434
1530
|
"prettier": "^3.9.9",
|
|
@@ -1437,11 +1533,11 @@
|
|
|
1437
1533
|
"tailwindcss": "^4.3.3",
|
|
1438
1534
|
"terser": "^5.51.2",
|
|
1439
1535
|
"typescript": "^6.0.3",
|
|
1440
|
-
"typescript-eslint": "^8.
|
|
1441
|
-
"vite": "^8.3.
|
|
1442
|
-
"vite-plugin-dts": "^5.1.
|
|
1536
|
+
"typescript-eslint": "^8.71.0",
|
|
1537
|
+
"vite": "^8.3.2",
|
|
1538
|
+
"vite-plugin-dts": "^5.1.2",
|
|
1443
1539
|
"vite-plugin-react": "^4.0.1",
|
|
1444
|
-
"vitest": "^5.0.
|
|
1540
|
+
"vitest": "^5.0.3",
|
|
1445
1541
|
"vitest-fetch-mock": "^0.4.5"
|
|
1446
1542
|
},
|
|
1447
1543
|
"peerDependenciesMeta": {
|
package/tailwind.config.js
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import defaultTheme from 'tailwindcss/defaultTheme';
|
|
2
1
|
import plugin from 'tailwindcss/plugin';
|
|
3
2
|
import { colors } from '@plitzi/plitzi-ui/tailwind';
|
|
4
3
|
|
|
@@ -7,11 +6,7 @@ const config = {
|
|
|
7
6
|
extend: {
|
|
8
7
|
colors
|
|
9
8
|
},
|
|
10
|
-
groups: ['1', '2', '3', '4', '5']
|
|
11
|
-
fontFamily: {
|
|
12
|
-
...defaultTheme.fontFamily,
|
|
13
|
-
rubik: ['Rubik', 'sans-serif']
|
|
14
|
-
}
|
|
9
|
+
groups: ['1', '2', '3', '4', '5']
|
|
15
10
|
},
|
|
16
11
|
plugins: [
|
|
17
12
|
plugin(({ addVariant, theme }) => {
|
package/vite.config.ts
CHANGED
|
@@ -126,10 +126,22 @@ export default defineConfig(({ mode, command }) => {
|
|
|
126
126
|
// '@': resolve(__dirname, './src'),
|
|
127
127
|
},
|
|
128
128
|
extensions: ['.js', '.ts', '.tsx', '.mjs'],
|
|
129
|
-
// `@plitzi/nexus`
|
|
130
|
-
//
|
|
131
|
-
|
|
132
|
-
|
|
129
|
+
// `@plitzi/nexus` and `@plitzi/plitzi-ui` may be linked through portals, each carrying its own node_modules. React and
|
|
130
|
+
// CodeMirror check identity (a hook's dispatcher, an extension's `instanceof`), so a second copy breaks them: one each.
|
|
131
|
+
dedupe: [
|
|
132
|
+
'react',
|
|
133
|
+
'react-dom',
|
|
134
|
+
'@codemirror/autocomplete',
|
|
135
|
+
'@codemirror/commands',
|
|
136
|
+
'@codemirror/language',
|
|
137
|
+
'@codemirror/lint',
|
|
138
|
+
'@codemirror/search',
|
|
139
|
+
'@codemirror/state',
|
|
140
|
+
'@codemirror/view',
|
|
141
|
+
'@lezer/common',
|
|
142
|
+
'@lezer/highlight',
|
|
143
|
+
'@lezer/lr'
|
|
144
|
+
]
|
|
133
145
|
},
|
|
134
146
|
build: {
|
|
135
147
|
// outDir: 'dist/src',
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
declare const SpaceAddTemplateMutation = "\n mutation SpaceAddTemplateMutation(\n $environment: String!\n $element: Json!\n $style: Json\n $dropPosition: String!\n $to: String!\n $initialItems: [Json]!\n $variables: [SpaceVariableInput]\n ) {\n SpaceAddTemplate(\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 SpaceAddTemplateMutation;
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
//#region src/network/graphql/builder/Mutations/Space/SpaceAddTemplateMutation.ts
|
|
2
|
-
var e = "\n mutation SpaceAddTemplateMutation(\n $environment: String!\n $element: Json!\n $style: Json\n $dropPosition: String!\n $to: String!\n $initialItems: [Json]!\n $variables: [SpaceVariableInput]\n ) {\n SpaceAddTemplate(\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 };
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { Element, Schema } from './SchemaTypes';
|
|
2
|
-
import { Style } from './StyleTypes';
|
|
3
|
-
/**
|
|
4
|
-
* A published template: a subtree, the style that dresses it, and the element a builder instantiates.
|
|
5
|
-
*
|
|
6
|
-
* The artefact someone hosts when they are not building a space — fetched by URL, shown in the Resources panel,
|
|
7
|
-
* dragged onto a canvas — which is why it lives beside the schema and the style rather than with the builder's own
|
|
8
|
-
* types: it is a document, produced and consumed by processes that never open a builder.
|
|
9
|
-
*/
|
|
10
|
-
export type Template = {
|
|
11
|
-
id?: string;
|
|
12
|
-
definition: {
|
|
13
|
-
name: string;
|
|
14
|
-
description: string;
|
|
15
|
-
/** Root of what travels. Its subtree is the whole of `schema.flat`, and it answers to no parent. */
|
|
16
|
-
baseElementId: Element['id'];
|
|
17
|
-
};
|
|
18
|
-
schema: Schema;
|
|
19
|
-
style: Style;
|
|
20
|
-
};
|
|
File without changes
|