@cntrl-site/sdk 1.11.0 → 1.11.1
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.
|
@@ -36,7 +36,8 @@ exports.RectangleHoverStateParamsSchema = zod_1.z.object({
|
|
|
36
36
|
}).merge(exports.ItemHoverStateBaseSchema);
|
|
37
37
|
exports.CustomItemHoverStateParamsSchema = exports.ItemHoverStateBaseSchema;
|
|
38
38
|
exports.EmbedHoverStateParamsSchema = zod_1.z.object({
|
|
39
|
-
radius: (0, exports.getHoverParamsSchema)(zod_1.z.number())
|
|
39
|
+
radius: (0, exports.getHoverParamsSchema)(zod_1.z.number()),
|
|
40
|
+
opacity: (0, exports.getHoverParamsSchema)(zod_1.z.number().nonnegative())
|
|
40
41
|
}).merge(exports.ItemHoverStateBaseSchema);
|
|
41
42
|
exports.RichTextHoverStateParamsSchema = zod_1.z.object({
|
|
42
43
|
color: (0, exports.getHoverParamsSchema)(zod_1.z.string()),
|
package/package.json
CHANGED
|
@@ -44,7 +44,8 @@ export const RectangleHoverStateParamsSchema = z.object({
|
|
|
44
44
|
export const CustomItemHoverStateParamsSchema = ItemHoverStateBaseSchema satisfies ZodType<CustomHoverStateParams>;
|
|
45
45
|
|
|
46
46
|
export const EmbedHoverStateParamsSchema = z.object({
|
|
47
|
-
radius: getHoverParamsSchema(z.number())
|
|
47
|
+
radius: getHoverParamsSchema(z.number()),
|
|
48
|
+
opacity: getHoverParamsSchema(z.number().nonnegative())
|
|
48
49
|
}).merge(ItemHoverStateBaseSchema) satisfies ZodType<EmbedHoverStateParams>;
|
|
49
50
|
|
|
50
51
|
export const RichTextHoverStateParamsSchema = z.object({
|
|
@@ -60,6 +60,7 @@ export interface RectangleHoverStateParams extends ItemHoversBaseMap {
|
|
|
60
60
|
|
|
61
61
|
export interface EmbedHoverStateParams extends ItemHoversBaseMap {
|
|
62
62
|
radius?: HoverParams<number>;
|
|
63
|
+
opacity?: HoverParams<number>;
|
|
63
64
|
}
|
|
64
65
|
|
|
65
66
|
export interface CustomHoverStateParams extends ItemHoversBaseMap {}
|