@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.
Files changed (40) hide show
  1. package/CHANGELOG.md +198 -0
  2. package/README.md +11 -0
  3. package/UPGRADE.md +30 -0
  4. package/bin/crane.js +3 -1
  5. package/dist/app.d.mts +79 -13
  6. package/dist/app.d.ts +79 -13
  7. package/dist/app.mjs +1 -1
  8. package/dist/cli.d.mts +2 -1
  9. package/dist/cli.d.ts +2 -1
  10. package/dist/cli.mjs +8 -10
  11. package/package.json +11 -8
  12. package/template/eslint.config.cjs +1 -0
  13. package/template/footers/example-footer/component/MadeWith.vue +1 -1
  14. package/template/headers/example-header/showcases/2.ts +1 -1
  15. package/template/package.json +4 -7
  16. package/template/page-templates/assets/template_cover_image.png +0 -0
  17. package/template/page-templates/example-template/configuration.ts +22 -0
  18. package/template/page-templates/example-template/pages/catalog.ts +8 -0
  19. package/template/page-templates/example-template/pages/category.ts +8 -0
  20. package/template/page-templates/example-template/pages/home.ts +178 -0
  21. package/template/page-templates/example-template/pages/product.ts +8 -0
  22. package/template/reference/sections/about-us/settings/content.ts +4 -7
  23. package/template/reference/sections/about-us/showcases/1.ts +0 -3
  24. package/template/reference/sections/about-us/showcases/2.ts +0 -3
  25. package/template/reference/sections/intro-slider/assets/category_4.jpg +0 -0
  26. package/template/reference/sections/intro-slider/assets/category_4@2x.jpg +0 -0
  27. package/template/reference/sections/intro-slider/settings/content.ts +1 -0
  28. package/template/reference/sections/intro-slider/showcases/1.ts +0 -18
  29. package/template/reference/sections/intro-slider/showcases/2.ts +0 -18
  30. package/template/reference/sections/tag-lines/settings/content.ts +1 -0
  31. package/template/reference/sections/tag-lines/showcases/1.ts +0 -12
  32. package/template/reference/sections/tag-lines/showcases/2.ts +0 -12
  33. package/template/sections/example-section/settings/content.ts +4 -4
  34. package/template/sections/example-section/settings/design.ts +4 -0
  35. package/template/sections/example-section/showcases/1.ts +0 -12
  36. package/template/sections/example-section/showcases/2.ts +0 -12
  37. package/template/sections/example-section/showcases/3.ts +0 -12
  38. package/template/templates/template.ts +0 -12
  39. package/types.d.ts +15 -8
  40. 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
- TextDesignEditor
421
- | ButtonDesignEditor
422
- | ImageDesignEditor
423
- | ToggleDesignEditor
424
- | SelectboxDesignEditor
425
- | BackgroundDesignEditor
426
- | ColorPickerDesignEditor
427
- | LogoDesignEditor;
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']]
@@ -1,3 +0,0 @@
1
- module.exports = {
2
- extends: '@lightspeed/eslint-config-crane',
3
- };