@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.
@@ -14,7 +14,7 @@ import {
14
14
  unescapeHTML,
15
15
  } from 'astro/runtime/server/index.js';
16
16
 
17
- export type TreeNode =
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.0",
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.0",
75
+ "astro": "5.7.5",
76
76
  "astro-scripts": "0.0.14"
77
77
  },
78
78
  "engines": {
@@ -1,2 +0,0 @@
1
- export { htmlTag } from './tagdefs/html.tag.js';
2
- export { htmlTokenTransform } from './transform/html-token-transform.js';
@@ -1,6 +0,0 @@
1
- import { htmlTag } from "./tagdefs/html.tag.js";
2
- import { htmlTokenTransform } from "./transform/html-token-transform.js";
3
- export {
4
- htmlTag,
5
- htmlTokenTransform
6
- };