bejamas 0.4.0 → 0.4.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/dist/{generate-mdx-oWy6Hzgd.js → generate-mdx-Ce7A9Uxe.js} +14 -8
- package/dist/generate-mdx-Ce7A9Uxe.js.map +1 -0
- package/dist/index.js +2 -2
- package/dist/{utils-otwzm7kH.js → utils-CyYWo_qS.js} +137 -72
- package/dist/utils-CyYWo_qS.js.map +1 -0
- package/package.json +1 -1
- package/dist/generate-mdx-oWy6Hzgd.js.map +0 -1
- package/dist/utils-otwzm7kH.js.map +0 -1
|
@@ -3293,6 +3293,7 @@ var require_tokenize = /* @__PURE__ */ __commonJS({ "../../node_modules/postcss/
|
|
|
3293
3293
|
let pos = 0;
|
|
3294
3294
|
let buffer = [];
|
|
3295
3295
|
let returned = [];
|
|
3296
|
+
let lastBadParen = -1;
|
|
3296
3297
|
function position() {
|
|
3297
3298
|
return pos;
|
|
3298
3299
|
}
|
|
@@ -3361,15 +3362,22 @@ var require_tokenize = /* @__PURE__ */ __commonJS({ "../../node_modules/postcss/
|
|
|
3361
3362
|
next
|
|
3362
3363
|
];
|
|
3363
3364
|
pos = next;
|
|
3364
|
-
} else
|
|
3365
|
+
} else if (pos <= lastBadParen) currentToken = [
|
|
3366
|
+
"(",
|
|
3367
|
+
"(",
|
|
3368
|
+
pos
|
|
3369
|
+
];
|
|
3370
|
+
else {
|
|
3365
3371
|
next = css.indexOf(")", pos + 1);
|
|
3366
3372
|
content = css.slice(pos, next + 1);
|
|
3367
|
-
if (next === -1 || RE_BAD_BRACKET.test(content))
|
|
3368
|
-
|
|
3369
|
-
|
|
3370
|
-
|
|
3371
|
-
|
|
3372
|
-
|
|
3373
|
+
if (next === -1 || RE_BAD_BRACKET.test(content)) {
|
|
3374
|
+
lastBadParen = next === -1 ? length : next;
|
|
3375
|
+
currentToken = [
|
|
3376
|
+
"(",
|
|
3377
|
+
"(",
|
|
3378
|
+
pos
|
|
3379
|
+
];
|
|
3380
|
+
} else {
|
|
3373
3381
|
currentToken = [
|
|
3374
3382
|
"brackets",
|
|
3375
3383
|
content,
|
|
@@ -3616,6 +3624,13 @@ var require_css_syntax_error = /* @__PURE__ */ __commonJS({ "../../node_modules/
|
|
|
3616
3624
|
//#endregion
|
|
3617
3625
|
//#region ../../node_modules/postcss/lib/stringifier.js
|
|
3618
3626
|
var require_stringifier = /* @__PURE__ */ __commonJS({ "../../node_modules/postcss/lib/stringifier.js": ((exports, module) => {
|
|
3627
|
+
const STYLE_TAG = /(<)(\/?style\b)/gi;
|
|
3628
|
+
const COMMENT_OPEN = /(<)(!--)/g;
|
|
3629
|
+
function escapeHTMLInCSS(str) {
|
|
3630
|
+
if (typeof str !== "string") return str;
|
|
3631
|
+
if (!str.includes("<")) return str;
|
|
3632
|
+
return str.replace(STYLE_TAG, "\\3c $2").replace(COMMENT_OPEN, "\\3c $2");
|
|
3633
|
+
}
|
|
3619
3634
|
const DEFAULT_RAW = {
|
|
3620
3635
|
after: "\n",
|
|
3621
3636
|
beforeClose: "\n",
|
|
@@ -3638,14 +3653,15 @@ var require_stringifier = /* @__PURE__ */ __commonJS({ "../../node_modules/postc
|
|
|
3638
3653
|
this.builder = builder;
|
|
3639
3654
|
}
|
|
3640
3655
|
atrule(node, semicolon) {
|
|
3656
|
+
let raws = node.raws;
|
|
3641
3657
|
let name = "@" + node.name;
|
|
3642
3658
|
let params = node.params ? this.rawValue(node, "params") : "";
|
|
3643
|
-
if (typeof
|
|
3659
|
+
if (typeof raws.afterName !== "undefined") name += raws.afterName;
|
|
3644
3660
|
else if (params) name += " ";
|
|
3645
3661
|
if (node.nodes) this.block(node, name + params);
|
|
3646
3662
|
else {
|
|
3647
|
-
let end = (
|
|
3648
|
-
this.builder(name + params + end, node);
|
|
3663
|
+
let end = (raws.between || "") + (semicolon ? ";" : "");
|
|
3664
|
+
this.builder(escapeHTMLInCSS(name + params + end), node);
|
|
3649
3665
|
}
|
|
3650
3666
|
}
|
|
3651
3667
|
beforeAfter(node, detect) {
|
|
@@ -3668,40 +3684,43 @@ var require_stringifier = /* @__PURE__ */ __commonJS({ "../../node_modules/postc
|
|
|
3668
3684
|
}
|
|
3669
3685
|
block(node, start) {
|
|
3670
3686
|
let between = this.raw(node, "between", "beforeOpen");
|
|
3671
|
-
this.builder(start + between + "{", node, "start");
|
|
3687
|
+
this.builder(escapeHTMLInCSS(start + between) + "{", node, "start");
|
|
3672
3688
|
let after;
|
|
3673
3689
|
if (node.nodes && node.nodes.length) {
|
|
3674
3690
|
this.body(node);
|
|
3675
3691
|
after = this.raw(node, "after");
|
|
3676
3692
|
} else after = this.raw(node, "after", "emptyBody");
|
|
3677
|
-
if (after) this.builder(after);
|
|
3693
|
+
if (after) this.builder(escapeHTMLInCSS(after));
|
|
3678
3694
|
this.builder("}", node, "end");
|
|
3679
3695
|
}
|
|
3680
3696
|
body(node) {
|
|
3681
|
-
let
|
|
3697
|
+
let nodes = node.nodes;
|
|
3698
|
+
let last = nodes.length - 1;
|
|
3682
3699
|
while (last > 0) {
|
|
3683
|
-
if (
|
|
3700
|
+
if (nodes[last].type !== "comment") break;
|
|
3684
3701
|
last -= 1;
|
|
3685
3702
|
}
|
|
3686
3703
|
let semicolon = this.raw(node, "semicolon");
|
|
3687
|
-
|
|
3688
|
-
|
|
3704
|
+
let isDocument = node.type === "document";
|
|
3705
|
+
for (let i = 0; i < nodes.length; i++) {
|
|
3706
|
+
let child = nodes[i];
|
|
3689
3707
|
let before = this.raw(child, "before");
|
|
3690
|
-
if (before) this.builder(before);
|
|
3708
|
+
if (before) this.builder(isDocument ? before : escapeHTMLInCSS(before));
|
|
3691
3709
|
this.stringify(child, last !== i || semicolon);
|
|
3692
3710
|
}
|
|
3693
3711
|
}
|
|
3694
3712
|
comment(node) {
|
|
3695
3713
|
let left = this.raw(node, "left", "commentLeft");
|
|
3696
3714
|
let right = this.raw(node, "right", "commentRight");
|
|
3697
|
-
this.builder("/*" + left + node.text + right + "*/", node);
|
|
3715
|
+
this.builder(escapeHTMLInCSS("/*" + left + node.text + right + "*/"), node);
|
|
3698
3716
|
}
|
|
3699
3717
|
decl(node, semicolon) {
|
|
3718
|
+
let raws = node.raws;
|
|
3700
3719
|
let between = this.raw(node, "between", "colon");
|
|
3701
3720
|
let string = node.prop + between + this.rawValue(node, "value");
|
|
3702
|
-
if (node.important) string +=
|
|
3721
|
+
if (node.important) string += raws.important || " !important";
|
|
3703
3722
|
if (semicolon) string += ";";
|
|
3704
|
-
this.builder(string, node);
|
|
3723
|
+
this.builder(escapeHTMLInCSS(string), node);
|
|
3705
3724
|
}
|
|
3706
3725
|
document(node) {
|
|
3707
3726
|
this.body(node);
|
|
@@ -3720,8 +3739,8 @@ var require_stringifier = /* @__PURE__ */ __commonJS({ "../../node_modules/postc
|
|
|
3720
3739
|
}
|
|
3721
3740
|
if (!parent) return DEFAULT_RAW[detect];
|
|
3722
3741
|
let root$1 = node.root();
|
|
3723
|
-
|
|
3724
|
-
if (typeof
|
|
3742
|
+
let cache = root$1.rawCache || (root$1.rawCache = {});
|
|
3743
|
+
if (typeof cache[detect] !== "undefined") return cache[detect];
|
|
3725
3744
|
if (detect === "before" || detect === "after") return this.beforeAfter(node, detect);
|
|
3726
3745
|
else {
|
|
3727
3746
|
let method = "raw" + capitalize(detect);
|
|
@@ -3732,7 +3751,7 @@ var require_stringifier = /* @__PURE__ */ __commonJS({ "../../node_modules/postc
|
|
|
3732
3751
|
});
|
|
3733
3752
|
}
|
|
3734
3753
|
if (typeof value === "undefined") value = DEFAULT_RAW[detect];
|
|
3735
|
-
|
|
3754
|
+
cache[detect] = value;
|
|
3736
3755
|
return value;
|
|
3737
3756
|
}
|
|
3738
3757
|
rawBeforeClose(root$1) {
|
|
@@ -3853,11 +3872,15 @@ var require_stringifier = /* @__PURE__ */ __commonJS({ "../../node_modules/postc
|
|
|
3853
3872
|
}
|
|
3854
3873
|
root(node) {
|
|
3855
3874
|
this.body(node);
|
|
3856
|
-
if (node.raws.after)
|
|
3875
|
+
if (node.raws.after) {
|
|
3876
|
+
let after = node.raws.after;
|
|
3877
|
+
let isDocument = node.parent && node.parent.type === "document";
|
|
3878
|
+
this.builder(isDocument ? after : escapeHTMLInCSS(after));
|
|
3879
|
+
}
|
|
3857
3880
|
}
|
|
3858
3881
|
rule(node) {
|
|
3859
3882
|
this.block(node, this.rawValue(node, "selector"));
|
|
3860
|
-
if (node.raws.ownSemicolon) this.builder(node.raws.ownSemicolon, node, "end");
|
|
3883
|
+
if (node.raws.ownSemicolon) this.builder(escapeHTMLInCSS(node.raws.ownSemicolon), node, "end");
|
|
3861
3884
|
}
|
|
3862
3885
|
stringify(node, semicolon) {
|
|
3863
3886
|
/* c8 ignore start */
|
|
@@ -3942,7 +3965,7 @@ var require_node = /* @__PURE__ */ __commonJS({ "../../node_modules/postcss/lib/
|
|
|
3942
3965
|
this[my$2] = true;
|
|
3943
3966
|
for (let name in defaults) if (name === "nodes") {
|
|
3944
3967
|
this.nodes = [];
|
|
3945
|
-
for (let node of defaults[name]) if (typeof node.clone === "function") this.append(node.clone());
|
|
3968
|
+
for (let node of defaults[name]) if (typeof node.clone === "function" && node.parent) this.append(node.clone());
|
|
3946
3969
|
else this.append(node);
|
|
3947
3970
|
} else this[name] = defaults[name];
|
|
3948
3971
|
}
|
|
@@ -4031,10 +4054,14 @@ var require_node = /* @__PURE__ */ __commonJS({ "../../node_modules/postcss/lib/
|
|
|
4031
4054
|
return this.parent.nodes[index + 1];
|
|
4032
4055
|
}
|
|
4033
4056
|
positionBy(opts = {}) {
|
|
4034
|
-
let
|
|
4057
|
+
let inputString = "document" in this.source.input ? this.source.input.document : this.source.input.css;
|
|
4058
|
+
let pos = {
|
|
4059
|
+
column: this.source.start.column,
|
|
4060
|
+
line: this.source.start.line,
|
|
4061
|
+
offset: sourceOffset(inputString, this.source.start)
|
|
4062
|
+
};
|
|
4035
4063
|
if (opts.index) pos = this.positionInside(opts.index);
|
|
4036
4064
|
else if (opts.word) {
|
|
4037
|
-
let inputString = "document" in this.source.input ? this.source.input.document : this.source.input.css;
|
|
4038
4065
|
let index = inputString.slice(sourceOffset(inputString, this.source.start), sourceOffset(inputString, this.source.end)).indexOf(opts.word);
|
|
4039
4066
|
if (index !== -1) pos = this.positionInside(index);
|
|
4040
4067
|
}
|
|
@@ -4089,14 +4116,14 @@ var require_node = /* @__PURE__ */ __commonJS({ "../../node_modules/postcss/lib/
|
|
|
4089
4116
|
line: opts.start.line,
|
|
4090
4117
|
offset: sourceOffset(inputString, opts.start)
|
|
4091
4118
|
};
|
|
4092
|
-
else if (opts.index) start = this.positionInside(opts.index);
|
|
4119
|
+
else if (typeof opts.index === "number") start = this.positionInside(opts.index);
|
|
4093
4120
|
if (opts.end) end = {
|
|
4094
4121
|
column: opts.end.column,
|
|
4095
4122
|
line: opts.end.line,
|
|
4096
4123
|
offset: sourceOffset(inputString, opts.end)
|
|
4097
4124
|
};
|
|
4098
4125
|
else if (typeof opts.endIndex === "number") end = this.positionInside(opts.endIndex);
|
|
4099
|
-
else if (opts.index) end = this.positionInside(opts.index + 1);
|
|
4126
|
+
else if (typeof opts.index === "number") end = this.positionInside(opts.index + 1);
|
|
4100
4127
|
}
|
|
4101
4128
|
if (end.line < start.line || end.line === start.line && end.column <= start.column) end = {
|
|
4102
4129
|
column: start.column + 1,
|
|
@@ -6717,6 +6744,7 @@ var require_previous_map = /* @__PURE__ */ __commonJS({ "../../node_modules/post
|
|
|
6717
6744
|
var PreviousMap$2 = class {
|
|
6718
6745
|
constructor(css, opts) {
|
|
6719
6746
|
if (opts.map === false) return;
|
|
6747
|
+
if (opts.unsafeMap) this.unsafeMap = true;
|
|
6720
6748
|
this.loadAnnotation(css);
|
|
6721
6749
|
this.inline = this.startWith(this.annotation, "data:");
|
|
6722
6750
|
let prev = opts.map ? opts.map.prev : void 0;
|
|
@@ -6726,7 +6754,7 @@ var require_previous_map = /* @__PURE__ */ __commonJS({ "../../node_modules/post
|
|
|
6726
6754
|
if (text) this.text = text;
|
|
6727
6755
|
}
|
|
6728
6756
|
consumer() {
|
|
6729
|
-
if (!this.consumerCache) this.consumerCache = new SourceMapConsumer$2(this.text);
|
|
6757
|
+
if (!this.consumerCache) this.consumerCache = new SourceMapConsumer$2(this.json || this.text);
|
|
6730
6758
|
return this.consumerCache;
|
|
6731
6759
|
}
|
|
6732
6760
|
decodeInline(text) {
|
|
@@ -6736,7 +6764,8 @@ var require_previous_map = /* @__PURE__ */ __commonJS({ "../../node_modules/post
|
|
|
6736
6764
|
if (uriMatch) return decodeURIComponent(text.substr(uriMatch[0].length));
|
|
6737
6765
|
let baseUriMatch = text.match(baseCharsetUri) || text.match(baseUri);
|
|
6738
6766
|
if (baseUriMatch) return fromBase64(text.substr(baseUriMatch[0].length));
|
|
6739
|
-
let encoding = text.
|
|
6767
|
+
let encoding = text.slice(22);
|
|
6768
|
+
encoding = encoding.slice(0, encoding.indexOf(","));
|
|
6740
6769
|
throw new Error("Unsupported source map encoding " + encoding);
|
|
6741
6770
|
}
|
|
6742
6771
|
getAnnotationURL(sourceMapString) {
|
|
@@ -6753,7 +6782,11 @@ var require_previous_map = /* @__PURE__ */ __commonJS({ "../../node_modules/post
|
|
|
6753
6782
|
let end = css.indexOf("*/", start);
|
|
6754
6783
|
if (start > -1 && end > -1) this.annotation = this.getAnnotationURL(css.substring(start, end));
|
|
6755
6784
|
}
|
|
6756
|
-
loadFile(path$2) {
|
|
6785
|
+
loadFile(path$2, cssFile, trusted) {
|
|
6786
|
+
/* c8 ignore next 5 */
|
|
6787
|
+
if (!trusted && !this.unsafeMap) {
|
|
6788
|
+
if (!/\.map$/i.test(path$2)) return;
|
|
6789
|
+
}
|
|
6757
6790
|
this.root = dirname$2(path$2);
|
|
6758
6791
|
if (existsSync$2(path$2)) {
|
|
6759
6792
|
this.mapFile = path$2;
|
|
@@ -6766,7 +6799,7 @@ var require_previous_map = /* @__PURE__ */ __commonJS({ "../../node_modules/post
|
|
|
6766
6799
|
else if (typeof prev === "function") {
|
|
6767
6800
|
let prevPath = prev(file);
|
|
6768
6801
|
if (prevPath) {
|
|
6769
|
-
let map = this.loadFile(prevPath);
|
|
6802
|
+
let map = this.loadFile(prevPath, file, true);
|
|
6770
6803
|
if (!map) throw new Error("Unable to load previous source map: " + prevPath.toString());
|
|
6771
6804
|
return map;
|
|
6772
6805
|
}
|
|
@@ -6778,7 +6811,14 @@ var require_previous_map = /* @__PURE__ */ __commonJS({ "../../node_modules/post
|
|
|
6778
6811
|
else if (this.annotation) {
|
|
6779
6812
|
let map = this.annotation;
|
|
6780
6813
|
if (file) map = join$2(dirname$2(file), map);
|
|
6781
|
-
|
|
6814
|
+
let unknown = this.loadFile(map, file, false);
|
|
6815
|
+
if (unknown) try {
|
|
6816
|
+
/* c8 ignore next 4 */
|
|
6817
|
+
this.json = JSON.parse(unknown.replace(/^\)]}'[^\n]*\n/, ""));
|
|
6818
|
+
} catch {
|
|
6819
|
+
return;
|
|
6820
|
+
}
|
|
6821
|
+
return unknown;
|
|
6782
6822
|
}
|
|
6783
6823
|
}
|
|
6784
6824
|
startWith(string, start) {
|
|
@@ -6939,21 +6979,21 @@ var require_input = /* @__PURE__ */ __commonJS({ "../../node_modules/postcss/lib
|
|
|
6939
6979
|
if (!this.map) return false;
|
|
6940
6980
|
let consumer = this.map.consumer();
|
|
6941
6981
|
let from = consumer.originalPositionFor({
|
|
6942
|
-
column,
|
|
6982
|
+
column: column - 1,
|
|
6943
6983
|
line
|
|
6944
6984
|
});
|
|
6945
6985
|
if (!from.source) return false;
|
|
6946
6986
|
let to;
|
|
6947
6987
|
if (typeof endLine === "number") to = consumer.originalPositionFor({
|
|
6948
|
-
column: endColumn,
|
|
6988
|
+
column: endColumn - 1,
|
|
6949
6989
|
line: endLine
|
|
6950
6990
|
});
|
|
6951
6991
|
let fromUrl;
|
|
6952
6992
|
if (isAbsolute$1(from.source)) fromUrl = pathToFileURL$1(from.source);
|
|
6953
6993
|
else fromUrl = new URL(from.source, this.map.consumer().sourceRoot || pathToFileURL$1(this.map.mapFile));
|
|
6954
6994
|
let result = {
|
|
6955
|
-
column: from.column,
|
|
6956
|
-
endColumn: to && to.column,
|
|
6995
|
+
column: from.column + 1,
|
|
6996
|
+
endColumn: to && to.column + 1,
|
|
6957
6997
|
endLine: to && to.line,
|
|
6958
6998
|
line: from.line,
|
|
6959
6999
|
url: fromUrl.toString()
|
|
@@ -7128,18 +7168,28 @@ var require_fromJSON = /* @__PURE__ */ __commonJS({ "../../node_modules/postcss/
|
|
|
7128
7168
|
inputs.push(inputHydrated);
|
|
7129
7169
|
}
|
|
7130
7170
|
}
|
|
7131
|
-
|
|
7171
|
+
let nodes;
|
|
7172
|
+
if (defaults.nodes) {
|
|
7173
|
+
nodes = json.nodes.map((n) => fromJSON$2(n, inputs));
|
|
7174
|
+
delete defaults.nodes;
|
|
7175
|
+
}
|
|
7132
7176
|
if (defaults.source) {
|
|
7133
7177
|
let { inputId,...source } = defaults.source;
|
|
7134
7178
|
defaults.source = source;
|
|
7135
7179
|
if (inputId != null) defaults.source.input = inputs[inputId];
|
|
7136
7180
|
}
|
|
7137
|
-
|
|
7138
|
-
|
|
7139
|
-
else if (defaults.type === "
|
|
7140
|
-
else if (defaults.type === "
|
|
7141
|
-
else if (defaults.type === "
|
|
7181
|
+
let node;
|
|
7182
|
+
if (defaults.type === "root") node = new Root$5(defaults);
|
|
7183
|
+
else if (defaults.type === "decl") node = new Declaration$3(defaults);
|
|
7184
|
+
else if (defaults.type === "rule") node = new Rule$3(defaults);
|
|
7185
|
+
else if (defaults.type === "comment") node = new Comment$3(defaults);
|
|
7186
|
+
else if (defaults.type === "atrule") node = new AtRule$3(defaults);
|
|
7142
7187
|
else throw new Error("Unknown node type: " + json.type);
|
|
7188
|
+
if (nodes) {
|
|
7189
|
+
node.nodes = nodes;
|
|
7190
|
+
for (let child of nodes) child.parent = node;
|
|
7191
|
+
}
|
|
7192
|
+
return node;
|
|
7143
7193
|
}
|
|
7144
7194
|
module.exports = fromJSON$2;
|
|
7145
7195
|
fromJSON$2.default = fromJSON$2;
|
|
@@ -7434,6 +7484,11 @@ var require_parser = /* @__PURE__ */ __commonJS({ "../../node_modules/postcss/li
|
|
|
7434
7484
|
if (pos) return pos;
|
|
7435
7485
|
}
|
|
7436
7486
|
}
|
|
7487
|
+
function tokensToString(tokens, from, to) {
|
|
7488
|
+
let result = "";
|
|
7489
|
+
for (let i = from; i < to; i++) result += tokens[i][1];
|
|
7490
|
+
return result;
|
|
7491
|
+
}
|
|
7437
7492
|
var Parser$1 = class {
|
|
7438
7493
|
constructor(input) {
|
|
7439
7494
|
this.input = input;
|
|
@@ -7575,40 +7630,41 @@ var require_parser = /* @__PURE__ */ __commonJS({ "../../node_modules/postcss/li
|
|
|
7575
7630
|
}
|
|
7576
7631
|
node.source.end = this.getPosition(last[3] || last[2] || findLastWithPosition(tokens));
|
|
7577
7632
|
node.source.end.offset++;
|
|
7578
|
-
|
|
7579
|
-
|
|
7580
|
-
|
|
7581
|
-
|
|
7582
|
-
|
|
7583
|
-
node.
|
|
7584
|
-
|
|
7585
|
-
|
|
7633
|
+
let start = 0;
|
|
7634
|
+
while (tokens[start][0] !== "word") {
|
|
7635
|
+
if (start === tokens.length - 1) this.unknownWord([tokens[start]]);
|
|
7636
|
+
start++;
|
|
7637
|
+
}
|
|
7638
|
+
node.raws.before += tokensToString(tokens, 0, start);
|
|
7639
|
+
node.source.start = this.getPosition(tokens[start][2]);
|
|
7640
|
+
let propStart = start;
|
|
7641
|
+
while (start < tokens.length) {
|
|
7642
|
+
let type = tokens[start][0];
|
|
7586
7643
|
if (type === ":" || type === "space" || type === "comment") break;
|
|
7587
|
-
|
|
7644
|
+
start++;
|
|
7588
7645
|
}
|
|
7589
|
-
node.
|
|
7646
|
+
node.prop = tokensToString(tokens, propStart, start);
|
|
7647
|
+
let betweenStart = start;
|
|
7590
7648
|
let token;
|
|
7591
|
-
while (tokens.length) {
|
|
7592
|
-
token = tokens
|
|
7593
|
-
|
|
7594
|
-
|
|
7595
|
-
|
|
7596
|
-
} else {
|
|
7597
|
-
if (token[0] === "word" && /\w/.test(token[1])) this.unknownWord([token]);
|
|
7598
|
-
node.raws.between += token[1];
|
|
7599
|
-
}
|
|
7649
|
+
while (start < tokens.length) {
|
|
7650
|
+
token = tokens[start];
|
|
7651
|
+
start++;
|
|
7652
|
+
if (token[0] === ":") break;
|
|
7653
|
+
if (token[0] === "word" && /\w/.test(token[1])) this.unknownWord([token]);
|
|
7600
7654
|
}
|
|
7655
|
+
node.raws.between = tokensToString(tokens, betweenStart, start);
|
|
7601
7656
|
if (node.prop[0] === "_" || node.prop[0] === "*") {
|
|
7602
7657
|
node.raws.before += node.prop[0];
|
|
7603
7658
|
node.prop = node.prop.slice(1);
|
|
7604
7659
|
}
|
|
7605
|
-
let
|
|
7606
|
-
|
|
7607
|
-
|
|
7608
|
-
next = tokens[0][0];
|
|
7660
|
+
let firstSpacesStart = start;
|
|
7661
|
+
while (start < tokens.length) {
|
|
7662
|
+
let next = tokens[start][0];
|
|
7609
7663
|
if (next !== "space" && next !== "comment") break;
|
|
7610
|
-
|
|
7664
|
+
start++;
|
|
7611
7665
|
}
|
|
7666
|
+
let firstSpaces = tokens.slice(firstSpacesStart, start);
|
|
7667
|
+
tokens = tokens.slice(start);
|
|
7612
7668
|
this.precheckMissedSemicolon(tokens);
|
|
7613
7669
|
for (let i = tokens.length - 1; i >= 0; i--) {
|
|
7614
7670
|
token = tokens[i];
|
|
@@ -8259,6 +8315,15 @@ var require_lazy_result = /* @__PURE__ */ __commonJS({ "../../node_modules/postc
|
|
|
8259
8315
|
if (opts.syntax) str = opts.syntax.stringify;
|
|
8260
8316
|
if (opts.stringifier) str = opts.stringifier;
|
|
8261
8317
|
if (str.stringify) str = str.stringify;
|
|
8318
|
+
let rootSource = this.result.root.source;
|
|
8319
|
+
if (opts.map === void 0 && !(rootSource && rootSource.input && rootSource.input.map)) {
|
|
8320
|
+
let result = "";
|
|
8321
|
+
str(this.result.root, (i) => {
|
|
8322
|
+
result += i;
|
|
8323
|
+
});
|
|
8324
|
+
this.result.css = result;
|
|
8325
|
+
return this.result;
|
|
8326
|
+
}
|
|
8262
8327
|
let data = new MapGenerator$1(str, this.result.root, this.result.opts).generate();
|
|
8263
8328
|
this.result.css = data[0];
|
|
8264
8329
|
this.result.map = data[1];
|
|
@@ -8388,7 +8453,7 @@ var require_lazy_result = /* @__PURE__ */ __commonJS({ "../../node_modules/postc
|
|
|
8388
8453
|
var require_no_work_result = /* @__PURE__ */ __commonJS({ "../../node_modules/postcss/lib/no-work-result.js": ((exports, module) => {
|
|
8389
8454
|
let MapGenerator = require_map_generator();
|
|
8390
8455
|
let parse$2 = require_parse();
|
|
8391
|
-
|
|
8456
|
+
let Result$2 = require_result();
|
|
8392
8457
|
let stringify$2 = require_stringify();
|
|
8393
8458
|
let warnOnce = require_warn_once();
|
|
8394
8459
|
var NoWorkResult$1 = class {
|
|
@@ -8492,7 +8557,7 @@ var require_processor = /* @__PURE__ */ __commonJS({ "../../node_modules/postcss
|
|
|
8492
8557
|
let Root$2 = require_root();
|
|
8493
8558
|
var Processor$2 = class {
|
|
8494
8559
|
constructor(plugins = []) {
|
|
8495
|
-
this.version = "8.5.
|
|
8560
|
+
this.version = "8.5.16";
|
|
8496
8561
|
this.plugins = this.normalize(plugins);
|
|
8497
8562
|
}
|
|
8498
8563
|
normalize(plugins) {
|
|
@@ -9401,4 +9466,4 @@ function createSourceFileFromFrontmatter(frontmatterCode) {
|
|
|
9401
9466
|
|
|
9402
9467
|
//#endregion
|
|
9403
9468
|
export { PRESET_RADII as $, getSemanticIconNameFromLucideExport as A, getHeadingFontValue as B, BASE_COLORS as C, buildRegistryTheme as D, ICON_LIBRARIES as E, designSystemConfigSchema as F, DEFAULT_PRESET_CONFIG as G, getStyleDefaultRadius as H, getDocumentDirection as I, PRESET_FONTS as J, PRESET_BASE_COLORS as K, getDocumentLanguage as L, renderSemanticIconSvgWithAttributeString as M, DEFAULT_DESIGN_SYSTEM_CONFIG as N, ICON_LIBRARY_COLLECTIONS as O, RTL_LANGUAGE_VALUES as P, PRESET_MENU_COLORS as Q, getFontPackageName as R, BEJAMAS_COMPONENTS_SCHEMA_URL as S, resolveRegistryUrl as T, getStyleId as U, getRadiusValue as V, normalizeDesignSystemConfig as W, PRESET_ICON_LIBRARIES as X, PRESET_FONT_HEADINGS as Y, PRESET_MENU_ACCENTS as Z, getConfig as _, extractComponentTagsFromMDX as a, isPresetCode as at, logger as b, extractPropsFromDeclaredProps as c, parseJsDocMetadata as d, PRESET_STYLES as et, resolveOutDir as f, spinner as g, toIdentifier as h, discoverExamples as i, encodePreset as it, getSemanticIconNameFromLucidePath as j, SEMANTIC_ICON_NAMES as k, normalizeBlockMDX as l, slugify as m, createSourceFileFromFrontmatter as n, V1_CHART_COLOR_MAP as nt, extractFrontmatter as o, fonts as ot, resolveUiRoot as p, PRESET_CHART_COLORS as q, detectHasImportTopLevel as r, decodePreset as rt, extractPropsFromAstroProps as s, __require as st, RESERVED_COMPONENTS as t, PRESET_THEMES as tt, normalizeUsageMDX as u, getWorkspaceConfig as v, buildUiUrl as w, highlighter as x, getProjectInfo as y, getFontValue as z };
|
|
9404
|
-
//# sourceMappingURL=utils-
|
|
9469
|
+
//# sourceMappingURL=utils-CyYWo_qS.js.map
|