@propeller-commerce/propeller-v2-react-ui 0.20.0 → 0.20.1
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 +18 -0
- package/dist/shared.d.cts +24 -0
- package/dist/shared.d.ts +24 -0
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -8,6 +8,24 @@ once it reaches 1.0. Until then (the `0.x` line) the public API may change
|
|
|
8
8
|
between minor versions; breaking changes are called out below and in
|
|
9
9
|
[MIGRATION.md](./MIGRATION.md).
|
|
10
10
|
|
|
11
|
+
## [0.20.1] - 2026-09-23
|
|
12
|
+
|
|
13
|
+
### Fixed
|
|
14
|
+
|
|
15
|
+
- The `/shared` entry shipped without type declarations. `tsup.config.ts`
|
|
16
|
+
builds three entries as concurrent processes and the `index` one carried
|
|
17
|
+
`clean: true`, so its clean raced the siblings DTS writes. `shared` emits the
|
|
18
|
+
smallest declaration and finishes first, which made its `.d.ts`/`.d.cts` the
|
|
19
|
+
reliable casualty — about one build in five locally, and the one that
|
|
20
|
+
produced the published 0.20.0 tarball. Consumers importing
|
|
21
|
+
`propeller-v2-react-ui/shared` then failed to type check with TS7016
|
|
22
|
+
("Could not find a declaration file"); propeller-next hits it in five files.
|
|
23
|
+
Cleaning now happens once in the `clean` script, before tsup starts, and no
|
|
24
|
+
tsup config cleans. `clean` is also no longer PowerShell-only, so it works on
|
|
25
|
+
the Linux CI runner.
|
|
26
|
+
|
|
27
|
+
No component or API change — 0.20.0 and 0.20.1 differ only in the tarball.
|
|
28
|
+
|
|
11
29
|
## [0.20.0] - 2026-09-21
|
|
12
30
|
|
|
13
31
|
### Fixed
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export * from '@propeller-commerce/propeller-v2-core-ui';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* useMenu (React) — Category tree fetch with depth-configurable recursive GraphQL query.
|
|
5
|
+
*
|
|
6
|
+
* Responsibilities:
|
|
7
|
+
* - Dynamic recursive GraphQL category query (depth-configurable, default 3)
|
|
8
|
+
* - localStorage cache with 12h TTL, user-specific cache key
|
|
9
|
+
* - Maps LocalizedString arrays to flat name/slug strings per language
|
|
10
|
+
*/
|
|
11
|
+
|
|
12
|
+
/** A flattened category node in the menu tree. */
|
|
13
|
+
interface MenuCategory {
|
|
14
|
+
/** Category id. */
|
|
15
|
+
categoryId: number;
|
|
16
|
+
/** Category name resolved for the active language. */
|
|
17
|
+
name: string;
|
|
18
|
+
/** Category URL slug. */
|
|
19
|
+
slug: string;
|
|
20
|
+
/** Nested child categories (hidden ones filtered out). */
|
|
21
|
+
children: MenuCategory[];
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export type { MenuCategory };
|
package/dist/shared.d.ts
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export * from '@propeller-commerce/propeller-v2-core-ui';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* useMenu (React) — Category tree fetch with depth-configurable recursive GraphQL query.
|
|
5
|
+
*
|
|
6
|
+
* Responsibilities:
|
|
7
|
+
* - Dynamic recursive GraphQL category query (depth-configurable, default 3)
|
|
8
|
+
* - localStorage cache with 12h TTL, user-specific cache key
|
|
9
|
+
* - Maps LocalizedString arrays to flat name/slug strings per language
|
|
10
|
+
*/
|
|
11
|
+
|
|
12
|
+
/** A flattened category node in the menu tree. */
|
|
13
|
+
interface MenuCategory {
|
|
14
|
+
/** Category id. */
|
|
15
|
+
categoryId: number;
|
|
16
|
+
/** Category name resolved for the active language. */
|
|
17
|
+
name: string;
|
|
18
|
+
/** Category URL slug. */
|
|
19
|
+
slug: string;
|
|
20
|
+
/** Nested child categories (hidden ones filtered out). */
|
|
21
|
+
children: MenuCategory[];
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export type { MenuCategory };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@propeller-commerce/propeller-v2-react-ui",
|
|
3
|
-
"version": "0.20.
|
|
3
|
+
"version": "0.20.1",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/propeller-commerce/propeller-v2-react-ui.git"
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
},
|
|
44
44
|
"scripts": {
|
|
45
45
|
"prepare": "npm run build",
|
|
46
|
-
"build": "tsup && npm run build:css",
|
|
46
|
+
"build": "npm run clean && tsup && npm run build:css",
|
|
47
47
|
"build:js": "tsup",
|
|
48
48
|
"build:css": "tailwindcss -i ./src/styles.css -o ./dist/styles.css --minify",
|
|
49
49
|
"dev": "tsup --watch",
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
"test:coverage": "vitest run --coverage",
|
|
54
54
|
"storybook": "npm run build:css && storybook dev -p 6006",
|
|
55
55
|
"build-storybook": "npm run build:css && storybook build",
|
|
56
|
-
"clean": "
|
|
56
|
+
"clean": "node -e \"require('fs').rmSync('dist',{recursive:true,force:true})\""
|
|
57
57
|
},
|
|
58
58
|
"peerDependencies": {
|
|
59
59
|
"@propeller-commerce/propeller-sdk-v2": "*",
|