@saastro/studio 0.10.0 → 0.10.2

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.
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  studioAutoWrap
3
- } from "./chunk-IKMPDZYE.js";
3
+ } from "./chunk-L4RM7WBO.js";
4
4
 
5
5
  // src/integration/index.ts
6
6
  function saastro(options = {}) {
@@ -25,4 +25,4 @@ function saastro(options = {}) {
25
25
  export {
26
26
  saastro
27
27
  };
28
- //# sourceMappingURL=chunk-N2PHBHNZ.js.map
28
+ //# sourceMappingURL=chunk-7HMU2B3X.js.map
@@ -1,6 +1,6 @@
1
1
  // src/vite/meta-tag.ts
2
2
  var STUDIO_PROTOCOL_VERSION = "2";
3
- var PACKAGE_VERSION = "0.10.0".length > 0 ? "0.10.0" : "0.0.0+unknown";
3
+ var PACKAGE_VERSION = "0.10.2".length > 0 ? "0.10.2" : "0.0.0+unknown";
4
4
  var META_TAGS = [
5
5
  `<meta name="saastro:studio-version" content="${STUDIO_PROTOCOL_VERSION}">`,
6
6
  `<meta name="saastro:studio-package" content="${PACKAGE_VERSION}">`
@@ -440,4 +440,4 @@ export {
440
440
  buildThemeHeadFragment,
441
441
  injectThemeStyle
442
442
  };
443
- //# sourceMappingURL=chunk-TCKD2I2B.js.map
443
+ //# sourceMappingURL=chunk-B2MXOYPA.js.map
@@ -5,7 +5,7 @@ import {
5
5
  injectVersionMetaTag,
6
6
  injectVisibilityStyle,
7
7
  readVisibilityConfigSync
8
- } from "./chunk-TCKD2I2B.js";
8
+ } from "./chunk-B2MXOYPA.js";
9
9
  import {
10
10
  diagnoseSectionRoot,
11
11
  hasFrontmatterFieldPrefix,
@@ -611,9 +611,10 @@ function injectSchema(source, schema, options = {}) {
611
611
 
612
612
  // src/vite/instrument-fields.ts
613
613
  var FRONTMATTER_RE3 = /^\s*---\s*\n[\s\S]*?\n---\s*\n/;
614
+ var SECTION_MARKER_ANY_FORM_RE = /data-saastro\s*=|["']data-saastro["']\s*:/;
614
615
  function instrumentFields(source, schema, options = {}) {
615
616
  if (!schema.fields.length) return source;
616
- if (!source.includes("data-saastro=")) return source;
617
+ if (!SECTION_MARKER_ANY_FORM_RE.test(source)) return source;
617
618
  const fmMatch = FRONTMATTER_RE3.exec(source);
618
619
  if (!fmMatch) return source;
619
620
  const templateStart = fmMatch[0].length;
@@ -1087,7 +1088,7 @@ function transformDottedReference(template, paramOrName, subProp, valueAttr) {
1087
1088
  cursor = refEnd;
1088
1089
  continue;
1089
1090
  }
1090
- if (parent.attrs.includes("data-saastro=")) {
1091
+ if (SECTION_MARKER_ANY_FORM_RE.test(parent.attrs)) {
1091
1092
  result += out.slice(cursor, refEnd);
1092
1093
  cursor = refEnd;
1093
1094
  continue;
@@ -1358,4 +1359,4 @@ async function loadTsx(path) {
1358
1359
  export {
1359
1360
  studioAutoWrap
1360
1361
  };
1361
- //# sourceMappingURL=chunk-IKMPDZYE.js.map
1362
+ //# sourceMappingURL=chunk-L4RM7WBO.js.map