@antdv-next/x 1.1.2-beta.3 → 1.1.2-beta.5
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/code-highlighter/CodeHighlighter.d.ts +3 -3
- package/dist/code-highlighter/CodeHighlighter.js +9 -1
- package/dist/code-highlighter/index.d.ts +1 -1
- package/dist/code-highlighter/interface.d.ts +29 -1
- package/dist/index.umd.js +20 -28
- package/dist/mermaid/Mermaid.d.ts +7 -6
- package/dist/mermaid/Mermaid.js +2 -22
- package/dist/mermaid/index.d.ts +1 -1
- package/dist/package.js +1 -1
- package/dist/sender/hooks/use-speech.d.ts +1 -1
- package/dist/sender/hooks/use-speech.js +8 -5
- package/es/antdv-next-x.esm.js +88 -93
- package/es/{chunk-GLR3WWYH-BvazRgdo.js → chunk-GLR3WWYH-BBFkZWLy.js} +1 -1
- package/es/{chunk-NQ4KR5QH-DGshodQv.js → chunk-NQ4KR5QH-I7cFzfZu.js} +1 -1
- package/es/{chunk-WL4C6EOR-C-d8WPS7.js → chunk-WL4C6EOR-B6HgoDzQ.js} +1 -1
- package/es/{classDiagram-VBA2DB6C-DWTAs0Zm.js → classDiagram-VBA2DB6C-CqK9jdgh.js} +2 -2
- package/es/{classDiagram-v2-RAHNMMFH-CoxCdmrt.js → classDiagram-v2-RAHNMMFH-ZDIng8Gz.js} +2 -2
- package/es/{cose-bilkent-S5V4N54A-CnrS2OC1.js → cose-bilkent-S5V4N54A-DS-oTq56.js} +1 -1
- package/es/{erDiagram-INFDFZHY-BA3m-v87.js → erDiagram-INFDFZHY-TwqnRnWa.js} +1 -1
- package/es/{flowDiagram-PKNHOUZH-BCq6k3kr.js → flowDiagram-PKNHOUZH-DOIW1Sy9.js} +1 -1
- package/es/{mermaid.core-Db1VE3-f.js → mermaid.core-Cdr_0as6.js} +11 -11
- package/es/{mindmap-definition-YRQLILUH-CYeqnCde.js → mindmap-definition-YRQLILUH-CtrmThyY.js} +1 -1
- package/es/{requirementDiagram-Z7DCOOCP-Cb_Ygnfe.js → requirementDiagram-Z7DCOOCP-DwsKf6TC.js} +1 -1
- package/es/{stateDiagram-RAJIS63D-boG6DyfW.js → stateDiagram-RAJIS63D-Bjd_66hy.js} +2 -2
- package/es/{stateDiagram-v2-FVOUBMTO-DHCajhrN.js → stateDiagram-v2-FVOUBMTO-BjIcGAyh.js} +2 -2
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { CSSProperties, PropType, StyleValue } from 'vue';
|
|
2
|
-
import { CodeHighlighterProps, CodeHighlighterSemanticType } from './interface';
|
|
1
|
+
import { CSSProperties, PropType, SlotsType, StyleValue } from 'vue';
|
|
2
|
+
import { CodeHighlighterProps, CodeHighlighterSemanticType, CodeHighlighterSlots } from './interface';
|
|
3
3
|
export declare const XCodeHighlighter: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
4
4
|
prefixCls: {
|
|
5
5
|
type: StringConstructor;
|
|
@@ -139,5 +139,5 @@ export declare const XCodeHighlighter: import('vue').DefineComponent<import('vue
|
|
|
139
139
|
showThemeToggle: boolean;
|
|
140
140
|
showCopyButton: boolean;
|
|
141
141
|
startLineNumber: number;
|
|
142
|
-
},
|
|
142
|
+
}, SlotsType<CodeHighlighterSlots>, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
143
143
|
export default XCodeHighlighter;
|
|
@@ -79,7 +79,8 @@ var XCodeHighlighter = /* @__PURE__ */ defineComponent({
|
|
|
79
79
|
}
|
|
80
80
|
},
|
|
81
81
|
emits: ["update:theme"],
|
|
82
|
-
|
|
82
|
+
slots: Object,
|
|
83
|
+
setup(props, { emit, expose, slots }) {
|
|
83
84
|
const attrs = useAttrs();
|
|
84
85
|
const contextConfig = useXComponentConfig("codeHighlighter");
|
|
85
86
|
const rootRef = ref();
|
|
@@ -140,6 +141,13 @@ var XCodeHighlighter = /* @__PURE__ */ defineComponent({
|
|
|
140
141
|
];
|
|
141
142
|
};
|
|
142
143
|
const renderHeader = () => {
|
|
144
|
+
if (slots.header) return slots.header({
|
|
145
|
+
language: props.language || "text",
|
|
146
|
+
theme: props.theme,
|
|
147
|
+
copied: copied.value,
|
|
148
|
+
copy: handleCopy,
|
|
149
|
+
toggleTheme
|
|
150
|
+
});
|
|
143
151
|
if (!(props.showLanguage || props.showThemeToggle || props.showCopyButton)) return null;
|
|
144
152
|
return createVNode("div", {
|
|
145
153
|
"class": getSlotClassName("header"),
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { default as CodeHighlighter } from './CodeHighlighter';
|
|
2
|
-
export type { CodeHighlighterProps, CodeHighlighterRef, CodeHighlighterSemanticType, } from './interface';
|
|
2
|
+
export type { CodeHighlighterHeaderSlotScope, CodeHighlighterProps, CodeHighlighterRef, CodeHighlighterSemanticType, CodeHighlighterSlots, } from './interface';
|
|
3
3
|
export default CodeHighlighter;
|
|
@@ -1,8 +1,36 @@
|
|
|
1
|
-
import { CSSProperties, HTMLAttributes } from 'vue';
|
|
1
|
+
import { CSSProperties, HTMLAttributes, VNodeChild } from 'vue';
|
|
2
2
|
export type CodeHighlighterSemanticType = "root" | "header" | "headerTitle" | "code" | "content";
|
|
3
3
|
export interface CodeHighlighterRef {
|
|
4
4
|
nativeElement: HTMLDivElement;
|
|
5
5
|
}
|
|
6
|
+
export interface CodeHighlighterHeaderSlotScope {
|
|
7
|
+
/**
|
|
8
|
+
* 当前代码语言
|
|
9
|
+
*/
|
|
10
|
+
language: string;
|
|
11
|
+
/**
|
|
12
|
+
* 当前主题模式
|
|
13
|
+
*/
|
|
14
|
+
theme: "light" | "dark";
|
|
15
|
+
/**
|
|
16
|
+
* 是否处于"已复制"状态
|
|
17
|
+
*/
|
|
18
|
+
copied: boolean;
|
|
19
|
+
/**
|
|
20
|
+
* 复制代码内容
|
|
21
|
+
*/
|
|
22
|
+
copy: () => void;
|
|
23
|
+
/**
|
|
24
|
+
* 切换主题模式
|
|
25
|
+
*/
|
|
26
|
+
toggleTheme: () => void;
|
|
27
|
+
}
|
|
28
|
+
export interface CodeHighlighterSlots {
|
|
29
|
+
/**
|
|
30
|
+
* 自定义头部区,作用域参数提供语言、主题及复制/主题切换能力
|
|
31
|
+
*/
|
|
32
|
+
header?: (scope: CodeHighlighterHeaderSlotScope) => VNodeChild;
|
|
33
|
+
}
|
|
6
34
|
export interface CodeHighlighterProps extends Omit<HTMLAttributes, "content" | "onCopy"> {
|
|
7
35
|
prefixCls?: string;
|
|
8
36
|
/**
|
package/dist/index.umd.js
CHANGED
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
shiki_dist_themes_vitesse_dark_mjs = __toESM(shiki_dist_themes_vitesse_dark_mjs);
|
|
49
49
|
shiki_dist_themes_vitesse_light_mjs = __toESM(shiki_dist_themes_vitesse_light_mjs);
|
|
50
50
|
//#region package.json
|
|
51
|
-
var version = "1.1.2-beta.
|
|
51
|
+
var version = "1.1.2-beta.5";
|
|
52
52
|
//#endregion
|
|
53
53
|
//#region components/x-provider/context.ts
|
|
54
54
|
var XProviderContextKey = Symbol("antdv-next-x-provider-context");
|
|
@@ -5012,7 +5012,8 @@
|
|
|
5012
5012
|
}
|
|
5013
5013
|
},
|
|
5014
5014
|
emits: ["update:theme"],
|
|
5015
|
-
|
|
5015
|
+
slots: Object,
|
|
5016
|
+
setup(props, { emit, expose, slots }) {
|
|
5016
5017
|
const attrs = (0, vue.useAttrs)();
|
|
5017
5018
|
const contextConfig = useXComponentConfig("codeHighlighter");
|
|
5018
5019
|
const rootRef = (0, vue.ref)();
|
|
@@ -5073,6 +5074,13 @@
|
|
|
5073
5074
|
];
|
|
5074
5075
|
};
|
|
5075
5076
|
const renderHeader = () => {
|
|
5077
|
+
if (slots.header) return slots.header({
|
|
5078
|
+
language: props.language || "text",
|
|
5079
|
+
theme: props.theme,
|
|
5080
|
+
copied: copied.value,
|
|
5081
|
+
copy: handleCopy,
|
|
5082
|
+
toggleTheme
|
|
5083
|
+
});
|
|
5076
5084
|
if (!(props.showLanguage || props.showThemeToggle || props.showCopyButton)) return null;
|
|
5077
5085
|
return (0, vue.createVNode)("div", {
|
|
5078
5086
|
"class": getSlotClassName("header"),
|
|
@@ -7201,6 +7209,7 @@
|
|
|
7201
7209
|
}
|
|
7202
7210
|
},
|
|
7203
7211
|
emits: ["update:renderType", "renderTypeChange"],
|
|
7212
|
+
slots: Object,
|
|
7204
7213
|
setup(props, { emit, expose, slots }) {
|
|
7205
7214
|
const attrs = (0, vue.useAttrs)();
|
|
7206
7215
|
const configCtx = (0, antdv_next_config_provider_context.useConfig)();
|
|
@@ -7244,26 +7253,6 @@
|
|
|
7244
7253
|
const { class: _class, style: _style, ...rest } = attrs;
|
|
7245
7254
|
return rest;
|
|
7246
7255
|
});
|
|
7247
|
-
const getNamedSlot = (name) => slots[name] ?? slots[name.replace(/[A-Z]/g, (s) => `-${s.toLowerCase()}`)];
|
|
7248
|
-
const resolvedCustomActions = (0, vue.computed)(() => mergedActions.value.customActions.map((item, index) => {
|
|
7249
|
-
const iconSlotInfo = {
|
|
7250
|
-
item,
|
|
7251
|
-
index,
|
|
7252
|
-
originNode: item.icon
|
|
7253
|
-
};
|
|
7254
|
-
const iconFromSlot = getNamedSlot("customActionIconRender")?.(iconSlotInfo);
|
|
7255
|
-
const actionSlotInfo = {
|
|
7256
|
-
item,
|
|
7257
|
-
index,
|
|
7258
|
-
originNode: item.actionRender !== void 0 ? typeof item.actionRender === "function" ? item.actionRender(item) : item.actionRender : void 0
|
|
7259
|
-
};
|
|
7260
|
-
const actionFromSlot = getNamedSlot("customActionRender")?.(actionSlotInfo);
|
|
7261
|
-
return {
|
|
7262
|
-
...item,
|
|
7263
|
-
icon: iconFromSlot !== void 0 && !isEmptyNode(iconFromSlot) ? iconFromSlot : item.icon,
|
|
7264
|
-
actionRender: actionFromSlot !== void 0 && !isEmptyNode(actionFromSlot) ? actionFromSlot : item.actionRender
|
|
7265
|
-
};
|
|
7266
|
-
}));
|
|
7267
7256
|
function applySvgTransform() {
|
|
7268
7257
|
if (mergedRenderType.value !== RenderType.Image) return;
|
|
7269
7258
|
const svgEl = graphRef.value?.querySelector("svg");
|
|
@@ -7391,7 +7380,7 @@
|
|
|
7391
7380
|
key: "copy",
|
|
7392
7381
|
actionRender: () => (0, vue.createVNode)(ActionsWithSub.Copy, { "text": props.content }, null)
|
|
7393
7382
|
});
|
|
7394
|
-
return [...items, ...
|
|
7383
|
+
return [...items, ...mergedActions.value.customActions];
|
|
7395
7384
|
});
|
|
7396
7385
|
function renderHeader() {
|
|
7397
7386
|
if (props.header === null) return null;
|
|
@@ -9163,6 +9152,7 @@
|
|
|
9163
9152
|
return window.SpeechRecognition || window.webkitSpeechRecognition || null;
|
|
9164
9153
|
};
|
|
9165
9154
|
const mergedAllowSpeech = (0, vue.computed)(() => !!(isControlled.value || getSpeechRecognition() && permissionState.value !== "denied"));
|
|
9155
|
+
const mergedRecording = (0, vue.computed)(() => isControlled.value ? !!speechConfig.value?.recording : recording.value);
|
|
9166
9156
|
const ensureRecognition = () => {
|
|
9167
9157
|
if (!mergedAllowSpeech.value || recognition) return;
|
|
9168
9158
|
const SpeechRecognitionCtor = getSpeechRecognition();
|
|
@@ -9183,15 +9173,17 @@
|
|
|
9183
9173
|
};
|
|
9184
9174
|
};
|
|
9185
9175
|
const triggerSpeech = (doForceBreak) => {
|
|
9186
|
-
|
|
9176
|
+
const currentRecording = mergedRecording.value;
|
|
9177
|
+
if (doForceBreak && !currentRecording) return;
|
|
9187
9178
|
forceBreak = doForceBreak;
|
|
9188
|
-
|
|
9189
|
-
|
|
9179
|
+
const config = speechConfig.value;
|
|
9180
|
+
if (typeof config?.recording === "boolean") {
|
|
9181
|
+
config.onRecordingChange(!config.recording);
|
|
9190
9182
|
return;
|
|
9191
9183
|
}
|
|
9192
9184
|
ensureRecognition();
|
|
9193
9185
|
if (!recognition) return;
|
|
9194
|
-
if (
|
|
9186
|
+
if (currentRecording) {
|
|
9195
9187
|
recognition.stop();
|
|
9196
9188
|
speechConfig.value?.onRecordingChange?.(false);
|
|
9197
9189
|
} else {
|
|
@@ -9202,7 +9194,7 @@
|
|
|
9202
9194
|
return [
|
|
9203
9195
|
mergedAllowSpeech,
|
|
9204
9196
|
triggerSpeech,
|
|
9205
|
-
|
|
9197
|
+
mergedRecording
|
|
9206
9198
|
];
|
|
9207
9199
|
}
|
|
9208
9200
|
//#endregion
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { MermaidConfig } from 'mermaid';
|
|
2
|
-
import { CSSProperties, HTMLAttributes, PropType, StyleValue, VNodeChild } from 'vue';
|
|
2
|
+
import { CSSProperties, HTMLAttributes, PropType, SlotsType, StyleValue, VNodeChild } from 'vue';
|
|
3
3
|
import { ItemType } from '../actions';
|
|
4
4
|
import { CodeHighlighterProps } from '../code-highlighter';
|
|
5
5
|
export type MermaidSemanticType = "root" | "header" | "graph" | "code";
|
|
@@ -28,10 +28,11 @@ export interface MermaidProps extends Omit<HTMLAttributes, "content" | "class" |
|
|
|
28
28
|
export interface MermaidRef {
|
|
29
29
|
nativeElement: HTMLDivElement;
|
|
30
30
|
}
|
|
31
|
-
export interface
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
31
|
+
export interface MermaidSlots {
|
|
32
|
+
/**
|
|
33
|
+
* 自定义头部区,优先级高于 `header` 属性
|
|
34
|
+
*/
|
|
35
|
+
header?: () => VNodeChild;
|
|
35
36
|
}
|
|
36
37
|
declare enum RenderType {
|
|
37
38
|
Code = "code",
|
|
@@ -159,5 +160,5 @@ declare const XMermaid: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
159
160
|
defaultRenderType: MermaidRenderType;
|
|
160
161
|
config: MermaidConfig;
|
|
161
162
|
codeHighlighterProps: Partial<Omit<CodeHighlighterProps, "content" | "language">> | undefined;
|
|
162
|
-
},
|
|
163
|
+
}, SlotsType<MermaidSlots>, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
163
164
|
export default XMermaid;
|
package/dist/mermaid/Mermaid.js
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import useXComponentConfig from "../_utils/hooks/use-x-component-config.js";
|
|
2
|
-
import { isEmptyNode } from "../_utils/vue.js";
|
|
3
2
|
import warning from "../_utils/warning.js";
|
|
4
3
|
import ActionsWithSub from "../actions/index.js";
|
|
5
4
|
import localeValues from "../locale/en_US.js";
|
|
@@ -126,6 +125,7 @@ var XMermaid = /* @__PURE__ */ defineComponent({
|
|
|
126
125
|
}
|
|
127
126
|
},
|
|
128
127
|
emits: ["update:renderType", "renderTypeChange"],
|
|
128
|
+
slots: Object,
|
|
129
129
|
setup(props, { emit, expose, slots }) {
|
|
130
130
|
const attrs = useAttrs();
|
|
131
131
|
const configCtx = useConfig();
|
|
@@ -169,26 +169,6 @@ var XMermaid = /* @__PURE__ */ defineComponent({
|
|
|
169
169
|
const { class: _class, style: _style, ...rest } = attrs;
|
|
170
170
|
return rest;
|
|
171
171
|
});
|
|
172
|
-
const getNamedSlot = (name) => slots[name] ?? slots[name.replace(/[A-Z]/g, (s) => `-${s.toLowerCase()}`)];
|
|
173
|
-
const resolvedCustomActions = computed(() => mergedActions.value.customActions.map((item, index) => {
|
|
174
|
-
const iconSlotInfo = {
|
|
175
|
-
item,
|
|
176
|
-
index,
|
|
177
|
-
originNode: item.icon
|
|
178
|
-
};
|
|
179
|
-
const iconFromSlot = getNamedSlot("customActionIconRender")?.(iconSlotInfo);
|
|
180
|
-
const actionSlotInfo = {
|
|
181
|
-
item,
|
|
182
|
-
index,
|
|
183
|
-
originNode: item.actionRender !== void 0 ? typeof item.actionRender === "function" ? item.actionRender(item) : item.actionRender : void 0
|
|
184
|
-
};
|
|
185
|
-
const actionFromSlot = getNamedSlot("customActionRender")?.(actionSlotInfo);
|
|
186
|
-
return {
|
|
187
|
-
...item,
|
|
188
|
-
icon: iconFromSlot !== void 0 && !isEmptyNode(iconFromSlot) ? iconFromSlot : item.icon,
|
|
189
|
-
actionRender: actionFromSlot !== void 0 && !isEmptyNode(actionFromSlot) ? actionFromSlot : item.actionRender
|
|
190
|
-
};
|
|
191
|
-
}));
|
|
192
172
|
function applySvgTransform() {
|
|
193
173
|
if (mergedRenderType.value !== RenderType.Image) return;
|
|
194
174
|
const svgEl = graphRef.value?.querySelector("svg");
|
|
@@ -316,7 +296,7 @@ var XMermaid = /* @__PURE__ */ defineComponent({
|
|
|
316
296
|
key: "copy",
|
|
317
297
|
actionRender: () => createVNode(ActionsWithSub.Copy, { "text": props.content }, null)
|
|
318
298
|
});
|
|
319
|
-
return [...items, ...
|
|
299
|
+
return [...items, ...mergedActions.value.customActions];
|
|
320
300
|
});
|
|
321
301
|
function renderHeader() {
|
|
322
302
|
if (props.header === null) return null;
|
package/dist/mermaid/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { default as Mermaid } from './Mermaid';
|
|
2
|
-
export type { MermaidActions,
|
|
2
|
+
export type { MermaidActions, MermaidProps, MermaidRef, MermaidRenderType, MermaidSemanticType, MermaidSlots, } from './Mermaid';
|
|
3
3
|
export default Mermaid;
|
package/dist/package.js
CHANGED
|
@@ -3,4 +3,4 @@ export type ControlledSpeechConfig = {
|
|
|
3
3
|
onRecordingChange: (recording: boolean) => void;
|
|
4
4
|
};
|
|
5
5
|
export type AllowSpeech = boolean | ControlledSpeechConfig;
|
|
6
|
-
export default function useSpeech(onSpeech: (transcript: string) => void, allowSpeech?: () => AllowSpeech | undefined): readonly [import('vue').ComputedRef<boolean>, (doForceBreak: boolean) => void, import('vue').
|
|
6
|
+
export default function useSpeech(onSpeech: (transcript: string) => void, allowSpeech?: () => AllowSpeech | undefined): readonly [import('vue').ComputedRef<boolean>, (doForceBreak: boolean) => void, import('vue').ComputedRef<boolean>];
|
|
@@ -32,6 +32,7 @@ function useSpeech(onSpeech, allowSpeech) {
|
|
|
32
32
|
return window.SpeechRecognition || window.webkitSpeechRecognition || null;
|
|
33
33
|
};
|
|
34
34
|
const mergedAllowSpeech = computed(() => !!(isControlled.value || getSpeechRecognition() && permissionState.value !== "denied"));
|
|
35
|
+
const mergedRecording = computed(() => isControlled.value ? !!speechConfig.value?.recording : recording.value);
|
|
35
36
|
const ensureRecognition = () => {
|
|
36
37
|
if (!mergedAllowSpeech.value || recognition) return;
|
|
37
38
|
const SpeechRecognitionCtor = getSpeechRecognition();
|
|
@@ -52,15 +53,17 @@ function useSpeech(onSpeech, allowSpeech) {
|
|
|
52
53
|
};
|
|
53
54
|
};
|
|
54
55
|
const triggerSpeech = (doForceBreak) => {
|
|
55
|
-
|
|
56
|
+
const currentRecording = mergedRecording.value;
|
|
57
|
+
if (doForceBreak && !currentRecording) return;
|
|
56
58
|
forceBreak = doForceBreak;
|
|
57
|
-
|
|
58
|
-
|
|
59
|
+
const config = speechConfig.value;
|
|
60
|
+
if (typeof config?.recording === "boolean") {
|
|
61
|
+
config.onRecordingChange(!config.recording);
|
|
59
62
|
return;
|
|
60
63
|
}
|
|
61
64
|
ensureRecognition();
|
|
62
65
|
if (!recognition) return;
|
|
63
|
-
if (
|
|
66
|
+
if (currentRecording) {
|
|
64
67
|
recognition.stop();
|
|
65
68
|
speechConfig.value?.onRecordingChange?.(false);
|
|
66
69
|
} else {
|
|
@@ -71,7 +74,7 @@ function useSpeech(onSpeech, allowSpeech) {
|
|
|
71
74
|
return [
|
|
72
75
|
mergedAllowSpeech,
|
|
73
76
|
triggerSpeech,
|
|
74
|
-
|
|
77
|
+
mergedRecording
|
|
75
78
|
];
|
|
76
79
|
}
|
|
77
80
|
//#endregion
|
package/es/antdv-next-x.esm.js
CHANGED
|
@@ -2,7 +2,7 @@ import { r as e } from "./chunk-WQLz0Won.js";
|
|
|
2
2
|
import { S as t, _ as n, a as r, b as i, c as a, d as o, f as s, g as c, h as l, i as u, l as d, m as f, n as p, o as m, p as h, r as g, s as _, t as v, u as y, v as b, x, y as S } from "./Serializer-y_SfSPKv.js";
|
|
3
3
|
import { Comment as C, Fragment as w, Teleport as T, Text as E, Transition as D, TransitionGroup as O, cloneVNode as k, computed as A, createTextVNode as j, createVNode as M, defineComponent as N, getCurrentInstance as P, getCurrentScope as F, h as I, inject as L, isVNode as R, markRaw as ee, mergeDefaults as z, mergeProps as B, nextTick as V, onBeforeMount as te, onBeforeUnmount as H, onBeforeUpdate as ne, onMounted as re, onScopeDispose as ie, onUnmounted as ae, onUpdated as oe, provide as U, reactive as se, ref as W, render as ce, resolveDynamicComponent as le, shallowReactive as ue, shallowRef as G, toRaw as de, toRef as fe, toRefs as pe, toValue as me, triggerRef as he, unref as ge, useAttrs as _e, useId as ve, useSlots as ye, vShow as be, watch as K, watchEffect as xe, withDirectives as Se } from "vue";
|
|
4
4
|
//#region package.json
|
|
5
|
-
var Ce = "1.1.2-beta.
|
|
5
|
+
var Ce = "1.1.2-beta.5", we = "anticon", Te = {}, Ee = [
|
|
6
6
|
"outlined",
|
|
7
7
|
"borderless",
|
|
8
8
|
"filled",
|
|
@@ -56243,15 +56243,16 @@ var pU = (e) => {
|
|
|
56243
56243
|
}
|
|
56244
56244
|
},
|
|
56245
56245
|
emits: ["update:theme"],
|
|
56246
|
-
|
|
56247
|
-
|
|
56246
|
+
slots: Object,
|
|
56247
|
+
setup(e, { emit: t, expose: n, slots: r }) {
|
|
56248
|
+
let i = _e(), a = Le("codeHighlighter"), o = W(), [s, c] = mU(A(() => e.prefixCls)), l = W(!1), u = G(""), d = async () => {
|
|
56248
56249
|
try {
|
|
56249
|
-
|
|
56250
|
+
u.value = await fU(e.content, {
|
|
56250
56251
|
lang: e.language,
|
|
56251
56252
|
theme: e.theme === "dark" ? "vitesse-dark" : "vitesse-light"
|
|
56252
56253
|
});
|
|
56253
56254
|
} catch (t) {
|
|
56254
|
-
console.error("Failed to highlight code:", t),
|
|
56255
|
+
console.error("Failed to highlight code:", t), u.value = `<pre><code>${f(e.content)}</code></pre>`;
|
|
56255
56256
|
}
|
|
56256
56257
|
};
|
|
56257
56258
|
K(() => [
|
|
@@ -56259,86 +56260,92 @@ var pU = (e) => {
|
|
|
56259
56260
|
e.language,
|
|
56260
56261
|
e.theme
|
|
56261
56262
|
], () => {
|
|
56262
|
-
|
|
56263
|
+
d();
|
|
56263
56264
|
}, { immediate: !0 });
|
|
56264
|
-
function
|
|
56265
|
+
function f(e) {
|
|
56265
56266
|
return e.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'");
|
|
56266
56267
|
}
|
|
56267
56268
|
n({ get nativeElement() {
|
|
56268
|
-
return
|
|
56269
|
+
return o.value;
|
|
56269
56270
|
} });
|
|
56270
|
-
let
|
|
56271
|
-
let { class: e, style: t, ...n } =
|
|
56271
|
+
let p = A(() => {
|
|
56272
|
+
let { class: e, style: t, ...n } = i;
|
|
56272
56273
|
return n;
|
|
56273
|
-
}),
|
|
56274
|
+
}), m = A(() => e.content.split("\n")), h = async () => {
|
|
56274
56275
|
try {
|
|
56275
|
-
await navigator.clipboard.writeText(e.content),
|
|
56276
|
-
|
|
56276
|
+
await navigator.clipboard.writeText(e.content), l.value = !0, e.onCopy?.(e.content), setTimeout(() => {
|
|
56277
|
+
l.value = !1;
|
|
56277
56278
|
}, 2e3);
|
|
56278
56279
|
} catch (e) {
|
|
56279
56280
|
console.error("Failed to copy:", e);
|
|
56280
56281
|
}
|
|
56281
|
-
},
|
|
56282
|
+
}, g = () => {
|
|
56282
56283
|
t("update:theme", e.theme === "light" ? "dark" : "light");
|
|
56283
|
-
},
|
|
56284
|
+
}, _ = (t) => [
|
|
56284
56285
|
`${e.prefixCls}-${t}`,
|
|
56285
|
-
|
|
56286
|
+
a.value.classes?.[t],
|
|
56286
56287
|
e.classes?.[t]
|
|
56287
|
-
],
|
|
56288
|
-
|
|
56289
|
-
|
|
56288
|
+
], v = () => r.header ? r.header({
|
|
56289
|
+
language: e.language || "text",
|
|
56290
|
+
theme: e.theme,
|
|
56291
|
+
copied: l.value,
|
|
56292
|
+
copy: h,
|
|
56293
|
+
toggleTheme: g
|
|
56294
|
+
}) : e.showLanguage || e.showThemeToggle || e.showCopyButton ? M("div", {
|
|
56295
|
+
class: _("header"),
|
|
56296
|
+
style: [a.value.styles?.header, e.styles?.header]
|
|
56290
56297
|
}, [e.showLanguage && M("span", {
|
|
56291
56298
|
class: [
|
|
56292
56299
|
`${e.prefixCls}-lang`,
|
|
56293
|
-
|
|
56300
|
+
a.value.classes?.headerTitle,
|
|
56294
56301
|
e.classes?.headerTitle
|
|
56295
56302
|
],
|
|
56296
|
-
style: [
|
|
56303
|
+
style: [a.value.styles?.headerTitle, e.styles?.headerTitle]
|
|
56297
56304
|
}, [e.language || "text"]), M("div", { class: `${e.prefixCls}-actions` }, [e.showThemeToggle && M(nu, { title: e.theme === "light" ? "切换暗色主题" : "切换亮色主题" }, { default: () => [M(yh, {
|
|
56298
56305
|
type: "text",
|
|
56299
56306
|
size: "small",
|
|
56300
56307
|
class: `${e.prefixCls}-theme-btn`,
|
|
56301
|
-
onClick:
|
|
56302
|
-
}, { default: () => [e.theme === "light" ? M(sp, null, null) : M(jp, null, null)] })] }), e.showCopyButton && M(nu, { title:
|
|
56308
|
+
onClick: g
|
|
56309
|
+
}, { default: () => [e.theme === "light" ? M(sp, null, null) : M(jp, null, null)] })] }), e.showCopyButton && M(nu, { title: l.value ? "已复制" : "复制代码" }, { default: () => [M(yh, {
|
|
56303
56310
|
type: "text",
|
|
56304
56311
|
size: "small",
|
|
56305
56312
|
class: `${e.prefixCls}-copy-btn`,
|
|
56306
|
-
onClick:
|
|
56307
|
-
}, { default: () => [
|
|
56313
|
+
onClick: h
|
|
56314
|
+
}, { default: () => [l.value ? M(Bd, null, null) : M(Xd, null, null)] })] })])]) : null, y = () => e.showLineNumbers ? M("div", { class: `${e.prefixCls}-line-numbers` }, [m.value.map((t, n) => M("div", {
|
|
56308
56315
|
key: n,
|
|
56309
56316
|
class: `${e.prefixCls}-line-number`
|
|
56310
|
-
}, [e.startLineNumber + n]))]) : null,
|
|
56311
|
-
class:
|
|
56312
|
-
style: [
|
|
56313
|
-
}, [
|
|
56317
|
+
}, [e.startLineNumber + n]))]) : null, b = () => M("div", {
|
|
56318
|
+
class: _("content"),
|
|
56319
|
+
style: [a.value.styles?.content, e.styles?.content]
|
|
56320
|
+
}, [y(), M("div", {
|
|
56314
56321
|
class: [
|
|
56315
56322
|
`${e.prefixCls}-code`,
|
|
56316
|
-
|
|
56323
|
+
a.value.classes?.code,
|
|
56317
56324
|
e.classes?.code
|
|
56318
56325
|
],
|
|
56319
|
-
style: [
|
|
56320
|
-
innerHTML:
|
|
56326
|
+
style: [a.value.styles?.code, e.styles?.code],
|
|
56327
|
+
innerHTML: u.value
|
|
56321
56328
|
}, null)]);
|
|
56322
|
-
return () => M("div", B({ ref:
|
|
56329
|
+
return () => M("div", B({ ref: o }, p.value, {
|
|
56323
56330
|
class: [
|
|
56324
56331
|
e.prefixCls,
|
|
56325
56332
|
`${e.prefixCls}-${e.theme}`,
|
|
56326
56333
|
e.rootClass,
|
|
56327
|
-
|
|
56334
|
+
a.value.classes?.root,
|
|
56328
56335
|
e.classes?.root,
|
|
56329
|
-
o.value,
|
|
56330
56336
|
s.value,
|
|
56331
|
-
|
|
56337
|
+
c.value,
|
|
56338
|
+
i.class,
|
|
56332
56339
|
e.class
|
|
56333
56340
|
],
|
|
56334
56341
|
style: [
|
|
56335
|
-
|
|
56336
|
-
|
|
56342
|
+
a.value.style,
|
|
56343
|
+
a.value.styles?.root,
|
|
56337
56344
|
e.styles?.root,
|
|
56338
|
-
|
|
56345
|
+
i.style,
|
|
56339
56346
|
e.style
|
|
56340
56347
|
]
|
|
56341
|
-
}), [
|
|
56348
|
+
}), [v(), b()]);
|
|
56342
56349
|
}
|
|
56343
56350
|
}), gU = {
|
|
56344
56351
|
Alt: [
|
|
@@ -57933,7 +57940,7 @@ var sW = /* @__PURE__ */ N({
|
|
|
57933
57940
|
}
|
|
57934
57941
|
}, uW = null, dW = null, fW = null;
|
|
57935
57942
|
async function pW() {
|
|
57936
|
-
return uW || (dW ||= import("./mermaid.core-
|
|
57943
|
+
return uW || (dW ||= import("./mermaid.core-Cdr_0as6.js").then((e) => e.default).then((e) => (uW = e, fW &&= (e.initialize(fW), null), e)), dW);
|
|
57937
57944
|
}
|
|
57938
57945
|
function mW(e) {
|
|
57939
57946
|
if (fW = e, uW) {
|
|
@@ -58100,6 +58107,7 @@ var SW = /* @__PURE__ */ N({
|
|
|
58100
58107
|
}
|
|
58101
58108
|
},
|
|
58102
58109
|
emits: ["update:renderType", "renderTypeChange"],
|
|
58110
|
+
slots: Object,
|
|
58103
58111
|
setup(e, { emit: t, expose: n, slots: r }) {
|
|
58104
58112
|
let i = _e(), a = Ae(), [o] = PN("Mermaid", AN.Mermaid), s = Le("mermaid"), c = W(), l = W(), u = `mermaid-${bW++}`, [d, f] = vW(A(() => e.prefixCls)), p = W(e.defaultRenderType), m = W(1), h = W({
|
|
58105
58113
|
x: 0,
|
|
@@ -58121,28 +58129,13 @@ var SW = /* @__PURE__ */ N({
|
|
|
58121
58129
|
})), S = A(() => {
|
|
58122
58130
|
let { class: e, style: t, ...n } = i;
|
|
58123
58131
|
return n;
|
|
58124
|
-
})
|
|
58125
|
-
|
|
58126
|
-
item: e,
|
|
58127
|
-
index: t,
|
|
58128
|
-
originNode: e.icon
|
|
58129
|
-
}, r = C("customActionIconRender")?.(n), i = {
|
|
58130
|
-
item: e,
|
|
58131
|
-
index: t,
|
|
58132
|
-
originNode: e.actionRender === void 0 ? void 0 : typeof e.actionRender == "function" ? e.actionRender(e) : e.actionRender
|
|
58133
|
-
}, a = C("customActionRender")?.(i);
|
|
58134
|
-
return {
|
|
58135
|
-
...e,
|
|
58136
|
-
icon: r !== void 0 && !Re(r) ? r : e.icon,
|
|
58137
|
-
actionRender: a !== void 0 && !Re(a) ? a : e.actionRender
|
|
58138
|
-
};
|
|
58139
|
-
}));
|
|
58140
|
-
function T() {
|
|
58132
|
+
});
|
|
58133
|
+
function C() {
|
|
58141
58134
|
if (v.value !== yW.Image) return;
|
|
58142
58135
|
let e = l.value?.querySelector("svg");
|
|
58143
58136
|
e && (e.style.transform = `scale(${m.value}) translate(${h.value.x}px, ${h.value.y}px)`, e.style.transformOrigin = "center", e.style.transition = g.value ? "none" : "transform 0.1s ease-out", e.style.cursor = g.value ? "grabbing" : "grab");
|
|
58144
58137
|
}
|
|
58145
|
-
let
|
|
58138
|
+
let w = xW(async () => {
|
|
58146
58139
|
if (v.value === yW.Code) {
|
|
58147
58140
|
l.value && (l.value.innerHTML = "");
|
|
58148
58141
|
return;
|
|
@@ -58152,21 +58145,21 @@ var SW = /* @__PURE__ */ N({
|
|
|
58152
58145
|
if (t) try {
|
|
58153
58146
|
if (await hW(e.content, { suppressErrors: !0 }) === !1) throw Error("Invalid Mermaid syntax");
|
|
58154
58147
|
let { svg: n } = await gW(`${u}-${bW++}-${e.content.length || 0}`, e.content);
|
|
58155
|
-
t.innerHTML = n,
|
|
58148
|
+
t.innerHTML = n, C();
|
|
58156
58149
|
} catch (e) {
|
|
58157
58150
|
lW(!1, "Mermaid", `Render failed: ${String(e)}`);
|
|
58158
58151
|
}
|
|
58159
58152
|
}, 100);
|
|
58160
|
-
function
|
|
58153
|
+
function T(n) {
|
|
58161
58154
|
e.renderType === void 0 && (p.value = n), t("update:renderType", n), t("renderTypeChange", n);
|
|
58162
58155
|
}
|
|
58163
|
-
function
|
|
58156
|
+
function E(e) {
|
|
58164
58157
|
v.value === yW.Image && (e.preventDefault(), g.value = !0, _.value = {
|
|
58165
58158
|
x: e.clientX,
|
|
58166
58159
|
y: e.clientY
|
|
58167
58160
|
});
|
|
58168
58161
|
}
|
|
58169
|
-
function
|
|
58162
|
+
function D(e) {
|
|
58170
58163
|
if (!g.value || v.value !== yW.Image) return;
|
|
58171
58164
|
e.preventDefault();
|
|
58172
58165
|
let t = e.clientX - _.value.x, n = e.clientY - _.value.y;
|
|
@@ -58178,22 +58171,22 @@ var SW = /* @__PURE__ */ N({
|
|
|
58178
58171
|
y: e.clientY
|
|
58179
58172
|
};
|
|
58180
58173
|
}
|
|
58181
|
-
function
|
|
58174
|
+
function O() {
|
|
58182
58175
|
g.value = !1;
|
|
58183
58176
|
}
|
|
58184
|
-
function
|
|
58177
|
+
function k() {
|
|
58185
58178
|
m.value = Math.min(m.value + .2, 3);
|
|
58186
58179
|
}
|
|
58187
|
-
function
|
|
58180
|
+
function j() {
|
|
58188
58181
|
m.value = Math.max(m.value - .2, .5);
|
|
58189
58182
|
}
|
|
58190
|
-
function
|
|
58183
|
+
function N() {
|
|
58191
58184
|
m.value = 1, h.value = {
|
|
58192
58185
|
x: 0,
|
|
58193
58186
|
y: 0
|
|
58194
58187
|
};
|
|
58195
58188
|
}
|
|
58196
|
-
function
|
|
58189
|
+
function P() {
|
|
58197
58190
|
let e = l.value?.querySelector("svg");
|
|
58198
58191
|
if (!e) return;
|
|
58199
58192
|
let t = new XMLSerializer().serializeToString(e), n = document.createElement("canvas"), r = n.getContext("2d");
|
|
@@ -58207,36 +58200,36 @@ var SW = /* @__PURE__ */ N({
|
|
|
58207
58200
|
e.download = `${Date.now()}.png`, e.href = n.toDataURL("image/png", 1), e.click();
|
|
58208
58201
|
}, s.src = `data:image/svg+xml;charset=utf-8,${encodeURIComponent(t)}`;
|
|
58209
58202
|
}
|
|
58210
|
-
let
|
|
58203
|
+
let F = A(() => {
|
|
58211
58204
|
let t = [];
|
|
58212
58205
|
return v.value === yW.Image && (y.value.enableZoom && t.push({
|
|
58213
58206
|
key: "zoomIn",
|
|
58214
58207
|
icon: M(Lp, null, null),
|
|
58215
58208
|
label: o.value.zoomIn,
|
|
58216
|
-
onItemClick:
|
|
58209
|
+
onItemClick: k
|
|
58217
58210
|
}, {
|
|
58218
58211
|
key: "zoomOut",
|
|
58219
58212
|
icon: M(zp, null, null),
|
|
58220
58213
|
label: o.value.zoomOut,
|
|
58221
|
-
onItemClick:
|
|
58214
|
+
onItemClick: j
|
|
58222
58215
|
}, {
|
|
58223
58216
|
key: "zoomReset",
|
|
58224
58217
|
actionRender: () => M(nu, { title: o.value.zoomReset }, { default: () => [M(yh, {
|
|
58225
58218
|
type: "text",
|
|
58226
58219
|
size: "small",
|
|
58227
|
-
onClick:
|
|
58220
|
+
onClick: N
|
|
58228
58221
|
}, { default: () => [o.value.zoomReset] })] })
|
|
58229
58222
|
}), y.value.enableDownload && t.push({
|
|
58230
58223
|
key: "download",
|
|
58231
58224
|
icon: M(sf, null, null),
|
|
58232
58225
|
label: o.value.download,
|
|
58233
|
-
onItemClick:
|
|
58226
|
+
onItemClick: P
|
|
58234
58227
|
})), v.value === yW.Code && y.value.enableCopy && t.push({
|
|
58235
58228
|
key: "copy",
|
|
58236
58229
|
actionRender: () => M(UM.Copy, { text: e.content }, null)
|
|
58237
|
-
}), [...t, ...
|
|
58230
|
+
}), [...t, ...y.value.customActions];
|
|
58238
58231
|
});
|
|
58239
|
-
function
|
|
58232
|
+
function I() {
|
|
58240
58233
|
return e.header === null ? null : r.header ? r.header() : e.header === void 0 ? M("div", {
|
|
58241
58234
|
class: [`${e.prefixCls}-header`, b.value.header],
|
|
58242
58235
|
style: x.value.header
|
|
@@ -58249,8 +58242,8 @@ var SW = /* @__PURE__ */ N({
|
|
|
58249
58242
|
value: yW.Code
|
|
58250
58243
|
}],
|
|
58251
58244
|
value: v.value,
|
|
58252
|
-
onChange: (e) =>
|
|
58253
|
-
}, null), M(UM, { items:
|
|
58245
|
+
onChange: (e) => T(e)
|
|
58246
|
+
}, null), M(UM, { items: F.value }, null)]) : e.header;
|
|
58254
58247
|
}
|
|
58255
58248
|
return K(() => e.renderType, (e) => {
|
|
58256
58249
|
e !== void 0 && (p.value = e);
|
|
@@ -58272,7 +58265,7 @@ var SW = /* @__PURE__ */ N({
|
|
|
58272
58265
|
v,
|
|
58273
58266
|
() => l.value
|
|
58274
58267
|
], () => {
|
|
58275
|
-
l.value &&
|
|
58268
|
+
l.value && w();
|
|
58276
58269
|
}, {
|
|
58277
58270
|
immediate: !0,
|
|
58278
58271
|
deep: !0
|
|
@@ -58300,9 +58293,9 @@ var SW = /* @__PURE__ */ N({
|
|
|
58300
58293
|
v,
|
|
58301
58294
|
g
|
|
58302
58295
|
], () => {
|
|
58303
|
-
|
|
58296
|
+
C();
|
|
58304
58297
|
}, { deep: !0 }), H(() => {
|
|
58305
|
-
|
|
58298
|
+
w.cancel();
|
|
58306
58299
|
}), n({ get nativeElement() {
|
|
58307
58300
|
return c.value;
|
|
58308
58301
|
} }), () => e.content ? M("div", B({ ref: c }, S.value, {
|
|
@@ -58325,7 +58318,7 @@ var SW = /* @__PURE__ */ N({
|
|
|
58325
58318
|
e.style
|
|
58326
58319
|
]
|
|
58327
58320
|
}), [
|
|
58328
|
-
|
|
58321
|
+
I(),
|
|
58329
58322
|
M("div", {
|
|
58330
58323
|
ref: l,
|
|
58331
58324
|
class: [
|
|
@@ -58334,10 +58327,10 @@ var SW = /* @__PURE__ */ N({
|
|
|
58334
58327
|
b.value.graph
|
|
58335
58328
|
],
|
|
58336
58329
|
style: x.value.graph,
|
|
58337
|
-
onMousedown:
|
|
58338
|
-
onMousemove:
|
|
58339
|
-
onMouseup:
|
|
58340
|
-
onMouseleave:
|
|
58330
|
+
onMousedown: E,
|
|
58331
|
+
onMousemove: D,
|
|
58332
|
+
onMouseup: O,
|
|
58333
|
+
onMouseleave: O
|
|
58341
58334
|
}, null),
|
|
58342
58335
|
v.value === yW.Code ? M("div", {
|
|
58343
58336
|
class: [`${e.prefixCls}-code`, b.value.code],
|
|
@@ -59578,7 +59571,7 @@ function oG(e, t) {
|
|
|
59578
59571
|
}), H(() => {
|
|
59579
59572
|
c && (c.onchange = null);
|
|
59580
59573
|
});
|
|
59581
|
-
let l = () => typeof window > "u" ? null : window.SpeechRecognition || window.webkitSpeechRecognition || null, u = A(() => !!(s.value || l() && n.value !== "denied")), d = () => {
|
|
59574
|
+
let l = () => typeof window > "u" ? null : window.SpeechRecognition || window.webkitSpeechRecognition || null, u = A(() => !!(s.value || l() && n.value !== "denied")), d = A(() => s.value ? !!o.value?.recording : r.value), f = () => {
|
|
59582
59575
|
if (!u.value || i) return;
|
|
59583
59576
|
let t = l();
|
|
59584
59577
|
t && (i = new t(), i.onstart = () => {
|
|
@@ -59596,15 +59589,17 @@ function oG(e, t) {
|
|
|
59596
59589
|
return [
|
|
59597
59590
|
u,
|
|
59598
59591
|
(e) => {
|
|
59599
|
-
|
|
59600
|
-
|
|
59601
|
-
|
|
59602
|
-
|
|
59603
|
-
|
|
59604
|
-
|
|
59592
|
+
let t = d.value;
|
|
59593
|
+
if (e && !t) return;
|
|
59594
|
+
a = e;
|
|
59595
|
+
let n = o.value;
|
|
59596
|
+
if (typeof n?.recording == "boolean") {
|
|
59597
|
+
n.onRecordingChange(!n.recording);
|
|
59598
|
+
return;
|
|
59605
59599
|
}
|
|
59600
|
+
f(), i && (t ? (i.stop(), o.value?.onRecordingChange?.(!1)) : (i.start(), o.value?.onRecordingChange?.(!0)));
|
|
59606
59601
|
},
|
|
59607
|
-
|
|
59602
|
+
d
|
|
59608
59603
|
];
|
|
59609
59604
|
}
|
|
59610
59605
|
//#endregion
|
|
@@ -25,7 +25,7 @@ var f = {
|
|
|
25
25
|
loader: /* @__PURE__ */ t(async () => await import("./dagre-KLK3FWXG-CFC0naVr.js"), "loader")
|
|
26
26
|
}, ...[{
|
|
27
27
|
name: "cose-bilkent",
|
|
28
|
-
loader: /* @__PURE__ */ t(async () => await import("./cose-bilkent-S5V4N54A-
|
|
28
|
+
loader: /* @__PURE__ */ t(async () => await import("./cose-bilkent-S5V4N54A-DS-oTq56.js"), "loader")
|
|
29
29
|
}]]);
|
|
30
30
|
}, "registerDefaultLayoutLoaders"))();
|
|
31
31
|
var h = /* @__PURE__ */ t(async (e, t) => {
|
|
@@ -3,7 +3,7 @@ import { h as n, o as r } from "./chunk-GEFDOKGD-P7WhyrTU.js";
|
|
|
3
3
|
import { B as i, C as a, V as o, W as s, _ as c, a as l, b as u, s as d, v as f } from "./chunk-7R4GIKGN-DuTRhdsf.js";
|
|
4
4
|
import { t as p } from "./chunk-55IACEB6-OtyKJzCH.js";
|
|
5
5
|
import { t as m } from "./chunk-KX2RTZJC-pMHnNRQg.js";
|
|
6
|
-
import { r as h } from "./chunk-GLR3WWYH-
|
|
6
|
+
import { r as h } from "./chunk-GLR3WWYH-BBFkZWLy.js";
|
|
7
7
|
//#region ../../node_modules/mermaid/dist/chunks/mermaid.core/chunk-NQ4KR5QH.mjs
|
|
8
8
|
var g = (function() {
|
|
9
9
|
var e = /* @__PURE__ */ t(function(e, t, n, r) {
|
|
@@ -5,7 +5,7 @@ import { t as _ } from "./chunk-FMBD7UC4-C_uJ_JJA.js";
|
|
|
5
5
|
import { t as v } from "./chunk-JSJVCQXG-89HUGe9V.js";
|
|
6
6
|
import { t as y } from "./chunk-55IACEB6-OtyKJzCH.js";
|
|
7
7
|
import { t as b } from "./chunk-KX2RTZJC-pMHnNRQg.js";
|
|
8
|
-
import { r as x, t as S } from "./chunk-GLR3WWYH-
|
|
8
|
+
import { r as x, t as S } from "./chunk-GLR3WWYH-BBFkZWLy.js";
|
|
9
9
|
//#region ../../node_modules/mermaid/dist/chunks/mermaid.core/chunk-WL4C6EOR.mjs
|
|
10
10
|
var C = (function() {
|
|
11
11
|
var e = /* @__PURE__ */ t(function(e, t, n, r) {
|
|
@@ -11,8 +11,8 @@ import "./chunk-KX2RTZJC-pMHnNRQg.js";
|
|
|
11
11
|
import "./chunk-PQ6SQG4A-CQ9Csv7s.js";
|
|
12
12
|
import "./chunk-KYZI473N-DJmSs1gK.js";
|
|
13
13
|
import "./chunk-O4XLMI2P-e-ZzDQwg.js";
|
|
14
|
-
import "./chunk-GLR3WWYH-
|
|
15
|
-
import { i as t, n, r, t as i } from "./chunk-WL4C6EOR-
|
|
14
|
+
import "./chunk-GLR3WWYH-BBFkZWLy.js";
|
|
15
|
+
import { i as t, n, r, t as i } from "./chunk-WL4C6EOR-B6HgoDzQ.js";
|
|
16
16
|
//#region ../../node_modules/mermaid/dist/chunks/mermaid.core/classDiagram-VBA2DB6C.mjs
|
|
17
17
|
var a = {
|
|
18
18
|
parser: n,
|
|
@@ -11,8 +11,8 @@ import "./chunk-KX2RTZJC-pMHnNRQg.js";
|
|
|
11
11
|
import "./chunk-PQ6SQG4A-CQ9Csv7s.js";
|
|
12
12
|
import "./chunk-KYZI473N-DJmSs1gK.js";
|
|
13
13
|
import "./chunk-O4XLMI2P-e-ZzDQwg.js";
|
|
14
|
-
import "./chunk-GLR3WWYH-
|
|
15
|
-
import { i as t, n, r, t as i } from "./chunk-WL4C6EOR-
|
|
14
|
+
import "./chunk-GLR3WWYH-BBFkZWLy.js";
|
|
15
|
+
import { i as t, n, r, t as i } from "./chunk-WL4C6EOR-B6HgoDzQ.js";
|
|
16
16
|
//#region ../../node_modules/mermaid/dist/chunks/mermaid.core/classDiagram-v2-RAHNMMFH.mjs
|
|
17
17
|
var a = {
|
|
18
18
|
parser: n,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { o as e, t } from "./chunk-WQLz0Won.js";
|
|
2
2
|
import { g as n, h as r, p as i } from "./src-BukXhifV.js";
|
|
3
3
|
import { t as a } from "./cytoscape.esm-BY3wHcbp.js";
|
|
4
|
-
//#region ../../node_modules/
|
|
4
|
+
//#region ../../node_modules/layout-base/layout-base.js
|
|
5
5
|
var o = /* @__PURE__ */ t(((e, t) => {
|
|
6
6
|
(function(n, r) {
|
|
7
7
|
typeof e == "object" && typeof t == "object" ? t.exports = r() : typeof define == "function" && define.amd ? define([], r) : typeof e == "object" ? e.layoutBase = r() : n.layoutBase = r();
|
|
@@ -10,7 +10,7 @@ import { t as _ } from "./chunk-KX2RTZJC-pMHnNRQg.js";
|
|
|
10
10
|
import "./chunk-PQ6SQG4A-CQ9Csv7s.js";
|
|
11
11
|
import "./chunk-KYZI473N-DJmSs1gK.js";
|
|
12
12
|
import "./chunk-O4XLMI2P-e-ZzDQwg.js";
|
|
13
|
-
import { r as v, t as y } from "./chunk-GLR3WWYH-
|
|
13
|
+
import { r as v, t as y } from "./chunk-GLR3WWYH-BBFkZWLy.js";
|
|
14
14
|
//#region ../../node_modules/mermaid/dist/chunks/mermaid.core/erDiagram-INFDFZHY.mjs
|
|
15
15
|
var b = (function() {
|
|
16
16
|
var e = /* @__PURE__ */ t(function(e, t, n, r) {
|
|
@@ -12,7 +12,7 @@ import { t as y } from "./chunk-KX2RTZJC-pMHnNRQg.js";
|
|
|
12
12
|
import "./chunk-PQ6SQG4A-CQ9Csv7s.js";
|
|
13
13
|
import { o as b } from "./chunk-KYZI473N-DJmSs1gK.js";
|
|
14
14
|
import "./chunk-O4XLMI2P-e-ZzDQwg.js";
|
|
15
|
-
import { r as x, t as S } from "./chunk-GLR3WWYH-
|
|
15
|
+
import { r as x, t as S } from "./chunk-GLR3WWYH-BBFkZWLy.js";
|
|
16
16
|
import { n as C, t as w } from "./chunk-XPW4576I-DgvoNZkW.js";
|
|
17
17
|
//#region ../../node_modules/mermaid/dist/chunks/mermaid.core/flowDiagram-PKNHOUZH.mjs
|
|
18
18
|
var T = "flowchart-", E = class {
|
|
@@ -10,7 +10,7 @@ import "./chunk-YBOYWFTD-BUW4AzEX.js";
|
|
|
10
10
|
import "./chunk-PQ6SQG4A-CQ9Csv7s.js";
|
|
11
11
|
import "./chunk-KYZI473N-DJmSs1gK.js";
|
|
12
12
|
import "./chunk-O4XLMI2P-e-ZzDQwg.js";
|
|
13
|
-
import { n as pe } from "./chunk-GLR3WWYH-
|
|
13
|
+
import { n as pe } from "./chunk-GLR3WWYH-BBFkZWLy.js";
|
|
14
14
|
import { n as me, t as he } from "./chunk-XPW4576I-DgvoNZkW.js";
|
|
15
15
|
//#region ../../node_modules/mermaid/dist/mermaid.core.mjs
|
|
16
16
|
var O = "c4", ge = {
|
|
@@ -27,7 +27,7 @@ var O = "c4", ge = {
|
|
|
27
27
|
id: k,
|
|
28
28
|
detector: /* @__PURE__ */ a((e, t) => t?.flowchart?.defaultRenderer === "dagre-wrapper" || t?.flowchart?.defaultRenderer === "elk" ? !1 : /^\s*graph/.test(e), "detector"),
|
|
29
29
|
loader: /* @__PURE__ */ a(async () => {
|
|
30
|
-
let { diagram: e } = await import("./flowDiagram-PKNHOUZH-
|
|
30
|
+
let { diagram: e } = await import("./flowDiagram-PKNHOUZH-DOIW1Sy9.js");
|
|
31
31
|
return {
|
|
32
32
|
id: k,
|
|
33
33
|
diagram: e
|
|
@@ -37,7 +37,7 @@ var O = "c4", ge = {
|
|
|
37
37
|
id: A,
|
|
38
38
|
detector: /* @__PURE__ */ a((e, t) => t?.flowchart?.defaultRenderer === "dagre-d3" ? !1 : (t?.flowchart?.defaultRenderer === "elk" && (t.layout = "elk"), /^\s*graph/.test(e) && t?.flowchart?.defaultRenderer === "dagre-wrapper" ? !0 : /^\s*flowchart/.test(e)), "detector"),
|
|
39
39
|
loader: /* @__PURE__ */ a(async () => {
|
|
40
|
-
let { diagram: e } = await import("./flowDiagram-PKNHOUZH-
|
|
40
|
+
let { diagram: e } = await import("./flowDiagram-PKNHOUZH-DOIW1Sy9.js");
|
|
41
41
|
return {
|
|
42
42
|
id: A,
|
|
43
43
|
diagram: e
|
|
@@ -47,7 +47,7 @@ var O = "c4", ge = {
|
|
|
47
47
|
id: j,
|
|
48
48
|
detector: /* @__PURE__ */ a((e) => /^\s*erDiagram/.test(e), "detector"),
|
|
49
49
|
loader: /* @__PURE__ */ a(async () => {
|
|
50
|
-
let { diagram: e } = await import("./erDiagram-INFDFZHY-
|
|
50
|
+
let { diagram: e } = await import("./erDiagram-INFDFZHY-TwqnRnWa.js");
|
|
51
51
|
return {
|
|
52
52
|
id: j,
|
|
53
53
|
diagram: e
|
|
@@ -117,7 +117,7 @@ var O = "c4", ge = {
|
|
|
117
117
|
id: R,
|
|
118
118
|
detector: /* @__PURE__ */ a((e) => /^\s*requirement(Diagram)?/.test(e), "detector"),
|
|
119
119
|
loader: /* @__PURE__ */ a(async () => {
|
|
120
|
-
let { diagram: e } = await import("./requirementDiagram-Z7DCOOCP-
|
|
120
|
+
let { diagram: e } = await import("./requirementDiagram-Z7DCOOCP-DwsKf6TC.js");
|
|
121
121
|
return {
|
|
122
122
|
id: R,
|
|
123
123
|
diagram: e
|
|
@@ -137,7 +137,7 @@ var O = "c4", ge = {
|
|
|
137
137
|
id: B,
|
|
138
138
|
detector: /* @__PURE__ */ a((e, t) => t?.class?.defaultRenderer === "dagre-wrapper" ? !1 : /^\s*classDiagram/.test(e), "detector"),
|
|
139
139
|
loader: /* @__PURE__ */ a(async () => {
|
|
140
|
-
let { diagram: e } = await import("./classDiagram-VBA2DB6C-
|
|
140
|
+
let { diagram: e } = await import("./classDiagram-VBA2DB6C-CqK9jdgh.js");
|
|
141
141
|
return {
|
|
142
142
|
id: B,
|
|
143
143
|
diagram: e
|
|
@@ -147,7 +147,7 @@ var O = "c4", ge = {
|
|
|
147
147
|
id: V,
|
|
148
148
|
detector: /* @__PURE__ */ a((e, t) => /^\s*classDiagram/.test(e) && t?.class?.defaultRenderer === "dagre-wrapper" ? !0 : /^\s*classDiagram-v2/.test(e), "detector"),
|
|
149
149
|
loader: /* @__PURE__ */ a(async () => {
|
|
150
|
-
let { diagram: e } = await import("./classDiagram-v2-RAHNMMFH-
|
|
150
|
+
let { diagram: e } = await import("./classDiagram-v2-RAHNMMFH-ZDIng8Gz.js");
|
|
151
151
|
return {
|
|
152
152
|
id: V,
|
|
153
153
|
diagram: e
|
|
@@ -157,7 +157,7 @@ var O = "c4", ge = {
|
|
|
157
157
|
id: H,
|
|
158
158
|
detector: /* @__PURE__ */ a((e, t) => t?.state?.defaultRenderer === "dagre-wrapper" ? !1 : /^\s*stateDiagram/.test(e), "detector"),
|
|
159
159
|
loader: /* @__PURE__ */ a(async () => {
|
|
160
|
-
let { diagram: e } = await import("./stateDiagram-RAJIS63D-
|
|
160
|
+
let { diagram: e } = await import("./stateDiagram-RAJIS63D-Bjd_66hy.js");
|
|
161
161
|
return {
|
|
162
162
|
id: H,
|
|
163
163
|
diagram: e
|
|
@@ -167,7 +167,7 @@ var O = "c4", ge = {
|
|
|
167
167
|
id: U,
|
|
168
168
|
detector: /* @__PURE__ */ a((e, t) => !!(/^\s*stateDiagram-v2/.test(e) || /^\s*stateDiagram/.test(e) && t?.state?.defaultRenderer === "dagre-wrapper"), "detector"),
|
|
169
169
|
loader: /* @__PURE__ */ a(async () => {
|
|
170
|
-
let { diagram: e } = await import("./stateDiagram-v2-FVOUBMTO-
|
|
170
|
+
let { diagram: e } = await import("./stateDiagram-v2-FVOUBMTO-BjIcGAyh.js");
|
|
171
171
|
return {
|
|
172
172
|
id: U,
|
|
173
173
|
diagram: e
|
|
@@ -195,7 +195,7 @@ var O = "c4", ge = {
|
|
|
195
195
|
id: Le,
|
|
196
196
|
detector: /* @__PURE__ */ a((e, t = {}) => /^\s*flowchart-elk/.test(e) || /^\s*(flowchart|graph)/.test(e) && t?.flowchart?.defaultRenderer === "elk" ? (t.layout = "elk", !0) : !1, "detector"),
|
|
197
197
|
loader: /* @__PURE__ */ a(async () => {
|
|
198
|
-
let { diagram: e } = await import("./flowDiagram-PKNHOUZH-
|
|
198
|
+
let { diagram: e } = await import("./flowDiagram-PKNHOUZH-DOIW1Sy9.js");
|
|
199
199
|
return {
|
|
200
200
|
id: Le,
|
|
201
201
|
diagram: e
|
|
@@ -215,7 +215,7 @@ var O = "c4", ge = {
|
|
|
215
215
|
id: Ve,
|
|
216
216
|
detector: /* @__PURE__ */ a((e) => /^\s*mindmap/.test(e), "detector"),
|
|
217
217
|
loader: /* @__PURE__ */ a(async () => {
|
|
218
|
-
let { diagram: e } = await import("./mindmap-definition-YRQLILUH-
|
|
218
|
+
let { diagram: e } = await import("./mindmap-definition-YRQLILUH-CtrmThyY.js");
|
|
219
219
|
return {
|
|
220
220
|
id: Ve,
|
|
221
221
|
diagram: e
|
package/es/{mindmap-definition-YRQLILUH-CYeqnCde.js → mindmap-definition-YRQLILUH-CtrmThyY.js}
RENAMED
|
@@ -9,7 +9,7 @@ import { t as u } from "./chunk-KX2RTZJC-pMHnNRQg.js";
|
|
|
9
9
|
import "./chunk-PQ6SQG4A-CQ9Csv7s.js";
|
|
10
10
|
import "./chunk-KYZI473N-DJmSs1gK.js";
|
|
11
11
|
import "./chunk-O4XLMI2P-e-ZzDQwg.js";
|
|
12
|
-
import { r as d, t as f } from "./chunk-GLR3WWYH-
|
|
12
|
+
import { r as d, t as f } from "./chunk-GLR3WWYH-BBFkZWLy.js";
|
|
13
13
|
//#region ../../node_modules/uuid/dist/esm-browser/stringify.js
|
|
14
14
|
var p = [];
|
|
15
15
|
for (let e = 0; e < 256; ++e) p.push((e + 256).toString(16).slice(1));
|
package/es/{requirementDiagram-Z7DCOOCP-Cb_Ygnfe.js → requirementDiagram-Z7DCOOCP-DwsKf6TC.js}
RENAMED
|
@@ -9,7 +9,7 @@ import { t as p } from "./chunk-KX2RTZJC-pMHnNRQg.js";
|
|
|
9
9
|
import "./chunk-PQ6SQG4A-CQ9Csv7s.js";
|
|
10
10
|
import "./chunk-KYZI473N-DJmSs1gK.js";
|
|
11
11
|
import "./chunk-O4XLMI2P-e-ZzDQwg.js";
|
|
12
|
-
import { r as m, t as h } from "./chunk-GLR3WWYH-
|
|
12
|
+
import { r as m, t as h } from "./chunk-GLR3WWYH-BBFkZWLy.js";
|
|
13
13
|
//#region ../../node_modules/mermaid/dist/chunks/mermaid.core/requirementDiagram-Z7DCOOCP.mjs
|
|
14
14
|
var g = (function() {
|
|
15
15
|
var e = /* @__PURE__ */ t(function(e, t, n, r) {
|
|
@@ -12,8 +12,8 @@ import "./chunk-KX2RTZJC-pMHnNRQg.js";
|
|
|
12
12
|
import "./chunk-PQ6SQG4A-CQ9Csv7s.js";
|
|
13
13
|
import "./chunk-KYZI473N-DJmSs1gK.js";
|
|
14
14
|
import "./chunk-O4XLMI2P-e-ZzDQwg.js";
|
|
15
|
-
import "./chunk-GLR3WWYH-
|
|
16
|
-
import { i as f, n as p, t as m } from "./chunk-NQ4KR5QH-
|
|
15
|
+
import "./chunk-GLR3WWYH-BBFkZWLy.js";
|
|
16
|
+
import { i as f, n as p, t as m } from "./chunk-NQ4KR5QH-I7cFzfZu.js";
|
|
17
17
|
//#region ../../node_modules/mermaid/dist/chunks/mermaid.core/stateDiagram-RAJIS63D.mjs
|
|
18
18
|
var h = /* @__PURE__ */ t((e) => e.append("circle").attr("class", "start-state").attr("r", c().state.sizeUnit).attr("cx", c().state.padding + c().state.sizeUnit).attr("cy", c().state.padding + c().state.sizeUnit), "drawStartState"), g = /* @__PURE__ */ t((e) => e.append("line").style("stroke", "grey").style("stroke-dasharray", "3").attr("x1", c().state.textHeight).attr("class", "divider").attr("x2", c().state.textHeight * 2).attr("y1", 0).attr("y2", 0), "drawDivider"), _ = /* @__PURE__ */ t((e, t) => {
|
|
19
19
|
let n = e.append("text").attr("x", 2 * c().state.padding).attr("y", c().state.textHeight + 2 * c().state.padding).attr("font-size", c().state.fontSize).attr("class", "state-title").text(t.id), r = n.node().getBBox();
|
|
@@ -9,8 +9,8 @@ import "./chunk-KX2RTZJC-pMHnNRQg.js";
|
|
|
9
9
|
import "./chunk-PQ6SQG4A-CQ9Csv7s.js";
|
|
10
10
|
import "./chunk-KYZI473N-DJmSs1gK.js";
|
|
11
11
|
import "./chunk-O4XLMI2P-e-ZzDQwg.js";
|
|
12
|
-
import "./chunk-GLR3WWYH-
|
|
13
|
-
import { i as t, n, r, t as i } from "./chunk-NQ4KR5QH-
|
|
12
|
+
import "./chunk-GLR3WWYH-BBFkZWLy.js";
|
|
13
|
+
import { i as t, n, r, t as i } from "./chunk-NQ4KR5QH-I7cFzfZu.js";
|
|
14
14
|
//#region ../../node_modules/mermaid/dist/chunks/mermaid.core/stateDiagram-v2-FVOUBMTO.mjs
|
|
15
15
|
var a = {
|
|
16
16
|
parser: n,
|