@supernova-studio/model 0.47.47 → 0.47.49
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 +1339 -435
- package/dist/index.d.ts +1339 -435
- package/dist/index.js +33 -28
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +677 -672
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/dsm/data-sources/data-source.ts +3 -1
- package/src/dsm/elements/tokens.ts +22 -20
- package/src/dsm/import/warning.ts +3 -0
- package/src/utils/common.ts +3 -0
package/dist/index.js
CHANGED
|
@@ -456,6 +456,34 @@ function isImportedAsset(asset) {
|
|
|
456
456
|
// src/dsm/data-sources/data-source.ts
|
|
457
457
|
|
|
458
458
|
|
|
459
|
+
// src/dsm/import/warning.ts
|
|
460
|
+
|
|
461
|
+
var ImportWarningType = _zod.z.enum([
|
|
462
|
+
"NoVersionFound",
|
|
463
|
+
"UnsupportedFill",
|
|
464
|
+
"UnsupportedStroke",
|
|
465
|
+
"UnsupportedEffect",
|
|
466
|
+
"NoPublishedElements",
|
|
467
|
+
"NoPublishedStyles",
|
|
468
|
+
"NoPublishedComponents",
|
|
469
|
+
"NoPublishedAssets",
|
|
470
|
+
"StyleNotApplied",
|
|
471
|
+
"ComponentHasNoThumbnail",
|
|
472
|
+
"DuplicateImportedStyleId",
|
|
473
|
+
"DuplicateImportedStylePath",
|
|
474
|
+
"NoUnpublishedStyles",
|
|
475
|
+
"ReferenceResolutionFailed"
|
|
476
|
+
]);
|
|
477
|
+
var ImportWarning = _zod.z.object({
|
|
478
|
+
warningType: ImportWarningType,
|
|
479
|
+
componentId: _zod.z.string().optional(),
|
|
480
|
+
componentName: _zod.z.string().optional(),
|
|
481
|
+
styleId: _zod.z.string().optional(),
|
|
482
|
+
styleName: _zod.z.string().optional(),
|
|
483
|
+
unsupportedStyleValueType: _zod.z.string().optional(),
|
|
484
|
+
referenceId: _zod.z.string().optional()
|
|
485
|
+
});
|
|
486
|
+
|
|
459
487
|
// src/dsm/data-sources/import-summary.ts
|
|
460
488
|
|
|
461
489
|
|
|
@@ -1731,7 +1759,9 @@ var FigmaNodeReference = DesignElementBase.extend({
|
|
|
1731
1759
|
|
|
1732
1760
|
var DesignTokenOriginPart = _zod.z.object({
|
|
1733
1761
|
referenceOriginId: _zod.z.string().optional(),
|
|
1734
|
-
referencePersistentId: _zod.z.string().optional()
|
|
1762
|
+
referencePersistentId: _zod.z.string().optional(),
|
|
1763
|
+
referenceResolutionFailed: _zod.z.boolean().optional(),
|
|
1764
|
+
key: _zod.z.string().optional()
|
|
1735
1765
|
});
|
|
1736
1766
|
var DesignTokenOrigin = DesignElementOrigin.extend(DesignTokenOriginPart.shape);
|
|
1737
1767
|
var DesignTokenBase = DesignElementBase.extend(DesignElementGroupableRequiredPart.shape).extend(DesignElementBrandedPart.shape).extend({
|
|
@@ -1991,32 +2021,6 @@ var PageBlockDefinitionsMap = class {
|
|
|
1991
2021
|
}
|
|
1992
2022
|
};
|
|
1993
2023
|
|
|
1994
|
-
// src/dsm/import/warning.ts
|
|
1995
|
-
|
|
1996
|
-
var ImportWarningType = _zod.z.enum([
|
|
1997
|
-
"NoVersionFound",
|
|
1998
|
-
"UnsupportedFill",
|
|
1999
|
-
"UnsupportedStroke",
|
|
2000
|
-
"UnsupportedEffect",
|
|
2001
|
-
"NoPublishedElements",
|
|
2002
|
-
"NoPublishedStyles",
|
|
2003
|
-
"NoPublishedComponents",
|
|
2004
|
-
"NoPublishedAssets",
|
|
2005
|
-
"StyleNotApplied",
|
|
2006
|
-
"ComponentHasNoThumbnail",
|
|
2007
|
-
"DuplicateImportedStyleId",
|
|
2008
|
-
"DuplicateImportedStylePath",
|
|
2009
|
-
"NoUnpublishedStyles"
|
|
2010
|
-
]);
|
|
2011
|
-
var ImportWarning = _zod.z.object({
|
|
2012
|
-
warningType: ImportWarningType,
|
|
2013
|
-
componentId: _zod.z.string().optional(),
|
|
2014
|
-
componentName: _zod.z.string().optional(),
|
|
2015
|
-
styleId: _zod.z.string().optional(),
|
|
2016
|
-
styleName: _zod.z.string().optional(),
|
|
2017
|
-
unsupportedStyleValueType: _zod.z.string().optional()
|
|
2018
|
-
});
|
|
2019
|
-
|
|
2020
2024
|
// src/dsm/data-sources/import-summary.ts
|
|
2021
2025
|
var FileStructureStats = _zod.z.object({
|
|
2022
2026
|
frames: zeroNumberByDefault(),
|
|
@@ -2119,7 +2123,8 @@ var DataSourceUploadRemote = _zod.z.object({
|
|
|
2119
2123
|
type: _zod.z.literal(DataSourceRemoteType.Enum.FigmaVariablesPlugin),
|
|
2120
2124
|
remoteId: _zod.z.string(),
|
|
2121
2125
|
remoteSourceType: DataSourceUploadRemoteSource,
|
|
2122
|
-
lastImportMetadata: DataSourceUploadImportMetadata.optional()
|
|
2126
|
+
lastImportMetadata: DataSourceUploadImportMetadata.optional(),
|
|
2127
|
+
warnings: nullishToOptional(ImportWarning.array())
|
|
2123
2128
|
});
|
|
2124
2129
|
var DataSourceRemote = _zod.z.discriminatedUnion("type", [
|
|
2125
2130
|
DataSourceFigmaRemote,
|