@supernova-studio/model 0.47.71 → 0.47.73
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 +830 -692
- package/dist/index.d.ts +830 -692
- package/dist/index.js +8 -8
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +8 -8
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/dsm/elements/data/item-header-v1.ts +5 -6
- package/src/dsm/elements/data/item-header-v2.ts +5 -6
package/package.json
CHANGED
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
import { nullishToOptional } from "../../../helpers";
|
|
3
2
|
import { ColorTokenData } from "./color";
|
|
4
|
-
import { PageBlockAsset } from "./documentation-block-v1";
|
|
5
3
|
import {
|
|
6
4
|
DocumentationItemHeaderAlignment,
|
|
7
5
|
DocumentationItemHeaderAlignmentSchema,
|
|
8
6
|
DocumentationItemHeaderImageScaleType,
|
|
9
7
|
DocumentationItemHeaderImageScaleTypeSchema,
|
|
10
8
|
} from "./item-header";
|
|
9
|
+
import { PageBlockAsset } from "./documentation-block-v1";
|
|
11
10
|
|
|
12
11
|
//
|
|
13
12
|
// Definitions
|
|
@@ -16,13 +15,13 @@ import {
|
|
|
16
15
|
export const DocumentationItemHeaderV1 = z.object({
|
|
17
16
|
description: z.string(),
|
|
18
17
|
alignment: DocumentationItemHeaderAlignmentSchema,
|
|
19
|
-
foregroundColor:
|
|
20
|
-
backgroundColor:
|
|
21
|
-
backgroundImageAsset:
|
|
18
|
+
foregroundColor: ColorTokenData.nullish(),
|
|
19
|
+
backgroundColor: ColorTokenData.nullish(),
|
|
20
|
+
backgroundImageAsset: PageBlockAsset.nullish(),
|
|
22
21
|
backgroundImageScaleType: DocumentationItemHeaderImageScaleTypeSchema,
|
|
23
22
|
showBackgroundOverlay: z.boolean(),
|
|
24
23
|
showCoverText: z.boolean(),
|
|
25
|
-
minHeight:
|
|
24
|
+
minHeight: z.number().nullish(),
|
|
26
25
|
});
|
|
27
26
|
|
|
28
27
|
export type DocumentationItemHeaderV1 = z.infer<typeof DocumentationItemHeaderV1>;
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
import { nullishToOptional } from "../../../helpers";
|
|
3
|
-
import { PageBlockColorV2, PageBlockImageReference } from "./documentation-block-v2";
|
|
4
2
|
import {
|
|
5
3
|
DocumentationItemHeaderAlignment,
|
|
6
4
|
DocumentationItemHeaderAlignmentSchema,
|
|
7
5
|
DocumentationItemHeaderImageScaleType,
|
|
8
6
|
DocumentationItemHeaderImageScaleTypeSchema,
|
|
9
7
|
} from "./item-header";
|
|
8
|
+
import { PageBlockColorV2, PageBlockImageReference } from "./documentation-block-v2";
|
|
10
9
|
|
|
11
10
|
//
|
|
12
11
|
// Definitions
|
|
@@ -15,13 +14,13 @@ import {
|
|
|
15
14
|
export const DocumentationItemHeaderV2 = z.object({
|
|
16
15
|
description: z.string(),
|
|
17
16
|
alignment: DocumentationItemHeaderAlignmentSchema,
|
|
18
|
-
foregroundColor:
|
|
19
|
-
backgroundColor:
|
|
20
|
-
backgroundImageAsset:
|
|
17
|
+
foregroundColor: PageBlockColorV2.nullish(),
|
|
18
|
+
backgroundColor: PageBlockColorV2.nullish(),
|
|
19
|
+
backgroundImageAsset: PageBlockImageReference.nullish(),
|
|
21
20
|
backgroundImageScaleType: DocumentationItemHeaderImageScaleTypeSchema,
|
|
22
21
|
showBackgroundOverlay: z.boolean(),
|
|
23
22
|
showCoverText: z.boolean(),
|
|
24
|
-
minHeight:
|
|
23
|
+
minHeight: z.number().nullish(),
|
|
25
24
|
});
|
|
26
25
|
|
|
27
26
|
export type DocumentationItemHeaderV2 = z.infer<typeof DocumentationItemHeaderV2>;
|