@supernova-studio/model 0.55.35 → 0.57.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 +387 -6
- package/dist/index.d.ts +387 -6
- package/dist/index.js +42 -4
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +41 -3
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/billing/features.ts +1 -0
- package/src/dsm/elements/raw-element.ts +30 -0
- package/src/dsm/import/support/import-context.ts +1 -0
- package/src/feature-flags/feature-flags.ts +7 -1
package/dist/index.mjs
CHANGED
|
@@ -138,7 +138,8 @@ var FeaturesSummary = z6.object({
|
|
|
138
138
|
protectedPages: featureToggleSchema,
|
|
139
139
|
approvals: featureToggleSchema,
|
|
140
140
|
selectivePublishing: featureToggleSchema,
|
|
141
|
-
designSystemAccessModes: featureToggleSchema
|
|
141
|
+
designSystemAccessModes: featureToggleSchema,
|
|
142
|
+
designSystemRoles: featureToggleSchema
|
|
142
143
|
});
|
|
143
144
|
|
|
144
145
|
// src/billing/invoice.ts
|
|
@@ -1676,6 +1677,35 @@ var DesignElementType = DesignTokenType.or(
|
|
|
1676
1677
|
function isTokenType(type) {
|
|
1677
1678
|
return DesignTokenType.safeParse(type).success;
|
|
1678
1679
|
}
|
|
1680
|
+
var numberTokenTypes = /* @__PURE__ */ new Set([
|
|
1681
|
+
"Dimension",
|
|
1682
|
+
"Duration",
|
|
1683
|
+
"Size",
|
|
1684
|
+
"Space",
|
|
1685
|
+
"Opacity",
|
|
1686
|
+
"FontSize",
|
|
1687
|
+
"LineHeight",
|
|
1688
|
+
"LetterSpacing",
|
|
1689
|
+
"ParagraphSpacing",
|
|
1690
|
+
"BorderWidth",
|
|
1691
|
+
"BorderRadius",
|
|
1692
|
+
"ZIndex"
|
|
1693
|
+
]);
|
|
1694
|
+
var stringTokenTypes = /* @__PURE__ */ new Set([
|
|
1695
|
+
"String",
|
|
1696
|
+
"ProductCopy",
|
|
1697
|
+
"FontFamily",
|
|
1698
|
+
"FontWeight"
|
|
1699
|
+
]);
|
|
1700
|
+
function areTokenTypesCompatible(lhs, rhs) {
|
|
1701
|
+
if (lhs === rhs)
|
|
1702
|
+
return true;
|
|
1703
|
+
if (numberTokenTypes.has(lhs) && numberTokenTypes.has(rhs))
|
|
1704
|
+
return true;
|
|
1705
|
+
if (stringTokenTypes.has(lhs) && stringTokenTypes.has(rhs))
|
|
1706
|
+
return true;
|
|
1707
|
+
return false;
|
|
1708
|
+
}
|
|
1679
1709
|
var DesignElementCategory = z39.enum([
|
|
1680
1710
|
"Token",
|
|
1681
1711
|
"Component",
|
|
@@ -3536,7 +3566,8 @@ var FigmaImportBaseContext = z90.object({
|
|
|
3536
3566
|
});
|
|
3537
3567
|
var FigmaImportContextWithSourcesState = FigmaImportBaseContext.extend({
|
|
3538
3568
|
sourcesWithMissingAccess: z90.array(z90.string()).default([]),
|
|
3539
|
-
shadowOpacityOptional: z90.boolean().default(false)
|
|
3569
|
+
shadowOpacityOptional: z90.boolean().default(false),
|
|
3570
|
+
typographyPropsKeepAliases: z90.boolean().default(false)
|
|
3540
3571
|
});
|
|
3541
3572
|
var ChangedImportedFigmaSourceData = ImportedFigmaSourceData.extend({
|
|
3542
3573
|
importMetadata: DataSourceFigmaImportMetadata
|
|
@@ -5161,7 +5192,13 @@ var ExporterWorkspaceMembership = z165.object({
|
|
|
5161
5192
|
|
|
5162
5193
|
// src/feature-flags/feature-flags.ts
|
|
5163
5194
|
import { z as z166 } from "zod";
|
|
5164
|
-
var FlaggedFeature = z166.enum([
|
|
5195
|
+
var FlaggedFeature = z166.enum([
|
|
5196
|
+
"FigmaImporterV2",
|
|
5197
|
+
"ShadowOpacityOptional",
|
|
5198
|
+
"DisableImporter",
|
|
5199
|
+
"VariablesOrder",
|
|
5200
|
+
"TypographyPropsKeepAliases"
|
|
5201
|
+
]);
|
|
5165
5202
|
var FeatureFlagMap = z166.record(FlaggedFeature, z166.boolean());
|
|
5166
5203
|
var FeatureFlag = z166.object({
|
|
5167
5204
|
id: z166.string(),
|
|
@@ -5921,6 +5958,7 @@ export {
|
|
|
5921
5958
|
ZIndexValue,
|
|
5922
5959
|
addImportModelCollections,
|
|
5923
5960
|
areShallowObjectsEqual,
|
|
5961
|
+
areTokenTypesCompatible,
|
|
5924
5962
|
buildConstantEnum,
|
|
5925
5963
|
defaultDocumentationItemConfigurationV1,
|
|
5926
5964
|
defaultDocumentationItemConfigurationV2,
|