@alivault/pico 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/.output/nitro.json +1 -1
- package/.output/public/assets/{index-Cv9CWbsI.js → index-CEN6xdm0.js} +10 -10
- package/.output/public/assets/routes-YDDOri73.js +2195 -0
- package/.output/public/assets/styles-hk0oLlcJ.css +2 -0
- package/.output/server/_libs/@pierre/diffs+[...].mjs +322 -165
- package/.output/server/_libs/hast-util-from-parse5+[...].mjs +1 -1
- package/.output/server/_libs/hast-util-raw+[...].mjs +1 -1
- package/.output/server/_libs/hast-util-to-jsx-runtime+[...].mjs +1 -1
- package/.output/server/_libs/lucide-react.mjs +27 -1
- package/.output/server/_libs/mdast-util-gfm+[...].mjs +1 -1
- package/.output/server/_ssr/{router-BfWi4RfZ.mjs → router-CphHgwo2.mjs} +236 -99
- package/.output/server/_ssr/{routes-CSvcOSyF.mjs → routes-CELGJtcT.mjs} +1369 -377
- package/.output/server/_ssr/{routes-D6yf6dMU.mjs → routes-CHNxptm_.mjs} +1924 -41
- package/.output/server/_ssr/ssr.mjs +2 -2
- package/.output/server/{_tanstack-start-manifest_v-Am6Tm4xr.mjs → _tanstack-start-manifest_v-CIqGA3U0.mjs} +4 -4
- package/.output/server/index.mjs +486 -486
- package/package.json +2 -2
- package/.output/public/assets/routes-FmISceu0.js +0 -2160
- package/.output/public/assets/styles-DgbW000h.css +0 -2
- package/.output/server/_libs/sugar-high.mjs +0 -1036
|
@@ -1,135 +1,5 @@
|
|
|
1
1
|
import { i as __toESM, n as __exportAll } from "../../_runtime.mjs";
|
|
2
2
|
import { $ as require_react, Q as require_jsx_runtime } from "../@base-ui/react+[...].mjs";
|
|
3
|
-
//#region node_modules/.pnpm/@pierre+diffs@1.1.20_react-dom@19.2.5_react@19.2.5__react@19.2.5/node_modules/@pierre/diffs/dist/react/constants.js
|
|
4
|
-
var import_jsx_runtime = require_jsx_runtime();
|
|
5
|
-
var GutterUtilitySlotStyles = {
|
|
6
|
-
position: "absolute",
|
|
7
|
-
top: 0,
|
|
8
|
-
bottom: 0,
|
|
9
|
-
textAlign: "center"
|
|
10
|
-
};
|
|
11
|
-
var MergeConflictSlotStyles = { display: "contents" };
|
|
12
|
-
function noopRender() {
|
|
13
|
-
return null;
|
|
14
|
-
}
|
|
15
|
-
//#endregion
|
|
16
|
-
//#region node_modules/.pnpm/@pierre+diffs@1.1.20_react-dom@19.2.5_react@19.2.5__react@19.2.5/node_modules/@pierre/diffs/dist/constants.js
|
|
17
|
-
var DIFFS_TAG_NAME = "diffs-container";
|
|
18
|
-
var COMMIT_METADATA_SPLIT = /(?=^From [a-f0-9]+ .+$)/m;
|
|
19
|
-
var GIT_DIFF_FILE_BREAK_REGEX = /(?=^diff --git)/gm;
|
|
20
|
-
var UNIFIED_DIFF_FILE_BREAK_REGEX = /(?=^---\s+\S)/gm;
|
|
21
|
-
var FILE_CONTEXT_BLOB = /(?=^@@ )/gm;
|
|
22
|
-
var HUNK_HEADER = /^@@ -(\d+)(?:,(\d+))? \+(\d+)(?:,(\d+))? @@(?: (.*))?/m;
|
|
23
|
-
var SPLIT_WITH_NEWLINES = /(?<=\n)/;
|
|
24
|
-
var FILENAME_HEADER_REGEX = /^(---|\+\+\+)\s+([^\t\r\n]+)/;
|
|
25
|
-
var FILENAME_HEADER_REGEX_GIT = /^(---|\+\+\+)\s+[ab]\/([^\t\r\n]+)/;
|
|
26
|
-
var ALTERNATE_FILE_NAMES_GIT = /^diff --git (?:"a\/(.+?)"|a\/(.+?)) (?:"b\/(.+?)"|b\/(.+?))$/;
|
|
27
|
-
var INDEX_LINE_METADATA = /^index ([0-9a-f]+)\.\.([0-9a-f]+)(?: (\d+))?$/i;
|
|
28
|
-
var HEADER_PREFIX_SLOT_ID = "header-prefix";
|
|
29
|
-
var HEADER_METADATA_SLOT_ID = "header-metadata";
|
|
30
|
-
var CUSTOM_HEADER_SLOT_ID = "header-custom";
|
|
31
|
-
var DEFAULT_THEMES = {
|
|
32
|
-
dark: "pierre-dark",
|
|
33
|
-
light: "pierre-light"
|
|
34
|
-
};
|
|
35
|
-
var THEME_CSS_ATTRIBUTE = "data-theme-css";
|
|
36
|
-
var UNSAFE_CSS_ATTRIBUTE = "data-unsafe-css";
|
|
37
|
-
var DEFAULT_VIRTUAL_FILE_METRICS = {
|
|
38
|
-
hunkLineCount: 50,
|
|
39
|
-
lineHeight: 20,
|
|
40
|
-
diffHeaderHeight: 44,
|
|
41
|
-
hunkSeparatorHeight: 32,
|
|
42
|
-
fileGap: 8
|
|
43
|
-
};
|
|
44
|
-
var DEFAULT_EXPANDED_REGION = Object.freeze({
|
|
45
|
-
fromStart: 0,
|
|
46
|
-
fromEnd: 0
|
|
47
|
-
});
|
|
48
|
-
var DEFAULT_RENDER_RANGE = {
|
|
49
|
-
startingLine: 0,
|
|
50
|
-
totalLines: Infinity,
|
|
51
|
-
bufferBefore: 0,
|
|
52
|
-
bufferAfter: 0
|
|
53
|
-
};
|
|
54
|
-
var EMPTY_RENDER_RANGE = {
|
|
55
|
-
startingLine: 0,
|
|
56
|
-
totalLines: 0,
|
|
57
|
-
bufferBefore: 0,
|
|
58
|
-
bufferAfter: 0
|
|
59
|
-
};
|
|
60
|
-
//#endregion
|
|
61
|
-
//#region node_modules/.pnpm/@pierre+diffs@1.1.20_react-dom@19.2.5_react@19.2.5__react@19.2.5/node_modules/@pierre/diffs/dist/utils/getLineAnnotationName.js
|
|
62
|
-
function getLineAnnotationName(annotation) {
|
|
63
|
-
return `annotation-${"side" in annotation ? `${annotation.side}-` : ""}${annotation.lineNumber}`;
|
|
64
|
-
}
|
|
65
|
-
//#endregion
|
|
66
|
-
//#region node_modules/.pnpm/@pierre+diffs@1.1.20_react-dom@19.2.5_react@19.2.5__react@19.2.5/node_modules/@pierre/diffs/dist/react/utils/templateRender.js
|
|
67
|
-
function templateRender(children, __html) {
|
|
68
|
-
if (typeof window === "undefined" && __html != null) return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)("template", {
|
|
69
|
-
shadowrootmode: "open",
|
|
70
|
-
dangerouslySetInnerHTML: { __html }
|
|
71
|
-
}), children] });
|
|
72
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_jsx_runtime.Fragment, { children });
|
|
73
|
-
}
|
|
74
|
-
//#endregion
|
|
75
|
-
//#region node_modules/.pnpm/@pierre+diffs@1.1.20_react-dom@19.2.5_react@19.2.5__react@19.2.5/node_modules/@pierre/diffs/dist/react/Virtualizer.js
|
|
76
|
-
var import_react = /* @__PURE__ */ __toESM(require_react(), 1);
|
|
77
|
-
var VirtualizerContext = (0, import_react.createContext)(void 0);
|
|
78
|
-
function useVirtualizer() {
|
|
79
|
-
return (0, import_react.useContext)(VirtualizerContext);
|
|
80
|
-
}
|
|
81
|
-
//#endregion
|
|
82
|
-
//#region node_modules/.pnpm/@pierre+diffs@1.1.20_react-dom@19.2.5_react@19.2.5__react@19.2.5/node_modules/@pierre/diffs/dist/highlighter/themes/constants.js
|
|
83
|
-
var ResolvedThemes = /* @__PURE__ */ new Map();
|
|
84
|
-
var ResolvingThemes = /* @__PURE__ */ new Map();
|
|
85
|
-
var RegisteredCustomThemes = /* @__PURE__ */ new Map();
|
|
86
|
-
var AttachedThemes = /* @__PURE__ */ new Set();
|
|
87
|
-
//#endregion
|
|
88
|
-
//#region node_modules/.pnpm/@pierre+diffs@1.1.20_react-dom@19.2.5_react@19.2.5__react@19.2.5/node_modules/@pierre/diffs/dist/highlighter/themes/attachResolvedThemes.js
|
|
89
|
-
function attachResolvedThemes(themes, highlighter) {
|
|
90
|
-
themes = Array.isArray(themes) ? themes : [themes];
|
|
91
|
-
for (let themeRef of themes) {
|
|
92
|
-
let resolvedTheme;
|
|
93
|
-
if (typeof themeRef === "string") {
|
|
94
|
-
resolvedTheme = ResolvedThemes.get(themeRef);
|
|
95
|
-
if (resolvedTheme == null) throw new Error(`loadResolvedThemes: ${themeRef} is not resolved, you must resolve it before calling loadResolvedThemes`);
|
|
96
|
-
} else {
|
|
97
|
-
resolvedTheme = themeRef;
|
|
98
|
-
themeRef = themeRef.name;
|
|
99
|
-
if (!ResolvedThemes.has(themeRef)) ResolvedThemes.set(themeRef, resolvedTheme);
|
|
100
|
-
}
|
|
101
|
-
if (AttachedThemes.has(themeRef)) continue;
|
|
102
|
-
AttachedThemes.add(themeRef);
|
|
103
|
-
highlighter.loadThemeSync(resolvedTheme);
|
|
104
|
-
}
|
|
105
|
-
}
|
|
106
|
-
//#endregion
|
|
107
|
-
//#region node_modules/.pnpm/@pierre+diffs@1.1.20_react-dom@19.2.5_react@19.2.5__react@19.2.5/node_modules/@pierre/diffs/dist/highlighter/languages/constants.js
|
|
108
|
-
var ResolvedLanguages = /* @__PURE__ */ new Map();
|
|
109
|
-
var ResolvingLanguages = /* @__PURE__ */ new Map();
|
|
110
|
-
var RegisteredCustomLanguages = /* @__PURE__ */ new Map();
|
|
111
|
-
var AttachedLanguages = /* @__PURE__ */ new Set();
|
|
112
|
-
//#endregion
|
|
113
|
-
//#region node_modules/.pnpm/@pierre+diffs@1.1.20_react-dom@19.2.5_react@19.2.5__react@19.2.5/node_modules/@pierre/diffs/dist/highlighter/languages/attachResolvedLanguages.js
|
|
114
|
-
function attachResolvedLanguages(resolvedLanguages, highlighter) {
|
|
115
|
-
resolvedLanguages = Array.isArray(resolvedLanguages) ? resolvedLanguages : [resolvedLanguages];
|
|
116
|
-
for (const resolvedLang of resolvedLanguages) {
|
|
117
|
-
if (AttachedLanguages.has(resolvedLang.name)) continue;
|
|
118
|
-
let lang = ResolvedLanguages.get(resolvedLang.name);
|
|
119
|
-
if (lang == null) {
|
|
120
|
-
lang = resolvedLang;
|
|
121
|
-
ResolvedLanguages.set(resolvedLang.name, lang);
|
|
122
|
-
}
|
|
123
|
-
AttachedLanguages.add(lang.name);
|
|
124
|
-
highlighter.loadLanguageSync(lang.data);
|
|
125
|
-
}
|
|
126
|
-
}
|
|
127
|
-
//#endregion
|
|
128
|
-
//#region node_modules/.pnpm/@pierre+diffs@1.1.20_react-dom@19.2.5_react@19.2.5__react@19.2.5/node_modules/@pierre/diffs/dist/utils/isWorkerContext.js
|
|
129
|
-
function isWorkerContext() {
|
|
130
|
-
return typeof WorkerGlobalScope !== "undefined" && typeof self !== "undefined" && self instanceof WorkerGlobalScope;
|
|
131
|
-
}
|
|
132
|
-
//#endregion
|
|
133
3
|
//#region node_modules/.pnpm/@shikijs+types@3.23.0/node_modules/@shikijs/types/dist/index.mjs
|
|
134
4
|
var ShikiError$2 = class extends Error {
|
|
135
5
|
constructor(message) {
|
|
@@ -7367,6 +7237,194 @@ function createSingletonShorthands(createHighlighter, config) {
|
|
|
7367
7237
|
}
|
|
7368
7238
|
};
|
|
7369
7239
|
}
|
|
7240
|
+
function createCssVariablesTheme(options = {}) {
|
|
7241
|
+
const { name = "css-variables", variablePrefix = "--shiki-", fontStyle = true } = options;
|
|
7242
|
+
const variable = (name2) => {
|
|
7243
|
+
if (options.variableDefaults?.[name2]) return `var(${variablePrefix}${name2}, ${options.variableDefaults[name2]})`;
|
|
7244
|
+
return `var(${variablePrefix}${name2})`;
|
|
7245
|
+
};
|
|
7246
|
+
const theme = {
|
|
7247
|
+
name,
|
|
7248
|
+
type: "dark",
|
|
7249
|
+
colors: {
|
|
7250
|
+
"editor.foreground": variable("foreground"),
|
|
7251
|
+
"editor.background": variable("background"),
|
|
7252
|
+
"terminal.ansiBlack": variable("ansi-black"),
|
|
7253
|
+
"terminal.ansiRed": variable("ansi-red"),
|
|
7254
|
+
"terminal.ansiGreen": variable("ansi-green"),
|
|
7255
|
+
"terminal.ansiYellow": variable("ansi-yellow"),
|
|
7256
|
+
"terminal.ansiBlue": variable("ansi-blue"),
|
|
7257
|
+
"terminal.ansiMagenta": variable("ansi-magenta"),
|
|
7258
|
+
"terminal.ansiCyan": variable("ansi-cyan"),
|
|
7259
|
+
"terminal.ansiWhite": variable("ansi-white"),
|
|
7260
|
+
"terminal.ansiBrightBlack": variable("ansi-bright-black"),
|
|
7261
|
+
"terminal.ansiBrightRed": variable("ansi-bright-red"),
|
|
7262
|
+
"terminal.ansiBrightGreen": variable("ansi-bright-green"),
|
|
7263
|
+
"terminal.ansiBrightYellow": variable("ansi-bright-yellow"),
|
|
7264
|
+
"terminal.ansiBrightBlue": variable("ansi-bright-blue"),
|
|
7265
|
+
"terminal.ansiBrightMagenta": variable("ansi-bright-magenta"),
|
|
7266
|
+
"terminal.ansiBrightCyan": variable("ansi-bright-cyan"),
|
|
7267
|
+
"terminal.ansiBrightWhite": variable("ansi-bright-white")
|
|
7268
|
+
},
|
|
7269
|
+
tokenColors: [
|
|
7270
|
+
{
|
|
7271
|
+
scope: [
|
|
7272
|
+
"keyword.operator.accessor",
|
|
7273
|
+
"meta.group.braces.round.function.arguments",
|
|
7274
|
+
"meta.template.expression",
|
|
7275
|
+
"markup.fenced_code meta.embedded.block"
|
|
7276
|
+
],
|
|
7277
|
+
settings: { foreground: variable("foreground") }
|
|
7278
|
+
},
|
|
7279
|
+
{
|
|
7280
|
+
scope: "emphasis",
|
|
7281
|
+
settings: { fontStyle: "italic" }
|
|
7282
|
+
},
|
|
7283
|
+
{
|
|
7284
|
+
scope: [
|
|
7285
|
+
"strong",
|
|
7286
|
+
"markup.heading.markdown",
|
|
7287
|
+
"markup.bold.markdown"
|
|
7288
|
+
],
|
|
7289
|
+
settings: { fontStyle: "bold" }
|
|
7290
|
+
},
|
|
7291
|
+
{
|
|
7292
|
+
scope: ["markup.italic.markdown"],
|
|
7293
|
+
settings: { fontStyle: "italic" }
|
|
7294
|
+
},
|
|
7295
|
+
{
|
|
7296
|
+
scope: "meta.link.inline.markdown",
|
|
7297
|
+
settings: {
|
|
7298
|
+
fontStyle: "underline",
|
|
7299
|
+
foreground: variable("token-link")
|
|
7300
|
+
}
|
|
7301
|
+
},
|
|
7302
|
+
{
|
|
7303
|
+
scope: [
|
|
7304
|
+
"string",
|
|
7305
|
+
"markup.fenced_code",
|
|
7306
|
+
"markup.inline"
|
|
7307
|
+
],
|
|
7308
|
+
settings: { foreground: variable("token-string") }
|
|
7309
|
+
},
|
|
7310
|
+
{
|
|
7311
|
+
scope: ["comment", "string.quoted.docstring.multi"],
|
|
7312
|
+
settings: { foreground: variable("token-comment") }
|
|
7313
|
+
},
|
|
7314
|
+
{
|
|
7315
|
+
scope: [
|
|
7316
|
+
"constant.numeric",
|
|
7317
|
+
"constant.language",
|
|
7318
|
+
"constant.other.placeholder",
|
|
7319
|
+
"constant.character.format.placeholder",
|
|
7320
|
+
"variable.language.this",
|
|
7321
|
+
"variable.other.object",
|
|
7322
|
+
"variable.other.class",
|
|
7323
|
+
"variable.other.constant",
|
|
7324
|
+
"meta.property-name",
|
|
7325
|
+
"meta.property-value",
|
|
7326
|
+
"support"
|
|
7327
|
+
],
|
|
7328
|
+
settings: { foreground: variable("token-constant") }
|
|
7329
|
+
},
|
|
7330
|
+
{
|
|
7331
|
+
scope: [
|
|
7332
|
+
"keyword",
|
|
7333
|
+
"storage.modifier",
|
|
7334
|
+
"storage.type",
|
|
7335
|
+
"storage.control.clojure",
|
|
7336
|
+
"entity.name.function.clojure",
|
|
7337
|
+
"entity.name.tag.yaml",
|
|
7338
|
+
"support.function.node",
|
|
7339
|
+
"support.type.property-name.json",
|
|
7340
|
+
"punctuation.separator.key-value",
|
|
7341
|
+
"punctuation.definition.template-expression"
|
|
7342
|
+
],
|
|
7343
|
+
settings: { foreground: variable("token-keyword") }
|
|
7344
|
+
},
|
|
7345
|
+
{
|
|
7346
|
+
scope: "variable.parameter.function",
|
|
7347
|
+
settings: { foreground: variable("token-parameter") }
|
|
7348
|
+
},
|
|
7349
|
+
{
|
|
7350
|
+
scope: [
|
|
7351
|
+
"support.function",
|
|
7352
|
+
"entity.name.type",
|
|
7353
|
+
"entity.other.inherited-class",
|
|
7354
|
+
"meta.function-call",
|
|
7355
|
+
"meta.instance.constructor",
|
|
7356
|
+
"entity.other.attribute-name",
|
|
7357
|
+
"entity.name.function",
|
|
7358
|
+
"constant.keyword.clojure"
|
|
7359
|
+
],
|
|
7360
|
+
settings: { foreground: variable("token-function") }
|
|
7361
|
+
},
|
|
7362
|
+
{
|
|
7363
|
+
scope: [
|
|
7364
|
+
"entity.name.tag",
|
|
7365
|
+
"string.quoted",
|
|
7366
|
+
"string.regexp",
|
|
7367
|
+
"string.interpolated",
|
|
7368
|
+
"string.template",
|
|
7369
|
+
"string.unquoted.plain.out.yaml",
|
|
7370
|
+
"keyword.other.template"
|
|
7371
|
+
],
|
|
7372
|
+
settings: { foreground: variable("token-string-expression") }
|
|
7373
|
+
},
|
|
7374
|
+
{
|
|
7375
|
+
scope: [
|
|
7376
|
+
"punctuation.definition.arguments",
|
|
7377
|
+
"punctuation.definition.dict",
|
|
7378
|
+
"punctuation.separator",
|
|
7379
|
+
"meta.function-call.arguments"
|
|
7380
|
+
],
|
|
7381
|
+
settings: { foreground: variable("token-punctuation") }
|
|
7382
|
+
},
|
|
7383
|
+
{
|
|
7384
|
+
scope: ["markup.underline.link", "punctuation.definition.metadata.markdown"],
|
|
7385
|
+
settings: { foreground: variable("token-link") }
|
|
7386
|
+
},
|
|
7387
|
+
{
|
|
7388
|
+
scope: ["beginning.punctuation.definition.list.markdown"],
|
|
7389
|
+
settings: { foreground: variable("token-string") }
|
|
7390
|
+
},
|
|
7391
|
+
{
|
|
7392
|
+
scope: [
|
|
7393
|
+
"punctuation.definition.string.begin.markdown",
|
|
7394
|
+
"punctuation.definition.string.end.markdown",
|
|
7395
|
+
"string.other.link.title.markdown",
|
|
7396
|
+
"string.other.link.description.markdown"
|
|
7397
|
+
],
|
|
7398
|
+
settings: { foreground: variable("token-keyword") }
|
|
7399
|
+
},
|
|
7400
|
+
{
|
|
7401
|
+
scope: [
|
|
7402
|
+
"markup.inserted",
|
|
7403
|
+
"meta.diff.header.to-file",
|
|
7404
|
+
"punctuation.definition.inserted"
|
|
7405
|
+
],
|
|
7406
|
+
settings: { foreground: variable("token-inserted") }
|
|
7407
|
+
},
|
|
7408
|
+
{
|
|
7409
|
+
scope: [
|
|
7410
|
+
"markup.deleted",
|
|
7411
|
+
"meta.diff.header.from-file",
|
|
7412
|
+
"punctuation.definition.deleted"
|
|
7413
|
+
],
|
|
7414
|
+
settings: { foreground: variable("token-deleted") }
|
|
7415
|
+
},
|
|
7416
|
+
{
|
|
7417
|
+
scope: ["markup.changed", "punctuation.definition.changed"],
|
|
7418
|
+
settings: { foreground: variable("token-changed") }
|
|
7419
|
+
}
|
|
7420
|
+
]
|
|
7421
|
+
};
|
|
7422
|
+
if (!fontStyle) theme.tokenColors = theme.tokenColors?.map((tokenColor) => {
|
|
7423
|
+
if (tokenColor.settings?.fontStyle) delete tokenColor.settings.fontStyle;
|
|
7424
|
+
return tokenColor;
|
|
7425
|
+
});
|
|
7426
|
+
return theme;
|
|
7427
|
+
}
|
|
7370
7428
|
//#endregion
|
|
7371
7429
|
//#region node_modules/.pnpm/shiki@3.23.0/node_modules/shiki/dist/langs.mjs
|
|
7372
7430
|
var bundledLanguagesInfo = [
|
|
@@ -12488,6 +12546,136 @@ function createJavaScriptRegexEngine(options = {}) {
|
|
|
12488
12546
|
};
|
|
12489
12547
|
}
|
|
12490
12548
|
//#endregion
|
|
12549
|
+
//#region node_modules/.pnpm/@pierre+diffs@1.1.20_react-dom@19.2.5_react@19.2.5__react@19.2.5/node_modules/@pierre/diffs/dist/react/constants.js
|
|
12550
|
+
var import_jsx_runtime = require_jsx_runtime();
|
|
12551
|
+
var GutterUtilitySlotStyles = {
|
|
12552
|
+
position: "absolute",
|
|
12553
|
+
top: 0,
|
|
12554
|
+
bottom: 0,
|
|
12555
|
+
textAlign: "center"
|
|
12556
|
+
};
|
|
12557
|
+
var MergeConflictSlotStyles = { display: "contents" };
|
|
12558
|
+
function noopRender() {
|
|
12559
|
+
return null;
|
|
12560
|
+
}
|
|
12561
|
+
//#endregion
|
|
12562
|
+
//#region node_modules/.pnpm/@pierre+diffs@1.1.20_react-dom@19.2.5_react@19.2.5__react@19.2.5/node_modules/@pierre/diffs/dist/constants.js
|
|
12563
|
+
var DIFFS_TAG_NAME = "diffs-container";
|
|
12564
|
+
var COMMIT_METADATA_SPLIT = /(?=^From [a-f0-9]+ .+$)/m;
|
|
12565
|
+
var GIT_DIFF_FILE_BREAK_REGEX = /(?=^diff --git)/gm;
|
|
12566
|
+
var UNIFIED_DIFF_FILE_BREAK_REGEX = /(?=^---\s+\S)/gm;
|
|
12567
|
+
var FILE_CONTEXT_BLOB = /(?=^@@ )/gm;
|
|
12568
|
+
var HUNK_HEADER = /^@@ -(\d+)(?:,(\d+))? \+(\d+)(?:,(\d+))? @@(?: (.*))?/m;
|
|
12569
|
+
var SPLIT_WITH_NEWLINES = /(?<=\n)/;
|
|
12570
|
+
var FILENAME_HEADER_REGEX = /^(---|\+\+\+)\s+([^\t\r\n]+)/;
|
|
12571
|
+
var FILENAME_HEADER_REGEX_GIT = /^(---|\+\+\+)\s+[ab]\/([^\t\r\n]+)/;
|
|
12572
|
+
var ALTERNATE_FILE_NAMES_GIT = /^diff --git (?:"a\/(.+?)"|a\/(.+?)) (?:"b\/(.+?)"|b\/(.+?))$/;
|
|
12573
|
+
var INDEX_LINE_METADATA = /^index ([0-9a-f]+)\.\.([0-9a-f]+)(?: (\d+))?$/i;
|
|
12574
|
+
var HEADER_PREFIX_SLOT_ID = "header-prefix";
|
|
12575
|
+
var HEADER_METADATA_SLOT_ID = "header-metadata";
|
|
12576
|
+
var CUSTOM_HEADER_SLOT_ID = "header-custom";
|
|
12577
|
+
var DEFAULT_THEMES = {
|
|
12578
|
+
dark: "pierre-dark",
|
|
12579
|
+
light: "pierre-light"
|
|
12580
|
+
};
|
|
12581
|
+
var THEME_CSS_ATTRIBUTE = "data-theme-css";
|
|
12582
|
+
var UNSAFE_CSS_ATTRIBUTE = "data-unsafe-css";
|
|
12583
|
+
var DEFAULT_VIRTUAL_FILE_METRICS = {
|
|
12584
|
+
hunkLineCount: 50,
|
|
12585
|
+
lineHeight: 20,
|
|
12586
|
+
diffHeaderHeight: 44,
|
|
12587
|
+
hunkSeparatorHeight: 32,
|
|
12588
|
+
fileGap: 8
|
|
12589
|
+
};
|
|
12590
|
+
var DEFAULT_EXPANDED_REGION = Object.freeze({
|
|
12591
|
+
fromStart: 0,
|
|
12592
|
+
fromEnd: 0
|
|
12593
|
+
});
|
|
12594
|
+
var DEFAULT_RENDER_RANGE = {
|
|
12595
|
+
startingLine: 0,
|
|
12596
|
+
totalLines: Infinity,
|
|
12597
|
+
bufferBefore: 0,
|
|
12598
|
+
bufferAfter: 0
|
|
12599
|
+
};
|
|
12600
|
+
var EMPTY_RENDER_RANGE = {
|
|
12601
|
+
startingLine: 0,
|
|
12602
|
+
totalLines: 0,
|
|
12603
|
+
bufferBefore: 0,
|
|
12604
|
+
bufferAfter: 0
|
|
12605
|
+
};
|
|
12606
|
+
//#endregion
|
|
12607
|
+
//#region node_modules/.pnpm/@pierre+diffs@1.1.20_react-dom@19.2.5_react@19.2.5__react@19.2.5/node_modules/@pierre/diffs/dist/utils/getLineAnnotationName.js
|
|
12608
|
+
function getLineAnnotationName(annotation) {
|
|
12609
|
+
return `annotation-${"side" in annotation ? `${annotation.side}-` : ""}${annotation.lineNumber}`;
|
|
12610
|
+
}
|
|
12611
|
+
//#endregion
|
|
12612
|
+
//#region node_modules/.pnpm/@pierre+diffs@1.1.20_react-dom@19.2.5_react@19.2.5__react@19.2.5/node_modules/@pierre/diffs/dist/react/utils/templateRender.js
|
|
12613
|
+
function templateRender(children, __html) {
|
|
12614
|
+
if (typeof window === "undefined" && __html != null) return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)("template", {
|
|
12615
|
+
shadowrootmode: "open",
|
|
12616
|
+
dangerouslySetInnerHTML: { __html }
|
|
12617
|
+
}), children] });
|
|
12618
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_jsx_runtime.Fragment, { children });
|
|
12619
|
+
}
|
|
12620
|
+
//#endregion
|
|
12621
|
+
//#region node_modules/.pnpm/@pierre+diffs@1.1.20_react-dom@19.2.5_react@19.2.5__react@19.2.5/node_modules/@pierre/diffs/dist/react/Virtualizer.js
|
|
12622
|
+
var import_react = /* @__PURE__ */ __toESM(require_react(), 1);
|
|
12623
|
+
var VirtualizerContext = (0, import_react.createContext)(void 0);
|
|
12624
|
+
function useVirtualizer() {
|
|
12625
|
+
return (0, import_react.useContext)(VirtualizerContext);
|
|
12626
|
+
}
|
|
12627
|
+
//#endregion
|
|
12628
|
+
//#region node_modules/.pnpm/@pierre+diffs@1.1.20_react-dom@19.2.5_react@19.2.5__react@19.2.5/node_modules/@pierre/diffs/dist/highlighter/themes/constants.js
|
|
12629
|
+
var ResolvedThemes = /* @__PURE__ */ new Map();
|
|
12630
|
+
var ResolvingThemes = /* @__PURE__ */ new Map();
|
|
12631
|
+
var RegisteredCustomThemes = /* @__PURE__ */ new Map();
|
|
12632
|
+
var AttachedThemes = /* @__PURE__ */ new Set();
|
|
12633
|
+
//#endregion
|
|
12634
|
+
//#region node_modules/.pnpm/@pierre+diffs@1.1.20_react-dom@19.2.5_react@19.2.5__react@19.2.5/node_modules/@pierre/diffs/dist/highlighter/themes/attachResolvedThemes.js
|
|
12635
|
+
function attachResolvedThemes(themes, highlighter) {
|
|
12636
|
+
themes = Array.isArray(themes) ? themes : [themes];
|
|
12637
|
+
for (let themeRef of themes) {
|
|
12638
|
+
let resolvedTheme;
|
|
12639
|
+
if (typeof themeRef === "string") {
|
|
12640
|
+
resolvedTheme = ResolvedThemes.get(themeRef);
|
|
12641
|
+
if (resolvedTheme == null) throw new Error(`loadResolvedThemes: ${themeRef} is not resolved, you must resolve it before calling loadResolvedThemes`);
|
|
12642
|
+
} else {
|
|
12643
|
+
resolvedTheme = themeRef;
|
|
12644
|
+
themeRef = themeRef.name;
|
|
12645
|
+
if (!ResolvedThemes.has(themeRef)) ResolvedThemes.set(themeRef, resolvedTheme);
|
|
12646
|
+
}
|
|
12647
|
+
if (AttachedThemes.has(themeRef)) continue;
|
|
12648
|
+
AttachedThemes.add(themeRef);
|
|
12649
|
+
highlighter.loadThemeSync(resolvedTheme);
|
|
12650
|
+
}
|
|
12651
|
+
}
|
|
12652
|
+
//#endregion
|
|
12653
|
+
//#region node_modules/.pnpm/@pierre+diffs@1.1.20_react-dom@19.2.5_react@19.2.5__react@19.2.5/node_modules/@pierre/diffs/dist/highlighter/languages/constants.js
|
|
12654
|
+
var ResolvedLanguages = /* @__PURE__ */ new Map();
|
|
12655
|
+
var ResolvingLanguages = /* @__PURE__ */ new Map();
|
|
12656
|
+
var RegisteredCustomLanguages = /* @__PURE__ */ new Map();
|
|
12657
|
+
var AttachedLanguages = /* @__PURE__ */ new Set();
|
|
12658
|
+
//#endregion
|
|
12659
|
+
//#region node_modules/.pnpm/@pierre+diffs@1.1.20_react-dom@19.2.5_react@19.2.5__react@19.2.5/node_modules/@pierre/diffs/dist/highlighter/languages/attachResolvedLanguages.js
|
|
12660
|
+
function attachResolvedLanguages(resolvedLanguages, highlighter) {
|
|
12661
|
+
resolvedLanguages = Array.isArray(resolvedLanguages) ? resolvedLanguages : [resolvedLanguages];
|
|
12662
|
+
for (const resolvedLang of resolvedLanguages) {
|
|
12663
|
+
if (AttachedLanguages.has(resolvedLang.name)) continue;
|
|
12664
|
+
let lang = ResolvedLanguages.get(resolvedLang.name);
|
|
12665
|
+
if (lang == null) {
|
|
12666
|
+
lang = resolvedLang;
|
|
12667
|
+
ResolvedLanguages.set(resolvedLang.name, lang);
|
|
12668
|
+
}
|
|
12669
|
+
AttachedLanguages.add(lang.name);
|
|
12670
|
+
highlighter.loadLanguageSync(lang.data);
|
|
12671
|
+
}
|
|
12672
|
+
}
|
|
12673
|
+
//#endregion
|
|
12674
|
+
//#region node_modules/.pnpm/@pierre+diffs@1.1.20_react-dom@19.2.5_react@19.2.5__react@19.2.5/node_modules/@pierre/diffs/dist/utils/isWorkerContext.js
|
|
12675
|
+
function isWorkerContext() {
|
|
12676
|
+
return typeof WorkerGlobalScope !== "undefined" && typeof self !== "undefined" && self instanceof WorkerGlobalScope;
|
|
12677
|
+
}
|
|
12678
|
+
//#endregion
|
|
12491
12679
|
//#region node_modules/.pnpm/@pierre+diffs@1.1.20_react-dom@19.2.5_react@19.2.5__react@19.2.5/node_modules/@pierre/diffs/dist/highlighter/languages/resolveLanguage.js
|
|
12492
12680
|
async function resolveLanguage(lang) {
|
|
12493
12681
|
if (isWorkerContext()) throw new Error(`resolveLanguage("${lang}") cannot be called from a worker context. Languages must be pre-resolved on the main thread and passed to the worker via the resolvedLanguages parameter.`);
|
|
@@ -17535,7 +17723,7 @@ function parseDiffFromFile(oldFile, newFile, options, throwOnError = false) {
|
|
|
17535
17723
|
//#endregion
|
|
17536
17724
|
//#region node_modules/.pnpm/@pierre+diffs@1.1.20_react-dom@19.2.5_react@19.2.5__react@19.2.5/node_modules/@pierre/diffs/dist/components/FileDiff.js
|
|
17537
17725
|
var instanceId$1 = -1;
|
|
17538
|
-
var FileDiff
|
|
17726
|
+
var FileDiff = class {
|
|
17539
17727
|
static LoadedCustomComponent = true;
|
|
17540
17728
|
__id = `file-diff:${++instanceId$1}`;
|
|
17541
17729
|
fileContainer;
|
|
@@ -18659,7 +18847,7 @@ function getHunkSeparatorHeight(type, customHeight) {
|
|
|
18659
18847
|
//#endregion
|
|
18660
18848
|
//#region node_modules/.pnpm/@pierre+diffs@1.1.20_react-dom@19.2.5_react@19.2.5__react@19.2.5/node_modules/@pierre/diffs/dist/components/VirtualizedFileDiff.js
|
|
18661
18849
|
var instanceId = -1;
|
|
18662
|
-
var VirtualizedFileDiff = class extends FileDiff
|
|
18850
|
+
var VirtualizedFileDiff = class extends FileDiff {
|
|
18663
18851
|
__id = `little-virtualized-file-diff:${++instanceId}`;
|
|
18664
18852
|
top;
|
|
18665
18853
|
height = 0;
|
|
@@ -18985,7 +19173,7 @@ function useFileDiffInstance({ fileDiff, options, lineAnnotations, selectedLines
|
|
|
18985
19173
|
hasGutterRenderUtility,
|
|
18986
19174
|
options
|
|
18987
19175
|
}), simpleVirtualizer, metrics, !disableWorkerPool ? poolManager : void 0, true);
|
|
18988
|
-
else instanceRef.current = new FileDiff
|
|
19176
|
+
else instanceRef.current = new FileDiff(mergeFileDiffOptions({
|
|
18989
19177
|
hasCustomHeader,
|
|
18990
19178
|
hasGutterRenderUtility,
|
|
18991
19179
|
options
|
|
@@ -19035,37 +19223,6 @@ function mergeFileDiffOptions({ options, hasCustomHeader, hasGutterRenderUtility
|
|
|
19035
19223
|
return options;
|
|
19036
19224
|
}
|
|
19037
19225
|
//#endregion
|
|
19038
|
-
//#region node_modules/.pnpm/@pierre+diffs@1.1.20_react-dom@19.2.5_react@19.2.5__react@19.2.5/node_modules/@pierre/diffs/dist/react/FileDiff.js
|
|
19039
|
-
function FileDiff({ fileDiff, options, metrics, lineAnnotations, selectedLines, className, style, prerenderedHTML, renderAnnotation, renderCustomHeader, renderHeaderPrefix, renderHeaderMetadata, renderGutterUtility, renderHoverUtility, disableWorkerPool = false }) {
|
|
19040
|
-
const { ref, getHoveredLine } = useFileDiffInstance({
|
|
19041
|
-
fileDiff,
|
|
19042
|
-
options,
|
|
19043
|
-
metrics,
|
|
19044
|
-
lineAnnotations,
|
|
19045
|
-
selectedLines,
|
|
19046
|
-
prerenderedHTML,
|
|
19047
|
-
hasGutterRenderUtility: renderGutterUtility != null || renderHoverUtility != null,
|
|
19048
|
-
hasCustomHeader: renderCustomHeader != null,
|
|
19049
|
-
disableWorkerPool
|
|
19050
|
-
});
|
|
19051
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(DIFFS_TAG_NAME, {
|
|
19052
|
-
ref,
|
|
19053
|
-
className,
|
|
19054
|
-
style,
|
|
19055
|
-
children: templateRender(renderDiffChildren({
|
|
19056
|
-
fileDiff,
|
|
19057
|
-
renderCustomHeader,
|
|
19058
|
-
renderHeaderPrefix,
|
|
19059
|
-
renderHeaderMetadata,
|
|
19060
|
-
renderAnnotation,
|
|
19061
|
-
renderGutterUtility,
|
|
19062
|
-
lineAnnotations,
|
|
19063
|
-
renderHoverUtility,
|
|
19064
|
-
getHoveredLine
|
|
19065
|
-
}), prerenderedHTML)
|
|
19066
|
-
});
|
|
19067
|
-
}
|
|
19068
|
-
//#endregion
|
|
19069
19226
|
//#region node_modules/.pnpm/@pierre+diffs@1.1.20_react-dom@19.2.5_react@19.2.5__react@19.2.5/node_modules/@pierre/diffs/dist/react/MultiFileDiff.js
|
|
19070
19227
|
function MultiFileDiff({ oldFile, newFile, options, metrics, lineAnnotations, selectedLines, className, style, prerenderedHTML, renderAnnotation, renderCustomHeader, renderHeaderPrefix, renderHeaderMetadata, renderGutterUtility, renderHoverUtility, disableWorkerPool = false }) {
|
|
19071
19228
|
const fileDiff = (0, import_react.useMemo)(() => {
|
|
@@ -19154,4 +19311,4 @@ function usePatch(patch) {
|
|
|
19154
19311
|
return (0, import_react.useMemo)(() => getSingularPatch(patch), [patch]);
|
|
19155
19312
|
}
|
|
19156
19313
|
//#endregion
|
|
19157
|
-
export { htmlVoidElements as _,
|
|
19314
|
+
export { htmlVoidElements as C, normalize as S, zwitch as _, registerCustomTheme as a, find as b, bundledLanguages as c, whitespace as d, parse as f, ccount as g, stringify$2 as h, parsePatchFiles as i, bundledLanguagesAlias as l, parse$1 as m, MultiFileDiff as n, RegisteredCustomThemes as o, stringify$1 as p, FileDiff as r, codeToHtml as s, PatchDiff as t, createCssVariablesTheme as u, html$2 as v, hastToReact as x, svg as y };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { S as normalize, b as find, f as parse, m as parse$1, v as html, y as svg } from "./@pierre/diffs+[...].mjs";
|
|
2
2
|
import "./devlop.mjs";
|
|
3
3
|
//#region node_modules/.pnpm/hast-util-parse-selector@4.0.0/node_modules/hast-util-parse-selector/lib/index.js
|
|
4
4
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { C as htmlVoidElements, _ as zwitch, b as find, h as stringify, p as stringify$1, v as html, y as svg } from "./@pierre/diffs+[...].mjs";
|
|
2
2
|
import "./devlop.mjs";
|
|
3
3
|
import { t as esm_default } from "./ungap__structured-clone.mjs";
|
|
4
4
|
import { n as webNamespaces, t as fromParse5 } from "./hast-util-from-parse5+[...].mjs";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { i as __toESM, t as __commonJSMin } from "../_runtime.mjs";
|
|
2
|
-
import {
|
|
2
|
+
import { b as find, d as whitespace, h as stringify, p as stringify$1, v as html, x as hastToReact, y as svg } from "./@pierre/diffs+[...].mjs";
|
|
3
3
|
import "./devlop.mjs";
|
|
4
4
|
import { t as name } from "./estree-util-is-identifier-name.mjs";
|
|
5
5
|
import { o as pointStart } from "./hast-util-raw+[...].mjs";
|
|
@@ -375,6 +375,32 @@ var GitBranch = createLucideIcon("git-branch", [
|
|
|
375
375
|
key: "fqmcym"
|
|
376
376
|
}]
|
|
377
377
|
]);
|
|
378
|
+
var GitPullRequestArrow = createLucideIcon("git-pull-request-arrow", [
|
|
379
|
+
["circle", {
|
|
380
|
+
cx: "5",
|
|
381
|
+
cy: "6",
|
|
382
|
+
r: "3",
|
|
383
|
+
key: "1qnov2"
|
|
384
|
+
}],
|
|
385
|
+
["path", {
|
|
386
|
+
d: "M5 9v12",
|
|
387
|
+
key: "ih889a"
|
|
388
|
+
}],
|
|
389
|
+
["circle", {
|
|
390
|
+
cx: "19",
|
|
391
|
+
cy: "18",
|
|
392
|
+
r: "3",
|
|
393
|
+
key: "1qljk2"
|
|
394
|
+
}],
|
|
395
|
+
["path", {
|
|
396
|
+
d: "m15 9-3-3 3-3",
|
|
397
|
+
key: "1lwv8l"
|
|
398
|
+
}],
|
|
399
|
+
["path", {
|
|
400
|
+
d: "M12 6h5a2 2 0 0 1 2 2v7",
|
|
401
|
+
key: "1yj91y"
|
|
402
|
+
}]
|
|
403
|
+
]);
|
|
378
404
|
var ImagePlus = createLucideIcon("image-plus", [
|
|
379
405
|
["path", {
|
|
380
406
|
d: "M16 5h6",
|
|
@@ -714,4 +740,4 @@ var X = createLucideIcon("x", [["path", {
|
|
|
714
740
|
key: "d8bk6v"
|
|
715
741
|
}]]);
|
|
716
742
|
//#endregion
|
|
717
|
-
export {
|
|
743
|
+
export { ExternalLink as A, ChevronRight as B, ImagePlus as C, Folder as D, GitCommitHorizontal as E, Command as F, ArrowUpRight as G, Check as H, CircleCheck as I, ArrowDown as J, ArrowRight as K, ChevronsUpDown as L, EllipsisVertical as M, Download as N, FolderPlus as O, Copy as P, ChevronsDownUp as R, Info as S, GitBranch as T, ArrowUp as U, ChevronDown as V, ArrowUpToLine as W, ArrowBigUp as Y, OctagonX as _, TriangleAlert as a, ListStart as b, SquarePen as c, Plus as d, PanelRight as f, Option as g, PanelLeftClose as h, Undo2 as i, Ellipsis as j, FileDiff as k, Settings2 as l, PanelLeftOpen as m, WandSparkles as n, Tag as o, PanelLeft as p, ArrowLeft as q, Upload as r, Square as s, X as t, Search as u, Minimize2 as v, GitPullRequestArrow as w, ListEnd as x, Maximize2 as y, ChevronUp as z };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { g as ccount } from "./@pierre/diffs+[...].mjs";
|
|
2
2
|
import "./devlop.mjs";
|
|
3
3
|
import { i as convert, n as visit } from "./hast-util-raw+[...].mjs";
|
|
4
4
|
import { _ as toString, f as unicodePunctuation, i as classifyCharacter, m as normalizeIdentifier, p as unicodeWhitespace } from "./mdast-util-from-markdown+[...].mjs";
|