@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.
- package/dist/{chunk-N2PHBHNZ.js → chunk-7HMU2B3X.js} +2 -2
- package/dist/{chunk-TCKD2I2B.js → chunk-B2MXOYPA.js} +2 -2
- package/dist/{chunk-IKMPDZYE.js → chunk-L4RM7WBO.js} +5 -4
- package/dist/{chunk-IKMPDZYE.js.map → chunk-L4RM7WBO.js.map} +1 -1
- package/dist/{chunk-3VK5GQVH.js → chunk-YPUH2OJT.js} +7222 -2064
- package/dist/chunk-YPUH2OJT.js.map +1 -0
- package/dist/doctor.js +20 -5
- package/dist/doctor.js.map +1 -1
- package/dist/index.js +3 -3
- package/dist/integration/index.js +3 -3
- package/dist/middleware/index.js +1 -1
- package/dist/richtext/index.js +1 -1
- package/dist/vite/index.js +2 -2
- package/package.json +13 -14
- package/dist/chunk-3VK5GQVH.js.map +0 -1
- /package/dist/{chunk-N2PHBHNZ.js.map → chunk-7HMU2B3X.js.map} +0 -0
- /package/dist/{chunk-TCKD2I2B.js.map → chunk-B2MXOYPA.js.map} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
studioAutoWrap
|
|
3
|
-
} from "./chunk-
|
|
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-
|
|
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.
|
|
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-
|
|
443
|
+
//# sourceMappingURL=chunk-B2MXOYPA.js.map
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
injectVersionMetaTag,
|
|
6
6
|
injectVisibilityStyle,
|
|
7
7
|
readVisibilityConfigSync
|
|
8
|
-
} from "./chunk-
|
|
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 (!
|
|
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
|
|
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-
|
|
1362
|
+
//# sourceMappingURL=chunk-L4RM7WBO.js.map
|