@supernova-studio/client 0.22.0 → 0.24.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 +449 -286
- package/dist/index.d.ts +449 -286
- package/dist/index.js +21 -10
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +52 -41
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/api/dto/elements/elements-action-v2.ts +3 -3
- package/src/api/dto/elements/figma-nodes/figma-node.ts +2 -2
- package/src/api/dto/elements/figma-nodes/index.ts +1 -1
- package/src/api/dto/elements/figma-nodes/node-actions-v2.ts +6 -6
- package/src/api/dto/elements/get-elements-v2.ts +21 -0
- package/src/api/dto/elements/index.ts +1 -0
package/dist/index.js
CHANGED
|
@@ -3874,9 +3874,6 @@ var DocumentationPageV1DTO = DocumentationPageV1.omit({
|
|
|
3874
3874
|
path: _zod.z.string()
|
|
3875
3875
|
});
|
|
3876
3876
|
|
|
3877
|
-
// src/api/dto/elements/figma-nodes/node-actions-v2.ts
|
|
3878
|
-
|
|
3879
|
-
|
|
3880
3877
|
// src/api/dto/elements/figma-nodes/figma-node.ts
|
|
3881
3878
|
|
|
3882
3879
|
var DTOFigmaNodeData = _zod.z.object({
|
|
@@ -3897,7 +3894,7 @@ var DTOFigmaNode = FigmaFileStructure.omit({
|
|
|
3897
3894
|
}).extend({
|
|
3898
3895
|
data: DTOFigmaNodeData
|
|
3899
3896
|
});
|
|
3900
|
-
var
|
|
3897
|
+
var DTOFigmaNodeRenderInput = _zod.z.object({
|
|
3901
3898
|
// Id of a design system's data source representing a linked Figma file
|
|
3902
3899
|
sourceId: _zod.z.string(),
|
|
3903
3900
|
// Id of a node within the Figma file
|
|
@@ -3905,13 +3902,14 @@ var DTOFigmaNodeCreateInput = _zod.z.object({
|
|
|
3905
3902
|
});
|
|
3906
3903
|
|
|
3907
3904
|
// src/api/dto/elements/figma-nodes/node-actions-v2.ts
|
|
3908
|
-
|
|
3905
|
+
|
|
3906
|
+
var DTOFigmaNodeRenderActionOutput = _zod.z.object({
|
|
3909
3907
|
type: _zod.z.literal("FigmaNodeRender"),
|
|
3910
3908
|
figmaNodes: _zod.z.array(DTOFigmaNode)
|
|
3911
3909
|
});
|
|
3912
|
-
var
|
|
3910
|
+
var DTOFigmaNodeRenderActionInput = _zod.z.object({
|
|
3913
3911
|
type: _zod.z.literal("FigmaNodeRender"),
|
|
3914
|
-
input:
|
|
3912
|
+
input: DTOFigmaNodeRenderInput.array()
|
|
3915
3913
|
});
|
|
3916
3914
|
|
|
3917
3915
|
// src/api/dto/elements/elements-action-v2.ts
|
|
@@ -3932,7 +3930,7 @@ var DTOElementActionOutput = _zod.z.discriminatedUnion("type", [
|
|
|
3932
3930
|
DTODocumentationGroupDeleteActionOutputV2,
|
|
3933
3931
|
DTODocumentationTabGroupDeleteActionOutputV2,
|
|
3934
3932
|
// // Figma frames
|
|
3935
|
-
|
|
3933
|
+
DTOFigmaNodeRenderActionOutput
|
|
3936
3934
|
]);
|
|
3937
3935
|
var DTOElementActionInput = _zod.z.discriminatedUnion("type", [
|
|
3938
3936
|
// Documentation pages
|
|
@@ -3950,9 +3948,19 @@ var DTOElementActionInput = _zod.z.discriminatedUnion("type", [
|
|
|
3950
3948
|
DTODocumentationGroupDeleteActionInputV2,
|
|
3951
3949
|
DTODocumentationTabGroupDeleteActionInputV2,
|
|
3952
3950
|
// Figma frames
|
|
3953
|
-
|
|
3951
|
+
DTOFigmaNodeRenderActionInput
|
|
3954
3952
|
]);
|
|
3955
3953
|
|
|
3954
|
+
// src/api/dto/elements/get-elements-v2.ts
|
|
3955
|
+
|
|
3956
|
+
var DTOElementsGetTypeFilter = _zod.z.enum(["FigmaNode"]);
|
|
3957
|
+
var DTOElementsGetQuerySchema = _zod.z.object({
|
|
3958
|
+
types: _zod.z.string().transform((val) => val.split(",").map((v) => DTOElementsGetTypeFilter.parse(v)))
|
|
3959
|
+
});
|
|
3960
|
+
var DTOElementsGetOutput = _zod.z.object({
|
|
3961
|
+
figmaNodes: _zod.z.array(DTOFigmaNode).optional()
|
|
3962
|
+
});
|
|
3963
|
+
|
|
3956
3964
|
// src/api/payloads/documentation/block-definitions.ts
|
|
3957
3965
|
|
|
3958
3966
|
var DTOGetBlockDefinitionsOutput = _zod.z.object({
|
|
@@ -8280,5 +8288,8 @@ function mapByUnique2(items, keyFn) {
|
|
|
8280
8288
|
|
|
8281
8289
|
|
|
8282
8290
|
|
|
8283
|
-
|
|
8291
|
+
|
|
8292
|
+
|
|
8293
|
+
|
|
8294
|
+
exports.BlockDefinitionUtils = BlockDefinitionUtils; exports.BlockParsingUtils = BlockParsingUtils; exports.DTOCreateDocumentationGroupInput = DTOCreateDocumentationGroupInput; exports.DTOCreateDocumentationPageInputV2 = DTOCreateDocumentationPageInputV2; exports.DTOCreateDocumentationTabGroupInput = DTOCreateDocumentationTabGroupInput; exports.DTODeleteDocumentationGroupInput = DTODeleteDocumentationGroupInput; exports.DTODeleteDocumentationPageInputV2 = DTODeleteDocumentationPageInputV2; exports.DTODeleteDocumentationTabGroupInput = DTODeleteDocumentationTabGroupInput; exports.DTODesignSystem = DTODesignSystem; exports.DTODocumentationGroupCreateActionInputV2 = DTODocumentationGroupCreateActionInputV2; exports.DTODocumentationGroupCreateActionOutputV2 = DTODocumentationGroupCreateActionOutputV2; exports.DTODocumentationGroupDeleteActionInputV2 = DTODocumentationGroupDeleteActionInputV2; exports.DTODocumentationGroupDeleteActionOutputV2 = DTODocumentationGroupDeleteActionOutputV2; exports.DTODocumentationGroupDuplicateActionInputV2 = DTODocumentationGroupDuplicateActionInputV2; exports.DTODocumentationGroupDuplicateActionOutputV2 = DTODocumentationGroupDuplicateActionOutputV2; exports.DTODocumentationGroupMoveActionInputV2 = DTODocumentationGroupMoveActionInputV2; exports.DTODocumentationGroupMoveActionOutputV2 = DTODocumentationGroupMoveActionOutputV2; exports.DTODocumentationGroupStructureV2 = DTODocumentationGroupStructureV2; exports.DTODocumentationGroupUpdateActionInputV2 = DTODocumentationGroupUpdateActionInputV2; exports.DTODocumentationGroupUpdateActionOutputV2 = DTODocumentationGroupUpdateActionOutputV2; exports.DTODocumentationGroupV2 = DTODocumentationGroupV2; exports.DTODocumentationHierarchyV2 = DTODocumentationHierarchyV2; exports.DTODocumentationPageCreateActionInputV2 = DTODocumentationPageCreateActionInputV2; exports.DTODocumentationPageCreateActionOutputV2 = DTODocumentationPageCreateActionOutputV2; exports.DTODocumentationPageDeleteActionInputV2 = DTODocumentationPageDeleteActionInputV2; exports.DTODocumentationPageDeleteActionOutputV2 = DTODocumentationPageDeleteActionOutputV2; exports.DTODocumentationPageDuplicateActionInputV2 = DTODocumentationPageDuplicateActionInputV2; exports.DTODocumentationPageDuplicateActionOutputV2 = DTODocumentationPageDuplicateActionOutputV2; exports.DTODocumentationPageMoveActionInputV2 = DTODocumentationPageMoveActionInputV2; exports.DTODocumentationPageMoveActionOutputV2 = DTODocumentationPageMoveActionOutputV2; exports.DTODocumentationPageRoomHeaderData = DTODocumentationPageRoomHeaderData; exports.DTODocumentationPageRoomHeaderDataUpdate = DTODocumentationPageRoomHeaderDataUpdate; exports.DTODocumentationPageStructureV2 = DTODocumentationPageStructureV2; exports.DTODocumentationPageUpdateActionInputV2 = DTODocumentationPageUpdateActionInputV2; exports.DTODocumentationPageUpdateActionOutputV2 = DTODocumentationPageUpdateActionOutputV2; exports.DTODocumentationPageV2 = DTODocumentationPageV2; exports.DTODocumentationTabGroupCreateActionInputV2 = DTODocumentationTabGroupCreateActionInputV2; exports.DTODocumentationTabGroupCreateActionOutputV2 = DTODocumentationTabGroupCreateActionOutputV2; exports.DTODocumentationTabGroupDeleteActionInputV2 = DTODocumentationTabGroupDeleteActionInputV2; exports.DTODocumentationTabGroupDeleteActionOutputV2 = DTODocumentationTabGroupDeleteActionOutputV2; exports.DTODuplicateDocumentationGroupInput = DTODuplicateDocumentationGroupInput; exports.DTODuplicateDocumentationPageInputV2 = DTODuplicateDocumentationPageInputV2; exports.DTOElementActionInput = DTOElementActionInput; exports.DTOElementActionOutput = DTOElementActionOutput; exports.DTOElementsGetOutput = DTOElementsGetOutput; exports.DTOElementsGetQuerySchema = DTOElementsGetQuerySchema; exports.DTOElementsGetTypeFilter = DTOElementsGetTypeFilter; exports.DTOFigmaNode = DTOFigmaNode; exports.DTOFigmaNodeData = DTOFigmaNodeData; exports.DTOFigmaNodeRenderActionInput = DTOFigmaNodeRenderActionInput; exports.DTOFigmaNodeRenderActionOutput = DTOFigmaNodeRenderActionOutput; exports.DTOFigmaNodeRenderInput = DTOFigmaNodeRenderInput; exports.DTOGetBlockDefinitionsOutput = DTOGetBlockDefinitionsOutput; exports.DTOLiveblocksAuthRequest = DTOLiveblocksAuthRequest; exports.DTOMoveDocumentationGroupInput = DTOMoveDocumentationGroupInput; exports.DTOMoveDocumentationPageInputV2 = DTOMoveDocumentationPageInputV2; exports.DTOUpdateDocumentationGroupInput = DTOUpdateDocumentationGroupInput; exports.DTOUpdateDocumentationPageInputV2 = DTOUpdateDocumentationPageInputV2; exports.DocumentationPageEditorModel = DocumentationPageEditorModel; exports.DocumentationPageV1DTO = DocumentationPageV1DTO; exports.PageBlockEditorModel = PageBlockEditorModel2; exports.blockDefinitionForBlock = blockDefinitionForBlock; exports.blockToProsemirrorNode = blockToProsemirrorNode; exports.buildDocPagePublishPaths = buildDocPagePublishPaths; exports.calculateElementParentChain = calculateElementParentChain; exports.documentationElementsToHierarchyDto = documentationElementsToHierarchyDto; exports.documentationHierarchyToYjs = documentationHierarchyToYjs; exports.documentationPagesToDTOV1 = documentationPagesToDTOV1; exports.documentationPagesToDTOV2 = documentationPagesToDTOV2; exports.documentationPagesToStructureDTOV2 = documentationPagesToStructureDTOV2; exports.elementGroupsToDocumentationGroupDTO = elementGroupsToDocumentationGroupDTO; exports.elementGroupsToDocumentationGroupStructureDTO = elementGroupsToDocumentationGroupStructureDTO; exports.getMockPageBlockDefinitions = getMockPageBlockDefinitions; exports.itemConfigurationToYjs = itemConfigurationToYjs; exports.pageToProsemirrorDoc = pageToProsemirrorDoc; exports.pageToYXmlFragment = pageToYXmlFragment; exports.pmSchema = pmSchema; exports.prosemirrorDocToPage = prosemirrorDocToPage; exports.prosemirrorNodeToBlock = prosemirrorNodeToBlock; exports.serializeAsCustomBlock = serializeAsCustomBlock; exports.yDocToPage = yDocToPage; exports.yXmlFragmentToPage = yXmlFragmentToPage; exports.yjsToDocumentationHierarchy = yjsToDocumentationHierarchy; exports.yjsToItemConfiguration = yjsToItemConfiguration;
|
|
8284
8295
|
//# sourceMappingURL=index.js.map
|