@plitzi/sdk-shared 0.37.9 → 0.37.10
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 +585 -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 +1 -1
- package/dist/types/index.d.ts +1 -1
- package/package.json +104 -8
- 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/types/index.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@plitzi/sdk-shared",
|
|
3
|
-
"version": "0.37.
|
|
3
|
+
"version": "0.37.10",
|
|
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
|
},
|
|
@@ -1384,7 +1480,7 @@
|
|
|
1384
1480
|
"dependencies": {
|
|
1385
1481
|
"@modelcontextprotocol/sdk": "^1.30.1",
|
|
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
1485
|
"immer": "^11.1.18",
|
|
1390
1486
|
"zod": "^4.6.5"
|
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
|