@nuasite/cms-sidecar 0.66.0 → 0.67.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.
@@ -24305,6 +24305,7 @@ var SIDEBAR_FIELD_NAMES = new Set([
24305
24305
  "author"
24306
24306
  ]);
24307
24307
  var DIRECTIVE_PATTERN = /^\s*@(position|group)\s+(.+)$/;
24308
+ var DIRECTIVE_TEXT = /@(?:position|group)\s/;
24308
24309
  var FREE_TEXT_FIELD_NAMES = new Set([
24309
24310
  "title",
24310
24311
  "name",
@@ -24357,7 +24358,7 @@ function parseFrontmatter(content) {
24357
24358
  }
24358
24359
  function parseFieldDirectives(content) {
24359
24360
  const block = extractFrontmatterBlock(content);
24360
- if (!block)
24361
+ if (!block || !DIRECTIVE_TEXT.test(block))
24361
24362
  return {};
24362
24363
  const doc = import_yaml2.parseDocument(block);
24363
24364
  if (!import_yaml2.isMap(doc.contents))
package/package.json CHANGED
@@ -14,7 +14,7 @@
14
14
  "directory": "packages/cms-sidecar"
15
15
  },
16
16
  "license": "Apache-2.0",
17
- "version": "0.66.0",
17
+ "version": "0.67.1",
18
18
  "module": "./dist/index.js",
19
19
  "types": "./dist/index.d.ts",
20
20
  "type": "module",
@@ -30,8 +30,8 @@
30
30
  "cms-sidecar": "src/cli.ts"
31
31
  },
32
32
  "dependencies": {
33
- "@nuasite/cms-core": "0.66.0",
34
- "@nuasite/cms-types": "0.66.0"
33
+ "@nuasite/cms-core": "0.67.1",
34
+ "@nuasite/cms-types": "0.67.1"
35
35
  },
36
36
  "devDependencies": {
37
37
  "@types/bun": "1.3.11"