@lightspeed/crane 1.2.0 → 1.2.2
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/CHANGELOG.md +198 -0
- package/README.md +11 -0
- package/UPGRADE.md +30 -0
- package/bin/crane.js +3 -1
- package/dist/app.d.mts +79 -13
- package/dist/app.d.ts +79 -13
- package/dist/app.mjs +1 -1
- package/dist/cli.d.mts +2 -1
- package/dist/cli.d.ts +2 -1
- package/dist/cli.mjs +8 -10
- package/package.json +11 -8
- package/template/eslint.config.cjs +1 -0
- package/template/footers/example-footer/component/MadeWith.vue +1 -1
- package/template/headers/example-header/showcases/2.ts +1 -1
- package/template/package.json +4 -7
- package/template/page-templates/assets/template_cover_image.png +0 -0
- package/template/page-templates/example-template/configuration.ts +22 -0
- package/template/page-templates/example-template/pages/catalog.ts +8 -0
- package/template/page-templates/example-template/pages/category.ts +8 -0
- package/template/page-templates/example-template/pages/home.ts +178 -0
- package/template/page-templates/example-template/pages/product.ts +8 -0
- package/template/reference/sections/about-us/settings/content.ts +4 -7
- package/template/reference/sections/about-us/showcases/1.ts +0 -3
- package/template/reference/sections/about-us/showcases/2.ts +0 -3
- package/template/reference/sections/intro-slider/assets/category_4.jpg +0 -0
- package/template/reference/sections/intro-slider/assets/category_4@2x.jpg +0 -0
- package/template/reference/sections/intro-slider/settings/content.ts +1 -0
- package/template/reference/sections/intro-slider/showcases/1.ts +0 -18
- package/template/reference/sections/intro-slider/showcases/2.ts +0 -18
- package/template/reference/sections/tag-lines/settings/content.ts +1 -0
- package/template/reference/sections/tag-lines/showcases/1.ts +0 -12
- package/template/reference/sections/tag-lines/showcases/2.ts +0 -12
- package/template/sections/example-section/settings/content.ts +4 -4
- package/template/sections/example-section/settings/design.ts +4 -0
- package/template/sections/example-section/showcases/1.ts +0 -12
- package/template/sections/example-section/showcases/2.ts +0 -12
- package/template/sections/example-section/showcases/3.ts +0 -12
- package/template/templates/template.ts +0 -12
- package/types.d.ts +15 -8
- package/template/.eslintrc.cjs +0 -3
package/types.d.ts
CHANGED
|
@@ -367,6 +367,7 @@ type MapEditorDesignTypes = {
|
|
|
367
367
|
readonly BACKGROUND: string;
|
|
368
368
|
readonly COLOR_PICKER: string;
|
|
369
369
|
readonly LOGO: string;
|
|
370
|
+
readonly DIVIDER: string;
|
|
370
371
|
};
|
|
371
372
|
|
|
372
373
|
interface TextDesignEditor {
|
|
@@ -416,15 +417,21 @@ interface LogoDesignEditor {
|
|
|
416
417
|
defaults: Record<string, unknown>;
|
|
417
418
|
}
|
|
418
419
|
|
|
420
|
+
interface DividerDesignEditor {
|
|
421
|
+
readonly type: 'DIVIDER';
|
|
422
|
+
readonly label: string | Record<string, string>;
|
|
423
|
+
}
|
|
424
|
+
|
|
419
425
|
type DesignEditor =
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
426
|
+
TextDesignEditor
|
|
427
|
+
| ButtonDesignEditor
|
|
428
|
+
| ImageDesignEditor
|
|
429
|
+
| ToggleDesignEditor
|
|
430
|
+
| SelectboxDesignEditor
|
|
431
|
+
| BackgroundDesignEditor
|
|
432
|
+
| ColorPickerDesignEditor
|
|
433
|
+
| LogoDesignEditor
|
|
434
|
+
| DividerDesignEditor;
|
|
428
435
|
|
|
429
436
|
type InferDesignType<T extends Record<string, DesignEditor>> = {
|
|
430
437
|
readonly [P in keyof T]: MapEditorDesignTypes[T[P]['type']]
|
package/template/.eslintrc.cjs
DELETED