@supernova-studio/client 0.58.24 → 0.58.26
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 +22 -0
- package/dist/index.d.ts +22 -0
- package/dist/index.js +6 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +6 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/api/dto/elements/figma-nodes/figma-node.ts +5 -0
- package/src/utils/figma.ts +1 -1
package/dist/index.mjs
CHANGED
|
@@ -6937,7 +6937,11 @@ var DTOFigmaNodeRenderUrlInput = DTOFigmaNodeRenderInputBase.extend({
|
|
|
6937
6937
|
/**
|
|
6938
6938
|
* Id of a design system's data source representing a linked Figma file
|
|
6939
6939
|
*/
|
|
6940
|
-
figmaNodeUrl: z241.string()
|
|
6940
|
+
figmaNodeUrl: z241.string(),
|
|
6941
|
+
/**
|
|
6942
|
+
* Brand persistent id to use in case a source has to be created for this render
|
|
6943
|
+
*/
|
|
6944
|
+
brandPersistentId: z241.string()
|
|
6941
6945
|
});
|
|
6942
6946
|
var DTOFigmaNodeRenderInput = z241.discriminatedUnion("inputType", [
|
|
6943
6947
|
DTOFigmaNodeRenderIdInput,
|
|
@@ -7162,7 +7166,7 @@ var DTOThemeCreatePayload = z251.object({
|
|
|
7162
7166
|
|
|
7163
7167
|
// src/utils/figma.ts
|
|
7164
7168
|
var figmaFileIdRegex = /^[0-9a-zA-Z]{22,128}$/;
|
|
7165
|
-
var nodeIdRegex =
|
|
7169
|
+
var nodeIdRegex = /^\d+-\d+$/;
|
|
7166
7170
|
var nodeTypeRegex = /^[0-9a-zA-Z]^/;
|
|
7167
7171
|
var FigmaUtils = {
|
|
7168
7172
|
tryParseFigmaFileURL(urlString) {
|