@astrojs/markdoc 0.14.0 → 0.14.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/components/TreeNode.ts +1 -1
- package/dist/utils.d.ts +0 -9
- package/dist/utils.js +0 -7
- package/package.json +2 -2
- package/dist/html/index.d.ts +0 -2
- package/dist/html/index.js +0 -6
package/components/TreeNode.ts
CHANGED
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
unescapeHTML,
|
|
15
15
|
} from 'astro/runtime/server/index.js';
|
|
16
16
|
|
|
17
|
-
|
|
17
|
+
type TreeNode =
|
|
18
18
|
// Markdoc `if` tag often returns an array of nodes in the AST, which gets translated
|
|
19
19
|
// here as an array of `TreeNode`s, which we'll render all without a wrapper.
|
|
20
20
|
| TreeNode[]
|
package/dist/utils.d.ts
CHANGED
|
@@ -31,15 +31,6 @@ interface ErrorProperties {
|
|
|
31
31
|
*/
|
|
32
32
|
export declare function prependForwardSlash(str: string): string;
|
|
33
33
|
export declare function isValidUrl(str: string): boolean;
|
|
34
|
-
/**
|
|
35
|
-
* Identifies Astro components with propagated assets
|
|
36
|
-
* @see 'packages/astro/src/content/consts.ts'
|
|
37
|
-
*/
|
|
38
|
-
export declare const PROPAGATED_ASSET_FLAG = "astroPropagatedAssets";
|
|
39
|
-
/**
|
|
40
|
-
* @see 'packages/astro/src/content/utils.ts'
|
|
41
|
-
*/
|
|
42
|
-
export declare function hasContentFlag(viteId: string, flag: string): boolean;
|
|
43
34
|
/** Identifier for components imports passed as `tags` or `nodes` configuration. */
|
|
44
35
|
export declare const componentConfigSymbol: unique symbol;
|
|
45
36
|
export declare function isComponentConfig(value: unknown): value is ComponentConfig;
|
package/dist/utils.js
CHANGED
|
@@ -26,20 +26,13 @@ function isValidUrl(str) {
|
|
|
26
26
|
return false;
|
|
27
27
|
}
|
|
28
28
|
}
|
|
29
|
-
const PROPAGATED_ASSET_FLAG = "astroPropagatedAssets";
|
|
30
|
-
function hasContentFlag(viteId, flag) {
|
|
31
|
-
const flags = new URLSearchParams(viteId.split("?")[1] ?? "");
|
|
32
|
-
return flags.has(flag);
|
|
33
|
-
}
|
|
34
29
|
const componentConfigSymbol = Symbol.for("@astrojs/markdoc/component-config");
|
|
35
30
|
function isComponentConfig(value) {
|
|
36
31
|
return typeof value === "object" && value !== null && componentConfigSymbol in value;
|
|
37
32
|
}
|
|
38
33
|
export {
|
|
39
34
|
MarkdocError,
|
|
40
|
-
PROPAGATED_ASSET_FLAG,
|
|
41
35
|
componentConfigSymbol,
|
|
42
|
-
hasContentFlag,
|
|
43
36
|
isComponentConfig,
|
|
44
37
|
isValidUrl,
|
|
45
38
|
prependForwardSlash
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@astrojs/markdoc",
|
|
3
3
|
"description": "Add support for Markdoc in your Astro site",
|
|
4
|
-
"version": "0.14.
|
|
4
|
+
"version": "0.14.1",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
7
7
|
"author": "withastro",
|
|
@@ -72,7 +72,7 @@
|
|
|
72
72
|
"devalue": "^5.1.1",
|
|
73
73
|
"linkedom": "^0.18.9",
|
|
74
74
|
"vite": "^6.2.6",
|
|
75
|
-
"astro": "5.7.
|
|
75
|
+
"astro": "5.7.5",
|
|
76
76
|
"astro-scripts": "0.0.14"
|
|
77
77
|
},
|
|
78
78
|
"engines": {
|
package/dist/html/index.d.ts
DELETED