@supernova-studio/client 1.94.0 → 1.95.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 +2171 -1281
- package/dist/index.d.ts +2171 -1281
- package/dist/index.js +17 -19
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +16 -18
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -2978,6 +2978,7 @@ var FigmaNodeReferenceData = z63.object({
|
|
|
2978
2978
|
sceneNodeId: z63.string(),
|
|
2979
2979
|
format: FigmaNodeRenderFormat,
|
|
2980
2980
|
scale: nullishToOptional(z63.number()),
|
|
2981
|
+
useAbsoluteBounds: nullishToOptional(z63.boolean()),
|
|
2981
2982
|
renderState: FigmaNodeRenderState,
|
|
2982
2983
|
renderedImage: FigmaNodeRenderedImage.optional(),
|
|
2983
2984
|
renderError: FigmaNodeRenderError.optional(),
|
|
@@ -5559,7 +5560,8 @@ var PublishedDocPageVisitsEntry = z175.object({
|
|
|
5559
5560
|
timestamp: z175.coerce.date(),
|
|
5560
5561
|
visits: z175.number(),
|
|
5561
5562
|
userId: nullishToOptional(z175.string()),
|
|
5562
|
-
anonymousId: nullishToOptional(z175.string())
|
|
5563
|
+
anonymousId: nullishToOptional(z175.string()),
|
|
5564
|
+
ipAddress: nullishToOptional(z175.string())
|
|
5563
5565
|
});
|
|
5564
5566
|
|
|
5565
5567
|
// ../model/src/dsm/published-doc-page.ts
|
|
@@ -10069,18 +10071,10 @@ var DTOFigmaNodeV2 = FigmaNodeReference.omit({
|
|
|
10069
10071
|
|
|
10070
10072
|
// src/api/dto/elements/figma-nodes/node-actions-v2.ts
|
|
10071
10073
|
import { z as z316 } from "zod";
|
|
10072
|
-
var DTOFigmaNodeRenderActionOutput = z316.object({
|
|
10073
|
-
type: z316.literal("FigmaNodeRender"),
|
|
10074
|
-
figmaNodes: z316.array(DTOFigmaNode)
|
|
10075
|
-
});
|
|
10076
10074
|
var DTOFigmaNodeRenderAsyncActionOutput = z316.object({
|
|
10077
10075
|
type: z316.literal("FigmaNodeRenderAsync"),
|
|
10078
10076
|
figmaNodes: z316.array(DTOFigmaNodeV2)
|
|
10079
10077
|
});
|
|
10080
|
-
var DTOFigmaNodeRenderActionInput = z316.object({
|
|
10081
|
-
type: z316.literal("FigmaNodeRender"),
|
|
10082
|
-
input: DTOFigmaNodeRenderIdInput.array()
|
|
10083
|
-
});
|
|
10084
10078
|
var DTOFigmaNodeRenderAsyncActionInput = z316.object({
|
|
10085
10079
|
type: z316.literal("FigmaNodeRenderAsync"),
|
|
10086
10080
|
nodes: DTOFigmaNodeRenderInput.array()
|
|
@@ -10191,7 +10185,6 @@ var DTOElementActionOutput = z320.discriminatedUnion("type", [
|
|
|
10191
10185
|
DTODocumentationGroupDeleteActionOutputV2,
|
|
10192
10186
|
DTODocumentationTabGroupDeleteActionOutputV2,
|
|
10193
10187
|
// Figma frames
|
|
10194
|
-
DTOFigmaNodeRenderActionOutput,
|
|
10195
10188
|
DTOFigmaNodeRenderAsyncActionOutput,
|
|
10196
10189
|
// Restore
|
|
10197
10190
|
DTODocumentationPageRestoreActionOutput,
|
|
@@ -10218,7 +10211,6 @@ var DTOElementActionInput = z320.discriminatedUnion("type", [
|
|
|
10218
10211
|
DTODocumentationGroupDeleteActionInputV2,
|
|
10219
10212
|
DTODocumentationTabGroupDeleteActionInputV2,
|
|
10220
10213
|
// Figma frames
|
|
10221
|
-
DTOFigmaNodeRenderActionInput,
|
|
10222
10214
|
DTOFigmaNodeRenderAsyncActionInput,
|
|
10223
10215
|
// Restore
|
|
10224
10216
|
DTODocumentationPageRestoreActionInput,
|
|
@@ -11473,7 +11465,19 @@ var DTOForgeProjectContextCreateV2 = DTOForgeProjectContextV2.omit({
|
|
|
11473
11465
|
isArchived: true,
|
|
11474
11466
|
thumbnail: true
|
|
11475
11467
|
}).extend({
|
|
11476
|
-
thumbnailFileId: z337.string().optional()
|
|
11468
|
+
thumbnailFileId: z337.string().optional(),
|
|
11469
|
+
theme: DTOForgeProjectTheme.optional(),
|
|
11470
|
+
iconSet: DTOForgeIconSet.optional(),
|
|
11471
|
+
componentSet: DTOForgeComponentSet.optional()
|
|
11472
|
+
}).superRefine((input, ctx) => {
|
|
11473
|
+
const hasDefaultTemplateFields = input.theme && input.iconSet && input.componentSet;
|
|
11474
|
+
const hasCustomTemplateFields = input.sandboxTemplate;
|
|
11475
|
+
if (hasDefaultTemplateFields || hasCustomTemplateFields) return;
|
|
11476
|
+
ctx.addIssue({
|
|
11477
|
+
code: z337.ZodIssueCode.custom,
|
|
11478
|
+
message: "Either the setup fields for default template (theme, iconSet, componentSet) or a sandbox template field (sandboxTemplate) must be provided.",
|
|
11479
|
+
path: ["theme", "iconSet", "componentSet", "sandboxTemplate"]
|
|
11480
|
+
});
|
|
11477
11481
|
});
|
|
11478
11482
|
var DTOForgeProjectContextUpdateV2 = DTOForgeProjectContextV2.omit({
|
|
11479
11483
|
id: true,
|
|
@@ -12901,9 +12905,6 @@ var ElementsActionEndpoint = class {
|
|
|
12901
12905
|
async createDocTab(dsId, vId, input) {
|
|
12902
12906
|
return this.action(dsId, vId, { type: "DocumentationTabCreate", input });
|
|
12903
12907
|
}
|
|
12904
|
-
async renderNodes(dsId, vId, input) {
|
|
12905
|
-
return this.action(dsId, vId, { type: "FigmaNodeRender", input });
|
|
12906
|
-
}
|
|
12907
12908
|
async renderNodesAsync(dsId, vId, nodes) {
|
|
12908
12909
|
return this.action(dsId, vId, { type: "FigmaNodeRenderAsync", nodes });
|
|
12909
12910
|
}
|
|
@@ -14840,7 +14841,6 @@ var LocalDocsElementActionExecutor = class {
|
|
|
14840
14841
|
case "DocumentationTabGroupDelete":
|
|
14841
14842
|
throw new Error(`Transaction type ${trx.type} is not yet implemented`);
|
|
14842
14843
|
// Won't ever be supported
|
|
14843
|
-
case "FigmaNodeRender":
|
|
14844
14844
|
case "FigmaNodeRenderAsync":
|
|
14845
14845
|
throw new Error(`Transaction type ${trx.type} is not a documentation element action`);
|
|
14846
14846
|
}
|
|
@@ -21510,8 +21510,6 @@ export {
|
|
|
21510
21510
|
DTOFigmaNodeData,
|
|
21511
21511
|
DTOFigmaNodeDataV2,
|
|
21512
21512
|
DTOFigmaNodeOrigin,
|
|
21513
|
-
DTOFigmaNodeRenderActionInput,
|
|
21514
|
-
DTOFigmaNodeRenderActionOutput,
|
|
21515
21513
|
DTOFigmaNodeRenderAsyncActionInput,
|
|
21516
21514
|
DTOFigmaNodeRenderAsyncActionOutput,
|
|
21517
21515
|
DTOFigmaNodeRenderFormat,
|