@factorialco/f0-react 12.10.0 → 12.12.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-b34U-zTc.js +70 -0
- package/dist/ArchiveViewer-BpmryW7A.js +172 -0
- package/dist/{ChatPostComposerDialog-DcmLrQk6.js → ChatPostComposerDialog-Cr207fXs.js} +4 -4
- package/dist/{CoachmarkProvider-XfLjB3dH.js → CoachmarkProvider-CsytVD-X.js} +29764 -29935
- package/dist/CodeThumbnail-8NiQ3uzU.js +31 -0
- package/dist/CodeViewer-BNZqt-5s.js +98 -0
- package/dist/DocumentToolbar-DUe9R1rU.js +74 -0
- package/dist/{DocxThumbnail-kHTNnwW0.js → DocxThumbnail-CK9vFoTB.js} +2 -2
- package/dist/{DocxViewer-CqHgSExq.js → DocxViewer-BUMy2iL7.js} +25 -23
- package/dist/ExternalLink-RdKU698E.js +22 -0
- package/dist/{F0AiProcessingOverlay-H23WHd7F.js → F0AiProcessingOverlay-CiUTeBwG.js} +1388 -1384
- package/dist/F0Alert-Ca8sBfXN.js +102 -0
- package/dist/F0AudioPlayer-BefDLQA2.js +1083 -0
- package/dist/F0AudioPlayer-CNb4kXOk.js +3 -0
- package/dist/{popover-BjrPOMeQ.js → F0Button-d91IgOnc.js} +3164 -8587
- package/dist/{F0CanvasPanel--hLKeQvg.js → F0CanvasPanel-BOo_mxBl.js} +10286 -9593
- package/dist/F0DocumentViewer-CaYAO9ok.js +3 -0
- package/dist/F0DocumentViewer-h0XY5tgT.js +90 -0
- package/dist/F0Icon-DmCBV0gK.js +202 -0
- package/dist/{F0Map-hvgCUGk8.js → F0Map-b1uYlF_H.js} +614 -613
- package/dist/F0SegmentedControl-DXoAzTmH.js +103 -0
- package/dist/{F0Select-B-ZxVjXG.js → F0Select-BZ20yXKy.js} +9172 -9251
- package/dist/{F0VideoPlayer-CNp5hXgp.js → F0VideoPlayer-D85XCpqh.js} +390 -430
- package/dist/F0VideoPlayer-_zLFiEIp.js +1 -0
- package/dist/HtmlThumbnail-BJuJkuvu.js +60 -0
- package/dist/HtmlViewer-DxOnMV30.js +208 -0
- package/dist/LayoutGroup-BGb5jMxE.js +57 -0
- package/dist/LockLocked-gdodYvT_.js +41 -0
- package/dist/{Map-eIXVKc1x.js → Map-BOMgctnS.js} +55 -52
- package/dist/{PdfThumbnail-CCSmwxQU.js → PdfThumbnail-98PDy4ud.js} +5 -5
- package/dist/PdfViewer-nBnKrTYD.js +296 -0
- package/dist/SandboxedHtmlFrame-B95lWsIP.js +309 -0
- package/dist/{SheetViewer-BN5UYkEZ.js → SheetViewer-CD9SHbXJ.js} +36 -26
- package/dist/TextThumbnail-DKNxh344.js +15 -0
- package/dist/{TextViewer-Bt0_dYB-.js → TextViewer-DxRBCXzV.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-CFY0KELA.js +55 -0
- package/dist/dist-DtILhk4w.js +253 -0
- package/dist/dist-zvwuNflP.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 +5957 -5752
- package/dist/{exports-BByQBwpi.d.ts → exports-cxvNeHfV.d.ts} +1 -1
- package/dist/f0.d.ts +130 -8
- package/dist/f0.js +1969 -3034
- 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-CqFL-_MG.js +114 -0
- package/dist/i18n-provider-Bdgo-LeP.js +150 -0
- package/dist/{i18n-provider-defaults-p0UGTA_k.js → i18n-provider-defaults-B9vdZZeS.js} +35 -1
- package/dist/{i18n-provider-defaults-DQxuUMpU.d.ts → i18n-provider-defaults-DyPn8R7T.d.ts} +34 -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-DF8ubeg6.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/localized-BrUgGMzm.js +46 -0
- package/dist/lua-BlZiakwh.js +46 -0
- package/dist/makefile-D3841Yg4.js +57 -0
- package/dist/{maplibre-Bywi9z2G.js → maplibre-Ip4Qe9dM.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-DMjHHAyP.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-ics24JxK.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/scrollarea-cxaFAWG5.js +691 -0
- package/dist/scss-AMxHqh46.js +155 -0
- package/dist/skeleton-AC0Fb8zj.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-lTj_42zD.js +52 -0
- package/dist/{types-UMYBr8Mi.d.ts → types-geibVrTM.d.ts} +3 -95
- package/dist/typescript-Bv8uKU6V.js +516 -0
- package/dist/{useData-B7LYSzh0.js → useData-BYkiGUHX.js} +4734 -5375
- 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/F0Text-D92NWQRd.js +0 -81
- package/dist/F0VideoPlayer-D4bZBBLK.js +0 -1
- package/dist/TextThumbnail-X04JgaNI.js +0 -26
- package/dist/dist-DvxtFKDL.js +0 -78
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
//#region ../../node_modules/.pnpm/highlight.js@11.12.0/node_modules/highlight.js/es/languages/dart.js
|
|
2
|
+
function e(e) {
|
|
3
|
+
let t = e.regex, n = {
|
|
4
|
+
className: "subst",
|
|
5
|
+
variants: [{ begin: "\\$[A-Za-z0-9_]+" }]
|
|
6
|
+
}, r = {
|
|
7
|
+
className: "subst",
|
|
8
|
+
variants: [{
|
|
9
|
+
begin: /\$\{/,
|
|
10
|
+
end: /\}/
|
|
11
|
+
}],
|
|
12
|
+
keywords: "true false null this is new super"
|
|
13
|
+
}, i = {
|
|
14
|
+
className: "number",
|
|
15
|
+
relevance: 0,
|
|
16
|
+
variants: [{ match: /\b[0-9][0-9_]*(\.[0-9][0-9_]*)?([eE][+-]?[0-9][0-9_]*)?\b/ }, { match: /\b0[xX][0-9A-Fa-f][0-9A-Fa-f_]*\b/ }]
|
|
17
|
+
}, a = {
|
|
18
|
+
className: "string",
|
|
19
|
+
variants: [
|
|
20
|
+
{
|
|
21
|
+
begin: "r'''",
|
|
22
|
+
end: "'''"
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
begin: "r\"\"\"",
|
|
26
|
+
end: "\"\"\""
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
begin: "r'",
|
|
30
|
+
end: "'",
|
|
31
|
+
illegal: "\\n"
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
begin: "r\"",
|
|
35
|
+
end: "\"",
|
|
36
|
+
illegal: "\\n"
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
begin: "'''",
|
|
40
|
+
end: "'''",
|
|
41
|
+
contains: [
|
|
42
|
+
e.BACKSLASH_ESCAPE,
|
|
43
|
+
n,
|
|
44
|
+
r
|
|
45
|
+
]
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
begin: "\"\"\"",
|
|
49
|
+
end: "\"\"\"",
|
|
50
|
+
contains: [
|
|
51
|
+
e.BACKSLASH_ESCAPE,
|
|
52
|
+
n,
|
|
53
|
+
r
|
|
54
|
+
]
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
begin: "'",
|
|
58
|
+
end: "'",
|
|
59
|
+
illegal: "\\n",
|
|
60
|
+
contains: [
|
|
61
|
+
e.BACKSLASH_ESCAPE,
|
|
62
|
+
n,
|
|
63
|
+
r
|
|
64
|
+
]
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
begin: "\"",
|
|
68
|
+
end: "\"",
|
|
69
|
+
illegal: "\\n",
|
|
70
|
+
contains: [
|
|
71
|
+
e.BACKSLASH_ESCAPE,
|
|
72
|
+
n,
|
|
73
|
+
r
|
|
74
|
+
]
|
|
75
|
+
}
|
|
76
|
+
]
|
|
77
|
+
};
|
|
78
|
+
r.contains = [i, a];
|
|
79
|
+
let o = /* @__PURE__ */ "Comparable.DateTime.Duration.Function.Iterable.Iterator.List.Map.Match.Object.Pattern.RegExp.Set.Stopwatch.String.StringBuffer.StringSink.Symbol.Type.Uri.bool.double.int.num.Element.ElementList".split("."), s = o.map((e) => `${e}?`), c = {
|
|
80
|
+
keyword: /* @__PURE__ */ "abstract.as.assert.async.await.base.break.case.catch.class.const.continue.covariant.default.deferred.do.dynamic.else.enum.export.extends.extension.external.factory.false.final.finally.for.Function.get.hide.if.implements.import.in.interface.is.late.library.mixin.new.null.on.operator.part.required.rethrow.return.sealed.set.show.static.super.switch.sync.this.throw.true.try.typedef.var.void.when.while.with.yield".split("."),
|
|
81
|
+
built_in: o.concat(s).concat([
|
|
82
|
+
"Never",
|
|
83
|
+
"Null",
|
|
84
|
+
"dynamic",
|
|
85
|
+
"print",
|
|
86
|
+
"document",
|
|
87
|
+
"querySelector",
|
|
88
|
+
"querySelectorAll",
|
|
89
|
+
"window"
|
|
90
|
+
]),
|
|
91
|
+
$pattern: /[A-Za-z][A-Za-z0-9_]*\??/
|
|
92
|
+
}, l = {
|
|
93
|
+
match: t.concat(/\b_?/, t.either(/(?:[A-Z]+[a-z0-9]+)+/, /(?:[A-Z]+[a-z0-9]+)+[A-Z]+/), /(?![A-Za-z0-9_])/),
|
|
94
|
+
scope: "title.class"
|
|
95
|
+
};
|
|
96
|
+
return {
|
|
97
|
+
name: "Dart",
|
|
98
|
+
keywords: c,
|
|
99
|
+
contains: [
|
|
100
|
+
a,
|
|
101
|
+
e.COMMENT(/\/\*\*(?!\/)/, /\*\//, {
|
|
102
|
+
subLanguage: "markdown",
|
|
103
|
+
relevance: 0
|
|
104
|
+
}),
|
|
105
|
+
e.COMMENT(/\/{3,} ?/, /$/, { contains: [{
|
|
106
|
+
subLanguage: "markdown",
|
|
107
|
+
begin: ".",
|
|
108
|
+
end: "$",
|
|
109
|
+
relevance: 0
|
|
110
|
+
}] }),
|
|
111
|
+
e.C_LINE_COMMENT_MODE,
|
|
112
|
+
e.C_BLOCK_COMMENT_MODE,
|
|
113
|
+
{
|
|
114
|
+
className: "class",
|
|
115
|
+
beginKeywords: "class interface",
|
|
116
|
+
end: /\{/,
|
|
117
|
+
excludeEnd: !0,
|
|
118
|
+
contains: [{ beginKeywords: "extends implements" }, e.UNDERSCORE_TITLE_MODE]
|
|
119
|
+
},
|
|
120
|
+
l,
|
|
121
|
+
{
|
|
122
|
+
match: /\b(?!(?:assert|catch|for|if|switch|while)\b)[a-z_][A-Za-z0-9_]*(?=\()/,
|
|
123
|
+
scope: "title.function"
|
|
124
|
+
},
|
|
125
|
+
i,
|
|
126
|
+
{
|
|
127
|
+
className: "meta",
|
|
128
|
+
begin: "@[A-Za-z]+"
|
|
129
|
+
}
|
|
130
|
+
]
|
|
131
|
+
};
|
|
132
|
+
}
|
|
133
|
+
//#endregion
|
|
134
|
+
export { e as default };
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
//#region ../../node_modules/.pnpm/highlight.js@11.12.0/node_modules/highlight.js/es/languages/diff.js
|
|
2
|
+
function e(e) {
|
|
3
|
+
let t = e.regex;
|
|
4
|
+
return {
|
|
5
|
+
name: "Diff",
|
|
6
|
+
aliases: ["patch"],
|
|
7
|
+
contains: [
|
|
8
|
+
{
|
|
9
|
+
className: "meta",
|
|
10
|
+
relevance: 10,
|
|
11
|
+
match: t.either(/^@@ +-\d+,\d+ +\+\d+,\d+ +@@/, /^@@ +-\d+ +\+\d+,\d+ +@@/, /^@@ +-\d+,\d+ +\+\d+ +@@/, /^@@ +-\d+ +\+\d+ +@@/, /^\*\*\* +\d+,\d+ +\*\*\*\*$/, /^--- +\d+,\d+ +----$/)
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
className: "comment",
|
|
15
|
+
variants: [{
|
|
16
|
+
begin: t.either(/Index: /, /^index/, /={3,}/, /^-{3}/, /^\*{3} /, /^\+{3}/, /^diff --git/),
|
|
17
|
+
end: /$/
|
|
18
|
+
}, { match: /^\*{15}$/ }]
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
className: "addition",
|
|
22
|
+
begin: /^\+/,
|
|
23
|
+
end: /$/
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
className: "deletion",
|
|
27
|
+
begin: /^-/,
|
|
28
|
+
end: /$/
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
className: "addition",
|
|
32
|
+
begin: /^!/,
|
|
33
|
+
end: /$/
|
|
34
|
+
}
|
|
35
|
+
]
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
//#endregion
|
|
39
|
+
export { e as default };
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { _ as e, b as t, y as n } from "./popover-ics24JxK.js";
|
|
2
|
+
import * as r from "react";
|
|
3
|
+
import { forwardRef as i } from "react";
|
|
4
|
+
import { jsx as a } from "react/jsx-runtime";
|
|
5
|
+
var o = i((e, t) => /* @__PURE__ */ a("svg", {
|
|
6
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
7
|
+
fill: "none",
|
|
8
|
+
viewBox: "0 0 24 24",
|
|
9
|
+
ref: t,
|
|
10
|
+
...e,
|
|
11
|
+
children: /* @__PURE__ */ a("path", {
|
|
12
|
+
fill: "currentColor",
|
|
13
|
+
fillRule: "evenodd",
|
|
14
|
+
d: "M20 12C20 16.4183 16.4183 20 12 20C7.58172 20 4 16.4183 4 12C4 7.58172 7.58172 4 12 4C16.4183 4 20 7.58172 20 12ZM16.52 9.39C16.7354 9.10281 16.6772 8.69539 16.39 8.48C16.1028 8.26461 15.6954 8.32281 15.48 8.61L11.4297 14.0104L8.95963 11.5404C8.70578 11.2865 8.29423 11.2865 8.04039 11.5404C7.78655 11.7942 7.78655 12.2058 8.04039 12.4596L11.0404 15.4596C11.1736 15.5929 11.3581 15.6617 11.5461 15.6484C11.734 15.635 11.9069 15.5407 12.02 15.39L16.52 9.39Z",
|
|
15
|
+
clipRule: "evenodd"
|
|
16
|
+
})
|
|
17
|
+
}));
|
|
18
|
+
//#endregion
|
|
19
|
+
//#region ../../node_modules/.pnpm/@radix-ui+react-use-previous@1.1.1_@types+react@18.3.18_react@18.3.1/node_modules/@radix-ui/react-use-previous/dist/index.mjs
|
|
20
|
+
function s(e) {
|
|
21
|
+
let t = r.useRef({
|
|
22
|
+
value: e,
|
|
23
|
+
previous: e
|
|
24
|
+
});
|
|
25
|
+
return r.useMemo(() => (t.current.value !== e && (t.current.previous = t.current.value, t.current.value = e), t.current.previous), [e]);
|
|
26
|
+
}
|
|
27
|
+
//#endregion
|
|
28
|
+
//#region ../../node_modules/.pnpm/@radix-ui+number@1.1.1/node_modules/@radix-ui/number/dist/index.mjs
|
|
29
|
+
function c(e, [t, n]) {
|
|
30
|
+
return Math.min(n, Math.max(t, e));
|
|
31
|
+
}
|
|
32
|
+
//#endregion
|
|
33
|
+
//#region ../../node_modules/.pnpm/@radix-ui+react-toggle@1.1.1_@types+react-dom@18.3.1_@types+react@18.3.18_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@radix-ui/react-toggle/dist/index.mjs
|
|
34
|
+
var l = "Toggle", u = r.forwardRef((r, i) => {
|
|
35
|
+
let { pressed: o, defaultPressed: s = !1, onPressedChange: c, ...l } = r, [u = !1, d] = e({
|
|
36
|
+
prop: o,
|
|
37
|
+
onChange: c,
|
|
38
|
+
defaultProp: s
|
|
39
|
+
});
|
|
40
|
+
return /* @__PURE__ */ a(t.button, {
|
|
41
|
+
type: "button",
|
|
42
|
+
"aria-pressed": u,
|
|
43
|
+
"data-state": u ? "on" : "off",
|
|
44
|
+
"data-disabled": r.disabled ? "" : void 0,
|
|
45
|
+
...l,
|
|
46
|
+
ref: i,
|
|
47
|
+
onClick: n(r.onClick, () => {
|
|
48
|
+
r.disabled || d(!u);
|
|
49
|
+
})
|
|
50
|
+
});
|
|
51
|
+
});
|
|
52
|
+
u.displayName = l;
|
|
53
|
+
var d = u;
|
|
54
|
+
//#endregion
|
|
55
|
+
export { o as a, s as i, u as n, c as r, d as t };
|
|
@@ -0,0 +1,253 @@
|
|
|
1
|
+
import { n as e } from "./dist-CFY0KELA.js";
|
|
2
|
+
import { E as t, O as n, _ as r, b as i, v as a, w as o, y as s } from "./popover-ics24JxK.js";
|
|
3
|
+
import { s as c } from "./scrollarea-cxaFAWG5.js";
|
|
4
|
+
import { t as l } from "./dist-zvwuNflP.js";
|
|
5
|
+
import u, * as d from "react";
|
|
6
|
+
import { jsx as f } from "react/jsx-runtime";
|
|
7
|
+
//#region ../../node_modules/.pnpm/@radix-ui+react-roving-focus@1.1.1_@types+react-dom@18.3.1_@types+react@18.3.18_react-d_623ed541a34698abf1f463cdde77df29/node_modules/@radix-ui/react-roving-focus/dist/index.mjs
|
|
8
|
+
var p = "rovingFocusGroup.onEntryFocus", m = {
|
|
9
|
+
bubbles: !1,
|
|
10
|
+
cancelable: !0
|
|
11
|
+
}, h = "RovingFocusGroup", [g, _, v] = l(h), [y, b] = n(h, [v]), [x, S] = y(h), C = d.forwardRef((e, t) => /* @__PURE__ */ f(g.Provider, {
|
|
12
|
+
scope: e.__scopeRovingFocusGroup,
|
|
13
|
+
children: /* @__PURE__ */ f(g.Slot, {
|
|
14
|
+
scope: e.__scopeRovingFocusGroup,
|
|
15
|
+
children: /* @__PURE__ */ f(w, {
|
|
16
|
+
...e,
|
|
17
|
+
ref: t
|
|
18
|
+
})
|
|
19
|
+
})
|
|
20
|
+
}));
|
|
21
|
+
C.displayName = h;
|
|
22
|
+
var w = d.forwardRef((e, n) => {
|
|
23
|
+
let { __scopeRovingFocusGroup: a, orientation: l, loop: u = !1, dir: h, currentTabStopId: g, defaultCurrentTabStopId: v, onCurrentTabStopIdChange: y, onEntryFocus: b, preventScrollOnEntryFocus: S = !1, ...C } = e, w = d.useRef(null), T = o(n, w), E = c(h), [D = null, O] = r({
|
|
24
|
+
prop: g,
|
|
25
|
+
defaultProp: v,
|
|
26
|
+
onChange: y
|
|
27
|
+
}), [k, j] = d.useState(!1), M = t(b), N = _(a), P = d.useRef(!1), [F, I] = d.useState(0);
|
|
28
|
+
return d.useEffect(() => {
|
|
29
|
+
let e = w.current;
|
|
30
|
+
if (e) return e.addEventListener(p, M), () => e.removeEventListener(p, M);
|
|
31
|
+
}, [M]), /* @__PURE__ */ f(x, {
|
|
32
|
+
scope: a,
|
|
33
|
+
orientation: l,
|
|
34
|
+
dir: E,
|
|
35
|
+
loop: u,
|
|
36
|
+
currentTabStopId: D,
|
|
37
|
+
onItemFocus: d.useCallback((e) => O(e), [O]),
|
|
38
|
+
onItemShiftTab: d.useCallback(() => j(!0), []),
|
|
39
|
+
onFocusableItemAdd: d.useCallback(() => I((e) => e + 1), []),
|
|
40
|
+
onFocusableItemRemove: d.useCallback(() => I((e) => e - 1), []),
|
|
41
|
+
children: /* @__PURE__ */ f(i.div, {
|
|
42
|
+
tabIndex: k || F === 0 ? -1 : 0,
|
|
43
|
+
"data-orientation": l,
|
|
44
|
+
...C,
|
|
45
|
+
ref: T,
|
|
46
|
+
style: {
|
|
47
|
+
outline: "none",
|
|
48
|
+
...e.style
|
|
49
|
+
},
|
|
50
|
+
onMouseDown: s(e.onMouseDown, () => {
|
|
51
|
+
P.current = !0;
|
|
52
|
+
}),
|
|
53
|
+
onFocus: s(e.onFocus, (e) => {
|
|
54
|
+
let t = !P.current;
|
|
55
|
+
if (e.target === e.currentTarget && t && !k) {
|
|
56
|
+
let t = new CustomEvent(p, m);
|
|
57
|
+
if (e.currentTarget.dispatchEvent(t), !t.defaultPrevented) {
|
|
58
|
+
let e = N().filter((e) => e.focusable);
|
|
59
|
+
A([
|
|
60
|
+
e.find((e) => e.active),
|
|
61
|
+
e.find((e) => e.id === D),
|
|
62
|
+
...e
|
|
63
|
+
].filter(Boolean).map((e) => e.ref.current), S);
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
P.current = !1;
|
|
67
|
+
}),
|
|
68
|
+
onBlur: s(e.onBlur, () => j(!1))
|
|
69
|
+
})
|
|
70
|
+
});
|
|
71
|
+
}), T = "RovingFocusGroupItem", E = d.forwardRef((e, t) => {
|
|
72
|
+
let { __scopeRovingFocusGroup: n, focusable: r = !0, active: o = !1, tabStopId: c, ...l } = e, u = a(), p = c || u, m = S(T, n), h = m.currentTabStopId === p, v = _(n), { onFocusableItemAdd: y, onFocusableItemRemove: b } = m;
|
|
73
|
+
return d.useEffect(() => {
|
|
74
|
+
if (r) return y(), () => b();
|
|
75
|
+
}, [
|
|
76
|
+
r,
|
|
77
|
+
y,
|
|
78
|
+
b
|
|
79
|
+
]), /* @__PURE__ */ f(g.ItemSlot, {
|
|
80
|
+
scope: n,
|
|
81
|
+
id: p,
|
|
82
|
+
focusable: r,
|
|
83
|
+
active: o,
|
|
84
|
+
children: /* @__PURE__ */ f(i.span, {
|
|
85
|
+
tabIndex: h ? 0 : -1,
|
|
86
|
+
"data-orientation": m.orientation,
|
|
87
|
+
...l,
|
|
88
|
+
ref: t,
|
|
89
|
+
onMouseDown: s(e.onMouseDown, (e) => {
|
|
90
|
+
r ? m.onItemFocus(p) : e.preventDefault();
|
|
91
|
+
}),
|
|
92
|
+
onFocus: s(e.onFocus, () => m.onItemFocus(p)),
|
|
93
|
+
onKeyDown: s(e.onKeyDown, (e) => {
|
|
94
|
+
if (e.key === "Tab" && e.shiftKey) {
|
|
95
|
+
m.onItemShiftTab();
|
|
96
|
+
return;
|
|
97
|
+
}
|
|
98
|
+
if (e.target !== e.currentTarget) return;
|
|
99
|
+
let t = k(e, m.orientation, m.dir);
|
|
100
|
+
if (t !== void 0) {
|
|
101
|
+
if (e.metaKey || e.ctrlKey || e.altKey || e.shiftKey) return;
|
|
102
|
+
e.preventDefault();
|
|
103
|
+
let n = v().filter((e) => e.focusable).map((e) => e.ref.current);
|
|
104
|
+
if (t === "last") n.reverse();
|
|
105
|
+
else if (t === "prev" || t === "next") {
|
|
106
|
+
t === "prev" && n.reverse();
|
|
107
|
+
let r = n.indexOf(e.currentTarget);
|
|
108
|
+
n = m.loop ? j(n, r + 1) : n.slice(r + 1);
|
|
109
|
+
}
|
|
110
|
+
setTimeout(() => A(n));
|
|
111
|
+
}
|
|
112
|
+
})
|
|
113
|
+
})
|
|
114
|
+
});
|
|
115
|
+
});
|
|
116
|
+
E.displayName = T;
|
|
117
|
+
var D = {
|
|
118
|
+
ArrowLeft: "prev",
|
|
119
|
+
ArrowUp: "prev",
|
|
120
|
+
ArrowRight: "next",
|
|
121
|
+
ArrowDown: "next",
|
|
122
|
+
PageUp: "first",
|
|
123
|
+
Home: "first",
|
|
124
|
+
PageDown: "last",
|
|
125
|
+
End: "last"
|
|
126
|
+
};
|
|
127
|
+
function O(e, t) {
|
|
128
|
+
return t === "rtl" ? e === "ArrowLeft" ? "ArrowRight" : e === "ArrowRight" ? "ArrowLeft" : e : e;
|
|
129
|
+
}
|
|
130
|
+
function k(e, t, n) {
|
|
131
|
+
let r = O(e.key, n);
|
|
132
|
+
if (!(t === "vertical" && ["ArrowLeft", "ArrowRight"].includes(r)) && !(t === "horizontal" && ["ArrowUp", "ArrowDown"].includes(r))) return D[r];
|
|
133
|
+
}
|
|
134
|
+
function A(e, t = !1) {
|
|
135
|
+
let n = document.activeElement;
|
|
136
|
+
for (let r of e) if (r === n || (r.focus({ preventScroll: t }), document.activeElement !== n)) return;
|
|
137
|
+
}
|
|
138
|
+
function j(e, t) {
|
|
139
|
+
return e.map((n, r) => e[(t + r) % e.length]);
|
|
140
|
+
}
|
|
141
|
+
var M = C, N = E, P = "ToggleGroup", [F, I] = n(P, [b]), L = b(), R = u.forwardRef((e, t) => {
|
|
142
|
+
let { type: n, ...r } = e;
|
|
143
|
+
if (n === "single") return /* @__PURE__ */ f(V, {
|
|
144
|
+
...r,
|
|
145
|
+
ref: t
|
|
146
|
+
});
|
|
147
|
+
if (n === "multiple") return /* @__PURE__ */ f(H, {
|
|
148
|
+
...r,
|
|
149
|
+
ref: t
|
|
150
|
+
});
|
|
151
|
+
throw Error(`Missing prop \`type\` expected on \`${P}\``);
|
|
152
|
+
});
|
|
153
|
+
R.displayName = P;
|
|
154
|
+
var [z, B] = F(P), V = u.forwardRef((e, t) => {
|
|
155
|
+
let { value: n, defaultValue: i, onValueChange: a = () => {}, ...o } = e, [s, c] = r({
|
|
156
|
+
prop: n,
|
|
157
|
+
defaultProp: i,
|
|
158
|
+
onChange: a
|
|
159
|
+
});
|
|
160
|
+
return /* @__PURE__ */ f(z, {
|
|
161
|
+
scope: e.__scopeToggleGroup,
|
|
162
|
+
type: "single",
|
|
163
|
+
value: s ? [s] : [],
|
|
164
|
+
onItemActivate: c,
|
|
165
|
+
onItemDeactivate: u.useCallback(() => c(""), [c]),
|
|
166
|
+
children: /* @__PURE__ */ f(G, {
|
|
167
|
+
...o,
|
|
168
|
+
ref: t
|
|
169
|
+
})
|
|
170
|
+
});
|
|
171
|
+
}), H = u.forwardRef((e, t) => {
|
|
172
|
+
let { value: n, defaultValue: i, onValueChange: a = () => {}, ...o } = e, [s = [], c] = r({
|
|
173
|
+
prop: n,
|
|
174
|
+
defaultProp: i,
|
|
175
|
+
onChange: a
|
|
176
|
+
}), l = u.useCallback((e) => c((t = []) => [...t, e]), [c]), d = u.useCallback((e) => c((t = []) => t.filter((t) => t !== e)), [c]);
|
|
177
|
+
return /* @__PURE__ */ f(z, {
|
|
178
|
+
scope: e.__scopeToggleGroup,
|
|
179
|
+
type: "multiple",
|
|
180
|
+
value: s,
|
|
181
|
+
onItemActivate: l,
|
|
182
|
+
onItemDeactivate: d,
|
|
183
|
+
children: /* @__PURE__ */ f(G, {
|
|
184
|
+
...o,
|
|
185
|
+
ref: t
|
|
186
|
+
})
|
|
187
|
+
});
|
|
188
|
+
});
|
|
189
|
+
R.displayName = P;
|
|
190
|
+
var [U, W] = F(P), G = u.forwardRef((e, t) => {
|
|
191
|
+
let { __scopeToggleGroup: n, disabled: r = !1, rovingFocus: a = !0, orientation: o, dir: s, loop: l = !0, ...u } = e, d = L(n), p = c(s), m = {
|
|
192
|
+
role: "group",
|
|
193
|
+
dir: p,
|
|
194
|
+
...u
|
|
195
|
+
};
|
|
196
|
+
return /* @__PURE__ */ f(U, {
|
|
197
|
+
scope: n,
|
|
198
|
+
rovingFocus: a,
|
|
199
|
+
disabled: r,
|
|
200
|
+
children: a ? /* @__PURE__ */ f(M, {
|
|
201
|
+
asChild: !0,
|
|
202
|
+
...d,
|
|
203
|
+
orientation: o,
|
|
204
|
+
dir: p,
|
|
205
|
+
loop: l,
|
|
206
|
+
children: /* @__PURE__ */ f(i.div, {
|
|
207
|
+
...m,
|
|
208
|
+
ref: t
|
|
209
|
+
})
|
|
210
|
+
}) : /* @__PURE__ */ f(i.div, {
|
|
211
|
+
...m,
|
|
212
|
+
ref: t
|
|
213
|
+
})
|
|
214
|
+
});
|
|
215
|
+
}), K = "ToggleGroupItem", q = u.forwardRef((e, t) => {
|
|
216
|
+
let n = B(K, e.__scopeToggleGroup), r = W(K, e.__scopeToggleGroup), i = L(e.__scopeToggleGroup), a = n.value.includes(e.value), o = r.disabled || e.disabled, s = {
|
|
217
|
+
...e,
|
|
218
|
+
pressed: a,
|
|
219
|
+
disabled: o
|
|
220
|
+
}, c = u.useRef(null);
|
|
221
|
+
return r.rovingFocus ? /* @__PURE__ */ f(N, {
|
|
222
|
+
asChild: !0,
|
|
223
|
+
...i,
|
|
224
|
+
focusable: !o,
|
|
225
|
+
active: a,
|
|
226
|
+
ref: c,
|
|
227
|
+
children: /* @__PURE__ */ f(J, {
|
|
228
|
+
...s,
|
|
229
|
+
ref: t
|
|
230
|
+
})
|
|
231
|
+
}) : /* @__PURE__ */ f(J, {
|
|
232
|
+
...s,
|
|
233
|
+
ref: t
|
|
234
|
+
});
|
|
235
|
+
});
|
|
236
|
+
q.displayName = K;
|
|
237
|
+
var J = u.forwardRef((t, n) => {
|
|
238
|
+
let { __scopeToggleGroup: r, value: i, ...a } = t, o = B(K, r), s = {
|
|
239
|
+
role: "radio",
|
|
240
|
+
"aria-checked": t.pressed,
|
|
241
|
+
"aria-pressed": void 0
|
|
242
|
+
}, c = o.type === "single" ? s : void 0;
|
|
243
|
+
return /* @__PURE__ */ f(e, {
|
|
244
|
+
...c,
|
|
245
|
+
...a,
|
|
246
|
+
ref: n,
|
|
247
|
+
onPressedChange: (e) => {
|
|
248
|
+
e ? o.onItemActivate(i) : o.onItemDeactivate(i);
|
|
249
|
+
}
|
|
250
|
+
});
|
|
251
|
+
}), Y = R, X = q;
|
|
252
|
+
//#endregion
|
|
253
|
+
export { q as i, Y as n, R as r, X as t };
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { O as e, S as t, w as n } from "./popover-ics24JxK.js";
|
|
2
|
+
import r from "react";
|
|
3
|
+
import { jsx as i } from "react/jsx-runtime";
|
|
4
|
+
//#region ../../node_modules/.pnpm/@radix-ui+react-collection@1.1.1_@types+react-dom@18.3.1_@types+react@18.3.18_react-dom_8b50dd17dda88491984286d0a66c0706/node_modules/@radix-ui/react-collection/dist/index.mjs
|
|
5
|
+
function a(a) {
|
|
6
|
+
let o = a + "CollectionProvider", [s, c] = e(o), [l, u] = s(o, {
|
|
7
|
+
collectionRef: { current: null },
|
|
8
|
+
itemMap: /* @__PURE__ */ new Map()
|
|
9
|
+
}), d = (e) => {
|
|
10
|
+
let { scope: t, children: n } = e, a = r.useRef(null), o = r.useRef(/* @__PURE__ */ new Map()).current;
|
|
11
|
+
return /* @__PURE__ */ i(l, {
|
|
12
|
+
scope: t,
|
|
13
|
+
itemMap: o,
|
|
14
|
+
collectionRef: a,
|
|
15
|
+
children: n
|
|
16
|
+
});
|
|
17
|
+
};
|
|
18
|
+
d.displayName = o;
|
|
19
|
+
let f = a + "CollectionSlot", p = r.forwardRef((e, r) => {
|
|
20
|
+
let { scope: a, children: o } = e, s = u(f, a), c = n(r, s.collectionRef);
|
|
21
|
+
return /* @__PURE__ */ i(t, {
|
|
22
|
+
ref: c,
|
|
23
|
+
children: o
|
|
24
|
+
});
|
|
25
|
+
});
|
|
26
|
+
p.displayName = f;
|
|
27
|
+
let m = a + "CollectionItemSlot", h = "data-radix-collection-item", g = r.forwardRef((e, a) => {
|
|
28
|
+
let { scope: o, children: s, ...c } = e, l = r.useRef(null), d = n(a, l), f = u(m, o);
|
|
29
|
+
return r.useEffect(() => (f.itemMap.set(l, {
|
|
30
|
+
ref: l,
|
|
31
|
+
...c
|
|
32
|
+
}), () => void f.itemMap.delete(l))), /* @__PURE__ */ i(t, {
|
|
33
|
+
[h]: "",
|
|
34
|
+
ref: d,
|
|
35
|
+
children: s
|
|
36
|
+
});
|
|
37
|
+
});
|
|
38
|
+
g.displayName = m;
|
|
39
|
+
function _(e) {
|
|
40
|
+
let t = u(a + "CollectionConsumer", e);
|
|
41
|
+
return r.useCallback(() => {
|
|
42
|
+
let e = t.collectionRef.current;
|
|
43
|
+
if (!e) return [];
|
|
44
|
+
let n = Array.from(e.querySelectorAll(`[${h}]`));
|
|
45
|
+
return Array.from(t.itemMap.values()).sort((e, t) => n.indexOf(e.ref.current) - n.indexOf(t.ref.current));
|
|
46
|
+
}, [t.collectionRef, t.itemMap]);
|
|
47
|
+
}
|
|
48
|
+
return [
|
|
49
|
+
{
|
|
50
|
+
Provider: d,
|
|
51
|
+
Slot: p,
|
|
52
|
+
ItemSlot: g
|
|
53
|
+
},
|
|
54
|
+
_,
|
|
55
|
+
c
|
|
56
|
+
];
|
|
57
|
+
}
|
|
58
|
+
//#endregion
|
|
59
|
+
export { a as t };
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
//#region ../../node_modules/.pnpm/highlight.js@11.12.0/node_modules/highlight.js/es/languages/dockerfile.js
|
|
2
|
+
function e(e) {
|
|
3
|
+
return {
|
|
4
|
+
name: "Dockerfile",
|
|
5
|
+
aliases: ["docker"],
|
|
6
|
+
case_insensitive: !0,
|
|
7
|
+
keywords: [
|
|
8
|
+
"from",
|
|
9
|
+
"maintainer",
|
|
10
|
+
"expose",
|
|
11
|
+
"env",
|
|
12
|
+
"arg",
|
|
13
|
+
"user",
|
|
14
|
+
"onbuild",
|
|
15
|
+
"stopsignal"
|
|
16
|
+
],
|
|
17
|
+
contains: [
|
|
18
|
+
e.HASH_COMMENT_MODE,
|
|
19
|
+
e.APOS_STRING_MODE,
|
|
20
|
+
e.QUOTE_STRING_MODE,
|
|
21
|
+
e.NUMBER_MODE,
|
|
22
|
+
{
|
|
23
|
+
beginKeywords: "run cmd entrypoint volume add copy workdir label healthcheck shell",
|
|
24
|
+
starts: {
|
|
25
|
+
end: /[^\\]$/,
|
|
26
|
+
subLanguage: "bash"
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
],
|
|
30
|
+
illegal: "</"
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
//#endregion
|
|
34
|
+
export { e as default };
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
//#region ../../node_modules/.pnpm/highlight.js@11.12.0/node_modules/highlight.js/es/languages/dos.js
|
|
2
|
+
function e(e) {
|
|
3
|
+
let t = e.COMMENT(/^\s*@?rem\b/, /$/, { relevance: 10 });
|
|
4
|
+
return {
|
|
5
|
+
name: "Batch file (DOS)",
|
|
6
|
+
aliases: [
|
|
7
|
+
"bat",
|
|
8
|
+
"batch",
|
|
9
|
+
"cmd"
|
|
10
|
+
],
|
|
11
|
+
case_insensitive: !0,
|
|
12
|
+
illegal: /\/\*/,
|
|
13
|
+
keywords: {
|
|
14
|
+
keyword: [
|
|
15
|
+
"if",
|
|
16
|
+
"else",
|
|
17
|
+
"goto",
|
|
18
|
+
"for",
|
|
19
|
+
"in",
|
|
20
|
+
"do",
|
|
21
|
+
"call",
|
|
22
|
+
"exit",
|
|
23
|
+
"not",
|
|
24
|
+
"exist",
|
|
25
|
+
"errorlevel",
|
|
26
|
+
"defined",
|
|
27
|
+
"equ",
|
|
28
|
+
"neq",
|
|
29
|
+
"lss",
|
|
30
|
+
"leq",
|
|
31
|
+
"gtr",
|
|
32
|
+
"geq"
|
|
33
|
+
],
|
|
34
|
+
built_in: /* @__PURE__ */ "prn.nul.lpt3.lpt2.lpt1.con.com4.com3.com2.com1.aux.shift.cd.dir.echo.setlocal.endlocal.set.pause.copy.append.assoc.at.attrib.break.cacls.cd.chcp.chdir.chkdsk.chkntfs.cls.cmd.color.comp.compact.convert.date.dir.diskcomp.diskcopy.doskey.erase.fs.find.findstr.format.ftype.graftabl.help.keyb.label.md.mkdir.mode.more.move.path.pause.print.popd.pushd.promt.rd.recover.rem.rename.replace.restore.rmdir.shift.sort.start.subst.time.title.tree.type.ver.verify.vol.ping.net.ipconfig.taskkill.xcopy.ren.del".split(".")
|
|
35
|
+
},
|
|
36
|
+
contains: [
|
|
37
|
+
{
|
|
38
|
+
className: "variable",
|
|
39
|
+
begin: /%%[^ ]|%[^ ]+?%|![^ ]+?!/
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
className: "function",
|
|
43
|
+
begin: { begin: "^\\s*[A-Za-z._?][A-Za-z0-9_$#@~.?]*(:|\\s+label)" }.begin,
|
|
44
|
+
end: "goto:eof",
|
|
45
|
+
contains: [e.inherit(e.TITLE_MODE, { begin: "([_a-zA-Z]\\w*\\.)*([_a-zA-Z]\\w*:)?[_a-zA-Z]\\w*" }), t]
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
className: "number",
|
|
49
|
+
begin: "\\b\\d+",
|
|
50
|
+
relevance: 0
|
|
51
|
+
},
|
|
52
|
+
t
|
|
53
|
+
]
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
//#endregion
|
|
57
|
+
export { e as default };
|