@supernova-studio/model 0.58.18 → 0.58.20
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 +282 -18
- package/dist/index.d.ts +282 -18
- package/dist/index.js +13 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +12 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/dsm/elements/data/shadow.ts +2 -0
- package/src/dsm/import/support/import-context.ts +8 -1
- package/src/feature-flags/feature-flags.ts +2 -0
package/package.json
CHANGED
|
@@ -16,8 +16,10 @@ export const ShadowLayerValue = z.object({
|
|
|
16
16
|
});
|
|
17
17
|
|
|
18
18
|
const ShadowTokenDataBase = tokenAliasOrValue(ShadowLayerValue);
|
|
19
|
+
export const ShadowValue = z.array(ShadowTokenDataBase);
|
|
19
20
|
export const ShadowTokenData = tokenAliasOrValue(z.array(ShadowTokenDataBase));
|
|
20
21
|
|
|
21
22
|
export type ShadowType = z.infer<typeof ShadowType>;
|
|
22
23
|
export type ShadowLayerValue = z.infer<typeof ShadowLayerValue>;
|
|
24
|
+
export type ShadowValue = z.infer<typeof ShadowValue>;
|
|
23
25
|
export type ShadowTokenData = z.infer<typeof ShadowTokenData>;
|
|
@@ -56,10 +56,17 @@ export type FigmaImportBaseContext = z.infer<typeof FigmaImportBaseContext>;
|
|
|
56
56
|
// Context with source state updates
|
|
57
57
|
//
|
|
58
58
|
|
|
59
|
+
export const FeatureFlagsKeepAliases = z.object({
|
|
60
|
+
isTypographyPropsKeepAliasesEnabled: z.boolean().default(false),
|
|
61
|
+
isGradientPropsKeepAliasesEnabled: z.boolean().default(false),
|
|
62
|
+
isShadowPropsKeepAliasesEnabled: z.boolean().default(false),
|
|
63
|
+
});
|
|
64
|
+
export type FeatureFlagsKeepAliases = z.infer<typeof FeatureFlagsKeepAliases>;
|
|
65
|
+
|
|
59
66
|
export const FigmaImportContextWithSourcesState = FigmaImportBaseContext.extend({
|
|
60
67
|
sourcesWithMissingAccess: z.array(z.string()).default([]),
|
|
61
68
|
shadowOpacityOptional: z.boolean().default(false),
|
|
62
|
-
|
|
69
|
+
featureFlagsKeepAliases: FeatureFlagsKeepAliases.default({})
|
|
63
70
|
});
|
|
64
71
|
|
|
65
72
|
export type FigmaImportContextWithSourcesState = z.infer<typeof FigmaImportContextWithSourcesState>;
|
|
@@ -6,6 +6,8 @@ export const FlaggedFeature = z.enum([
|
|
|
6
6
|
"DisableImporter",
|
|
7
7
|
"VariablesOrder",
|
|
8
8
|
"TypographyPropsKeepAliases",
|
|
9
|
+
"GradientPropsKeepAliases",
|
|
10
|
+
"ShadowPropsKeepAliases"
|
|
9
11
|
]);
|
|
10
12
|
export const FeatureFlagMap = z.record(FlaggedFeature, z.boolean());
|
|
11
13
|
export const FeatureFlag = z.object({
|