@dogsbay/format-astro 0.2.0-beta.138 → 0.2.0-beta.139
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/dist/serialize.js +2 -1
- package/package.json +7 -7
package/dist/serialize.js
CHANGED
|
@@ -1113,7 +1113,8 @@ function tabsToAstro(node, ctx) {
|
|
|
1113
1113
|
if (tabs.length === 0)
|
|
1114
1114
|
return "";
|
|
1115
1115
|
const tabItems = tabs.map((tab, i) => {
|
|
1116
|
-
|
|
1116
|
+
// The same order as render-html: `label` is ours, `title` what a Comark import wrote
|
|
1117
|
+
const title = tab.props?.label || tab.props?.title || tab.props?.value || `Tab ${i + 1}`;
|
|
1117
1118
|
const value = tab.props?.value || title;
|
|
1118
1119
|
const label = title;
|
|
1119
1120
|
return { value, label, node: tab };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dogsbay/format-astro",
|
|
3
|
-
"version": "0.2.0-beta.
|
|
3
|
+
"version": "0.2.0-beta.139",
|
|
4
4
|
"description": "Astro format plugin for Dogsbay — export TreeNode[] to Astro component markup",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -32,12 +32,12 @@
|
|
|
32
32
|
"license": "MIT",
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"markdown-it": "^14.3.0",
|
|
35
|
-
"@dogsbay/format-dogsbay-md": "0.2.0-beta.
|
|
36
|
-
"@dogsbay/render-html": "0.2.0-beta.
|
|
37
|
-
"@dogsbay/serialize-core": "0.2.0-beta.
|
|
38
|
-
"@dogsbay/
|
|
39
|
-
"@dogsbay/
|
|
40
|
-
"@dogsbay/ui": "0.2.0-beta.
|
|
35
|
+
"@dogsbay/format-dogsbay-md": "0.2.0-beta.139",
|
|
36
|
+
"@dogsbay/render-html": "0.2.0-beta.139",
|
|
37
|
+
"@dogsbay/serialize-core": "0.2.0-beta.139",
|
|
38
|
+
"@dogsbay/site-files": "0.2.0-beta.139",
|
|
39
|
+
"@dogsbay/types": "0.2.0-beta.139",
|
|
40
|
+
"@dogsbay/ui": "0.2.0-beta.139"
|
|
41
41
|
},
|
|
42
42
|
"repository": {
|
|
43
43
|
"type": "git",
|