@supernova-studio/model 0.55.27 → 0.55.29
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 +335 -1
- package/dist/index.d.ts +335 -1
- package/dist/index.js +15 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +14 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/dsm/assets/asset.ts +1 -0
- package/src/dsm/data-sources/data-source.ts +1 -0
- package/src/dsm/elements/data/documentation-block-v1.ts +2 -0
- package/src/utils/common.ts +8 -0
package/dist/index.mjs
CHANGED
|
@@ -448,7 +448,8 @@ var Asset = z21.object({
|
|
|
448
448
|
properties: AssetProperties.nullish(),
|
|
449
449
|
state: AssetProcessStatus.optional(),
|
|
450
450
|
origin: AssetOrigin.optional(),
|
|
451
|
-
originKey: z21.string().optional()
|
|
451
|
+
originKey: z21.string().optional(),
|
|
452
|
+
createdByImportJobId: z21.string().optional()
|
|
452
453
|
});
|
|
453
454
|
var ResolvedAsset = Asset.extend({
|
|
454
455
|
url: z21.string()
|
|
@@ -834,6 +835,12 @@ function areShallowObjectsEqual(lhs, rhs) {
|
|
|
834
835
|
}
|
|
835
836
|
return true;
|
|
836
837
|
}
|
|
838
|
+
function isNotNullish(value) {
|
|
839
|
+
return !isNullish(value);
|
|
840
|
+
}
|
|
841
|
+
function isNullish(value) {
|
|
842
|
+
return value === null || value === void 0;
|
|
843
|
+
}
|
|
837
844
|
|
|
838
845
|
// src/utils/content-loader-instruction.ts
|
|
839
846
|
import { z as z34 } from "zod";
|
|
@@ -1924,7 +1931,9 @@ var PageBlockGuideline = z40.object({
|
|
|
1924
1931
|
var PageBlockBaseV1 = z40.object({
|
|
1925
1932
|
persistentId: z40.string(),
|
|
1926
1933
|
type: PageBlockTypeV1,
|
|
1934
|
+
// V2 generic attributes
|
|
1927
1935
|
numberOfColumns: nullishToOptional(z40.number()),
|
|
1936
|
+
itemBackgroundColor: nullishToOptional(ColorTokenInlineData),
|
|
1928
1937
|
// Element linking
|
|
1929
1938
|
designObjectId: nullishToOptional(z40.string()),
|
|
1930
1939
|
designObjectIds: nullishToOptional(z40.array(z40.string())),
|
|
@@ -3446,7 +3455,8 @@ var DataSourceUploadRemote = z88.object({
|
|
|
3446
3455
|
remoteId: z88.string(),
|
|
3447
3456
|
remoteSourceType: DataSourceUploadRemoteSource,
|
|
3448
3457
|
lastImportMetadata: DataSourceUploadImportMetadata.optional(),
|
|
3449
|
-
warnings: nullishToOptional(ImportWarning.array())
|
|
3458
|
+
warnings: nullishToOptional(ImportWarning.array()),
|
|
3459
|
+
isTokenTypeSplitEnabled: z88.boolean()
|
|
3450
3460
|
});
|
|
3451
3461
|
var DataSourceRemote = z88.discriminatedUnion("type", [
|
|
3452
3462
|
DataSourceFigmaRemote,
|
|
@@ -5930,6 +5940,8 @@ export {
|
|
|
5930
5940
|
isImportedAsset,
|
|
5931
5941
|
isImportedDesignToken,
|
|
5932
5942
|
isImportedFigmaComponent,
|
|
5943
|
+
isNotNullish,
|
|
5944
|
+
isNullish,
|
|
5933
5945
|
isSlugReserved,
|
|
5934
5946
|
isTokenType,
|
|
5935
5947
|
joinRepeatingSpans,
|