@quicktalog/common 1.29.0 → 1.31.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/types/catalogue.d.ts +15 -4
- package/dist/types/enums.d.ts +0 -1
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { schema } from "../drizzle";
|
|
2
1
|
import { type InferSelectModel } from "drizzle-orm";
|
|
3
|
-
import {
|
|
2
|
+
import { schema } from "../drizzle";
|
|
3
|
+
import { AnimationLevel, ContentLayout, FontSize, ShadowLevel, Source, Status, ThemeType } from "./enums";
|
|
4
4
|
import { Update } from "./functions";
|
|
5
5
|
type RawCatalogue = InferSelectModel<typeof schema.catalogues>;
|
|
6
6
|
export type Catalogue = Update<RawCatalogue, {
|
|
@@ -24,6 +24,17 @@ export type BaseContentBlock = {
|
|
|
24
24
|
id: string;
|
|
25
25
|
order: number;
|
|
26
26
|
};
|
|
27
|
+
export type DividerBlock = BaseContentBlock & {
|
|
28
|
+
type: "divider";
|
|
29
|
+
spacing: number;
|
|
30
|
+
border?: {
|
|
31
|
+
isEnabled: boolean;
|
|
32
|
+
style?: "solid" | "dashed" | "dotted";
|
|
33
|
+
thickness?: number;
|
|
34
|
+
color?: string;
|
|
35
|
+
opacity?: number;
|
|
36
|
+
};
|
|
37
|
+
};
|
|
27
38
|
export type CategoryBlock = BaseContentBlock & {
|
|
28
39
|
type: "category";
|
|
29
40
|
name: string;
|
|
@@ -50,7 +61,7 @@ export type TextBlock = BaseContentBlock & {
|
|
|
50
61
|
type: "text";
|
|
51
62
|
content: string;
|
|
52
63
|
};
|
|
53
|
-
export type ContentBlock = CategoryBlock | ContainerBlock | IframeBlock | CustomCodeBlock | TextBlock;
|
|
64
|
+
export type ContentBlock = CategoryBlock | ContainerBlock | IframeBlock | CustomCodeBlock | TextBlock | DividerBlock;
|
|
54
65
|
export type ItemDiscount = {
|
|
55
66
|
isOnDiscount: boolean;
|
|
56
67
|
discountPercentage: number;
|
|
@@ -80,7 +91,7 @@ export type Appearance = {
|
|
|
80
91
|
};
|
|
81
92
|
style: {
|
|
82
93
|
contentFontSize: FontSize;
|
|
83
|
-
fontFamily:
|
|
94
|
+
fontFamily: string;
|
|
84
95
|
borderRadius: number;
|
|
85
96
|
animation: AnimationLevel;
|
|
86
97
|
shadow: ShadowLevel;
|
package/dist/types/enums.d.ts
CHANGED
|
@@ -4,7 +4,6 @@ export type Source = "builder" | "ocr_import" | "ai_prompt";
|
|
|
4
4
|
export type ContentBlockType = "category" | "container" | "iframe" | "custom_code" | "text";
|
|
5
5
|
export type ThemeType = "standard" | "custom";
|
|
6
6
|
export type FontSize = "small" | "medium" | "large";
|
|
7
|
-
export type FontFamily = "mono" | "serif" | "arial" | "monospace";
|
|
8
7
|
export type AnimationLevel = "none" | "minimal" | "medium" | "full";
|
|
9
8
|
export type ShadowLevel = "none" | "low" | "medium" | "high";
|
|
10
9
|
export type ContentLayout = "variant_1" | "variant_2" | "variant_3" | "variant_4";
|