blocks-dusted 0.1.8 → 0.1.10
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/package.json +1 -1
- package/src/commands/header.js +13 -52
- package/templates/components/HeaderDD02/Component.client.tsx +9 -0
- package/templates/components/HeaderDD02/Component.tsx +10 -0
- package/templates/components/HeaderDD02/Header.config.ts +33 -0
- package/templates/components/HeaderDD02/MobileBottomNav/index.tsx +352 -257
- package/templates/components/HeaderDD02/Nav/index.tsx +9 -0
- package/templates/components/HeaderDD02/README.md +23 -16
- package/templates/components/HeaderDD02/hooks/revalidateHeader.ts +11 -0
- package/templates/components/HeaderDD02/index.tsx +313 -229
- package/templates/components/HeaderDD02/manifest.json +32 -16
|
@@ -17,15 +17,33 @@
|
|
|
17
17
|
"@/blocks/CounterBlock/config",
|
|
18
18
|
"@/blocks/MediaBlock/config"
|
|
19
19
|
],
|
|
20
|
-
"excludedHeaderFiles": [
|
|
21
|
-
"src/Header/Component.tsx",
|
|
22
|
-
"src/Header/Component.client.tsx",
|
|
23
|
-
"src/Header/config.ts",
|
|
24
|
-
"src/Header/Nav/index.tsx",
|
|
25
|
-
"src/Header/hooks/revalidateHeader.ts"
|
|
26
|
-
]
|
|
20
|
+
"excludedHeaderFiles": []
|
|
27
21
|
},
|
|
28
22
|
"files": [
|
|
23
|
+
{
|
|
24
|
+
"from": "Component.tsx",
|
|
25
|
+
"to": "src/Header/Component.tsx"
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"from": "Component.client.tsx",
|
|
29
|
+
"to": "src/Header/Component.client.tsx"
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"from": "Header.config.ts",
|
|
33
|
+
"to": "src/Header/config.ts"
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
"from": "Nav/index.tsx",
|
|
37
|
+
"to": "src/Header/Nav/index.tsx"
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
"from": "hooks/revalidateHeader.ts",
|
|
41
|
+
"to": "src/Header/hooks/revalidateHeader.ts"
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"from": "RowLabel.tsx",
|
|
45
|
+
"to": "src/Header/RowLabel.tsx"
|
|
46
|
+
},
|
|
29
47
|
{
|
|
30
48
|
"from": "index.tsx",
|
|
31
49
|
"to": "src/Header/variants/HeaderDD02/index.tsx"
|
|
@@ -38,10 +56,6 @@
|
|
|
38
56
|
"from": "config.ts",
|
|
39
57
|
"to": "src/Header/variants/HeaderDD02/config.ts"
|
|
40
58
|
},
|
|
41
|
-
{
|
|
42
|
-
"from": "RowLabel.tsx",
|
|
43
|
-
"to": "src/Header/RowLabel.tsx"
|
|
44
|
-
},
|
|
45
59
|
{
|
|
46
60
|
"from": "README.md",
|
|
47
61
|
"to": "src/Header/variants/HeaderDD02/README.md"
|
|
@@ -90,6 +104,10 @@
|
|
|
90
104
|
{
|
|
91
105
|
"path": "src/utilities/ui.ts",
|
|
92
106
|
"reason": "HeaderDD02 uses cn from @/utilities/ui."
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
"path": "src/utilities/getGlobals.ts",
|
|
110
|
+
"reason": "The active Header server component fetches the Payload header global through getCachedGlobal."
|
|
93
111
|
}
|
|
94
112
|
],
|
|
95
113
|
"collectionRegistration": {
|
|
@@ -101,8 +119,7 @@
|
|
|
101
119
|
"manual": [
|
|
102
120
|
"This header uses the shared `defaultLexical` editor standard from `@/fields/defaultLexical`. Project-specific Lexical blocks are intentionally not bundled. The nested `BlocksFeature` uses an empty `blocks` array so each target project can register only the blocks it requires.",
|
|
103
121
|
"Removed source Lexical block imports: `@/blocks/AnimatedText/config`, `@/blocks/ButtonWithIcon/config`, `@/blocks/CounterBlock/config`, `@/blocks/MediaBlock/config`.",
|
|
104
|
-
"HeaderDD02
|
|
105
|
-
"This component template does not yet patch an existing active Header global, replace Header/Component.tsx, or inspect database-stored Header content automatically. Review the existing Header global before activation and back up active files before wiring the variant into the target project.",
|
|
122
|
+
"HeaderDD02 header workflow backs up the existing active src/Header folder, then installs a complete replacement Header shell wired directly to HeaderDD02. Header01 and Header03 are not bundled.",
|
|
106
123
|
"Inspect any existing target Header richText data before replacing an active Header schema. Do not apply the empty nested blocks extension point to stored content that already depends on registered block node types.",
|
|
107
124
|
"Verify the target `src/fields/defaultLexical.ts` exports a compatible `defaultLexical` helper that accepts `defaultLexical({ features: [] })` and does not inject unrelated project-specific blocks.",
|
|
108
125
|
"Wire `HeaderDD02` into the target Header global or render it directly after confirming the target project will not render two headers.",
|
|
@@ -111,8 +128,7 @@
|
|
|
111
128
|
"manualSteps": [
|
|
112
129
|
"This header uses the shared `defaultLexical` editor standard from `@/fields/defaultLexical`. Project-specific Lexical blocks are intentionally not bundled. The nested `BlocksFeature` uses an empty `blocks` array so each target project can register only the blocks it requires.",
|
|
113
130
|
"Removed source Lexical block imports: `@/blocks/AnimatedText/config`, `@/blocks/ButtonWithIcon/config`, `@/blocks/CounterBlock/config`, `@/blocks/MediaBlock/config`.",
|
|
114
|
-
"HeaderDD02
|
|
115
|
-
"This component template does not yet patch an existing active Header global, replace Header/Component.tsx, or inspect database-stored Header content automatically. Review the existing Header global before activation and back up active files before wiring the variant into the target project.",
|
|
131
|
+
"HeaderDD02 header workflow backs up the existing active src/Header folder, then installs a complete replacement Header shell wired directly to HeaderDD02. Header01 and Header03 are not bundled.",
|
|
116
132
|
"Inspect any existing target Header richText data before replacing an active Header schema. Do not apply the empty nested blocks extension point to stored content that already depends on registered block node types.",
|
|
117
133
|
"Verify the target `src/fields/defaultLexical.ts` exports a compatible `defaultLexical` helper that accepts `defaultLexical({ features: [] })` and does not inject unrelated project-specific blocks.",
|
|
118
134
|
"Wire `HeaderDD02` into the target Header global or render it directly after confirming the target project will not render two headers.",
|
|
@@ -121,7 +137,7 @@
|
|
|
121
137
|
"notes": [
|
|
122
138
|
"Converted from DesignsDustedv3 Header02 after tracing Header/variants/Header02/index.tsx and its direct imports.",
|
|
123
139
|
"Header02 styling is inline Tailwind class usage plus style jsx global blocks in index.tsx and MobileBottomNav/index.tsx; no separate Header02 stylesheet was imported.",
|
|
124
|
-
"
|
|
140
|
+
"The header workflow now installs active Component.tsx, Component.client.tsx, config.ts, Nav, RowLabel, and revalidateHeader files so the installed header is wired into the project immediately.",
|
|
125
141
|
"NavigationMenu and animate-ui tooltip primitives are bundled as shared files because HeaderDD02 imports them directly."
|
|
126
142
|
],
|
|
127
143
|
"backupExistingDestination": true,
|