@supernova-studio/model 0.46.11 → 0.46.12

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.js CHANGED
@@ -477,7 +477,8 @@ var DataSourceFigmaScope = _zod.z.object({
477
477
  components: _zod.z.boolean(),
478
478
  documentationFrames: _zod.z.boolean(),
479
479
  tokens: _zod.z.boolean(),
480
- themePersistentId: _zod.z.string().optional()
480
+ themePersistentId: _zod.z.string().optional(),
481
+ isUnpublishedImportFallbackEnabled: _zod.z.boolean()
481
482
  });
482
483
  var DataSourceFigmaImportMetadata = _zod.z.object({
483
484
  fileData: DataSourceFigmaFileData.optional(),
@@ -2067,6 +2068,34 @@ var FigmaFileAccessData = _zod.z.object({
2067
2068
 
2068
2069
  // src/dsm/import/support/import-context.ts
2069
2070
 
2071
+
2072
+ // src/dsm/import/warning.ts
2073
+
2074
+ var ImportWarningType = _zod.z.enum([
2075
+ "NoVersionFound",
2076
+ "UnsupportedFill",
2077
+ "UnsupportedStroke",
2078
+ "UnsupportedEffect",
2079
+ "NoPublishedElements",
2080
+ "NoPublishedStyles",
2081
+ "NoPublishedComponents",
2082
+ "NoPublishedAssets",
2083
+ "StyleNotApplied",
2084
+ "ComponentHasNoThumbnail",
2085
+ "DuplicateImportedStyleId",
2086
+ "DuplicateImportedStylePath",
2087
+ "NoUnpublishedStyles"
2088
+ ]);
2089
+ var ImportWarning = _zod.z.object({
2090
+ warningType: ImportWarningType,
2091
+ componentId: _zod.z.string().optional(),
2092
+ componentName: _zod.z.string().optional(),
2093
+ styleId: _zod.z.string().optional(),
2094
+ styleName: _zod.z.string().optional(),
2095
+ unsupportedStyleValueType: _zod.z.string().optional()
2096
+ });
2097
+
2098
+ // src/dsm/import/support/import-context.ts
2070
2099
  var ImportFunctionInput = _zod.z.object({
2071
2100
  importJobId: _zod.z.string(),
2072
2101
  importContextId: _zod.z.string(),
@@ -2090,7 +2119,12 @@ var FigmaImportBaseContext = _zod.z.object({
2090
2119
  *
2091
2120
  * sourceId: source data
2092
2121
  */
2093
- importedSourceDataBySourceId: _zod.z.record(ImportedFigmaSourceData)
2122
+ importedSourceDataBySourceId: _zod.z.record(ImportedFigmaSourceData),
2123
+ /**
2124
+ * Array of warnings that will be written into the import result summary at the end
2125
+ * of import job execution and displayed by the client.
2126
+ */
2127
+ importWarnings: _zod.z.record(ImportWarning.array()).default({})
2094
2128
  });
2095
2129
  var FigmaImportContextWithSourcesState = FigmaImportBaseContext.extend({
2096
2130
  sourcesWithMissingAccess: _zod.z.array(_zod.z.string()).default([]),
@@ -2320,31 +2354,6 @@ function addImportModelCollections(lhs, rhs) {
2320
2354
  };
2321
2355
  }
2322
2356
 
2323
- // src/dsm/import/warning.ts
2324
-
2325
- var ImportWarningType = _zod.z.enum([
2326
- "NoVersionFound",
2327
- "UnsupportedFill",
2328
- "UnsupportedStroke",
2329
- "UnsupportedEffect",
2330
- "NoPublishedElements",
2331
- "NoPublishedStyles",
2332
- "NoPublishedComponents",
2333
- "NoPublishedAssets",
2334
- "StyleNotApplied",
2335
- "ComponentHasNoThumbnail",
2336
- "DuplicateImportedStyleId",
2337
- "DuplicateImportedStylePath"
2338
- ]);
2339
- var ImportWarning = _zod.z.object({
2340
- warningType: ImportWarningType,
2341
- componentId: _zod.z.string().optional(),
2342
- componentName: _zod.z.string().optional(),
2343
- styleId: _zod.z.string().optional(),
2344
- styleName: _zod.z.string().optional(),
2345
- unsupportedStyleValueType: _zod.z.string().optional()
2346
- });
2347
-
2348
2357
  // src/dsm/data-sources/import-summary.ts
2349
2358
  var FileStructureStats = _zod.z.object({
2350
2359
  frames: zeroNumberByDefault2(),