@tenphi/cookbook 0.30.2 → 0.31.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/docs/architecture.md +5 -1
- package/docs/migration.md +19 -0
- package/package.json +3 -3
package/docs/architecture.md
CHANGED
|
@@ -97,7 +97,11 @@ continue to compose. CodeGroup collects its code and syntax bridges itself,
|
|
|
97
97
|
including when rendered outside MarkdownContent.
|
|
98
98
|
|
|
99
99
|
Optional browser behavior remains in `src/client/` and imports no styling
|
|
100
|
-
modules.
|
|
100
|
+
modules. Every Cookbook-owned custom element, including passive wrappers, uses
|
|
101
|
+
the `cookbook-*` prefix. UniAria behaviors follow the same convention through
|
|
102
|
+
`defineElement(definition, { prefix: "cookbook" })` in `client/elements.ts`;
|
|
103
|
+
importing the vendor’s automatically registered `uni-*` entries is unsupported.
|
|
104
|
+
Custom elements attach behavior to the server-rendered markup.
|
|
101
105
|
The ownership checks verify every public style name and sub-element, while
|
|
102
106
|
consumer and browser tests exercise theme overrides and component replacements.
|
|
103
107
|
|
package/docs/migration.md
CHANGED
|
@@ -41,6 +41,25 @@ upgrade the site's Cookbook runtime or package-manager dependencies. Commit the
|
|
|
41
41
|
documentation lock separately when intentionally updating imported content.
|
|
42
42
|
Local Markdown needs no lock update.
|
|
43
43
|
|
|
44
|
+
## Upcoming custom-element naming
|
|
45
|
+
|
|
46
|
+
All Cookbook-owned custom elements now use the `cookbook-*` prefix, including
|
|
47
|
+
UniAria behaviors and the search wrapper. Built-in components update their markup
|
|
48
|
+
and behavior together. If your own components or browser scripts refer to these
|
|
49
|
+
tags, update them:
|
|
50
|
+
|
|
51
|
+
| Previous tag | New tag |
|
|
52
|
+
| ------------- | ------------------ |
|
|
53
|
+
| `cb-popover` | `cookbook-popover` |
|
|
54
|
+
| `cb-dialog` | `cookbook-dialog` |
|
|
55
|
+
| `site-search` | `cookbook-search` |
|
|
56
|
+
|
|
57
|
+
Update tag selectors, `customElements.get()` and `whenDefined()` calls, and
|
|
58
|
+
`HTMLElementTagNameMap` references as applicable. Component override names,
|
|
59
|
+
`theme.styles` names and sub-elements, `data-uni` part markers, CSS classes,
|
|
60
|
+
DOM IDs, and stored reader preferences keep their existing names. Custom
|
|
61
|
+
elements authored by your site can continue using your own prefix.
|
|
62
|
+
|
|
44
63
|
## Upcoming Tasty upgrade
|
|
45
64
|
|
|
46
65
|
Cookbook now uses Tasty 3.14 and the Tasty ESLint plugin 1.12. Built-in themes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tenphi/cookbook",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.31.0",
|
|
4
4
|
"description": "Repository-native static documentation for Astro",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"keywords": [
|
|
@@ -68,8 +68,8 @@
|
|
|
68
68
|
"author": "Andrey Yamanov",
|
|
69
69
|
"license": "MIT",
|
|
70
70
|
"dependencies": {
|
|
71
|
-
"@tenphi/docs": "0.
|
|
72
|
-
"@tenphi/renderer": "0.
|
|
71
|
+
"@tenphi/docs": "0.31.0",
|
|
72
|
+
"@tenphi/renderer": "0.31.0"
|
|
73
73
|
},
|
|
74
74
|
"peerDependencies": {
|
|
75
75
|
"astro": "^7.3.2"
|