@lightspeed/crane 3.2.1 → 3.3.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/CHANGELOG.md +25 -0
- package/UPGRADE.md +25 -0
- package/dist/cli.mjs +57 -34
- package/package.json +11 -13
- package/template/collections/example-collection/configuration.ts +6 -5
- package/template/eslint.config.js +1 -0
- package/template/footers/example-footer/component/MadeWith.vue +24 -8
- package/template/layouts/catalog/example-catalog/client.ts +6 -0
- package/template/layouts/category/example-category/client.ts +6 -0
- package/template/layouts/category/example-category/settings/translations.ts +1 -0
- package/template/layouts/product/example-product/client.ts +6 -0
- package/template/layouts/product/example-product/settings/translations.ts +1 -0
- package/template/package.json +1 -1
- package/template/preview/shared/api-routes.ts +27 -4
- package/template/preview/shared/mock.ts +9 -0
- package/template/preview/shared/preview.ts +3 -0
- package/template/preview/vite.config.js +4 -0
- package/template/reference/sections/tag-lines/TagLines.vue +6 -6
- package/template/eslint.config.cjs +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,30 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 3.3.0 - 2026-04-20
|
|
4
|
+
|
|
5
|
+
### Added
|
|
6
|
+
|
|
7
|
+
- Add Custom content/design support for storefront custom pages
|
|
8
|
+
- Add missing dependencies when pulling an open-source section.
|
|
9
|
+
- Add build-time validation for collections.
|
|
10
|
+
- Add nested DECK settings support
|
|
11
|
+
|
|
12
|
+
### Changed
|
|
13
|
+
|
|
14
|
+
- Align MadeWith vue template with the standard footer logic.
|
|
15
|
+
- Fixed local preview rebuild issue, when switching between showcases
|
|
16
|
+
- Exit with code 1 when manifest validation fails (preview mode unchanged).
|
|
17
|
+
- Allow optional `description` on COLOR_PICKER in section design validation.
|
|
18
|
+
- Move manifest generation into the build step
|
|
19
|
+
- Updated various dependencies.
|
|
20
|
+
- Updated dependencies
|
|
21
|
+
- @lightspeed/crane-api@2.3.0
|
|
22
|
+
|
|
23
|
+
### Fixed
|
|
24
|
+
|
|
25
|
+
- Fix empty design defaults for selectbox and toggle.
|
|
26
|
+
- Accept both hash segment and full URL in info button link and support info design editor inside accordion.
|
|
27
|
+
|
|
3
28
|
## 3.2.1 - 2026-03-17
|
|
4
29
|
|
|
5
30
|
### Changed
|
package/UPGRADE.md
CHANGED
|
@@ -1,5 +1,30 @@
|
|
|
1
1
|
# Upgrades
|
|
2
2
|
|
|
3
|
+
## 3.2.1 to 3.3.0
|
|
4
|
+
|
|
5
|
+
### Custom layout settings support
|
|
6
|
+
|
|
7
|
+
Custom storefront layouts now support settings (content/design). To build the app successfully, add the following files to each custom layout:
|
|
8
|
+
|
|
9
|
+
**1. Create `client.ts` at the root of each layout folder (`layouts/<page>/<layoutId>/client.ts`):**
|
|
10
|
+
|
|
11
|
+
```ts
|
|
12
|
+
import { createLayoutApp } from '@lightspeed/crane-api';
|
|
13
|
+
|
|
14
|
+
import Main from './Main.vue';
|
|
15
|
+
import { Content, Design } from './type.ts';
|
|
16
|
+
|
|
17
|
+
export default createLayoutApp<Content, Design>(Main);
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
> **Note:** If you renamed the default `Main.vue` file, update the import accordingly.
|
|
21
|
+
|
|
22
|
+
**2. Create `translations.ts` inside each layout's settings folder (`layouts/<page>/<layoutId>/settings/translations.ts`):**
|
|
23
|
+
|
|
24
|
+
```ts
|
|
25
|
+
export default {} as const;
|
|
26
|
+
```
|
|
27
|
+
|
|
3
28
|
## 2.0.x to 3.0.0
|
|
4
29
|
|
|
5
30
|
### Layout configuration changes
|