@supernova-studio/model 0.17.0 → 0.19.0
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/dist/index.d.mts +4378 -19
- package/dist/index.d.ts +4378 -19
- package/dist/index.js +24 -15
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +24 -15
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/dsm/elements/data/documentation-block-v2.ts +7 -0
- package/src/dsm/elements/group.ts +1 -6
- package/src/multiplayer/design-system-version-room.ts +2 -20
- package/src/multiplayer/documentation-page-room.ts +25 -0
package/dist/index.mjs
CHANGED
|
@@ -983,7 +983,12 @@ var PageBlockItemDividerValue = z34.object({});
|
|
|
983
983
|
var PageBlockItemEmbedValue = z34.object({
|
|
984
984
|
value: z34.string().optional(),
|
|
985
985
|
caption: z34.string().optional(),
|
|
986
|
-
height: z34.number().optional()
|
|
986
|
+
height: z34.number().optional(),
|
|
987
|
+
openGraph: z34.object({
|
|
988
|
+
title: z34.string().optional(),
|
|
989
|
+
description: z34.string().optional(),
|
|
990
|
+
imageUrl: z34.string().optional()
|
|
991
|
+
}).optional()
|
|
987
992
|
});
|
|
988
993
|
var PageBlockItemFigmaNodeValue = z34.object({
|
|
989
994
|
selectedPropertyIds: z34.array(z34.string()).optional(),
|
|
@@ -2973,22 +2978,12 @@ var DesignSystemVersionRoom = Entity.extend({
|
|
|
2973
2978
|
});
|
|
2974
2979
|
var DesignSystemVersionRoomInitialState = z119.object({
|
|
2975
2980
|
pages: z119.array(DocumentationPageV2),
|
|
2976
|
-
groups: z119.array(ElementGroup)
|
|
2977
|
-
deletedPagePersistentIds: z119.array(z119.string()),
|
|
2978
|
-
deletedGroupPersistentIds: z119.array(z119.string())
|
|
2981
|
+
groups: z119.array(ElementGroup)
|
|
2979
2982
|
});
|
|
2980
2983
|
var DesignSystemVersionRoomUpdate = DesignSystemVersionRoomInitialState.extend({
|
|
2981
|
-
|
|
2982
|
-
|
|
2984
|
+
deletedPageIds: z119.array(z119.string()),
|
|
2985
|
+
deletedGroupIds: z119.array(z119.string())
|
|
2983
2986
|
});
|
|
2984
|
-
function mergeDesignSystemVersionRoomUpdates(lhs, rhs) {
|
|
2985
|
-
return {
|
|
2986
|
-
pages: [...lhs.pages, ...rhs.pages],
|
|
2987
|
-
groups: [...lhs.groups, ...rhs.groups],
|
|
2988
|
-
deletedPagePersistentIds: [...lhs.deletedPagePersistentIds, ...rhs.deletedPagePersistentIds],
|
|
2989
|
-
deletedGroupPersistentIds: [...lhs.deletedGroupPersistentIds, ...rhs.deletedGroupPersistentIds]
|
|
2990
|
-
};
|
|
2991
|
-
}
|
|
2992
2987
|
|
|
2993
2988
|
// src/multiplayer/documentation-page-room.ts
|
|
2994
2989
|
import { z as z120 } from "zod";
|
|
@@ -2997,6 +2992,18 @@ var DocumentationPageRoom = Entity.extend({
|
|
|
2997
2992
|
documentationPageId: z120.string(),
|
|
2998
2993
|
liveblocksId: z120.string()
|
|
2999
2994
|
});
|
|
2995
|
+
var PageBlockEditorModel = z120.object({
|
|
2996
|
+
id: z120.string(),
|
|
2997
|
+
data: PageBlockDataV2
|
|
2998
|
+
});
|
|
2999
|
+
var DocumentationPageRoomRoomUpdate = z120.object({
|
|
3000
|
+
page: DocumentationPageV2,
|
|
3001
|
+
pageParent: ElementGroup
|
|
3002
|
+
});
|
|
3003
|
+
var DocumentationPageRoomInitialState = DocumentationPageRoomRoomUpdate.extend({
|
|
3004
|
+
pageBlocks: z120.array(PageBlockEditorModel),
|
|
3005
|
+
blockDefinitions: z120.array(PageBlockDefinition)
|
|
3006
|
+
});
|
|
3000
3007
|
|
|
3001
3008
|
// src/multiplayer/room-type.ts
|
|
3002
3009
|
import { z as z121 } from "zod";
|
|
@@ -3946,6 +3953,8 @@ export {
|
|
|
3946
3953
|
DocumentationPageGroup,
|
|
3947
3954
|
DocumentationPageImageAsset,
|
|
3948
3955
|
DocumentationPageRoom,
|
|
3956
|
+
DocumentationPageRoomInitialState,
|
|
3957
|
+
DocumentationPageRoomRoomUpdate,
|
|
3949
3958
|
DocumentationPageV1,
|
|
3950
3959
|
DocumentationPageV2,
|
|
3951
3960
|
DurationTokenData,
|
|
@@ -4124,6 +4133,7 @@ export {
|
|
|
4124
4133
|
PageBlockDefinitionTextPropertyStyle,
|
|
4125
4134
|
PageBlockDefinitionUntypedPropertyOptions,
|
|
4126
4135
|
PageBlockDefinitionVariant,
|
|
4136
|
+
PageBlockEditorModel,
|
|
4127
4137
|
PageBlockEditorModelV2,
|
|
4128
4138
|
PageBlockFigmaFrameProperties,
|
|
4129
4139
|
PageBlockFrame,
|
|
@@ -4323,7 +4333,6 @@ export {
|
|
|
4323
4333
|
isSlugReserved,
|
|
4324
4334
|
isTokenType,
|
|
4325
4335
|
mapByUnique,
|
|
4326
|
-
mergeDesignSystemVersionRoomUpdates,
|
|
4327
4336
|
nonNullFilter,
|
|
4328
4337
|
nonNullishFilter,
|
|
4329
4338
|
nullishToOptional,
|