@commercetools-demo/puck-types 0.3.0 → 0.5.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 +51 -1
- package/dist/index.d.ts +51 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -113,6 +113,56 @@ interface PuckContentVersion {
|
|
|
113
113
|
versions: PuckContentVersionEntry[];
|
|
114
114
|
}
|
|
115
115
|
|
|
116
|
+
interface ThemeTokens {
|
|
117
|
+
colorPrimary: string;
|
|
118
|
+
colorPrimaryHover: string;
|
|
119
|
+
colorPrimaryForeground?: string;
|
|
120
|
+
colorSecondary: string;
|
|
121
|
+
colorSecondaryForeground?: string;
|
|
122
|
+
colorBackground: string;
|
|
123
|
+
colorSurface: string;
|
|
124
|
+
colorText: string;
|
|
125
|
+
colorTextMuted: string;
|
|
126
|
+
colorForeground?: string;
|
|
127
|
+
colorMuted?: string;
|
|
128
|
+
colorMutedForeground?: string;
|
|
129
|
+
colorDestructive?: string;
|
|
130
|
+
colorDestructiveForeground?: string;
|
|
131
|
+
colorAccent?: string;
|
|
132
|
+
colorAccentForeground?: string;
|
|
133
|
+
colorBorder?: string;
|
|
134
|
+
colorInput?: string;
|
|
135
|
+
colorRing?: string;
|
|
136
|
+
colorShadowLight?: string;
|
|
137
|
+
colorShadowDark?: string;
|
|
138
|
+
colorSurfaceGlass?: string;
|
|
139
|
+
borderRadius: 'none' | 'sm' | 'md' | 'lg' | 'full';
|
|
140
|
+
borderWidth: '0' | '1' | '2';
|
|
141
|
+
borderStyle?: 'solid' | 'dashed' | 'double';
|
|
142
|
+
fontFamily: string;
|
|
143
|
+
fontHeading: string;
|
|
144
|
+
fontWeightBase?: '300' | '400' | '500';
|
|
145
|
+
fontWeightHeading?: '400' | '500' | '700' | '900';
|
|
146
|
+
letterSpacing?: 'tight' | 'normal' | 'wide' | 'wider';
|
|
147
|
+
textTransform?: 'none' | 'uppercase';
|
|
148
|
+
spacingScale: number;
|
|
149
|
+
buttonStyle: 'solid' | 'outline' | 'ghost';
|
|
150
|
+
cardShadow: 'none' | 'sm' | 'md' | 'lg';
|
|
151
|
+
headerStyle: 'transparent' | 'solid' | 'minimal';
|
|
152
|
+
shadowStyle?: 'none' | 'soft' | 'hard-offset' | 'neumorphic' | 'clay' | 'glow';
|
|
153
|
+
surfaceBlur?: 'none' | 'sm' | 'md' | 'lg';
|
|
154
|
+
surfaceOpacity?: number;
|
|
155
|
+
backgroundStyle?: 'solid' | 'gradient' | 'noise';
|
|
156
|
+
animationStyle?: string;
|
|
157
|
+
}
|
|
158
|
+
interface ImportResult {
|
|
159
|
+
imported: string[];
|
|
160
|
+
failed: Array<{
|
|
161
|
+
key: string;
|
|
162
|
+
error: string;
|
|
163
|
+
}>;
|
|
164
|
+
}
|
|
165
|
+
|
|
116
166
|
interface MediaFile {
|
|
117
167
|
url: string;
|
|
118
168
|
name: string;
|
|
@@ -177,4 +227,4 @@ type PuckContentWithStatesResponse = PuckContentWithStates;
|
|
|
177
227
|
type PuckContentStateResponse = PuckContentState;
|
|
178
228
|
type PuckContentVersionResponse = PuckContentVersion;
|
|
179
229
|
|
|
180
|
-
export type { CreatePuckContentInput, CreatePuckPageInput, CtCustomObject, MediaFile, MediaLibraryPagination, MediaLibraryResult, PuckContentListItem, PuckContentListResponse, PuckContentMeta, PuckContentResponse, PuckContentState, PuckContentStateInfo, PuckContentStateResponse, PuckContentValue, PuckContentVersion, PuckContentVersionEntry, PuckContentVersionResponse, PuckContentWithStates, PuckContentWithStatesResponse, PuckPageListItem, PuckPageListResponse, PuckPageMeta, PuckPageResponse, PuckPageState, PuckPageStateResponse, PuckPageValue, PuckPageVersion, PuckPageVersionEntry, PuckPageVersionResponse, PuckPageWithStates, PuckPageWithStatesResponse, PuckStateInfo, UpdatePuckContentInput, UpdatePuckPageInput };
|
|
230
|
+
export type { CreatePuckContentInput, CreatePuckPageInput, CtCustomObject, ImportResult, MediaFile, MediaLibraryPagination, MediaLibraryResult, PuckContentListItem, PuckContentListResponse, PuckContentMeta, PuckContentResponse, PuckContentState, PuckContentStateInfo, PuckContentStateResponse, PuckContentValue, PuckContentVersion, PuckContentVersionEntry, PuckContentVersionResponse, PuckContentWithStates, PuckContentWithStatesResponse, PuckPageListItem, PuckPageListResponse, PuckPageMeta, PuckPageResponse, PuckPageState, PuckPageStateResponse, PuckPageValue, PuckPageVersion, PuckPageVersionEntry, PuckPageVersionResponse, PuckPageWithStates, PuckPageWithStatesResponse, PuckStateInfo, ThemeTokens, UpdatePuckContentInput, UpdatePuckPageInput };
|
package/dist/index.d.ts
CHANGED
|
@@ -113,6 +113,56 @@ interface PuckContentVersion {
|
|
|
113
113
|
versions: PuckContentVersionEntry[];
|
|
114
114
|
}
|
|
115
115
|
|
|
116
|
+
interface ThemeTokens {
|
|
117
|
+
colorPrimary: string;
|
|
118
|
+
colorPrimaryHover: string;
|
|
119
|
+
colorPrimaryForeground?: string;
|
|
120
|
+
colorSecondary: string;
|
|
121
|
+
colorSecondaryForeground?: string;
|
|
122
|
+
colorBackground: string;
|
|
123
|
+
colorSurface: string;
|
|
124
|
+
colorText: string;
|
|
125
|
+
colorTextMuted: string;
|
|
126
|
+
colorForeground?: string;
|
|
127
|
+
colorMuted?: string;
|
|
128
|
+
colorMutedForeground?: string;
|
|
129
|
+
colorDestructive?: string;
|
|
130
|
+
colorDestructiveForeground?: string;
|
|
131
|
+
colorAccent?: string;
|
|
132
|
+
colorAccentForeground?: string;
|
|
133
|
+
colorBorder?: string;
|
|
134
|
+
colorInput?: string;
|
|
135
|
+
colorRing?: string;
|
|
136
|
+
colorShadowLight?: string;
|
|
137
|
+
colorShadowDark?: string;
|
|
138
|
+
colorSurfaceGlass?: string;
|
|
139
|
+
borderRadius: 'none' | 'sm' | 'md' | 'lg' | 'full';
|
|
140
|
+
borderWidth: '0' | '1' | '2';
|
|
141
|
+
borderStyle?: 'solid' | 'dashed' | 'double';
|
|
142
|
+
fontFamily: string;
|
|
143
|
+
fontHeading: string;
|
|
144
|
+
fontWeightBase?: '300' | '400' | '500';
|
|
145
|
+
fontWeightHeading?: '400' | '500' | '700' | '900';
|
|
146
|
+
letterSpacing?: 'tight' | 'normal' | 'wide' | 'wider';
|
|
147
|
+
textTransform?: 'none' | 'uppercase';
|
|
148
|
+
spacingScale: number;
|
|
149
|
+
buttonStyle: 'solid' | 'outline' | 'ghost';
|
|
150
|
+
cardShadow: 'none' | 'sm' | 'md' | 'lg';
|
|
151
|
+
headerStyle: 'transparent' | 'solid' | 'minimal';
|
|
152
|
+
shadowStyle?: 'none' | 'soft' | 'hard-offset' | 'neumorphic' | 'clay' | 'glow';
|
|
153
|
+
surfaceBlur?: 'none' | 'sm' | 'md' | 'lg';
|
|
154
|
+
surfaceOpacity?: number;
|
|
155
|
+
backgroundStyle?: 'solid' | 'gradient' | 'noise';
|
|
156
|
+
animationStyle?: string;
|
|
157
|
+
}
|
|
158
|
+
interface ImportResult {
|
|
159
|
+
imported: string[];
|
|
160
|
+
failed: Array<{
|
|
161
|
+
key: string;
|
|
162
|
+
error: string;
|
|
163
|
+
}>;
|
|
164
|
+
}
|
|
165
|
+
|
|
116
166
|
interface MediaFile {
|
|
117
167
|
url: string;
|
|
118
168
|
name: string;
|
|
@@ -177,4 +227,4 @@ type PuckContentWithStatesResponse = PuckContentWithStates;
|
|
|
177
227
|
type PuckContentStateResponse = PuckContentState;
|
|
178
228
|
type PuckContentVersionResponse = PuckContentVersion;
|
|
179
229
|
|
|
180
|
-
export type { CreatePuckContentInput, CreatePuckPageInput, CtCustomObject, MediaFile, MediaLibraryPagination, MediaLibraryResult, PuckContentListItem, PuckContentListResponse, PuckContentMeta, PuckContentResponse, PuckContentState, PuckContentStateInfo, PuckContentStateResponse, PuckContentValue, PuckContentVersion, PuckContentVersionEntry, PuckContentVersionResponse, PuckContentWithStates, PuckContentWithStatesResponse, PuckPageListItem, PuckPageListResponse, PuckPageMeta, PuckPageResponse, PuckPageState, PuckPageStateResponse, PuckPageValue, PuckPageVersion, PuckPageVersionEntry, PuckPageVersionResponse, PuckPageWithStates, PuckPageWithStatesResponse, PuckStateInfo, UpdatePuckContentInput, UpdatePuckPageInput };
|
|
230
|
+
export type { CreatePuckContentInput, CreatePuckPageInput, CtCustomObject, ImportResult, MediaFile, MediaLibraryPagination, MediaLibraryResult, PuckContentListItem, PuckContentListResponse, PuckContentMeta, PuckContentResponse, PuckContentState, PuckContentStateInfo, PuckContentStateResponse, PuckContentValue, PuckContentVersion, PuckContentVersionEntry, PuckContentVersionResponse, PuckContentWithStates, PuckContentWithStatesResponse, PuckPageListItem, PuckPageListResponse, PuckPageMeta, PuckPageResponse, PuckPageState, PuckPageStateResponse, PuckPageValue, PuckPageVersion, PuckPageVersionEntry, PuckPageVersionResponse, PuckPageWithStates, PuckPageWithStatesResponse, PuckStateInfo, ThemeTokens, UpdatePuckContentInput, UpdatePuckPageInput };
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/index.ts"],"sourcesContent":["export type {\n PuckConfig,\n PuckComponentConfig,\n PuckData,\n PuckComponentData,\n Fields,\n Field,\n} from './puck-data.types';\n\nexport type {\n PuckPageMeta,\n PuckPageValue,\n PuckPageListItem,\n PuckPageWithStates,\n} from './puck-page.types';\n\nexport type {\n PuckStateInfo,\n PuckPageState,\n PuckPageVersionEntry,\n PuckPageVersion,\n} from './puck-state.types';\n\nexport type {\n PuckContentMeta,\n PuckContentValue,\n PuckContentStateInfo,\n PuckContentListItem,\n PuckContentWithStates,\n PuckContentState,\n PuckContentVersionEntry,\n PuckContentVersion,\n} from './puck-content.types';\n\nexport type {\n MediaFile,\n MediaLibraryPagination,\n MediaLibraryResult,\n CtCustomObject,\n CreatePuckPageInput,\n UpdatePuckPageInput,\n PuckPageResponse,\n PuckPageListResponse,\n PuckPageWithStatesResponse,\n PuckPageStateResponse,\n PuckPageVersionResponse,\n CreatePuckContentInput,\n UpdatePuckContentInput,\n PuckContentResponse,\n PuckContentListResponse,\n PuckContentWithStatesResponse,\n PuckContentStateResponse,\n PuckContentVersionResponse,\n} from './puck-api.types';\n"],"mappings":";;;;;;;;;;;;;;;;AAAA;AAAA;","names":[]}
|
|
1
|
+
{"version":3,"sources":["../src/index.ts"],"sourcesContent":["export type {\n PuckConfig,\n PuckComponentConfig,\n PuckData,\n PuckComponentData,\n Fields,\n Field,\n} from './puck-data.types';\n\nexport type {\n PuckPageMeta,\n PuckPageValue,\n PuckPageListItem,\n PuckPageWithStates,\n} from './puck-page.types';\n\nexport type {\n PuckStateInfo,\n PuckPageState,\n PuckPageVersionEntry,\n PuckPageVersion,\n} from './puck-state.types';\n\nexport type {\n PuckContentMeta,\n PuckContentValue,\n PuckContentStateInfo,\n PuckContentListItem,\n PuckContentWithStates,\n PuckContentState,\n PuckContentVersionEntry,\n PuckContentVersion,\n} from './puck-content.types';\n\nexport type { ThemeTokens, ImportResult } from './theme-types';\n\nexport type {\n MediaFile,\n MediaLibraryPagination,\n MediaLibraryResult,\n CtCustomObject,\n CreatePuckPageInput,\n UpdatePuckPageInput,\n PuckPageResponse,\n PuckPageListResponse,\n PuckPageWithStatesResponse,\n PuckPageStateResponse,\n PuckPageVersionResponse,\n CreatePuckContentInput,\n UpdatePuckContentInput,\n PuckContentResponse,\n PuckContentListResponse,\n PuckContentWithStatesResponse,\n PuckContentStateResponse,\n PuckContentVersionResponse,\n} from './puck-api.types';\n"],"mappings":";;;;;;;;;;;;;;;;AAAA;AAAA;","names":[]}
|