@factorialco/f0-react 12.10.0 → 12.11.0
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/ArchiveThumbnail-cs8kx5Zf.js +70 -0
- package/dist/ArchiveViewer-BXUH8Lm5.js +172 -0
- package/dist/{ChatPostComposerDialog-DcmLrQk6.js → ChatPostComposerDialog-CGil1xkf.js} +4 -4
- package/dist/{CoachmarkProvider-XfLjB3dH.js → CoachmarkProvider-cZnuTk79.js} +29938 -29932
- package/dist/CodeThumbnail-Dcer4AyK.js +31 -0
- package/dist/CodeViewer-DFBwdIFm.js +98 -0
- package/dist/DocumentToolbar-vZEyzJ89.js +74 -0
- package/dist/{DocxThumbnail-kHTNnwW0.js → DocxThumbnail-CK9vFoTB.js} +2 -2
- package/dist/{DocxViewer-CqHgSExq.js → DocxViewer-DQV5Kv1n.js} +25 -23
- package/dist/ExternalLink-RdKU698E.js +22 -0
- package/dist/{F0AiProcessingOverlay-H23WHd7F.js → F0AiProcessingOverlay-DjGkQ2Nc.js} +1349 -1345
- package/dist/{popover-BjrPOMeQ.js → F0Button-FXkThQ9H.js} +3164 -8587
- package/dist/{F0CanvasPanel--hLKeQvg.js → F0CanvasPanel-BgDo2LWP.js} +9436 -9008
- package/dist/F0DocumentViewer-BXifXzUW.js +79 -0
- package/dist/F0DocumentViewer-DWuIFBHu.js +3 -0
- package/dist/F0Icon-Cj0USbCF.js +202 -0
- package/dist/{F0Map-hvgCUGk8.js → F0Map-Dwev4u-_.js} +189 -188
- package/dist/{F0Select-B-ZxVjXG.js → F0Select-BWWdEd7l.js} +6696 -6726
- package/dist/{F0Text-D92NWQRd.js → F0Text-DMZW7dhN.js} +25 -41
- package/dist/{F0VideoPlayer-CNp5hXgp.js → F0VideoPlayer-BmCmHG87.js} +412 -408
- package/dist/F0VideoPlayer-C8oYUUZM.js +1 -0
- package/dist/HtmlThumbnail-BAgkBH2r.js +60 -0
- package/dist/HtmlViewer-FRfNoxhP.js +208 -0
- package/dist/LockLocked-gdodYvT_.js +41 -0
- package/dist/{Map-eIXVKc1x.js → Map-BxGPElF2.js} +57 -54
- package/dist/{PdfThumbnail-CCSmwxQU.js → PdfThumbnail-CpGZz5Kq.js} +5 -5
- package/dist/PdfViewer-C81MK43i.js +296 -0
- package/dist/SandboxedHtmlFrame-B6YWhgyg.js +309 -0
- package/dist/{SheetViewer-BN5UYkEZ.js → SheetViewer-DPGpMNqq.js} +36 -26
- package/dist/TextThumbnail-DKNxh344.js +15 -0
- package/dist/{TextViewer-Bt0_dYB-.js → TextViewer-BH42AeG8.js} +44 -41
- package/dist/ai.d.ts +3 -3
- package/dist/ai.js +5 -5
- package/dist/bash-BcZBmoDA.js +169 -0
- package/dist/c-Dv-5_kUQ.js +187 -0
- package/dist/component-status.js +2 -2
- package/dist/core-C0MCmPil.js +842 -0
- package/dist/cpp-CMQhucZt.js +236 -0
- package/dist/csharp-CuDKSCf2.js +260 -0
- package/dist/css-Dta7Q4Li.js +145 -0
- package/dist/dart-po7Eq73d.js +134 -0
- package/dist/diff-IgsQP-8T.js +39 -0
- package/dist/dist-D-MJbPvE.js +59 -0
- package/dist/dockerfile-B4Bz9I5u.js +34 -0
- package/dist/dos-1TcyLtUq.js +57 -0
- package/dist/elixir-BnEjyLGa.js +189 -0
- package/dist/erlang-tgri7ZSv.js +218 -0
- package/dist/experimental.d.ts +24 -4
- package/dist/experimental.js +2711 -2702
- package/dist/{exports-BByQBwpi.d.ts → exports-C0yM5usu.d.ts} +1 -1
- package/dist/f0.d.ts +130 -8
- package/dist/f0.js +751 -745
- package/dist/fetchText-o_GOtiv3.js +54 -0
- package/dist/go-CEVmppuo.js +144 -0
- package/dist/graphql-BWwc-u8d.js +67 -0
- package/dist/groovy-BELuqtd6.js +127 -0
- package/dist/haskell-Cxh7aaFM.js +138 -0
- package/dist/highlight-CyebkDAD.js +114 -0
- package/dist/i18n-provider-BBhzYHef.js +150 -0
- package/dist/{i18n-provider-defaults-p0UGTA_k.js → i18n-provider-defaults-BUagKwGN.js} +32 -1
- package/dist/{i18n-provider-defaults-DQxuUMpU.d.ts → i18n-provider-defaults-CTDMMs-y.d.ts} +31 -0
- package/dist/i18n-provider-defaults.d.ts +1 -1
- package/dist/i18n-provider-defaults.js +1 -1
- package/dist/{index-D3nEDg8x.d.ts → index-CduxMW5L.d.ts} +1 -1
- package/dist/ini-DA-F0rRr.js +88 -0
- package/dist/java-Bujnoc_f.js +174 -0
- package/dist/javascript-BeEhpXRE.js +431 -0
- package/dist/json-CxvE7tEw.js +42 -0
- package/dist/kotlin-DOwDGI_m.js +206 -0
- package/dist/less-DWlR-e-o.js +196 -0
- package/dist/lua-BlZiakwh.js +46 -0
- package/dist/makefile-D3841Yg4.js +57 -0
- package/dist/{maplibre-Bywi9z2G.js → maplibre-g-8NG-3q.js} +1 -1
- package/dist/markdown-D1wNG79U.js +178 -0
- package/dist/objectivec-DxtRzTBy.js +117 -0
- package/dist/ownValue-D4uSXt0d.js +4 -0
- package/dist/{pdfWorker-CKgxOaCl.js → pdfWorker-D5NB2V5s.js} +12 -9
- package/dist/pdfWorkerConfig-BwllKt1K.js +8 -0
- package/dist/perl-BWRmkuyz.js +192 -0
- package/dist/php-CjwybYSP.js +300 -0
- package/dist/popover-CQztsDta.js +4486 -0
- package/dist/{posts-DGtDUrKT.js → posts-BHRBUAYJ.js} +2 -0
- package/dist/powershell-CgKcNA5Q.js +188 -0
- package/dist/properties-Bc45MTzW.js +38 -0
- package/dist/protobuf-Bv_xSUaI.js +61 -0
- package/dist/purify.es-ZpfdAuNV.js +545 -0
- package/dist/python-D8PdGjgy.js +238 -0
- package/dist/r-DA-9ZIdU.js +140 -0
- package/dist/{renderDocx-_UmnE-yc.js → renderDocx-BW-uDyaZ.js} +2 -0
- package/dist/ruby-Bqr16BpN.js +262 -0
- package/dist/rust-BCvJMwk8.js +182 -0
- package/dist/scala-Du8mOD2z.js +162 -0
- package/dist/scss-AMxHqh46.js +155 -0
- package/dist/skeleton-DqejhQgn.js +72 -0
- package/dist/sql-BbYSgcOA.js +118 -0
- package/dist/styles.css +1 -1
- package/dist/swift-DRKtalPn.js +575 -0
- package/dist/toolbarStyles-0IygMI4H.js +52 -0
- package/dist/{types-UMYBr8Mi.d.ts → types-DlwD3i9z.d.ts} +3 -95
- package/dist/typescript-Bv8uKU6V.js +516 -0
- package/dist/{useData-B7LYSzh0.js → useData-Dkq5W4r6.js} +4917 -4876
- package/dist/useFetchedText-BR3_KLXx.js +38 -0
- package/dist/useThumbnailText-DwXQvLIe.js +22 -0
- package/dist/xml-BVpP05uE.js +162 -0
- package/dist/yaml-BNe2WG-i.js +144 -0
- package/dist/zipTree-B2zUYl6b.js +247 -0
- package/package.json +2 -1
- package/dist/DocumentToolbar-CqbY6eID.js +0 -70
- package/dist/F0DocumentViewer-BN-2IVgz.js +0 -400
- package/dist/F0DocumentViewer-D1G3M2J_.js +0 -3
- package/dist/F0VideoPlayer-D4bZBBLK.js +0 -1
- package/dist/TextThumbnail-X04JgaNI.js +0 -26
- package/dist/dist-DvxtFKDL.js +0 -78
|
@@ -0,0 +1,182 @@
|
|
|
1
|
+
//#region ../../node_modules/.pnpm/highlight.js@11.12.0/node_modules/highlight.js/es/languages/rust.js
|
|
2
|
+
function e(e) {
|
|
3
|
+
let t = e.regex, n = /(r#)?/, r = t.concat(n, e.UNDERSCORE_IDENT_RE), i = t.concat(n, e.IDENT_RE), a = {
|
|
4
|
+
scope: "title.function.invoke",
|
|
5
|
+
relevance: 0,
|
|
6
|
+
begin: t.concat(/\b/, /(?!(?:let|for|while|if|else|match)\b)/, i, t.lookahead(/\s*\(/))
|
|
7
|
+
}, o = "([ui](8|16|32|64|128|size)|f(16|32|64|128))?", s = /* @__PURE__ */ "abstract.as.async.await.become.box.break.const.continue.crate.do.dyn.else.enum.extern.false.final.fn.for.if.impl.in.let.loop.macro.match.mod.move.mut.override.priv.pub.raw.ref.return.self.Self.static.struct.super.trait.true.try.type.typeof.union.unsafe.unsized.use.virtual.where.while.yield".split("."), c = [
|
|
8
|
+
"true",
|
|
9
|
+
"false",
|
|
10
|
+
"Some",
|
|
11
|
+
"None",
|
|
12
|
+
"Ok",
|
|
13
|
+
"Err"
|
|
14
|
+
], l = /* @__PURE__ */ "drop .Copy.Send.Sized.Sync.Drop.Fn.FnMut.FnOnce.ToOwned.Clone.Debug.PartialEq.PartialOrd.Eq.Ord.AsRef.AsMut.Into.From.Default.Iterator.Extend.IntoIterator.DoubleEndedIterator.ExactSizeIterator.SliceConcatExt.ToString.assert!.assert_eq!.bitflags!.bytes!.cfg!.col!.concat!.concat_idents!.debug_assert!.debug_assert_eq!.env!.eprintln!.panic!.file!.format!.format_args!.include_bytes!.include_str!.line!.local_data_key!.module_path!.option_env!.print!.println!.select!.stringify!.try!.unimplemented!.unreachable!.vec!.write!.writeln!.macro_rules!.assert_ne!.debug_assert_ne!".split("."), u = [
|
|
15
|
+
"i8",
|
|
16
|
+
"i16",
|
|
17
|
+
"i32",
|
|
18
|
+
"i64",
|
|
19
|
+
"i128",
|
|
20
|
+
"isize",
|
|
21
|
+
"u8",
|
|
22
|
+
"u16",
|
|
23
|
+
"u32",
|
|
24
|
+
"u64",
|
|
25
|
+
"u128",
|
|
26
|
+
"usize",
|
|
27
|
+
"f16",
|
|
28
|
+
"f32",
|
|
29
|
+
"f64",
|
|
30
|
+
"f128",
|
|
31
|
+
"str",
|
|
32
|
+
"char",
|
|
33
|
+
"bool",
|
|
34
|
+
"Box",
|
|
35
|
+
"Option",
|
|
36
|
+
"Result",
|
|
37
|
+
"String",
|
|
38
|
+
"Vec"
|
|
39
|
+
];
|
|
40
|
+
return {
|
|
41
|
+
name: "Rust",
|
|
42
|
+
aliases: ["rs"],
|
|
43
|
+
keywords: {
|
|
44
|
+
$pattern: e.IDENT_RE + "!?",
|
|
45
|
+
type: u,
|
|
46
|
+
keyword: s,
|
|
47
|
+
literal: c,
|
|
48
|
+
built_in: l
|
|
49
|
+
},
|
|
50
|
+
illegal: "</",
|
|
51
|
+
contains: [
|
|
52
|
+
e.C_LINE_COMMENT_MODE,
|
|
53
|
+
e.COMMENT("/\\*", "\\*/", { contains: ["self"] }),
|
|
54
|
+
e.inherit(e.QUOTE_STRING_MODE, {
|
|
55
|
+
begin: /b?"/,
|
|
56
|
+
illegal: null
|
|
57
|
+
}),
|
|
58
|
+
{
|
|
59
|
+
scope: "symbol",
|
|
60
|
+
begin: /'[a-zA-Z_][a-zA-Z0-9_]*(?!')/
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
scope: "string",
|
|
64
|
+
variants: [{ begin: /b?r(#*)"(.|\n)*?"\1(?!#)/ }, {
|
|
65
|
+
begin: /b?'/,
|
|
66
|
+
end: /'/,
|
|
67
|
+
contains: [{
|
|
68
|
+
scope: "char.escape",
|
|
69
|
+
match: /\\('|"|\\|\w|x\w{2}|u\w{4}|U\w{8})/
|
|
70
|
+
}]
|
|
71
|
+
}]
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
scope: "number",
|
|
75
|
+
variants: [
|
|
76
|
+
{ begin: "\\b0b([01_]+)" + o },
|
|
77
|
+
{ begin: "\\b0o([0-7_]+)" + o },
|
|
78
|
+
{ begin: "\\b0x([A-Fa-f0-9_]+)" + o },
|
|
79
|
+
{ begin: "\\b(\\d[\\d_]*(\\.[0-9_]+)?([eE][+-]?[0-9_]+)?)" + o }
|
|
80
|
+
],
|
|
81
|
+
relevance: 0
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
begin: [
|
|
85
|
+
/\bsafe/,
|
|
86
|
+
/\s+/,
|
|
87
|
+
/extern/
|
|
88
|
+
],
|
|
89
|
+
scope: {
|
|
90
|
+
1: "keyword",
|
|
91
|
+
3: "keyword"
|
|
92
|
+
}
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
begin: [
|
|
96
|
+
/fn/,
|
|
97
|
+
/\s+/,
|
|
98
|
+
r
|
|
99
|
+
],
|
|
100
|
+
scope: {
|
|
101
|
+
1: "keyword",
|
|
102
|
+
3: "title.function"
|
|
103
|
+
}
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
scope: "meta",
|
|
107
|
+
begin: "#!?\\[",
|
|
108
|
+
end: "\\]",
|
|
109
|
+
contains: [{
|
|
110
|
+
scope: "string",
|
|
111
|
+
begin: /"/,
|
|
112
|
+
end: /"/,
|
|
113
|
+
contains: [e.BACKSLASH_ESCAPE]
|
|
114
|
+
}]
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
begin: [
|
|
118
|
+
/let/,
|
|
119
|
+
/\s+/,
|
|
120
|
+
/(?:mut\s+)?/,
|
|
121
|
+
r
|
|
122
|
+
],
|
|
123
|
+
scope: {
|
|
124
|
+
1: "keyword",
|
|
125
|
+
3: "keyword",
|
|
126
|
+
4: "variable"
|
|
127
|
+
}
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
begin: [
|
|
131
|
+
/for/,
|
|
132
|
+
/\s+/,
|
|
133
|
+
r,
|
|
134
|
+
/\s+/,
|
|
135
|
+
/in/
|
|
136
|
+
],
|
|
137
|
+
scope: {
|
|
138
|
+
1: "keyword",
|
|
139
|
+
3: "variable",
|
|
140
|
+
5: "keyword"
|
|
141
|
+
}
|
|
142
|
+
},
|
|
143
|
+
{
|
|
144
|
+
begin: [
|
|
145
|
+
/type/,
|
|
146
|
+
/\s+/,
|
|
147
|
+
r
|
|
148
|
+
],
|
|
149
|
+
scope: {
|
|
150
|
+
1: "keyword",
|
|
151
|
+
3: "title.class"
|
|
152
|
+
}
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
begin: [
|
|
156
|
+
/(?:trait|enum|struct|union|impl|for)/,
|
|
157
|
+
/\s+/,
|
|
158
|
+
r
|
|
159
|
+
],
|
|
160
|
+
scope: {
|
|
161
|
+
1: "keyword",
|
|
162
|
+
3: "title.class"
|
|
163
|
+
}
|
|
164
|
+
},
|
|
165
|
+
{
|
|
166
|
+
begin: e.IDENT_RE + "::",
|
|
167
|
+
keywords: {
|
|
168
|
+
keyword: "Self",
|
|
169
|
+
built_in: l,
|
|
170
|
+
type: u
|
|
171
|
+
}
|
|
172
|
+
},
|
|
173
|
+
{
|
|
174
|
+
scope: "punctuation",
|
|
175
|
+
begin: "->"
|
|
176
|
+
},
|
|
177
|
+
a
|
|
178
|
+
]
|
|
179
|
+
};
|
|
180
|
+
}
|
|
181
|
+
//#endregion
|
|
182
|
+
export { e as default };
|
|
@@ -0,0 +1,162 @@
|
|
|
1
|
+
//#region ../../node_modules/.pnpm/highlight.js@11.12.0/node_modules/highlight.js/es/languages/scala.js
|
|
2
|
+
function e(e) {
|
|
3
|
+
let t = e.regex, n = {
|
|
4
|
+
className: "meta",
|
|
5
|
+
begin: "@[A-Za-z]+"
|
|
6
|
+
}, r = {
|
|
7
|
+
className: "subst",
|
|
8
|
+
variants: [{ begin: "\\$[A-Za-z0-9_]+" }, {
|
|
9
|
+
begin: /\$\{/,
|
|
10
|
+
end: /\}/
|
|
11
|
+
}]
|
|
12
|
+
}, i = {
|
|
13
|
+
className: "string",
|
|
14
|
+
variants: [
|
|
15
|
+
{
|
|
16
|
+
begin: "\"\"\"",
|
|
17
|
+
end: "\"\"\""
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
begin: "\"",
|
|
21
|
+
end: "\"",
|
|
22
|
+
illegal: "\\n",
|
|
23
|
+
contains: [e.BACKSLASH_ESCAPE]
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
begin: "[a-z]+\"",
|
|
27
|
+
end: "\"",
|
|
28
|
+
illegal: "\\n",
|
|
29
|
+
contains: [e.BACKSLASH_ESCAPE, r]
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
className: "string",
|
|
33
|
+
begin: "[a-z]+\"\"\"",
|
|
34
|
+
end: "\"\"\"",
|
|
35
|
+
contains: [r],
|
|
36
|
+
relevance: 10
|
|
37
|
+
}
|
|
38
|
+
]
|
|
39
|
+
}, a = {
|
|
40
|
+
className: "type",
|
|
41
|
+
begin: "\\b[A-Z][A-Za-z0-9_]*",
|
|
42
|
+
relevance: 0
|
|
43
|
+
}, o = {
|
|
44
|
+
className: "title",
|
|
45
|
+
begin: /[^0-9\n\t "'(),.`{}\[\]:;][^\n\t "'(),.`{}\[\]:;]+|[^0-9\n\t "'(),.`{}\[\]:;=]/,
|
|
46
|
+
relevance: 0
|
|
47
|
+
}, s = {
|
|
48
|
+
className: "class",
|
|
49
|
+
beginKeywords: "class object trait type",
|
|
50
|
+
end: /[:={\[\n;]/,
|
|
51
|
+
excludeEnd: !0,
|
|
52
|
+
contains: [
|
|
53
|
+
e.C_LINE_COMMENT_MODE,
|
|
54
|
+
e.C_BLOCK_COMMENT_MODE,
|
|
55
|
+
{
|
|
56
|
+
beginKeywords: "extends with",
|
|
57
|
+
relevance: 10
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
begin: /\[/,
|
|
61
|
+
end: /\]/,
|
|
62
|
+
excludeBegin: !0,
|
|
63
|
+
excludeEnd: !0,
|
|
64
|
+
relevance: 0,
|
|
65
|
+
contains: [
|
|
66
|
+
a,
|
|
67
|
+
e.C_LINE_COMMENT_MODE,
|
|
68
|
+
e.C_BLOCK_COMMENT_MODE
|
|
69
|
+
]
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
className: "params",
|
|
73
|
+
begin: /\(/,
|
|
74
|
+
end: /\)/,
|
|
75
|
+
excludeBegin: !0,
|
|
76
|
+
excludeEnd: !0,
|
|
77
|
+
relevance: 0,
|
|
78
|
+
contains: [
|
|
79
|
+
a,
|
|
80
|
+
e.C_LINE_COMMENT_MODE,
|
|
81
|
+
e.C_BLOCK_COMMENT_MODE
|
|
82
|
+
]
|
|
83
|
+
},
|
|
84
|
+
o
|
|
85
|
+
]
|
|
86
|
+
}, c = {
|
|
87
|
+
className: "function",
|
|
88
|
+
beginKeywords: "def",
|
|
89
|
+
end: t.lookahead(/[:={\[(\n;]/),
|
|
90
|
+
contains: [o]
|
|
91
|
+
}, l = {
|
|
92
|
+
begin: [
|
|
93
|
+
/^\s*/,
|
|
94
|
+
"extension",
|
|
95
|
+
/\s+(?=[[(])/
|
|
96
|
+
],
|
|
97
|
+
beginScope: { 2: "keyword" }
|
|
98
|
+
}, u = {
|
|
99
|
+
begin: [
|
|
100
|
+
/^\s*/,
|
|
101
|
+
/end/,
|
|
102
|
+
/\s+/,
|
|
103
|
+
/(extension\b)?/
|
|
104
|
+
],
|
|
105
|
+
beginScope: {
|
|
106
|
+
2: "keyword",
|
|
107
|
+
4: "keyword"
|
|
108
|
+
}
|
|
109
|
+
}, d = [{ match: /\.inline\b/ }, {
|
|
110
|
+
begin: /\binline(?=\s)/,
|
|
111
|
+
keywords: "inline"
|
|
112
|
+
}], f = {
|
|
113
|
+
begin: [
|
|
114
|
+
/\(\s*/,
|
|
115
|
+
/using/,
|
|
116
|
+
/\s+(?!\))/
|
|
117
|
+
],
|
|
118
|
+
beginScope: { 2: "keyword" }
|
|
119
|
+
};
|
|
120
|
+
return {
|
|
121
|
+
name: "Scala",
|
|
122
|
+
keywords: {
|
|
123
|
+
literal: "true false null",
|
|
124
|
+
keyword: "type yield lazy override def with val var sealed abstract private trait object if then forSome for while do throw finally protected extends import final return else break new catch super class case package default try this match continue throws implicit export enum given transparent"
|
|
125
|
+
},
|
|
126
|
+
contains: [
|
|
127
|
+
{
|
|
128
|
+
begin: [
|
|
129
|
+
"//>",
|
|
130
|
+
/\s+/,
|
|
131
|
+
/using/,
|
|
132
|
+
/\s+/,
|
|
133
|
+
/\S+/
|
|
134
|
+
],
|
|
135
|
+
beginScope: {
|
|
136
|
+
1: "comment",
|
|
137
|
+
3: "keyword",
|
|
138
|
+
5: "type"
|
|
139
|
+
},
|
|
140
|
+
end: /$/,
|
|
141
|
+
contains: [{
|
|
142
|
+
className: "string",
|
|
143
|
+
begin: /\S+/
|
|
144
|
+
}]
|
|
145
|
+
},
|
|
146
|
+
e.C_LINE_COMMENT_MODE,
|
|
147
|
+
e.C_BLOCK_COMMENT_MODE,
|
|
148
|
+
i,
|
|
149
|
+
a,
|
|
150
|
+
c,
|
|
151
|
+
s,
|
|
152
|
+
e.C_NUMBER_MODE,
|
|
153
|
+
l,
|
|
154
|
+
u,
|
|
155
|
+
...d,
|
|
156
|
+
f,
|
|
157
|
+
n
|
|
158
|
+
]
|
|
159
|
+
};
|
|
160
|
+
}
|
|
161
|
+
//#endregion
|
|
162
|
+
export { e as default };
|
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
//#region ../../node_modules/.pnpm/highlight.js@11.12.0/node_modules/highlight.js/es/languages/scss.js
|
|
2
|
+
var e = (e) => ({
|
|
3
|
+
IMPORTANT: {
|
|
4
|
+
scope: "meta",
|
|
5
|
+
begin: "!important"
|
|
6
|
+
},
|
|
7
|
+
BLOCK_COMMENT: e.C_BLOCK_COMMENT_MODE,
|
|
8
|
+
HEXCOLOR: {
|
|
9
|
+
scope: "number",
|
|
10
|
+
begin: /#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/
|
|
11
|
+
},
|
|
12
|
+
UNICODE_RANGE: {
|
|
13
|
+
scope: "number",
|
|
14
|
+
begin: /\b[Uu]\+[0-9A-Fa-f][0-9A-Fa-f?]{0,5}(-[0-9A-Fa-f][0-9A-Fa-f]{0,5})?/
|
|
15
|
+
},
|
|
16
|
+
FUNCTION_DISPATCH: {
|
|
17
|
+
className: "built_in",
|
|
18
|
+
begin: /[\w-]+(?=\()/
|
|
19
|
+
},
|
|
20
|
+
ATTRIBUTE_SELECTOR_MODE: {
|
|
21
|
+
scope: "selector-attr",
|
|
22
|
+
begin: /\[/,
|
|
23
|
+
end: /\]/,
|
|
24
|
+
illegal: "$",
|
|
25
|
+
contains: [e.APOS_STRING_MODE, e.QUOTE_STRING_MODE]
|
|
26
|
+
},
|
|
27
|
+
CSS_NUMBER_MODE: {
|
|
28
|
+
scope: "number",
|
|
29
|
+
begin: e.NUMBER_RE + "(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",
|
|
30
|
+
relevance: 0
|
|
31
|
+
},
|
|
32
|
+
CSS_VARIABLE: {
|
|
33
|
+
className: "attr",
|
|
34
|
+
begin: /--[A-Za-z_][A-Za-z0-9_-]*/
|
|
35
|
+
}
|
|
36
|
+
}), t = /* @__PURE__ */ "a.abbr.address.article.aside.audio.b.blockquote.body.button.canvas.caption.cite.code.dd.del.details.dfn.div.dl.dt.em.fieldset.figcaption.figure.footer.form.h1.h2.h3.h4.h5.h6.header.hgroup.html.i.iframe.img.input.ins.kbd.label.legend.li.main.mark.menu.nav.object.ol.optgroup.option.p.picture.q.quote.samp.section.select.source.span.strong.summary.sup.table.tbody.td.textarea.tfoot.th.thead.time.tr.ul.var.video".split("."), n = /* @__PURE__ */ "defs.g.marker.mask.pattern.svg.switch.symbol.feBlend.feColorMatrix.feComponentTransfer.feComposite.feConvolveMatrix.feDiffuseLighting.feDisplacementMap.feFlood.feGaussianBlur.feImage.feMerge.feMorphology.feOffset.feSpecularLighting.feTile.feTurbulence.linearGradient.radialGradient.stop.circle.ellipse.image.line.path.polygon.polyline.rect.text.use.textPath.tspan.foreignObject.clipPath".split("."), r = [...t, ...n], i = (/* @__PURE__ */ "any-hover.any-pointer.aspect-ratio.color.color-gamut.color-index.device-aspect-ratio.device-height.device-width.display-mode.forced-colors.grid.height.hover.inverted-colors.monochrome.orientation.overflow-block.overflow-inline.pointer.prefers-color-scheme.prefers-contrast.prefers-reduced-motion.prefers-reduced-transparency.resolution.scan.scripting.update.width.min-width.max-width.min-height.max-height".split(".")).sort().reverse(), a = (/* @__PURE__ */ "active.any-link.blank.checked.current.default.defined.dir.disabled.drop.empty.enabled.first.first-child.first-of-type.fullscreen.future.focus.focus-visible.focus-within.has.host.host-context.hover.indeterminate.in-range.invalid.is.lang.last-child.last-of-type.left.link.local-link.not.nth-child.nth-col.nth-last-child.nth-last-col.nth-last-of-type.nth-of-type.only-child.only-of-type.optional.out-of-range.past.placeholder-shown.read-only.read-write.required.right.root.scope.target.target-within.user-invalid.valid.visited.where".split(".")).sort().reverse(), o = [
|
|
37
|
+
"after",
|
|
38
|
+
"backdrop",
|
|
39
|
+
"before",
|
|
40
|
+
"cue",
|
|
41
|
+
"cue-region",
|
|
42
|
+
"first-letter",
|
|
43
|
+
"first-line",
|
|
44
|
+
"grammar-error",
|
|
45
|
+
"marker",
|
|
46
|
+
"part",
|
|
47
|
+
"placeholder",
|
|
48
|
+
"selection",
|
|
49
|
+
"slotted",
|
|
50
|
+
"spelling-error"
|
|
51
|
+
].sort().reverse(), s = (/* @__PURE__ */ "accent-color.align-content.align-items.align-self.alignment-baseline.all.anchor-name.animation.animation-composition.animation-delay.animation-direction.animation-duration.animation-fill-mode.animation-iteration-count.animation-name.animation-play-state.animation-range.animation-range-end.animation-range-start.animation-timeline.animation-timing-function.appearance.aspect-ratio.backdrop-filter.backface-visibility.background.background-attachment.background-blend-mode.background-clip.background-color.background-image.background-origin.background-position.background-position-x.background-position-y.background-repeat.background-size.baseline-shift.block-size.border.border-block.border-block-color.border-block-end.border-block-end-color.border-block-end-style.border-block-end-width.border-block-start.border-block-start-color.border-block-start-style.border-block-start-width.border-block-style.border-block-width.border-bottom.border-bottom-color.border-bottom-left-radius.border-bottom-right-radius.border-bottom-style.border-bottom-width.border-collapse.border-color.border-end-end-radius.border-end-start-radius.border-image.border-image-outset.border-image-repeat.border-image-slice.border-image-source.border-image-width.border-inline.border-inline-color.border-inline-end.border-inline-end-color.border-inline-end-style.border-inline-end-width.border-inline-start.border-inline-start-color.border-inline-start-style.border-inline-start-width.border-inline-style.border-inline-width.border-left.border-left-color.border-left-style.border-left-width.border-radius.border-right.border-right-color.border-right-style.border-right-width.border-spacing.border-start-end-radius.border-start-start-radius.border-style.border-top.border-top-color.border-top-left-radius.border-top-right-radius.border-top-style.border-top-width.border-width.bottom.box-align.box-decoration-break.box-direction.box-flex.box-flex-group.box-lines.box-ordinal-group.box-orient.box-pack.box-shadow.box-sizing.break-after.break-before.break-inside.caption-side.caret-color.clear.clip.clip-path.clip-rule.color.color-interpolation.color-interpolation-filters.color-profile.color-rendering.color-scheme.column-count.column-fill.column-gap.column-rule.column-rule-color.column-rule-style.column-rule-width.column-span.column-width.columns.contain.contain-intrinsic-block-size.contain-intrinsic-height.contain-intrinsic-inline-size.contain-intrinsic-size.contain-intrinsic-width.container.container-name.container-type.content.content-visibility.corner-bottom-left-shape.corner-bottom-right-shape.corner-shape.corner-top-left-shape.corner-top-right-shape.counter-increment.counter-reset.counter-set.cue.cue-after.cue-before.cursor.cx.cy.direction.display.dominant-baseline.empty-cells.enable-background.field-sizing.fill.fill-opacity.fill-rule.filter.flex.flex-basis.flex-direction.flex-flow.flex-grow.flex-shrink.flex-wrap.float.flood-color.flood-opacity.flow.font.font-display.font-family.font-feature-settings.font-kerning.font-language-override.font-optical-sizing.font-palette.font-size.font-size-adjust.font-smooth.font-smoothing.font-stretch.font-style.font-synthesis.font-synthesis-position.font-synthesis-small-caps.font-synthesis-style.font-synthesis-weight.font-variant.font-variant-alternates.font-variant-caps.font-variant-east-asian.font-variant-emoji.font-variant-ligatures.font-variant-numeric.font-variant-position.font-variation-settings.font-weight.forced-color-adjust.gap.glyph-orientation-horizontal.glyph-orientation-vertical.grid.grid-area.grid-auto-columns.grid-auto-flow.grid-auto-rows.grid-column.grid-column-end.grid-column-start.grid-gap.grid-row.grid-row-end.grid-row-start.grid-template.grid-template-areas.grid-template-columns.grid-template-rows.hanging-punctuation.height.hyphenate-character.hyphenate-limit-chars.hyphens.icon.image-orientation.image-rendering.image-resolution.ime-mode.initial-letter.initial-letter-align.inline-size.inset.inset-area.inset-block.inset-block-end.inset-block-start.inset-inline.inset-inline-end.inset-inline-start.isolation.justify-content.justify-items.justify-self.kerning.left.letter-spacing.lighting-color.line-break.line-height.line-height-step.list-style.list-style-image.list-style-position.list-style-type.margin.margin-block.margin-block-end.margin-block-start.margin-bottom.margin-inline.margin-inline-end.margin-inline-start.margin-left.margin-right.margin-top.margin-trim.marker.marker-end.marker-mid.marker-start.marks.mask.mask-border.mask-border-mode.mask-border-outset.mask-border-repeat.mask-border-slice.mask-border-source.mask-border-width.mask-clip.mask-composite.mask-image.mask-mode.mask-origin.mask-position.mask-repeat.mask-size.mask-type.masonry-auto-flow.math-depth.math-shift.math-style.max-block-size.max-height.max-inline-size.max-width.min-block-size.min-height.min-inline-size.min-width.mix-blend-mode.nav-down.nav-index.nav-left.nav-right.nav-up.none.normal.object-fit.object-position.offset.offset-anchor.offset-distance.offset-path.offset-position.offset-rotate.opacity.order.orphans.outline.outline-color.outline-offset.outline-style.outline-width.overflow.overflow-anchor.overflow-block.overflow-clip-margin.overflow-inline.overflow-wrap.overflow-x.overflow-y.overlay.overscroll-behavior.overscroll-behavior-block.overscroll-behavior-inline.overscroll-behavior-x.overscroll-behavior-y.padding.padding-block.padding-block-end.padding-block-start.padding-bottom.padding-inline.padding-inline-end.padding-inline-start.padding-left.padding-right.padding-top.page.page-break-after.page-break-before.page-break-inside.paint-order.pause.pause-after.pause-before.perspective.perspective-origin.place-content.place-items.place-self.pointer-events.position.position-anchor.position-visibility.print-color-adjust.quotes.r.resize.rest.rest-after.rest-before.right.rotate.row-gap.ruby-align.ruby-position.scale.scroll-behavior.scroll-margin.scroll-margin-block.scroll-margin-block-end.scroll-margin-block-start.scroll-margin-bottom.scroll-margin-inline.scroll-margin-inline-end.scroll-margin-inline-start.scroll-margin-left.scroll-margin-right.scroll-margin-top.scroll-padding.scroll-padding-block.scroll-padding-block-end.scroll-padding-block-start.scroll-padding-bottom.scroll-padding-inline.scroll-padding-inline-end.scroll-padding-inline-start.scroll-padding-left.scroll-padding-right.scroll-padding-top.scroll-snap-align.scroll-snap-stop.scroll-snap-type.scroll-timeline.scroll-timeline-axis.scroll-timeline-name.scrollbar-color.scrollbar-gutter.scrollbar-width.shape-image-threshold.shape-margin.shape-outside.shape-rendering.speak.speak-as.src.stop-color.stop-opacity.stroke.stroke-dasharray.stroke-dashoffset.stroke-linecap.stroke-linejoin.stroke-miterlimit.stroke-opacity.stroke-width.tab-size.table-layout.text-align.text-align-all.text-align-last.text-anchor.text-combine-upright.text-decoration.text-decoration-color.text-decoration-line.text-decoration-skip.text-decoration-skip-ink.text-decoration-style.text-decoration-thickness.text-emphasis.text-emphasis-color.text-emphasis-position.text-emphasis-style.text-indent.text-justify.text-orientation.text-overflow.text-rendering.text-shadow.text-size-adjust.text-transform.text-underline-offset.text-underline-position.text-wrap.text-wrap-mode.text-wrap-style.timeline-scope.top.touch-action.transform.transform-box.transform-origin.transform-style.transition.transition-behavior.transition-delay.transition-duration.transition-property.transition-timing-function.translate.unicode-bidi.unicode-range.user-modify.user-select.vector-effect.vertical-align.view-timeline.view-timeline-axis.view-timeline-inset.view-timeline-name.view-transition-name.visibility.voice-balance.voice-duration.voice-family.voice-pitch.voice-range.voice-rate.voice-stress.voice-volume.white-space.white-space-collapse.widows.width.will-change.word-break.word-spacing.word-wrap.writing-mode.x.y.z-index.zoom".split(".")).sort().reverse();
|
|
52
|
+
function c(t) {
|
|
53
|
+
let n = e(t), c = o, l = a, u = "@[a-z-]+", d = {
|
|
54
|
+
className: "variable",
|
|
55
|
+
begin: "(\\$[a-zA-Z-][a-zA-Z0-9_-]*)\\b",
|
|
56
|
+
relevance: 0
|
|
57
|
+
};
|
|
58
|
+
return {
|
|
59
|
+
name: "SCSS",
|
|
60
|
+
case_insensitive: !0,
|
|
61
|
+
illegal: "[=/|']",
|
|
62
|
+
contains: [
|
|
63
|
+
t.C_LINE_COMMENT_MODE,
|
|
64
|
+
t.C_BLOCK_COMMENT_MODE,
|
|
65
|
+
n.CSS_NUMBER_MODE,
|
|
66
|
+
{
|
|
67
|
+
className: "selector-id",
|
|
68
|
+
begin: "#[A-Za-z0-9_-]+",
|
|
69
|
+
relevance: 0
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
className: "selector-class",
|
|
73
|
+
begin: "\\.[A-Za-z0-9_-]+",
|
|
74
|
+
relevance: 0
|
|
75
|
+
},
|
|
76
|
+
n.ATTRIBUTE_SELECTOR_MODE,
|
|
77
|
+
{
|
|
78
|
+
className: "selector-tag",
|
|
79
|
+
begin: "\\b(" + r.join("|") + ")\\b",
|
|
80
|
+
relevance: 0
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
className: "selector-pseudo",
|
|
84
|
+
begin: ":(" + l.join("|") + ")"
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
className: "selector-pseudo",
|
|
88
|
+
begin: ":(:)?(" + c.join("|") + ")"
|
|
89
|
+
},
|
|
90
|
+
d,
|
|
91
|
+
{
|
|
92
|
+
begin: /\(/,
|
|
93
|
+
end: /\)/,
|
|
94
|
+
contains: [n.CSS_NUMBER_MODE]
|
|
95
|
+
},
|
|
96
|
+
n.CSS_VARIABLE,
|
|
97
|
+
{
|
|
98
|
+
className: "attribute",
|
|
99
|
+
begin: "\\b(" + s.join("|") + ")\\b"
|
|
100
|
+
},
|
|
101
|
+
{ begin: "\\b(whitespace|wait|w-resize|visible|vertical-text|vertical-ideographic|uppercase|upper-roman|upper-alpha|underline|transparent|top|thin|thick|text|text-top|text-bottom|tb-rl|table-header-group|table-footer-group|sw-resize|super|strict|static|square|solid|small-caps|separate|se-resize|scroll|s-resize|rtl|row-resize|ridge|right|repeat|repeat-y|repeat-x|relative|progress|pointer|overline|outside|outset|oblique|nowrap|not-allowed|normal|none|nw-resize|no-repeat|no-drop|newspaper|ne-resize|n-resize|move|middle|medium|ltr|lr-tb|lowercase|lower-roman|lower-alpha|loose|list-item|line|line-through|line-edge|lighter|left|keep-all|justify|italic|inter-word|inter-ideograph|inside|inset|inline|inline-block|inherit|inactive|ideograph-space|ideograph-parenthesis|ideograph-numeric|ideograph-alpha|horizontal|hidden|help|hand|groove|fixed|ellipsis|e-resize|double|dotted|distribute|distribute-space|distribute-letter|distribute-all-lines|disc|disabled|default|decimal|dashed|crosshair|collapse|col-resize|circle|char|center|capitalize|break-word|break-all|bottom|both|bolder|bold|block|bidi-override|below|baseline|auto|always|all-scroll|absolute|table|table-cell)\\b" },
|
|
102
|
+
{
|
|
103
|
+
begin: /:/,
|
|
104
|
+
end: /[;}{]/,
|
|
105
|
+
relevance: 0,
|
|
106
|
+
contains: [
|
|
107
|
+
n.BLOCK_COMMENT,
|
|
108
|
+
d,
|
|
109
|
+
n.HEXCOLOR,
|
|
110
|
+
n.CSS_NUMBER_MODE,
|
|
111
|
+
n.UNICODE_RANGE,
|
|
112
|
+
t.QUOTE_STRING_MODE,
|
|
113
|
+
t.APOS_STRING_MODE,
|
|
114
|
+
n.IMPORTANT,
|
|
115
|
+
n.FUNCTION_DISPATCH
|
|
116
|
+
]
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
begin: "@(page|font-face)",
|
|
120
|
+
keywords: {
|
|
121
|
+
$pattern: u,
|
|
122
|
+
keyword: "@page @font-face"
|
|
123
|
+
}
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
begin: "@",
|
|
127
|
+
end: "[{;]",
|
|
128
|
+
returnBegin: !0,
|
|
129
|
+
keywords: {
|
|
130
|
+
$pattern: /[a-z-]+/,
|
|
131
|
+
keyword: "and or not only",
|
|
132
|
+
attribute: i.join(" ")
|
|
133
|
+
},
|
|
134
|
+
contains: [
|
|
135
|
+
{
|
|
136
|
+
begin: u,
|
|
137
|
+
className: "keyword"
|
|
138
|
+
},
|
|
139
|
+
{
|
|
140
|
+
begin: /[a-z-]+(?=:)/,
|
|
141
|
+
className: "attribute"
|
|
142
|
+
},
|
|
143
|
+
d,
|
|
144
|
+
t.QUOTE_STRING_MODE,
|
|
145
|
+
t.APOS_STRING_MODE,
|
|
146
|
+
n.HEXCOLOR,
|
|
147
|
+
n.CSS_NUMBER_MODE
|
|
148
|
+
]
|
|
149
|
+
},
|
|
150
|
+
n.FUNCTION_DISPATCH
|
|
151
|
+
]
|
|
152
|
+
};
|
|
153
|
+
}
|
|
154
|
+
//#endregion
|
|
155
|
+
export { c as default };
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { l as e } from "./i18n-provider-BBhzYHef.js";
|
|
2
|
+
import { L as t } from "./tooltip-BX4dSfeL.js";
|
|
3
|
+
import { forwardRef as n, memo as r } from "react";
|
|
4
|
+
import { jsx as i } from "react/jsx-runtime";
|
|
5
|
+
//#region src/elements/lib/experimental.ts
|
|
6
|
+
var a = {}, o = (e, t) => {
|
|
7
|
+
let n = [...Object.getOwnPropertyNames(e), ...Object.getOwnPropertySymbols(e)];
|
|
8
|
+
for (let r of n) if (r !== "prototype" && r !== "length" && r !== "name" && r !== "$$typeof" && r !== "render") try {
|
|
9
|
+
let n = Object.getOwnPropertyDescriptor(e, r);
|
|
10
|
+
n && Object.defineProperty(t, r, n);
|
|
11
|
+
} catch {}
|
|
12
|
+
}, s = (t, i) => {
|
|
13
|
+
let s = () => {
|
|
14
|
+
Object.entries(a).forEach(([e, t]) => {
|
|
15
|
+
let n = t.uses - t.usesReported;
|
|
16
|
+
if (n > 0) {
|
|
17
|
+
let r = t.usesReported === -1 ? "" : `New uses found since last report: ${n}`;
|
|
18
|
+
console.warn(`🚧 The \x1b[1m${e}\x1b[0m component is experimental. Use it at your own risk.`, `Found ${t.uses} uses. ${r}`), a[e] = {
|
|
19
|
+
...t,
|
|
20
|
+
usesReported: t.uses
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
}, c = null, l = () => {
|
|
25
|
+
if (!c) return c = setTimeout(() => {
|
|
26
|
+
s();
|
|
27
|
+
}, 5e3), () => {
|
|
28
|
+
c && clearTimeout(c);
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
if (i.$$typeof === Symbol.for("react.forward_ref")) {
|
|
32
|
+
let r = i.render, s = n((n, i) => (e() && (l(), a[t] || (a[t] = {
|
|
33
|
+
uses: 0,
|
|
34
|
+
usesReported: -1
|
|
35
|
+
}), a[t] = {
|
|
36
|
+
...a[t],
|
|
37
|
+
uses: (a[t]?.uses ?? 0) + 1
|
|
38
|
+
}), r(n, i)));
|
|
39
|
+
return o(i, s), s.displayName ||= `Experimental(${t})`, s;
|
|
40
|
+
}
|
|
41
|
+
if (i.$$typeof === Symbol.for("react.memo")) {
|
|
42
|
+
let n = i.type, s = i.compare, c = (r) => (e() && (l(), a[t] || (a[t] = {
|
|
43
|
+
uses: 0,
|
|
44
|
+
usesReported: -1
|
|
45
|
+
}), a[t] = {
|
|
46
|
+
...a[t],
|
|
47
|
+
uses: (a[t]?.uses ?? 0) + 1
|
|
48
|
+
}), n(r));
|
|
49
|
+
c.displayName = `Experimental(${t})`, o(i, c);
|
|
50
|
+
let u = r(c, s);
|
|
51
|
+
return o(i, u), u;
|
|
52
|
+
}
|
|
53
|
+
let u = ((...n) => (e() && (l(), a[t] || (a[t] = {
|
|
54
|
+
uses: 0,
|
|
55
|
+
usesReported: -1
|
|
56
|
+
}), a[t] = {
|
|
57
|
+
...a[t],
|
|
58
|
+
uses: (a[t]?.uses ?? 0) + 1
|
|
59
|
+
}), i(...n)));
|
|
60
|
+
return o(i, u), u;
|
|
61
|
+
};
|
|
62
|
+
//#endregion
|
|
63
|
+
//#region src/elements/primitives/skeleton.tsx
|
|
64
|
+
function c({ className: e, ...n }) {
|
|
65
|
+
return /* @__PURE__ */ i("div", {
|
|
66
|
+
"data-testid": "skeleton",
|
|
67
|
+
className: t("animate-pulse rounded-xs bg-f1-background-secondary", e),
|
|
68
|
+
...n
|
|
69
|
+
});
|
|
70
|
+
}
|
|
71
|
+
//#endregion
|
|
72
|
+
export { s as n, c as t };
|