markdown-flow-ui 0.3.11 → 0.3.13
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/README.md +50 -0
- package/dist/_virtual/index10.cjs +1 -1
- package/dist/_virtual/index10.es.js +3 -2
- package/dist/_virtual/index10.es.js.map +1 -1
- package/dist/_virtual/index11.cjs +1 -1
- package/dist/_virtual/index11.es.js +2 -3
- package/dist/_virtual/index11.es.js.map +1 -1
- package/dist/_virtual/index3.cjs +1 -1
- package/dist/_virtual/index3.es.js +5 -4
- package/dist/_virtual/index3.es.js.map +1 -1
- package/dist/_virtual/index4.cjs +1 -1
- package/dist/_virtual/index4.es.js +4 -5
- package/dist/_virtual/index4.es.js.map +1 -1
- package/dist/_virtual/index6.cjs +1 -1
- package/dist/_virtual/index6.es.js +2 -3
- package/dist/_virtual/index6.es.js.map +1 -1
- package/dist/_virtual/index7.cjs +1 -1
- package/dist/_virtual/index7.es.js +3 -5
- package/dist/_virtual/index7.es.js.map +1 -1
- package/dist/_virtual/index8.cjs +1 -1
- package/dist/_virtual/index8.es.js +5 -2
- package/dist/_virtual/index8.es.js.map +1 -1
- package/dist/_virtual/index9.cjs +1 -1
- package/dist/_virtual/index9.es.js +2 -2
- package/dist/assets/markdown-flow-ui.css +1 -1
- package/dist/components/ContentRender/ContentRender.cjs +2 -2
- package/dist/components/ContentRender/ContentRender.cjs.map +1 -1
- package/dist/components/ContentRender/ContentRender.d.ts +5 -0
- package/dist/components/ContentRender/ContentRender.es.js +405 -394
- package/dist/components/ContentRender/ContentRender.es.js.map +1 -1
- package/dist/components/ContentRender/ImageInputGroup.cjs +2 -0
- package/dist/components/ContentRender/ImageInputGroup.cjs.map +1 -0
- package/dist/components/ContentRender/ImageInputGroup.d.ts +31 -0
- package/dist/components/ContentRender/ImageInputGroup.es.js +101 -0
- package/dist/components/ContentRender/ImageInputGroup.es.js.map +1 -0
- package/dist/components/ContentRender/MarkdownFlowInput.cjs +1 -1
- package/dist/components/ContentRender/MarkdownFlowInput.cjs.map +1 -1
- package/dist/components/ContentRender/MarkdownFlowInput.d.ts +5 -0
- package/dist/components/ContentRender/MarkdownFlowInput.es.js +54 -50
- package/dist/components/ContentRender/MarkdownFlowInput.es.js.map +1 -1
- package/dist/components/ContentRender/contentRenderI18n.cjs.map +1 -1
- package/dist/components/ContentRender/contentRenderI18n.d.ts +4 -0
- package/dist/components/ContentRender/contentRenderI18n.es.js.map +1 -1
- package/dist/components/ContentRender/locales/contentRender.json.cjs +1 -1
- package/dist/components/ContentRender/locales/contentRender.json.d.ts +55 -11
- package/dist/components/ContentRender/locales/contentRender.json.es.js +11 -11
- package/dist/components/ContentRender/plugins/CustomVariable.cjs +1 -1
- package/dist/components/ContentRender/plugins/CustomVariable.cjs.map +1 -1
- package/dist/components/ContentRender/plugins/CustomVariable.d.ts +4 -1
- package/dist/components/ContentRender/plugins/CustomVariable.es.js +212 -173
- package/dist/components/ContentRender/plugins/CustomVariable.es.js.map +1 -1
- package/dist/components/MarkdownFlow/MarkdownFlow.cjs +1 -1
- package/dist/components/MarkdownFlow/MarkdownFlow.cjs.map +1 -1
- package/dist/components/MarkdownFlow/MarkdownFlow.d.ts +7 -0
- package/dist/components/MarkdownFlow/MarkdownFlow.es.js +63 -53
- package/dist/components/MarkdownFlow/MarkdownFlow.es.js.map +1 -1
- package/dist/components/Slide/Slide.cjs +1 -1
- package/dist/components/Slide/Slide.cjs.map +1 -1
- package/dist/components/Slide/Slide.d.ts +5 -0
- package/dist/components/Slide/Slide.es.js +638 -621
- package/dist/components/Slide/Slide.es.js.map +1 -1
- package/dist/components/Slide/utils/interactionResolution.cjs +1 -1
- package/dist/components/Slide/utils/interactionResolution.cjs.map +1 -1
- package/dist/components/Slide/utils/interactionResolution.es.js +15 -15
- package/dist/components/Slide/utils/interactionResolution.es.js.map +1 -1
- package/dist/components/types.d.ts +2 -0
- package/dist/components/ui/inputGroup/textarea.cjs +1 -1
- package/dist/components/ui/inputGroup/textarea.es.js +1 -1
- package/dist/lib/interaction-defaults.cjs +1 -1
- package/dist/lib/interaction-defaults.cjs.map +1 -1
- package/dist/lib/interaction-defaults.d.ts +4 -0
- package/dist/lib/interaction-defaults.es.js +47 -41
- package/dist/lib/interaction-defaults.es.js.map +1 -1
- package/dist/markdown-flow-ui-lib.css +1 -1
- package/dist/markdown-flow-ui.css +1 -1
- package/dist/node_modules/@braintree/sanitize-url/dist/index.cjs +1 -1
- package/dist/node_modules/@braintree/sanitize-url/dist/index.es.js +1 -1
- package/dist/node_modules/classnames/index.cjs +1 -1
- package/dist/node_modules/classnames/index.es.js +1 -1
- package/dist/node_modules/hast-util-to-jsx-runtime/lib/index.cjs +1 -1
- package/dist/node_modules/hast-util-to-jsx-runtime/lib/index.es.js +1 -1
- package/dist/node_modules/lucide-react/dist/esm/icons/image-plus.cjs +2 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/image-plus.cjs.map +1 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/image-plus.es.js +19 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/image-plus.es.js.map +1 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-6MUBBAK2.cjs +1 -1
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-6MUBBAK2.es.js +1 -1
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-HFQBQIA3.cjs +1 -1
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/chunk-HFQBQIA3.es.js +1 -1
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/flowDiagram-MALGAFMO.cjs +1 -1
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/flowDiagram-MALGAFMO.es.js +1 -1
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/ganttDiagram-23REXITY.cjs +1 -1
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/ganttDiagram-23REXITY.es.js +1 -1
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/sequenceDiagram-5NDRBG5M.cjs +1 -1
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/sequenceDiagram-5NDRBG5M.es.js +1 -1
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/swimlanesDiagram-OMPLPG4O.cjs +1 -1
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/swimlanesDiagram-OMPLPG4O.es.js +1 -1
- package/dist/node_modules/rc-input/es/BaseInput.cjs +1 -1
- package/dist/node_modules/rc-input/es/BaseInput.es.js +1 -1
- package/dist/node_modules/rc-textarea/es/ResizableTextArea.cjs +1 -1
- package/dist/node_modules/rc-textarea/es/ResizableTextArea.es.js +1 -1
- package/dist/node_modules/rc-textarea/es/TextArea.cjs +1 -1
- package/dist/node_modules/rc-textarea/es/TextArea.es.js +1 -1
- package/dist/node_modules/rc-textarea/es/index.cjs +1 -1
- package/dist/node_modules/rc-textarea/es/index.es.js +1 -1
- package/dist/node_modules/rc-util/es/ref.cjs +1 -1
- package/dist/node_modules/rc-util/es/ref.es.js +1 -1
- package/dist/node_modules/remark-flow/dist/interaction-plugin-core.cjs +1 -1
- package/dist/node_modules/remark-flow/dist/interaction-plugin-core.es.js +1 -1
- package/dist/node_modules/style-to-object/cjs/index.cjs +1 -1
- package/dist/node_modules/style-to-object/cjs/index.es.js +1 -1
- package/dist/renderer.d.ts +1 -0
- package/package.json +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MarkdownFlowInput.cjs","sources":["../../../src/components/ContentRender/MarkdownFlowInput.tsx"],"sourcesContent":["import React from \"react\";\n\nimport sendIconDisable from \"@/assets/icons/send_disable.svg\";\nimport sendIconEnable from \"@/assets/icons/send_enable.svg\";\n\nimport {\n
|
|
1
|
+
{"version":3,"file":"MarkdownFlowInput.cjs","sources":["../../../src/components/ContentRender/MarkdownFlowInput.tsx"],"sourcesContent":["import React from \"react\";\n\nimport sendIconDisable from \"@/assets/icons/send_disable.svg\";\nimport sendIconEnable from \"@/assets/icons/send_enable.svg\";\n\nimport {\n InputGroupButton,\n InputGroupTextarea,\n} from \"../ui/inputGroup/input-group\";\nimport {\n getMarkdownFlowDirection,\n getMarkdownFlowLanguage,\n type MarkdownFlowLocale,\n} from \"../../lib/locale\";\nimport { getContentRenderLocaleTexts } from \"./contentRenderI18n\";\nimport { acceptPlaceholder } from \"./utils/accept-placeholder\";\nimport { ImageInputGroup, type ImageInputOptions } from \"./ImageInputGroup\";\n\ntype MarkdownFlowInputSendShortcut = \"enter\" | \"none\";\n\ninterface MarkdownFlowInputProps {\n /** Show the image picker inside the input. Hidden by default. */\n showImageInput?: boolean;\n /** Host-controlled image upload state and callbacks. */\n imageInput?: ImageInputOptions;\n /** Overrides locale-derived input direction. */\n dir?: React.HTMLAttributes<HTMLDivElement>[\"dir\"];\n disabled?: boolean;\n locale?: MarkdownFlowLocale;\n /** Overrides the locale-derived language. */\n lang?: string;\n placeholder?: string;\n sendButtonLabel?: string;\n value?: string;\n title?: string;\n onChange?: (event: React.ChangeEvent<HTMLTextAreaElement>) => void;\n onSend?: () => void;\n /** Enables Tab completion of an empty input; the host must update its value. */\n onAcceptPlaceholder?: (value: string) => void;\n /**\n * Keyboard policy for sending a multi-line input. `enter` sends on Enter\n * while Shift+Enter keeps its native newline behavior. `none` leaves Enter\n * untouched, which lets mobile consumers reserve the keyboard return key\n * for newlines.\n */\n sendShortcut?: MarkdownFlowInputSendShortcut;\n className?: string;\n textareaClassName?: string;\n}\n\nconst resolveAssetSrc = (asset: string | { src: string }) =>\n typeof asset === \"string\" ? asset : asset.src;\n\nconst MarkdownFlowInput: React.FC<MarkdownFlowInputProps> = ({\n disabled,\n locale,\n lang,\n dir,\n placeholder,\n sendButtonLabel,\n value,\n title,\n onChange,\n onSend,\n onAcceptPlaceholder,\n sendShortcut = \"enter\",\n className,\n textareaClassName,\n showImageInput = false,\n imageInput,\n}) => {\n const localeTexts = getContentRenderLocaleTexts(locale);\n const resolvedSendButtonLabel =\n sendButtonLabel || localeTexts.sendButtonLabel;\n const isSendDisabled =\n disabled ||\n imageInput?.uploading ||\n (!value?.trim() && !imageInput?.images.length);\n const handleKeyDown = (e: React.KeyboardEvent<HTMLTextAreaElement>) => {\n if (acceptPlaceholder(e, placeholder, disabled, onAcceptPlaceholder)) {\n return;\n }\n if (sendShortcut !== \"enter\" || !onSend) {\n return;\n }\n if (e.nativeEvent.isComposing || e.keyCode === 229) {\n return;\n }\n if (e.key === \"Enter\" && !e.shiftKey) {\n e.preventDefault();\n if (!isSendDisabled) {\n onSend();\n }\n }\n };\n\n return (\n <ImageInputGroup\n showImageInput={showImageInput}\n imageInput={imageInput}\n disabled={disabled}\n locale={locale}\n dir={dir ?? getMarkdownFlowDirection(locale)}\n lang={lang ?? getMarkdownFlowLanguage(locale)}\n data-disabled={disabled}\n className={`input-container bg-white border-[#e5e5e5] shadow-[0_1px_2px_rgba(0,0,0,0.05)] ${className || \"\"}`}\n >\n <InputGroupTextarea\n disabled={disabled}\n placeholder={placeholder}\n value={value}\n onChange={onChange}\n onKeyDown={handleKeyDown}\n className={`text-[16px] leading-5 font-normal text-[#0A0A0A] placeholder:text-[rgba(99,114,128,1)] bg-transparent border-0 shadow-none ps-3 pe-0 py-1.5 min-h-8 ${textareaClassName || \"\"}`}\n title={title}\n />\n <InputGroupButton\n type=\"button\"\n variant=\"ghost\"\n size=\"icon-sm\"\n onClick={onSend}\n disabled={isSendDisabled}\n aria-label={resolvedSendButtonLabel}\n style={{ cursor: isSendDisabled ? \"not-allowed\" : \"pointer\" }}\n className=\"mx-[3px]\"\n >\n <img\n src={resolveAssetSrc(\n isSendDisabled ? sendIconDisable : sendIconEnable\n )}\n alt={resolvedSendButtonLabel}\n className=\"size-6\"\n />\n </InputGroupButton>\n </ImageInputGroup>\n );\n};\n\nexport type { MarkdownFlowInputProps, MarkdownFlowInputSendShortcut };\nexport default MarkdownFlowInput;\n"],"names":["resolveAssetSrc","asset","MarkdownFlowInput","disabled","locale","lang","dir","placeholder","sendButtonLabel","value","title","onChange","onSend","onAcceptPlaceholder","sendShortcut","className","textareaClassName","showImageInput","imageInput","localeTexts","getContentRenderLocaleTexts","resolvedSendButtonLabel","isSendDisabled","handleKeyDown","e","acceptPlaceholder","jsxs","ImageInputGroup","getMarkdownFlowDirection","getMarkdownFlowLanguage","jsx","InputGroupTextarea","InputGroupButton","sendIconDisable","sendIconEnable"],"mappings":"8bAkDMA,EAAmBC,GACvB,OAAOA,GAAU,SAAWA,EAAQA,EAAM,IAEtCC,EAAsD,CAAC,CAC3D,SAAAC,EAAA,OACAC,EACA,KAAAC,EACA,IAAAC,EACA,YAAAC,EACA,gBAAAC,EACA,MAAAC,EACA,MAAAC,EACA,SAAAC,EACA,OAAAC,EACA,oBAAAC,EACA,aAAAC,EAAe,QACf,UAAAC,EACA,kBAAAC,EACA,eAAAC,EAAiB,GACjB,WAAAC,CACF,IAAM,CACJ,MAAMC,EAAcC,EAAAA,4BAA4BhB,CAAM,EAChDiB,EACJb,GAAmBW,EAAY,gBAC3BG,EACJnB,GACAe,GAAY,WACX,CAACT,GAAO,QAAU,CAACS,GAAY,OAAO,OACnCK,EAAiBC,GAAgD,CACjEC,EAAAA,kBAAkBD,EAAGjB,EAAaJ,EAAUU,CAAmB,GAG/DC,IAAiB,SAAW,CAACF,GAG7BY,EAAE,YAAY,aAAeA,EAAE,UAAY,KAG3CA,EAAE,MAAQ,SAAW,CAACA,EAAE,WAC1BA,EAAE,eAAA,EACGF,GACHV,EAAA,EAGN,EAEA,OACEc,EAAAA,KAACC,EAAAA,gBAAA,CACC,eAAAV,EACA,WAAAC,EACA,SAAAf,EAAA,OACAC,EACA,IAAKE,GAAOsB,EAAAA,yBAAyBxB,CAAM,EAC3C,KAAMC,GAAQwB,EAAAA,wBAAwBzB,CAAM,EAC5C,gBAAeD,EACf,UAAW,iFAAiFY,GAAa,EAAE,GAE3G,SAAA,CAAAe,EAAAA,IAACC,EAAAA,mBAAA,CACC,SAAA5B,EACA,YAAAI,EACA,MAAAE,EACA,SAAAE,EACA,UAAWY,EACX,UAAW,uJAAuJP,GAAqB,EAAE,GACzL,MAAAN,CAAA,CAAA,EAEFoB,EAAAA,IAACE,EAAAA,iBAAA,CACC,KAAK,SACL,QAAQ,QACR,KAAK,UACL,QAASpB,EACT,SAAUU,EACV,aAAYD,EACZ,MAAO,CAAE,OAAQC,EAAiB,cAAgB,SAAA,EAClD,UAAU,WAEV,SAAAQ,EAAAA,IAAC,MAAA,CACC,IAAK9B,EACHsB,EAAiBW,EAAAA,QAAkBC,EAAAA,OAAA,EAErC,IAAKb,EACL,UAAU,QAAA,CAAA,CACZ,CAAA,CACF,CAAA,CAAA,CAGN"}
|
|
@@ -1,7 +1,12 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import { MarkdownFlowLocale } from '../../lib/locale.js';
|
|
3
|
+
import { ImageInputOptions } from './ImageInputGroup.js';
|
|
3
4
|
type MarkdownFlowInputSendShortcut = "enter" | "none";
|
|
4
5
|
interface MarkdownFlowInputProps {
|
|
6
|
+
/** Show the image picker inside the input. Hidden by default. */
|
|
7
|
+
showImageInput?: boolean;
|
|
8
|
+
/** Host-controlled image upload state and callbacks. */
|
|
9
|
+
imageInput?: ImageInputOptions;
|
|
5
10
|
/** Overrides locale-derived input direction. */
|
|
6
11
|
dir?: React.HTMLAttributes<HTMLDivElement>["dir"];
|
|
7
12
|
disabled?: boolean;
|
|
@@ -1,70 +1,74 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import { getMarkdownFlowLanguage as
|
|
6
|
-
import { getContentRenderLocaleTexts as
|
|
7
|
-
import { acceptPlaceholder as
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
import { jsxs as D, jsx as s } from "react/jsx-runtime";
|
|
2
|
+
import v from "../../assets/icons/send_disable.svg.es.js";
|
|
3
|
+
import I from "../../assets/icons/send_enable.svg.es.js";
|
|
4
|
+
import { InputGroupTextarea as A, InputGroupButton as C } from "../ui/inputGroup/input-group.es.js";
|
|
5
|
+
import { getMarkdownFlowLanguage as L, getMarkdownFlowDirection as N } from "../../lib/locale.es.js";
|
|
6
|
+
import { getContentRenderLocaleTexts as B } from "./contentRenderI18n.es.js";
|
|
7
|
+
import { acceptPlaceholder as E } from "./utils/accept-placeholder.es.js";
|
|
8
|
+
import { ImageInputGroup as F } from "./ImageInputGroup.es.js";
|
|
9
|
+
const G = (t) => typeof t == "string" ? t : t.src, R = ({
|
|
10
|
+
disabled: t,
|
|
10
11
|
locale: r,
|
|
11
|
-
lang:
|
|
12
|
-
dir:
|
|
13
|
-
placeholder:
|
|
14
|
-
sendButtonLabel:
|
|
15
|
-
value:
|
|
16
|
-
title:
|
|
12
|
+
lang: m,
|
|
13
|
+
dir: c,
|
|
14
|
+
placeholder: i,
|
|
15
|
+
sendButtonLabel: d,
|
|
16
|
+
value: p,
|
|
17
|
+
title: f,
|
|
17
18
|
onChange: u,
|
|
18
|
-
onSend:
|
|
19
|
-
onAcceptPlaceholder:
|
|
19
|
+
onSend: n,
|
|
20
|
+
onAcceptPlaceholder: g,
|
|
20
21
|
sendShortcut: x = "enter",
|
|
21
|
-
className:
|
|
22
|
-
textareaClassName: b
|
|
22
|
+
className: w,
|
|
23
|
+
textareaClassName: b,
|
|
24
|
+
showImageInput: h = !1,
|
|
25
|
+
imageInput: a
|
|
23
26
|
}) => {
|
|
24
|
-
const
|
|
25
|
-
|
|
27
|
+
const y = B(r), l = d || y.sendButtonLabel, o = t || a?.uploading || !p?.trim() && !a?.images.length, k = (e) => {
|
|
28
|
+
E(e, i, t, g) || x !== "enter" || !n || e.nativeEvent.isComposing || e.keyCode === 229 || e.key === "Enter" && !e.shiftKey && (e.preventDefault(), o || n());
|
|
26
29
|
};
|
|
27
|
-
return /* @__PURE__ */
|
|
28
|
-
|
|
30
|
+
return /* @__PURE__ */ D(
|
|
31
|
+
F,
|
|
29
32
|
{
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
33
|
+
showImageInput: h,
|
|
34
|
+
imageInput: a,
|
|
35
|
+
disabled: t,
|
|
36
|
+
locale: r,
|
|
37
|
+
dir: c ?? N(r),
|
|
38
|
+
lang: m ?? L(r),
|
|
39
|
+
"data-disabled": t,
|
|
40
|
+
className: `input-container bg-white border-[#e5e5e5] shadow-[0_1px_2px_rgba(0,0,0,0.05)] ${w || ""}`,
|
|
34
41
|
children: [
|
|
35
|
-
/* @__PURE__ */
|
|
36
|
-
|
|
42
|
+
/* @__PURE__ */ s(
|
|
43
|
+
A,
|
|
37
44
|
{
|
|
38
|
-
disabled:
|
|
39
|
-
placeholder:
|
|
40
|
-
value:
|
|
45
|
+
disabled: t,
|
|
46
|
+
placeholder: i,
|
|
47
|
+
value: p,
|
|
41
48
|
onChange: u,
|
|
42
|
-
onKeyDown:
|
|
43
|
-
className: `text-[16px] leading-5 font-normal text-[#0A0A0A] placeholder:text-[rgba(99,114,128,1)] bg-transparent border-0 shadow-none ps-3 pe-0 py-1.5 min-h-
|
|
44
|
-
title:
|
|
49
|
+
onKeyDown: k,
|
|
50
|
+
className: `text-[16px] leading-5 font-normal text-[#0A0A0A] placeholder:text-[rgba(99,114,128,1)] bg-transparent border-0 shadow-none ps-3 pe-0 py-1.5 min-h-8 ${b || ""}`,
|
|
51
|
+
title: f
|
|
45
52
|
}
|
|
46
53
|
),
|
|
47
|
-
/* @__PURE__ */
|
|
48
|
-
|
|
54
|
+
/* @__PURE__ */ s(
|
|
55
|
+
C,
|
|
49
56
|
{
|
|
50
57
|
type: "button",
|
|
51
58
|
variant: "ghost",
|
|
52
59
|
size: "icon-sm",
|
|
53
|
-
onClick:
|
|
54
|
-
disabled:
|
|
55
|
-
"aria-label":
|
|
56
|
-
style: {
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
},
|
|
60
|
-
className: "size-6 group self-end mb-[2px]",
|
|
61
|
-
children: /* @__PURE__ */ a(
|
|
60
|
+
onClick: n,
|
|
61
|
+
disabled: o,
|
|
62
|
+
"aria-label": l,
|
|
63
|
+
style: { cursor: o ? "not-allowed" : "pointer" },
|
|
64
|
+
className: "mx-[3px]",
|
|
65
|
+
children: /* @__PURE__ */ s(
|
|
62
66
|
"img",
|
|
63
67
|
{
|
|
64
|
-
src:
|
|
65
|
-
|
|
68
|
+
src: G(
|
|
69
|
+
o ? v : I
|
|
66
70
|
),
|
|
67
|
-
alt:
|
|
71
|
+
alt: l,
|
|
68
72
|
className: "size-6"
|
|
69
73
|
}
|
|
70
74
|
)
|
|
@@ -75,6 +79,6 @@ const B = (e) => typeof e == "string" ? e : e.src, j = ({
|
|
|
75
79
|
);
|
|
76
80
|
};
|
|
77
81
|
export {
|
|
78
|
-
|
|
82
|
+
R as default
|
|
79
83
|
};
|
|
80
84
|
//# sourceMappingURL=MarkdownFlowInput.es.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MarkdownFlowInput.es.js","sources":["../../../src/components/ContentRender/MarkdownFlowInput.tsx"],"sourcesContent":["import React from \"react\";\n\nimport sendIconDisable from \"@/assets/icons/send_disable.svg\";\nimport sendIconEnable from \"@/assets/icons/send_enable.svg\";\n\nimport {\n
|
|
1
|
+
{"version":3,"file":"MarkdownFlowInput.es.js","sources":["../../../src/components/ContentRender/MarkdownFlowInput.tsx"],"sourcesContent":["import React from \"react\";\n\nimport sendIconDisable from \"@/assets/icons/send_disable.svg\";\nimport sendIconEnable from \"@/assets/icons/send_enable.svg\";\n\nimport {\n InputGroupButton,\n InputGroupTextarea,\n} from \"../ui/inputGroup/input-group\";\nimport {\n getMarkdownFlowDirection,\n getMarkdownFlowLanguage,\n type MarkdownFlowLocale,\n} from \"../../lib/locale\";\nimport { getContentRenderLocaleTexts } from \"./contentRenderI18n\";\nimport { acceptPlaceholder } from \"./utils/accept-placeholder\";\nimport { ImageInputGroup, type ImageInputOptions } from \"./ImageInputGroup\";\n\ntype MarkdownFlowInputSendShortcut = \"enter\" | \"none\";\n\ninterface MarkdownFlowInputProps {\n /** Show the image picker inside the input. Hidden by default. */\n showImageInput?: boolean;\n /** Host-controlled image upload state and callbacks. */\n imageInput?: ImageInputOptions;\n /** Overrides locale-derived input direction. */\n dir?: React.HTMLAttributes<HTMLDivElement>[\"dir\"];\n disabled?: boolean;\n locale?: MarkdownFlowLocale;\n /** Overrides the locale-derived language. */\n lang?: string;\n placeholder?: string;\n sendButtonLabel?: string;\n value?: string;\n title?: string;\n onChange?: (event: React.ChangeEvent<HTMLTextAreaElement>) => void;\n onSend?: () => void;\n /** Enables Tab completion of an empty input; the host must update its value. */\n onAcceptPlaceholder?: (value: string) => void;\n /**\n * Keyboard policy for sending a multi-line input. `enter` sends on Enter\n * while Shift+Enter keeps its native newline behavior. `none` leaves Enter\n * untouched, which lets mobile consumers reserve the keyboard return key\n * for newlines.\n */\n sendShortcut?: MarkdownFlowInputSendShortcut;\n className?: string;\n textareaClassName?: string;\n}\n\nconst resolveAssetSrc = (asset: string | { src: string }) =>\n typeof asset === \"string\" ? asset : asset.src;\n\nconst MarkdownFlowInput: React.FC<MarkdownFlowInputProps> = ({\n disabled,\n locale,\n lang,\n dir,\n placeholder,\n sendButtonLabel,\n value,\n title,\n onChange,\n onSend,\n onAcceptPlaceholder,\n sendShortcut = \"enter\",\n className,\n textareaClassName,\n showImageInput = false,\n imageInput,\n}) => {\n const localeTexts = getContentRenderLocaleTexts(locale);\n const resolvedSendButtonLabel =\n sendButtonLabel || localeTexts.sendButtonLabel;\n const isSendDisabled =\n disabled ||\n imageInput?.uploading ||\n (!value?.trim() && !imageInput?.images.length);\n const handleKeyDown = (e: React.KeyboardEvent<HTMLTextAreaElement>) => {\n if (acceptPlaceholder(e, placeholder, disabled, onAcceptPlaceholder)) {\n return;\n }\n if (sendShortcut !== \"enter\" || !onSend) {\n return;\n }\n if (e.nativeEvent.isComposing || e.keyCode === 229) {\n return;\n }\n if (e.key === \"Enter\" && !e.shiftKey) {\n e.preventDefault();\n if (!isSendDisabled) {\n onSend();\n }\n }\n };\n\n return (\n <ImageInputGroup\n showImageInput={showImageInput}\n imageInput={imageInput}\n disabled={disabled}\n locale={locale}\n dir={dir ?? getMarkdownFlowDirection(locale)}\n lang={lang ?? getMarkdownFlowLanguage(locale)}\n data-disabled={disabled}\n className={`input-container bg-white border-[#e5e5e5] shadow-[0_1px_2px_rgba(0,0,0,0.05)] ${className || \"\"}`}\n >\n <InputGroupTextarea\n disabled={disabled}\n placeholder={placeholder}\n value={value}\n onChange={onChange}\n onKeyDown={handleKeyDown}\n className={`text-[16px] leading-5 font-normal text-[#0A0A0A] placeholder:text-[rgba(99,114,128,1)] bg-transparent border-0 shadow-none ps-3 pe-0 py-1.5 min-h-8 ${textareaClassName || \"\"}`}\n title={title}\n />\n <InputGroupButton\n type=\"button\"\n variant=\"ghost\"\n size=\"icon-sm\"\n onClick={onSend}\n disabled={isSendDisabled}\n aria-label={resolvedSendButtonLabel}\n style={{ cursor: isSendDisabled ? \"not-allowed\" : \"pointer\" }}\n className=\"mx-[3px]\"\n >\n <img\n src={resolveAssetSrc(\n isSendDisabled ? sendIconDisable : sendIconEnable\n )}\n alt={resolvedSendButtonLabel}\n className=\"size-6\"\n />\n </InputGroupButton>\n </ImageInputGroup>\n );\n};\n\nexport type { MarkdownFlowInputProps, MarkdownFlowInputSendShortcut };\nexport default MarkdownFlowInput;\n"],"names":["resolveAssetSrc","asset","MarkdownFlowInput","disabled","locale","lang","dir","placeholder","sendButtonLabel","value","title","onChange","onSend","onAcceptPlaceholder","sendShortcut","className","textareaClassName","showImageInput","imageInput","localeTexts","getContentRenderLocaleTexts","resolvedSendButtonLabel","isSendDisabled","handleKeyDown","acceptPlaceholder","jsxs","ImageInputGroup","getMarkdownFlowDirection","getMarkdownFlowLanguage","jsx","InputGroupTextarea","InputGroupButton","sendIconDisable","sendIconEnable"],"mappings":";;;;;;;;AAkDA,MAAMA,IAAkB,CAACC,MACvB,OAAOA,KAAU,WAAWA,IAAQA,EAAM,KAEtCC,IAAsD,CAAC;AAAA,EAC3D,UAAAC;AAAA,EACA,QAAAC;AAAA,EACA,MAAAC;AAAA,EACA,KAAAC;AAAA,EACA,aAAAC;AAAA,EACA,iBAAAC;AAAA,EACA,OAAAC;AAAA,EACA,OAAAC;AAAA,EACA,UAAAC;AAAA,EACA,QAAAC;AAAA,EACA,qBAAAC;AAAA,EACA,cAAAC,IAAe;AAAA,EACf,WAAAC;AAAA,EACA,mBAAAC;AAAA,EACA,gBAAAC,IAAiB;AAAA,EACjB,YAAAC;AACF,MAAM;AACJ,QAAMC,IAAcC,EAA4BhB,CAAM,GAChDiB,IACJb,KAAmBW,EAAY,iBAC3BG,IACJnB,KACAe,GAAY,aACX,CAACT,GAAO,UAAU,CAACS,GAAY,OAAO,QACnCK,IAAgB,CAAC,MAAgD;AACrE,IAAIC,EAAkB,GAAGjB,GAAaJ,GAAUU,CAAmB,KAG/DC,MAAiB,WAAW,CAACF,KAG7B,EAAE,YAAY,eAAe,EAAE,YAAY,OAG3C,EAAE,QAAQ,WAAW,CAAC,EAAE,aAC1B,EAAE,eAAA,GACGU,KACHV,EAAA;AAAA,EAGN;AAEA,SACE,gBAAAa;AAAA,IAACC;AAAA,IAAA;AAAA,MACC,gBAAAT;AAAA,MACA,YAAAC;AAAA,MACA,UAAAf;AAAA,MACA,QAAAC;AAAA,MACA,KAAKE,KAAOqB,EAAyBvB,CAAM;AAAA,MAC3C,MAAMC,KAAQuB,EAAwBxB,CAAM;AAAA,MAC5C,iBAAeD;AAAA,MACf,WAAW,iFAAiFY,KAAa,EAAE;AAAA,MAE3G,UAAA;AAAA,QAAA,gBAAAc;AAAA,UAACC;AAAA,UAAA;AAAA,YACC,UAAA3B;AAAA,YACA,aAAAI;AAAA,YACA,OAAAE;AAAA,YACA,UAAAE;AAAA,YACA,WAAWY;AAAA,YACX,WAAW,uJAAuJP,KAAqB,EAAE;AAAA,YACzL,OAAAN;AAAA,UAAA;AAAA,QAAA;AAAA,QAEF,gBAAAmB;AAAA,UAACE;AAAA,UAAA;AAAA,YACC,MAAK;AAAA,YACL,SAAQ;AAAA,YACR,MAAK;AAAA,YACL,SAASnB;AAAA,YACT,UAAUU;AAAA,YACV,cAAYD;AAAA,YACZ,OAAO,EAAE,QAAQC,IAAiB,gBAAgB,UAAA;AAAA,YAClD,WAAU;AAAA,YAEV,UAAA,gBAAAO;AAAA,cAAC;AAAA,cAAA;AAAA,gBACC,KAAK7B;AAAA,kBACHsB,IAAiBU,IAAkBC;AAAA,gBAAA;AAAA,gBAErC,KAAKZ;AAAA,gBACL,WAAU;AAAA,cAAA;AAAA,YAAA;AAAA,UACZ;AAAA,QAAA;AAAA,MACF;AAAA,IAAA;AAAA,EAAA;AAGN;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contentRenderI18n.cjs","sources":["../../../src/components/ContentRender/contentRenderI18n.ts"],"sourcesContent":["import {\n normalizeMarkdownFlowLocale,\n type MarkdownFlowLocale,\n} from \"../../lib/locale\";\nimport localeTexts from \"./locales/contentRender.json\";\n\nexport interface ContentRenderLocaleTexts {\n confirmButtonText: string;\n copyButtonText: string;\n copiedButtonText: string;\n sandboxLoadingText: string;\n sandboxFullscreenButtonText: string;\n sandboxExitFullscreenButtonText: string;\n sendButtonLabel: string;\n scrollToBottomLabel: string;\n mermaidLoadingText: string;\n mermaidEmptyChartText: string;\n mermaidErrorText: string;\n footnoteLabel: string;\n footnoteBackLabel: string;\n}\n\nexport const CONTENT_RENDER_LOCALE_TEXTS: Record<\n MarkdownFlowLocale,\n ContentRenderLocaleTexts\n> = localeTexts;\n\nexport const getContentRenderLocaleTexts = (\n locale?: string | null\n): ContentRenderLocaleTexts =>\n CONTENT_RENDER_LOCALE_TEXTS[normalizeMarkdownFlowLocale(locale)];\n"],"names":["CONTENT_RENDER_LOCALE_TEXTS","localeTexts","getContentRenderLocaleTexts","locale","normalizeMarkdownFlowLocale"],"mappings":"
|
|
1
|
+
{"version":3,"file":"contentRenderI18n.cjs","sources":["../../../src/components/ContentRender/contentRenderI18n.ts"],"sourcesContent":["import {\n normalizeMarkdownFlowLocale,\n type MarkdownFlowLocale,\n} from \"../../lib/locale\";\nimport localeTexts from \"./locales/contentRender.json\";\n\nexport interface ContentRenderLocaleTexts {\n confirmButtonText: string;\n copyButtonText: string;\n copiedButtonText: string;\n sandboxLoadingText: string;\n sandboxFullscreenButtonText: string;\n sandboxExitFullscreenButtonText: string;\n sendButtonLabel: string;\n addImageLabel: string;\n removeImageLabel: string;\n attachedImageLabel: string;\n imageUploadingLabel: string;\n scrollToBottomLabel: string;\n mermaidLoadingText: string;\n mermaidEmptyChartText: string;\n mermaidErrorText: string;\n footnoteLabel: string;\n footnoteBackLabel: string;\n}\n\nexport const CONTENT_RENDER_LOCALE_TEXTS: Record<\n MarkdownFlowLocale,\n ContentRenderLocaleTexts\n> = localeTexts;\n\nexport const getContentRenderLocaleTexts = (\n locale?: string | null\n): ContentRenderLocaleTexts =>\n CONTENT_RENDER_LOCALE_TEXTS[normalizeMarkdownFlowLocale(locale)];\n"],"names":["CONTENT_RENDER_LOCALE_TEXTS","localeTexts","getContentRenderLocaleTexts","locale","normalizeMarkdownFlowLocale"],"mappings":"sKA0BaA,EAGTC,EAAAA,QAESC,EACXC,GAEAH,EAA4BI,EAAAA,4BAA4BD,CAAM,CAAC"}
|
|
@@ -7,6 +7,10 @@ export interface ContentRenderLocaleTexts {
|
|
|
7
7
|
sandboxFullscreenButtonText: string;
|
|
8
8
|
sandboxExitFullscreenButtonText: string;
|
|
9
9
|
sendButtonLabel: string;
|
|
10
|
+
addImageLabel: string;
|
|
11
|
+
removeImageLabel: string;
|
|
12
|
+
attachedImageLabel: string;
|
|
13
|
+
imageUploadingLabel: string;
|
|
10
14
|
scrollToBottomLabel: string;
|
|
11
15
|
mermaidLoadingText: string;
|
|
12
16
|
mermaidEmptyChartText: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contentRenderI18n.es.js","sources":["../../../src/components/ContentRender/contentRenderI18n.ts"],"sourcesContent":["import {\n normalizeMarkdownFlowLocale,\n type MarkdownFlowLocale,\n} from \"../../lib/locale\";\nimport localeTexts from \"./locales/contentRender.json\";\n\nexport interface ContentRenderLocaleTexts {\n confirmButtonText: string;\n copyButtonText: string;\n copiedButtonText: string;\n sandboxLoadingText: string;\n sandboxFullscreenButtonText: string;\n sandboxExitFullscreenButtonText: string;\n sendButtonLabel: string;\n scrollToBottomLabel: string;\n mermaidLoadingText: string;\n mermaidEmptyChartText: string;\n mermaidErrorText: string;\n footnoteLabel: string;\n footnoteBackLabel: string;\n}\n\nexport const CONTENT_RENDER_LOCALE_TEXTS: Record<\n MarkdownFlowLocale,\n ContentRenderLocaleTexts\n> = localeTexts;\n\nexport const getContentRenderLocaleTexts = (\n locale?: string | null\n): ContentRenderLocaleTexts =>\n CONTENT_RENDER_LOCALE_TEXTS[normalizeMarkdownFlowLocale(locale)];\n"],"names":["CONTENT_RENDER_LOCALE_TEXTS","localeTexts","getContentRenderLocaleTexts","locale","normalizeMarkdownFlowLocale"],"mappings":";;
|
|
1
|
+
{"version":3,"file":"contentRenderI18n.es.js","sources":["../../../src/components/ContentRender/contentRenderI18n.ts"],"sourcesContent":["import {\n normalizeMarkdownFlowLocale,\n type MarkdownFlowLocale,\n} from \"../../lib/locale\";\nimport localeTexts from \"./locales/contentRender.json\";\n\nexport interface ContentRenderLocaleTexts {\n confirmButtonText: string;\n copyButtonText: string;\n copiedButtonText: string;\n sandboxLoadingText: string;\n sandboxFullscreenButtonText: string;\n sandboxExitFullscreenButtonText: string;\n sendButtonLabel: string;\n addImageLabel: string;\n removeImageLabel: string;\n attachedImageLabel: string;\n imageUploadingLabel: string;\n scrollToBottomLabel: string;\n mermaidLoadingText: string;\n mermaidEmptyChartText: string;\n mermaidErrorText: string;\n footnoteLabel: string;\n footnoteBackLabel: string;\n}\n\nexport const CONTENT_RENDER_LOCALE_TEXTS: Record<\n MarkdownFlowLocale,\n ContentRenderLocaleTexts\n> = localeTexts;\n\nexport const getContentRenderLocaleTexts = (\n locale?: string | null\n): ContentRenderLocaleTexts =>\n CONTENT_RENDER_LOCALE_TEXTS[normalizeMarkdownFlowLocale(locale)];\n"],"names":["CONTENT_RENDER_LOCALE_TEXTS","localeTexts","getContentRenderLocaleTexts","locale","normalizeMarkdownFlowLocale"],"mappings":";;AA0BO,MAAMA,IAGTC,GAESC,IAA8B,CACzCC,MAEAH,EAA4BI,EAA4BD,CAAM,CAAC;"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e={"en-US":{confirmButtonText:"Submit",copyButtonText:"Copy",copiedButtonText:"Copied",sandboxLoadingText:"Generating slides…",sandboxFullscreenButtonText:"Fullscreen",sandboxExitFullscreenButtonText:"Exit fullscreen",sendButtonLabel:"Send",scrollToBottomLabel:"Scroll to bottom",mermaidLoadingText:"Loading Mermaid chart...",mermaidEmptyChartText:"Empty chart content",mermaidErrorText:"Unable to display the Mermaid chart",footnoteLabel:"Footnotes",footnoteBackLabel:"Back to reference {reference}"},"fr-FR":{confirmButtonText:"Soumettre",copyButtonText:"Copier",copiedButtonText:"Copié",sandboxLoadingText:"Création des diapositives…",sandboxFullscreenButtonText:"Plein écran",sandboxExitFullscreenButtonText:"Quitter le plein écran",sendButtonLabel:"Envoyer",scrollToBottomLabel:"Faire défiler jusqu'en bas",mermaidLoadingText:"Chargement du diagramme Mermaid...",mermaidEmptyChartText:"Le diagramme est vide",mermaidErrorText:"Impossible d’afficher le diagramme Mermaid",footnoteLabel:"Notes de bas de page",footnoteBackLabel:"Retour à la référence {reference}"},"zh-CN":{confirmButtonText:"提交",copyButtonText:"复制",copiedButtonText:"已复制",sandboxLoadingText:"生成幻灯片…",sandboxFullscreenButtonText:"全屏浏览",sandboxExitFullscreenButtonText:"退出全屏",sendButtonLabel:"发送",scrollToBottomLabel:"滚动到底部",mermaidLoadingText:"正在加载 Mermaid 图表...",mermaidEmptyChartText:"图表内容为空",mermaidErrorText:"无法显示 Mermaid 图表",footnoteLabel:"脚注",footnoteBackLabel:"返回正文引用 {reference}"},"ar-SA":{confirmButtonText:"إرسال",copyButtonText:"نسخ",copiedButtonText:"تم النسخ",sandboxLoadingText:"جارٍ إنشاء الشرائح…",sandboxFullscreenButtonText:"ملء الشاشة",sandboxExitFullscreenButtonText:"الخروج من ملء الشاشة",sendButtonLabel:"إرسال",scrollToBottomLabel:"التمرير إلى الأسفل",mermaidLoadingText:"جارٍ تحميل مخطط Mermaid...",mermaidEmptyChartText:"محتوى المخطط فارغ",mermaidErrorText:"تعذّر عرض مخطط Mermaid",footnoteLabel:"الحواشي",footnoteBackLabel:"العودة إلى موضع الإحالة {reference}"},"th-TH":{confirmButtonText:"ส่งคำตอบ",copyButtonText:"คัดลอก",copiedButtonText:"คัดลอกแล้ว",sandboxLoadingText:"กำลังสร้างสไลด์…",sandboxFullscreenButtonText:"เต็มหน้าจอ",sandboxExitFullscreenButtonText:"ออกจากเต็มหน้าจอ",sendButtonLabel:"ส่ง",scrollToBottomLabel:"เลื่อนไปด้านล่าง",mermaidLoadingText:"กำลังโหลดแผนภาพ Mermaid...",mermaidEmptyChartText:"ไม่มีเนื้อหาในแผนภาพ",mermaidErrorText:"ไม่สามารถแสดงแผนภาพ Mermaid ได้",footnoteLabel:"เชิงอรรถ",footnoteBackLabel:"กลับไปยังจุดอ้างอิง {reference}"},"es-ES":{confirmButtonText:"Enviar",copyButtonText:"Copiar",copiedButtonText:"Copiado",sandboxLoadingText:"Generando diapositivas…",sandboxFullscreenButtonText:"Pantalla completa",sandboxExitFullscreenButtonText:"Salir de pantalla completa",sendButtonLabel:"Enviar",scrollToBottomLabel:"Desplazarse hasta el final",mermaidLoadingText:"Cargando el diagrama Mermaid...",mermaidEmptyChartText:"El diagrama está vacío",mermaidErrorText:"No se puede mostrar el diagrama Mermaid",footnoteLabel:"Notas al pie",footnoteBackLabel:"Volver a la referencia {reference}"},"de-DE":{confirmButtonText:"Absenden",copyButtonText:"Kopieren",copiedButtonText:"Kopiert",sandboxLoadingText:"Folien werden erstellt…",sandboxFullscreenButtonText:"Vollbild",sandboxExitFullscreenButtonText:"Vollbild verlassen",sendButtonLabel:"Senden",scrollToBottomLabel:"Zum Ende scrollen",mermaidLoadingText:"Mermaid-Diagramm wird geladen...",mermaidEmptyChartText:"Das Diagramm ist leer",mermaidErrorText:"Das Mermaid-Diagramm kann nicht angezeigt werden",footnoteLabel:"Fußnoten",footnoteBackLabel:"Zurück zum Verweis {reference}"},"ja-JP":{confirmButtonText:"送信",copyButtonText:"コピー",copiedButtonText:"コピーしました",sandboxLoadingText:"スライドを作成中…",sandboxFullscreenButtonText:"全画面表示",sandboxExitFullscreenButtonText:"全画面表示を終了",sendButtonLabel:"送信",scrollToBottomLabel:"一番下までスクロール",mermaidLoadingText:"Mermaid 図を読み込み中...",mermaidEmptyChartText:"図の内容がありません",mermaidErrorText:"Mermaid 図を表示できません",footnoteLabel:"脚注",footnoteBackLabel:"参照箇所 {reference} に戻る"},"ur-PK":{confirmButtonText:"جمع کرائیں",copyButtonText:"کاپی کریں",copiedButtonText:"کاپی کر لیا گیا",sandboxLoadingText:"سلائیڈز تیار کی جا رہی ہیں…",sandboxFullscreenButtonText:"پوری اسکرین",sandboxExitFullscreenButtonText:"پوری اسکرین سے باہر نکلیں",sendButtonLabel:"بھیجیں",scrollToBottomLabel:"نیچے تک اسکرول کریں",mermaidLoadingText:"Mermaid چارٹ لوڈ ہو رہا ہے...",mermaidEmptyChartText:"چارٹ کا مواد خالی ہے",mermaidErrorText:"Mermaid چارٹ دکھایا نہیں جا سکا",footnoteLabel:"حواشی",footnoteBackLabel:"حوالہ {reference} پر واپس جائیں"},"fil-PH":{confirmButtonText:"Isumite",copyButtonText:"Kopyahin",copiedButtonText:"Nakopya na",sandboxLoadingText:"Ginagawa ang mga slide…",sandboxFullscreenButtonText:"Buong screen",sandboxExitFullscreenButtonText:"Lumabas sa buong screen",sendButtonLabel:"Ipadala",scrollToBottomLabel:"Mag-scroll hanggang sa ibaba",mermaidLoadingText:"Nilo-load ang diagram ng Mermaid...",mermaidEmptyChartText:"Walang laman ang diagram",mermaidErrorText:"Hindi maipakita ang diagram ng Mermaid",footnoteLabel:"Mga talababa",footnoteBackLabel:"Bumalik sa sanggunian {reference}"},"vi-VN":{confirmButtonText:"Gửi",copyButtonText:"Sao chép",copiedButtonText:"Đã sao chép",sandboxLoadingText:"Đang tạo các trang chiếu…",sandboxFullscreenButtonText:"Toàn màn hình",sandboxExitFullscreenButtonText:"Thoát chế độ toàn màn hình",sendButtonLabel:"Gửi",scrollToBottomLabel:"Cuộn xuống cuối",mermaidLoadingText:"Đang tải sơ đồ Mermaid...",mermaidEmptyChartText:"Sơ đồ không có nội dung",mermaidErrorText:"Không thể hiển thị sơ đồ Mermaid",footnoteLabel:"Chú thích cuối trang",footnoteBackLabel:"Quay lại tham chiếu {reference}"}};exports.default=e;
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e={"en-US":{confirmButtonText:"Submit",copyButtonText:"Copy",copiedButtonText:"Copied",sandboxLoadingText:"Generating slides…",sandboxFullscreenButtonText:"Fullscreen",sandboxExitFullscreenButtonText:"Exit fullscreen",sendButtonLabel:"Send",scrollToBottomLabel:"Scroll to bottom",mermaidLoadingText:"Loading Mermaid chart...",mermaidEmptyChartText:"Empty chart content",mermaidErrorText:"Unable to display the Mermaid chart",footnoteLabel:"Footnotes",footnoteBackLabel:"Back to reference {reference}",addImageLabel:"Add image",removeImageLabel:"Remove image",attachedImageLabel:"Attached image",imageUploadingLabel:"Uploading image"},"fr-FR":{confirmButtonText:"Soumettre",copyButtonText:"Copier",copiedButtonText:"Copié",sandboxLoadingText:"Création des diapositives…",sandboxFullscreenButtonText:"Plein écran",sandboxExitFullscreenButtonText:"Quitter le plein écran",sendButtonLabel:"Envoyer",scrollToBottomLabel:"Faire défiler jusqu'en bas",mermaidLoadingText:"Chargement du diagramme Mermaid...",mermaidEmptyChartText:"Le diagramme est vide",mermaidErrorText:"Impossible d’afficher le diagramme Mermaid",footnoteLabel:"Notes de bas de page",footnoteBackLabel:"Retour à la référence {reference}",addImageLabel:"Ajouter une image",removeImageLabel:"Retirer l’image",attachedImageLabel:"Image jointe",imageUploadingLabel:"Envoi de l’image"},"zh-CN":{confirmButtonText:"提交",copyButtonText:"复制",copiedButtonText:"已复制",sandboxLoadingText:"生成幻灯片…",sandboxFullscreenButtonText:"全屏浏览",sandboxExitFullscreenButtonText:"退出全屏",sendButtonLabel:"发送",scrollToBottomLabel:"滚动到底部",mermaidLoadingText:"正在加载 Mermaid 图表...",mermaidEmptyChartText:"图表内容为空",mermaidErrorText:"无法显示 Mermaid 图表",footnoteLabel:"脚注",footnoteBackLabel:"返回正文引用 {reference}",addImageLabel:"添加图片",removeImageLabel:"移除图片",attachedImageLabel:"已添加的图片",imageUploadingLabel:"图片上传中"},"ar-SA":{confirmButtonText:"إرسال",copyButtonText:"نسخ",copiedButtonText:"تم النسخ",sandboxLoadingText:"جارٍ إنشاء الشرائح…",sandboxFullscreenButtonText:"ملء الشاشة",sandboxExitFullscreenButtonText:"الخروج من ملء الشاشة",sendButtonLabel:"إرسال",scrollToBottomLabel:"التمرير إلى الأسفل",mermaidLoadingText:"جارٍ تحميل مخطط Mermaid...",mermaidEmptyChartText:"محتوى المخطط فارغ",mermaidErrorText:"تعذّر عرض مخطط Mermaid",footnoteLabel:"الحواشي",footnoteBackLabel:"العودة إلى موضع الإحالة {reference}",addImageLabel:"إضافة صورة",removeImageLabel:"إزالة الصورة",attachedImageLabel:"صورة مرفقة",imageUploadingLabel:"جارٍ رفع الصورة"},"th-TH":{confirmButtonText:"ส่งคำตอบ",copyButtonText:"คัดลอก",copiedButtonText:"คัดลอกแล้ว",sandboxLoadingText:"กำลังสร้างสไลด์…",sandboxFullscreenButtonText:"เต็มหน้าจอ",sandboxExitFullscreenButtonText:"ออกจากเต็มหน้าจอ",sendButtonLabel:"ส่ง",scrollToBottomLabel:"เลื่อนไปด้านล่าง",mermaidLoadingText:"กำลังโหลดแผนภาพ Mermaid...",mermaidEmptyChartText:"ไม่มีเนื้อหาในแผนภาพ",mermaidErrorText:"ไม่สามารถแสดงแผนภาพ Mermaid ได้",footnoteLabel:"เชิงอรรถ",footnoteBackLabel:"กลับไปยังจุดอ้างอิง {reference}",addImageLabel:"เพิ่มรูปภาพ",removeImageLabel:"ลบรูปภาพ",attachedImageLabel:"รูปภาพที่แนบ",imageUploadingLabel:"กำลังอัปโหลดรูปภาพ"},"es-ES":{confirmButtonText:"Enviar",copyButtonText:"Copiar",copiedButtonText:"Copiado",sandboxLoadingText:"Generando diapositivas…",sandboxFullscreenButtonText:"Pantalla completa",sandboxExitFullscreenButtonText:"Salir de pantalla completa",sendButtonLabel:"Enviar",scrollToBottomLabel:"Desplazarse hasta el final",mermaidLoadingText:"Cargando el diagrama Mermaid...",mermaidEmptyChartText:"El diagrama está vacío",mermaidErrorText:"No se puede mostrar el diagrama Mermaid",footnoteLabel:"Notas al pie",footnoteBackLabel:"Volver a la referencia {reference}",addImageLabel:"Añadir imagen",removeImageLabel:"Quitar imagen",attachedImageLabel:"Imagen adjunta",imageUploadingLabel:"Subiendo imagen"},"de-DE":{confirmButtonText:"Absenden",copyButtonText:"Kopieren",copiedButtonText:"Kopiert",sandboxLoadingText:"Folien werden erstellt…",sandboxFullscreenButtonText:"Vollbild",sandboxExitFullscreenButtonText:"Vollbild verlassen",sendButtonLabel:"Senden",scrollToBottomLabel:"Zum Ende scrollen",mermaidLoadingText:"Mermaid-Diagramm wird geladen...",mermaidEmptyChartText:"Das Diagramm ist leer",mermaidErrorText:"Das Mermaid-Diagramm kann nicht angezeigt werden",footnoteLabel:"Fußnoten",footnoteBackLabel:"Zurück zum Verweis {reference}",addImageLabel:"Bild hinzufügen",removeImageLabel:"Bild entfernen",attachedImageLabel:"Angehängtes Bild",imageUploadingLabel:"Bild wird hochgeladen"},"ja-JP":{confirmButtonText:"送信",copyButtonText:"コピー",copiedButtonText:"コピーしました",sandboxLoadingText:"スライドを作成中…",sandboxFullscreenButtonText:"全画面表示",sandboxExitFullscreenButtonText:"全画面表示を終了",sendButtonLabel:"送信",scrollToBottomLabel:"一番下までスクロール",mermaidLoadingText:"Mermaid 図を読み込み中...",mermaidEmptyChartText:"図の内容がありません",mermaidErrorText:"Mermaid 図を表示できません",footnoteLabel:"脚注",footnoteBackLabel:"参照箇所 {reference} に戻る",addImageLabel:"画像を追加",removeImageLabel:"画像を削除",attachedImageLabel:"添付画像",imageUploadingLabel:"画像をアップロード中"},"ur-PK":{confirmButtonText:"جمع کرائیں",copyButtonText:"کاپی کریں",copiedButtonText:"کاپی کر لیا گیا",sandboxLoadingText:"سلائیڈز تیار کی جا رہی ہیں…",sandboxFullscreenButtonText:"پوری اسکرین",sandboxExitFullscreenButtonText:"پوری اسکرین سے باہر نکلیں",sendButtonLabel:"بھیجیں",scrollToBottomLabel:"نیچے تک اسکرول کریں",mermaidLoadingText:"Mermaid چارٹ لوڈ ہو رہا ہے...",mermaidEmptyChartText:"چارٹ کا مواد خالی ہے",mermaidErrorText:"Mermaid چارٹ دکھایا نہیں جا سکا",footnoteLabel:"حواشی",footnoteBackLabel:"حوالہ {reference} پر واپس جائیں",addImageLabel:"تصویر شامل کریں",removeImageLabel:"تصویر ہٹائیں",attachedImageLabel:"منسلک تصویر",imageUploadingLabel:"تصویر اپ لوڈ ہو رہی ہے"},"fil-PH":{confirmButtonText:"Isumite",copyButtonText:"Kopyahin",copiedButtonText:"Nakopya na",sandboxLoadingText:"Ginagawa ang mga slide…",sandboxFullscreenButtonText:"Buong screen",sandboxExitFullscreenButtonText:"Lumabas sa buong screen",sendButtonLabel:"Ipadala",scrollToBottomLabel:"Mag-scroll hanggang sa ibaba",mermaidLoadingText:"Nilo-load ang diagram ng Mermaid...",mermaidEmptyChartText:"Walang laman ang diagram",mermaidErrorText:"Hindi maipakita ang diagram ng Mermaid",footnoteLabel:"Mga talababa",footnoteBackLabel:"Bumalik sa sanggunian {reference}",addImageLabel:"Magdagdag ng larawan",removeImageLabel:"Alisin ang larawan",attachedImageLabel:"Kalakip na larawan",imageUploadingLabel:"Ina-upload ang larawan"},"vi-VN":{confirmButtonText:"Gửi",copyButtonText:"Sao chép",copiedButtonText:"Đã sao chép",sandboxLoadingText:"Đang tạo các trang chiếu…",sandboxFullscreenButtonText:"Toàn màn hình",sandboxExitFullscreenButtonText:"Thoát chế độ toàn màn hình",sendButtonLabel:"Gửi",scrollToBottomLabel:"Cuộn xuống cuối",mermaidLoadingText:"Đang tải sơ đồ Mermaid...",mermaidEmptyChartText:"Sơ đồ không có nội dung",mermaidErrorText:"Không thể hiển thị sơ đồ Mermaid",footnoteLabel:"Chú thích cuối trang",footnoteBackLabel:"Quay lại tham chiếu {reference}",addImageLabel:"Thêm ảnh",removeImageLabel:"Xóa ảnh",attachedImageLabel:"Ảnh đính kèm",imageUploadingLabel:"Đang tải ảnh lên"}};exports.default=e;
|
|
2
2
|
//# sourceMappingURL=contentRender.json.cjs.map
|
|
@@ -12,7 +12,11 @@ declare const _default: {
|
|
|
12
12
|
"mermaidEmptyChartText": "Empty chart content",
|
|
13
13
|
"mermaidErrorText": "Unable to display the Mermaid chart",
|
|
14
14
|
"footnoteLabel": "Footnotes",
|
|
15
|
-
"footnoteBackLabel": "Back to reference {reference}"
|
|
15
|
+
"footnoteBackLabel": "Back to reference {reference}",
|
|
16
|
+
"addImageLabel": "Add image",
|
|
17
|
+
"removeImageLabel": "Remove image",
|
|
18
|
+
"attachedImageLabel": "Attached image",
|
|
19
|
+
"imageUploadingLabel": "Uploading image"
|
|
16
20
|
},
|
|
17
21
|
"fr-FR": {
|
|
18
22
|
"confirmButtonText": "Soumettre",
|
|
@@ -27,7 +31,11 @@ declare const _default: {
|
|
|
27
31
|
"mermaidEmptyChartText": "Le diagramme est vide",
|
|
28
32
|
"mermaidErrorText": "Impossible d’afficher le diagramme Mermaid",
|
|
29
33
|
"footnoteLabel": "Notes de bas de page",
|
|
30
|
-
"footnoteBackLabel": "Retour à la référence {reference}"
|
|
34
|
+
"footnoteBackLabel": "Retour à la référence {reference}",
|
|
35
|
+
"addImageLabel": "Ajouter une image",
|
|
36
|
+
"removeImageLabel": "Retirer l’image",
|
|
37
|
+
"attachedImageLabel": "Image jointe",
|
|
38
|
+
"imageUploadingLabel": "Envoi de l’image"
|
|
31
39
|
},
|
|
32
40
|
"zh-CN": {
|
|
33
41
|
"confirmButtonText": "提交",
|
|
@@ -42,7 +50,11 @@ declare const _default: {
|
|
|
42
50
|
"mermaidEmptyChartText": "图表内容为空",
|
|
43
51
|
"mermaidErrorText": "无法显示 Mermaid 图表",
|
|
44
52
|
"footnoteLabel": "脚注",
|
|
45
|
-
"footnoteBackLabel": "返回正文引用 {reference}"
|
|
53
|
+
"footnoteBackLabel": "返回正文引用 {reference}",
|
|
54
|
+
"addImageLabel": "添加图片",
|
|
55
|
+
"removeImageLabel": "移除图片",
|
|
56
|
+
"attachedImageLabel": "已添加的图片",
|
|
57
|
+
"imageUploadingLabel": "图片上传中"
|
|
46
58
|
},
|
|
47
59
|
"ar-SA": {
|
|
48
60
|
"confirmButtonText": "إرسال",
|
|
@@ -57,7 +69,11 @@ declare const _default: {
|
|
|
57
69
|
"mermaidEmptyChartText": "محتوى المخطط فارغ",
|
|
58
70
|
"mermaidErrorText": "تعذّر عرض مخطط Mermaid",
|
|
59
71
|
"footnoteLabel": "الحواشي",
|
|
60
|
-
"footnoteBackLabel": "العودة إلى موضع الإحالة {reference}"
|
|
72
|
+
"footnoteBackLabel": "العودة إلى موضع الإحالة {reference}",
|
|
73
|
+
"addImageLabel": "إضافة صورة",
|
|
74
|
+
"removeImageLabel": "إزالة الصورة",
|
|
75
|
+
"attachedImageLabel": "صورة مرفقة",
|
|
76
|
+
"imageUploadingLabel": "جارٍ رفع الصورة"
|
|
61
77
|
},
|
|
62
78
|
"th-TH": {
|
|
63
79
|
"confirmButtonText": "ส่งคำตอบ",
|
|
@@ -72,7 +88,11 @@ declare const _default: {
|
|
|
72
88
|
"mermaidEmptyChartText": "ไม่มีเนื้อหาในแผนภาพ",
|
|
73
89
|
"mermaidErrorText": "ไม่สามารถแสดงแผนภาพ Mermaid ได้",
|
|
74
90
|
"footnoteLabel": "เชิงอรรถ",
|
|
75
|
-
"footnoteBackLabel": "กลับไปยังจุดอ้างอิง {reference}"
|
|
91
|
+
"footnoteBackLabel": "กลับไปยังจุดอ้างอิง {reference}",
|
|
92
|
+
"addImageLabel": "เพิ่มรูปภาพ",
|
|
93
|
+
"removeImageLabel": "ลบรูปภาพ",
|
|
94
|
+
"attachedImageLabel": "รูปภาพที่แนบ",
|
|
95
|
+
"imageUploadingLabel": "กำลังอัปโหลดรูปภาพ"
|
|
76
96
|
},
|
|
77
97
|
"es-ES": {
|
|
78
98
|
"confirmButtonText": "Enviar",
|
|
@@ -87,7 +107,11 @@ declare const _default: {
|
|
|
87
107
|
"mermaidEmptyChartText": "El diagrama está vacío",
|
|
88
108
|
"mermaidErrorText": "No se puede mostrar el diagrama Mermaid",
|
|
89
109
|
"footnoteLabel": "Notas al pie",
|
|
90
|
-
"footnoteBackLabel": "Volver a la referencia {reference}"
|
|
110
|
+
"footnoteBackLabel": "Volver a la referencia {reference}",
|
|
111
|
+
"addImageLabel": "Añadir imagen",
|
|
112
|
+
"removeImageLabel": "Quitar imagen",
|
|
113
|
+
"attachedImageLabel": "Imagen adjunta",
|
|
114
|
+
"imageUploadingLabel": "Subiendo imagen"
|
|
91
115
|
},
|
|
92
116
|
"de-DE": {
|
|
93
117
|
"confirmButtonText": "Absenden",
|
|
@@ -102,7 +126,11 @@ declare const _default: {
|
|
|
102
126
|
"mermaidEmptyChartText": "Das Diagramm ist leer",
|
|
103
127
|
"mermaidErrorText": "Das Mermaid-Diagramm kann nicht angezeigt werden",
|
|
104
128
|
"footnoteLabel": "Fußnoten",
|
|
105
|
-
"footnoteBackLabel": "Zurück zum Verweis {reference}"
|
|
129
|
+
"footnoteBackLabel": "Zurück zum Verweis {reference}",
|
|
130
|
+
"addImageLabel": "Bild hinzufügen",
|
|
131
|
+
"removeImageLabel": "Bild entfernen",
|
|
132
|
+
"attachedImageLabel": "Angehängtes Bild",
|
|
133
|
+
"imageUploadingLabel": "Bild wird hochgeladen"
|
|
106
134
|
},
|
|
107
135
|
"ja-JP": {
|
|
108
136
|
"confirmButtonText": "送信",
|
|
@@ -117,7 +145,11 @@ declare const _default: {
|
|
|
117
145
|
"mermaidEmptyChartText": "図の内容がありません",
|
|
118
146
|
"mermaidErrorText": "Mermaid 図を表示できません",
|
|
119
147
|
"footnoteLabel": "脚注",
|
|
120
|
-
"footnoteBackLabel": "参照箇所 {reference} に戻る"
|
|
148
|
+
"footnoteBackLabel": "参照箇所 {reference} に戻る",
|
|
149
|
+
"addImageLabel": "画像を追加",
|
|
150
|
+
"removeImageLabel": "画像を削除",
|
|
151
|
+
"attachedImageLabel": "添付画像",
|
|
152
|
+
"imageUploadingLabel": "画像をアップロード中"
|
|
121
153
|
},
|
|
122
154
|
"ur-PK": {
|
|
123
155
|
"confirmButtonText": "جمع کرائیں",
|
|
@@ -132,7 +164,11 @@ declare const _default: {
|
|
|
132
164
|
"mermaidEmptyChartText": "چارٹ کا مواد خالی ہے",
|
|
133
165
|
"mermaidErrorText": "Mermaid چارٹ دکھایا نہیں جا سکا",
|
|
134
166
|
"footnoteLabel": "حواشی",
|
|
135
|
-
"footnoteBackLabel": "حوالہ {reference} پر واپس جائیں"
|
|
167
|
+
"footnoteBackLabel": "حوالہ {reference} پر واپس جائیں",
|
|
168
|
+
"addImageLabel": "تصویر شامل کریں",
|
|
169
|
+
"removeImageLabel": "تصویر ہٹائیں",
|
|
170
|
+
"attachedImageLabel": "منسلک تصویر",
|
|
171
|
+
"imageUploadingLabel": "تصویر اپ لوڈ ہو رہی ہے"
|
|
136
172
|
},
|
|
137
173
|
"fil-PH": {
|
|
138
174
|
"confirmButtonText": "Isumite",
|
|
@@ -147,7 +183,11 @@ declare const _default: {
|
|
|
147
183
|
"mermaidEmptyChartText": "Walang laman ang diagram",
|
|
148
184
|
"mermaidErrorText": "Hindi maipakita ang diagram ng Mermaid",
|
|
149
185
|
"footnoteLabel": "Mga talababa",
|
|
150
|
-
"footnoteBackLabel": "Bumalik sa sanggunian {reference}"
|
|
186
|
+
"footnoteBackLabel": "Bumalik sa sanggunian {reference}",
|
|
187
|
+
"addImageLabel": "Magdagdag ng larawan",
|
|
188
|
+
"removeImageLabel": "Alisin ang larawan",
|
|
189
|
+
"attachedImageLabel": "Kalakip na larawan",
|
|
190
|
+
"imageUploadingLabel": "Ina-upload ang larawan"
|
|
151
191
|
},
|
|
152
192
|
"vi-VN": {
|
|
153
193
|
"confirmButtonText": "Gửi",
|
|
@@ -162,7 +202,11 @@ declare const _default: {
|
|
|
162
202
|
"mermaidEmptyChartText": "Sơ đồ không có nội dung",
|
|
163
203
|
"mermaidErrorText": "Không thể hiển thị sơ đồ Mermaid",
|
|
164
204
|
"footnoteLabel": "Chú thích cuối trang",
|
|
165
|
-
"footnoteBackLabel": "Quay lại tham chiếu {reference}"
|
|
205
|
+
"footnoteBackLabel": "Quay lại tham chiếu {reference}",
|
|
206
|
+
"addImageLabel": "Thêm ảnh",
|
|
207
|
+
"removeImageLabel": "Xóa ảnh",
|
|
208
|
+
"attachedImageLabel": "Ảnh đính kèm",
|
|
209
|
+
"imageUploadingLabel": "Đang tải ảnh lên"
|
|
166
210
|
}
|
|
167
211
|
}
|
|
168
212
|
;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
const e = {
|
|
2
|
-
"en-US": { confirmButtonText: "Submit", copyButtonText: "Copy", copiedButtonText: "Copied", sandboxLoadingText: "Generating slides…", sandboxFullscreenButtonText: "Fullscreen", sandboxExitFullscreenButtonText: "Exit fullscreen", sendButtonLabel: "Send", scrollToBottomLabel: "Scroll to bottom", mermaidLoadingText: "Loading Mermaid chart...", mermaidEmptyChartText: "Empty chart content", mermaidErrorText: "Unable to display the Mermaid chart", footnoteLabel: "Footnotes", footnoteBackLabel: "Back to reference {reference}" },
|
|
3
|
-
"fr-FR": { confirmButtonText: "Soumettre", copyButtonText: "Copier", copiedButtonText: "Copié", sandboxLoadingText: "Création des diapositives…", sandboxFullscreenButtonText: "Plein écran", sandboxExitFullscreenButtonText: "Quitter le plein écran", sendButtonLabel: "Envoyer", scrollToBottomLabel: "Faire défiler jusqu'en bas", mermaidLoadingText: "Chargement du diagramme Mermaid...", mermaidEmptyChartText: "Le diagramme est vide", mermaidErrorText: "Impossible d’afficher le diagramme Mermaid", footnoteLabel: "Notes de bas de page", footnoteBackLabel: "Retour à la référence {reference}" },
|
|
4
|
-
"zh-CN": { confirmButtonText: "提交", copyButtonText: "复制", copiedButtonText: "已复制", sandboxLoadingText: "生成幻灯片…", sandboxFullscreenButtonText: "全屏浏览", sandboxExitFullscreenButtonText: "退出全屏", sendButtonLabel: "发送", scrollToBottomLabel: "滚动到底部", mermaidLoadingText: "正在加载 Mermaid 图表...", mermaidEmptyChartText: "图表内容为空", mermaidErrorText: "无法显示 Mermaid 图表", footnoteLabel: "脚注", footnoteBackLabel: "返回正文引用 {reference}" },
|
|
5
|
-
"ar-SA": { confirmButtonText: "إرسال", copyButtonText: "نسخ", copiedButtonText: "تم النسخ", sandboxLoadingText: "جارٍ إنشاء الشرائح…", sandboxFullscreenButtonText: "ملء الشاشة", sandboxExitFullscreenButtonText: "الخروج من ملء الشاشة", sendButtonLabel: "إرسال", scrollToBottomLabel: "التمرير إلى الأسفل", mermaidLoadingText: "جارٍ تحميل مخطط Mermaid...", mermaidEmptyChartText: "محتوى المخطط فارغ", mermaidErrorText: "تعذّر عرض مخطط Mermaid", footnoteLabel: "الحواشي", footnoteBackLabel: "العودة إلى موضع الإحالة {reference}" },
|
|
6
|
-
"th-TH": { confirmButtonText: "ส่งคำตอบ", copyButtonText: "คัดลอก", copiedButtonText: "คัดลอกแล้ว", sandboxLoadingText: "กำลังสร้างสไลด์…", sandboxFullscreenButtonText: "เต็มหน้าจอ", sandboxExitFullscreenButtonText: "ออกจากเต็มหน้าจอ", sendButtonLabel: "ส่ง", scrollToBottomLabel: "เลื่อนไปด้านล่าง", mermaidLoadingText: "กำลังโหลดแผนภาพ Mermaid...", mermaidEmptyChartText: "ไม่มีเนื้อหาในแผนภาพ", mermaidErrorText: "ไม่สามารถแสดงแผนภาพ Mermaid ได้", footnoteLabel: "เชิงอรรถ", footnoteBackLabel: "กลับไปยังจุดอ้างอิง {reference}" },
|
|
7
|
-
"es-ES": { confirmButtonText: "Enviar", copyButtonText: "Copiar", copiedButtonText: "Copiado", sandboxLoadingText: "Generando diapositivas…", sandboxFullscreenButtonText: "Pantalla completa", sandboxExitFullscreenButtonText: "Salir de pantalla completa", sendButtonLabel: "Enviar", scrollToBottomLabel: "Desplazarse hasta el final", mermaidLoadingText: "Cargando el diagrama Mermaid...", mermaidEmptyChartText: "El diagrama está vacío", mermaidErrorText: "No se puede mostrar el diagrama Mermaid", footnoteLabel: "Notas al pie", footnoteBackLabel: "Volver a la referencia {reference}" },
|
|
8
|
-
"de-DE": { confirmButtonText: "Absenden", copyButtonText: "Kopieren", copiedButtonText: "Kopiert", sandboxLoadingText: "Folien werden erstellt…", sandboxFullscreenButtonText: "Vollbild", sandboxExitFullscreenButtonText: "Vollbild verlassen", sendButtonLabel: "Senden", scrollToBottomLabel: "Zum Ende scrollen", mermaidLoadingText: "Mermaid-Diagramm wird geladen...", mermaidEmptyChartText: "Das Diagramm ist leer", mermaidErrorText: "Das Mermaid-Diagramm kann nicht angezeigt werden", footnoteLabel: "Fußnoten", footnoteBackLabel: "Zurück zum Verweis {reference}" },
|
|
9
|
-
"ja-JP": { confirmButtonText: "送信", copyButtonText: "コピー", copiedButtonText: "コピーしました", sandboxLoadingText: "スライドを作成中…", sandboxFullscreenButtonText: "全画面表示", sandboxExitFullscreenButtonText: "全画面表示を終了", sendButtonLabel: "送信", scrollToBottomLabel: "一番下までスクロール", mermaidLoadingText: "Mermaid 図を読み込み中...", mermaidEmptyChartText: "図の内容がありません", mermaidErrorText: "Mermaid 図を表示できません", footnoteLabel: "脚注", footnoteBackLabel: "参照箇所 {reference} に戻る" },
|
|
10
|
-
"ur-PK": { confirmButtonText: "جمع کرائیں", copyButtonText: "کاپی کریں", copiedButtonText: "کاپی کر لیا گیا", sandboxLoadingText: "سلائیڈز تیار کی جا رہی ہیں…", sandboxFullscreenButtonText: "پوری اسکرین", sandboxExitFullscreenButtonText: "پوری اسکرین سے باہر نکلیں", sendButtonLabel: "بھیجیں", scrollToBottomLabel: "نیچے تک اسکرول کریں", mermaidLoadingText: "Mermaid چارٹ لوڈ ہو رہا ہے...", mermaidEmptyChartText: "چارٹ کا مواد خالی ہے", mermaidErrorText: "Mermaid چارٹ دکھایا نہیں جا سکا", footnoteLabel: "حواشی", footnoteBackLabel: "حوالہ {reference} پر واپس جائیں" },
|
|
11
|
-
"fil-PH": { confirmButtonText: "Isumite", copyButtonText: "Kopyahin", copiedButtonText: "Nakopya na", sandboxLoadingText: "Ginagawa ang mga slide…", sandboxFullscreenButtonText: "Buong screen", sandboxExitFullscreenButtonText: "Lumabas sa buong screen", sendButtonLabel: "Ipadala", scrollToBottomLabel: "Mag-scroll hanggang sa ibaba", mermaidLoadingText: "Nilo-load ang diagram ng Mermaid...", mermaidEmptyChartText: "Walang laman ang diagram", mermaidErrorText: "Hindi maipakita ang diagram ng Mermaid", footnoteLabel: "Mga talababa", footnoteBackLabel: "Bumalik sa sanggunian {reference}" },
|
|
12
|
-
"vi-VN": { confirmButtonText: "Gửi", copyButtonText: "Sao chép", copiedButtonText: "Đã sao chép", sandboxLoadingText: "Đang tạo các trang chiếu…", sandboxFullscreenButtonText: "Toàn màn hình", sandboxExitFullscreenButtonText: "Thoát chế độ toàn màn hình", sendButtonLabel: "Gửi", scrollToBottomLabel: "Cuộn xuống cuối", mermaidLoadingText: "Đang tải sơ đồ Mermaid...", mermaidEmptyChartText: "Sơ đồ không có nội dung", mermaidErrorText: "Không thể hiển thị sơ đồ Mermaid", footnoteLabel: "Chú thích cuối trang", footnoteBackLabel: "Quay lại tham chiếu {reference}" }
|
|
2
|
+
"en-US": { confirmButtonText: "Submit", copyButtonText: "Copy", copiedButtonText: "Copied", sandboxLoadingText: "Generating slides…", sandboxFullscreenButtonText: "Fullscreen", sandboxExitFullscreenButtonText: "Exit fullscreen", sendButtonLabel: "Send", scrollToBottomLabel: "Scroll to bottom", mermaidLoadingText: "Loading Mermaid chart...", mermaidEmptyChartText: "Empty chart content", mermaidErrorText: "Unable to display the Mermaid chart", footnoteLabel: "Footnotes", footnoteBackLabel: "Back to reference {reference}", addImageLabel: "Add image", removeImageLabel: "Remove image", attachedImageLabel: "Attached image", imageUploadingLabel: "Uploading image" },
|
|
3
|
+
"fr-FR": { confirmButtonText: "Soumettre", copyButtonText: "Copier", copiedButtonText: "Copié", sandboxLoadingText: "Création des diapositives…", sandboxFullscreenButtonText: "Plein écran", sandboxExitFullscreenButtonText: "Quitter le plein écran", sendButtonLabel: "Envoyer", scrollToBottomLabel: "Faire défiler jusqu'en bas", mermaidLoadingText: "Chargement du diagramme Mermaid...", mermaidEmptyChartText: "Le diagramme est vide", mermaidErrorText: "Impossible d’afficher le diagramme Mermaid", footnoteLabel: "Notes de bas de page", footnoteBackLabel: "Retour à la référence {reference}", addImageLabel: "Ajouter une image", removeImageLabel: "Retirer l’image", attachedImageLabel: "Image jointe", imageUploadingLabel: "Envoi de l’image" },
|
|
4
|
+
"zh-CN": { confirmButtonText: "提交", copyButtonText: "复制", copiedButtonText: "已复制", sandboxLoadingText: "生成幻灯片…", sandboxFullscreenButtonText: "全屏浏览", sandboxExitFullscreenButtonText: "退出全屏", sendButtonLabel: "发送", scrollToBottomLabel: "滚动到底部", mermaidLoadingText: "正在加载 Mermaid 图表...", mermaidEmptyChartText: "图表内容为空", mermaidErrorText: "无法显示 Mermaid 图表", footnoteLabel: "脚注", footnoteBackLabel: "返回正文引用 {reference}", addImageLabel: "添加图片", removeImageLabel: "移除图片", attachedImageLabel: "已添加的图片", imageUploadingLabel: "图片上传中" },
|
|
5
|
+
"ar-SA": { confirmButtonText: "إرسال", copyButtonText: "نسخ", copiedButtonText: "تم النسخ", sandboxLoadingText: "جارٍ إنشاء الشرائح…", sandboxFullscreenButtonText: "ملء الشاشة", sandboxExitFullscreenButtonText: "الخروج من ملء الشاشة", sendButtonLabel: "إرسال", scrollToBottomLabel: "التمرير إلى الأسفل", mermaidLoadingText: "جارٍ تحميل مخطط Mermaid...", mermaidEmptyChartText: "محتوى المخطط فارغ", mermaidErrorText: "تعذّر عرض مخطط Mermaid", footnoteLabel: "الحواشي", footnoteBackLabel: "العودة إلى موضع الإحالة {reference}", addImageLabel: "إضافة صورة", removeImageLabel: "إزالة الصورة", attachedImageLabel: "صورة مرفقة", imageUploadingLabel: "جارٍ رفع الصورة" },
|
|
6
|
+
"th-TH": { confirmButtonText: "ส่งคำตอบ", copyButtonText: "คัดลอก", copiedButtonText: "คัดลอกแล้ว", sandboxLoadingText: "กำลังสร้างสไลด์…", sandboxFullscreenButtonText: "เต็มหน้าจอ", sandboxExitFullscreenButtonText: "ออกจากเต็มหน้าจอ", sendButtonLabel: "ส่ง", scrollToBottomLabel: "เลื่อนไปด้านล่าง", mermaidLoadingText: "กำลังโหลดแผนภาพ Mermaid...", mermaidEmptyChartText: "ไม่มีเนื้อหาในแผนภาพ", mermaidErrorText: "ไม่สามารถแสดงแผนภาพ Mermaid ได้", footnoteLabel: "เชิงอรรถ", footnoteBackLabel: "กลับไปยังจุดอ้างอิง {reference}", addImageLabel: "เพิ่มรูปภาพ", removeImageLabel: "ลบรูปภาพ", attachedImageLabel: "รูปภาพที่แนบ", imageUploadingLabel: "กำลังอัปโหลดรูปภาพ" },
|
|
7
|
+
"es-ES": { confirmButtonText: "Enviar", copyButtonText: "Copiar", copiedButtonText: "Copiado", sandboxLoadingText: "Generando diapositivas…", sandboxFullscreenButtonText: "Pantalla completa", sandboxExitFullscreenButtonText: "Salir de pantalla completa", sendButtonLabel: "Enviar", scrollToBottomLabel: "Desplazarse hasta el final", mermaidLoadingText: "Cargando el diagrama Mermaid...", mermaidEmptyChartText: "El diagrama está vacío", mermaidErrorText: "No se puede mostrar el diagrama Mermaid", footnoteLabel: "Notas al pie", footnoteBackLabel: "Volver a la referencia {reference}", addImageLabel: "Añadir imagen", removeImageLabel: "Quitar imagen", attachedImageLabel: "Imagen adjunta", imageUploadingLabel: "Subiendo imagen" },
|
|
8
|
+
"de-DE": { confirmButtonText: "Absenden", copyButtonText: "Kopieren", copiedButtonText: "Kopiert", sandboxLoadingText: "Folien werden erstellt…", sandboxFullscreenButtonText: "Vollbild", sandboxExitFullscreenButtonText: "Vollbild verlassen", sendButtonLabel: "Senden", scrollToBottomLabel: "Zum Ende scrollen", mermaidLoadingText: "Mermaid-Diagramm wird geladen...", mermaidEmptyChartText: "Das Diagramm ist leer", mermaidErrorText: "Das Mermaid-Diagramm kann nicht angezeigt werden", footnoteLabel: "Fußnoten", footnoteBackLabel: "Zurück zum Verweis {reference}", addImageLabel: "Bild hinzufügen", removeImageLabel: "Bild entfernen", attachedImageLabel: "Angehängtes Bild", imageUploadingLabel: "Bild wird hochgeladen" },
|
|
9
|
+
"ja-JP": { confirmButtonText: "送信", copyButtonText: "コピー", copiedButtonText: "コピーしました", sandboxLoadingText: "スライドを作成中…", sandboxFullscreenButtonText: "全画面表示", sandboxExitFullscreenButtonText: "全画面表示を終了", sendButtonLabel: "送信", scrollToBottomLabel: "一番下までスクロール", mermaidLoadingText: "Mermaid 図を読み込み中...", mermaidEmptyChartText: "図の内容がありません", mermaidErrorText: "Mermaid 図を表示できません", footnoteLabel: "脚注", footnoteBackLabel: "参照箇所 {reference} に戻る", addImageLabel: "画像を追加", removeImageLabel: "画像を削除", attachedImageLabel: "添付画像", imageUploadingLabel: "画像をアップロード中" },
|
|
10
|
+
"ur-PK": { confirmButtonText: "جمع کرائیں", copyButtonText: "کاپی کریں", copiedButtonText: "کاپی کر لیا گیا", sandboxLoadingText: "سلائیڈز تیار کی جا رہی ہیں…", sandboxFullscreenButtonText: "پوری اسکرین", sandboxExitFullscreenButtonText: "پوری اسکرین سے باہر نکلیں", sendButtonLabel: "بھیجیں", scrollToBottomLabel: "نیچے تک اسکرول کریں", mermaidLoadingText: "Mermaid چارٹ لوڈ ہو رہا ہے...", mermaidEmptyChartText: "چارٹ کا مواد خالی ہے", mermaidErrorText: "Mermaid چارٹ دکھایا نہیں جا سکا", footnoteLabel: "حواشی", footnoteBackLabel: "حوالہ {reference} پر واپس جائیں", addImageLabel: "تصویر شامل کریں", removeImageLabel: "تصویر ہٹائیں", attachedImageLabel: "منسلک تصویر", imageUploadingLabel: "تصویر اپ لوڈ ہو رہی ہے" },
|
|
11
|
+
"fil-PH": { confirmButtonText: "Isumite", copyButtonText: "Kopyahin", copiedButtonText: "Nakopya na", sandboxLoadingText: "Ginagawa ang mga slide…", sandboxFullscreenButtonText: "Buong screen", sandboxExitFullscreenButtonText: "Lumabas sa buong screen", sendButtonLabel: "Ipadala", scrollToBottomLabel: "Mag-scroll hanggang sa ibaba", mermaidLoadingText: "Nilo-load ang diagram ng Mermaid...", mermaidEmptyChartText: "Walang laman ang diagram", mermaidErrorText: "Hindi maipakita ang diagram ng Mermaid", footnoteLabel: "Mga talababa", footnoteBackLabel: "Bumalik sa sanggunian {reference}", addImageLabel: "Magdagdag ng larawan", removeImageLabel: "Alisin ang larawan", attachedImageLabel: "Kalakip na larawan", imageUploadingLabel: "Ina-upload ang larawan" },
|
|
12
|
+
"vi-VN": { confirmButtonText: "Gửi", copyButtonText: "Sao chép", copiedButtonText: "Đã sao chép", sandboxLoadingText: "Đang tạo các trang chiếu…", sandboxFullscreenButtonText: "Toàn màn hình", sandboxExitFullscreenButtonText: "Thoát chế độ toàn màn hình", sendButtonLabel: "Gửi", scrollToBottomLabel: "Cuộn xuống cuối", mermaidLoadingText: "Đang tải sơ đồ Mermaid...", mermaidEmptyChartText: "Sơ đồ không có nội dung", mermaidErrorText: "Không thể hiển thị sơ đồ Mermaid", footnoteLabel: "Chú thích cuối trang", footnoteBackLabel: "Quay lại tham chiếu {reference}", addImageLabel: "Thêm ảnh", removeImageLabel: "Xóa ảnh", attachedImageLabel: "Ảnh đính kèm", imageUploadingLabel: "Đang tải ảnh lên" }
|
|
13
13
|
};
|
|
14
14
|
export {
|
|
15
15
|
e as default
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const s=require("react/jsx-runtime"),j=require("react"),
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const s=require("react/jsx-runtime"),j=require("react"),H=require("../../../_virtual/index.cjs"),Q=require("../../ui/button.cjs"),W=require("../../ui/checkbox.cjs"),R=require("../MarkdownFlowInput.cjs"),X=require("../ImageInputGroup.cjs"),Y=require("../utils/accept-placeholder.cjs"),Z=require("../../ui/inputGroup/input-group.cjs"),A=require("../../../lib/utils.cjs"),$=require("../contentRenderI18n.cjs"),I=({node:a,readonly:p,selectedValues:e,inputValue:l,confirmButtonText:i,handleCheckboxChange:o,handleInputChange:m,handleKeyDown:x,handleConfirmClick:f,showImageInput:d,imageInput:h,locale:C})=>{const b=a.properties?.placeholder,r=p||h?.uploading||e.length===0&&!l?.trim()&&!(a.properties?.placeholder&&h?.images.length),g=u=>s.jsx("span",{className:A.cn("multi-select-confirm-wrapper flex flex-col items-center",r?"opacity-50 cursor-not-allowed":"cursor-pointer",u),children:s.jsx("button",{type:"button",className:"multi-select-confirm-button text-sm font-medium text-primary",disabled:r,onClick:f,children:i})});return s.jsxs("span",{className:"multi-select-container flex w-full flex-col",children:[s.jsx("span",{className:"flex flex-wrap gap-y-[9px] gap-x-6",children:a.properties?.buttonTexts?.map((u,n)=>{const N=a.properties?.buttonValues?.[n],v=N!==void 0?N:u;return s.jsx(W.Checkbox,{label:u,disabled:p,checked:e.includes(v),onCheckedChange:T=>o(v,T),className:"text-sm"},n)})}),b?s.jsx("span",{className:"block mb-1 w-full max-w-[500px]",children:s.jsxs("span",{className:"multi-select-input-row flex w-full items-end gap-3",children:[s.jsx(X.ImageInputGroup,{disabled:p,locale:C,showImageInput:d,imageInput:h,className:"flex-1",children:s.jsx(Z.InputGroupTextarea,{disabled:p,placeholder:b,value:l,onChange:m,onKeyDown:x,className:"text-sm px-3",title:b})}),g("shrink-0")]})}):g("self-start multi-select-confirm-wrapper--stacked")]})},ee=({dir:a,lang:p,node:e,readonly:l,locale:i,resolvedDefaultButtonText:o,handleButtonClick:m,inputValue:x,handleInputChange:f,handleSendClick:d,onAcceptPlaceholder:h,showImageInput:C,imageInput:b})=>s.jsxs("span",{className:"single-select-container inline-flex w-full flex-col",children:[s.jsx("span",{className:"flex flex-wrap gap-y-[9px] gap-x-2",children:e.properties?.buttonTexts?.map((r,g)=>{const u=e.properties?.buttonValues?.[g],n=u!==void 0?u:r;return s.jsx(Q.Button,{disabled:l,variant:"outline",type:"button",size:"sm",onClick:()=>m(n),className:A.cn("max-w-full shrink whitespace-normal break-words text-start leading-5 h-auto min-h-8 px-3 py-1.5","hover:bg-gray-200",o===r&&"select"),children:r},g)})}),e.properties?.placeholder&&s.jsx("span",{className:"mt-[9px] mb-1",children:s.jsx(R.default,{showImageInput:C,imageInput:b,dir:a,lang:p,disabled:l,locale:i,placeholder:e.properties.placeholder,value:x,onChange:f,onSend:d,onAcceptPlaceholder:h,title:e.properties.placeholder})})]}),te=({dir:a,lang:p,readonly:e,locale:l,placeholder:i,value:o,onChange:m,onSend:x,onAcceptPlaceholder:f,showImageInput:d,imageInput:h})=>i?s.jsx(R.default,{showImageInput:d,imageInput:h,dir:a,lang:p,disabled:e,locale:l,placeholder:i,value:o,onChange:m,onSend:x,onAcceptPlaceholder:f,title:i}):null,se=({dir:a,lang:p,node:e,readonly:l,locale:i,defaultButtonText:o,defaultInputText:m,defaultSelectedValues:x,onSend:f,confirmButtonText:d,beforeSend:h=()=>!0,onPlaceholderAccepted:C,showImageInput:b,imageInput:r})=>{const g=$.getContentRenderLocaleTexts(i),u=d||g.confirmButtonText,[n,N]=j.useState(m||""),[v,T]=j.useState(x||[]),D=JSON.stringify({buttonTexts:e.properties?.buttonTexts,buttonValues:e.properties?.buttonValues,isMultiSelect:e.properties?.isMultiSelect,placeholder:e.properties?.placeholder,variableName:e.properties?.variableName}),S=e.properties?.isMultiSelect??!1,z=e.properties?.buttonTexts||[],E=!S&&z.length===0&&!e.properties?.placeholder,q=H.distExports.normalizeVariableName(e.properties?.variableName||"")||o||u,V=j.useMemo(()=>E?{...e,properties:{...e.properties||{},buttonTexts:[q],buttonValues:[q]}}:e,[q,e,E]),k=V.properties?.buttonTexts||[],G=V.properties?.buttonValues||[],K=!S&&k.length>0,M=t=>{if(l||r?.uploading)return;const c=e.properties?.placeholder&&r?.images.length?[...r.images]:void 0,w=c?{...t,...t.buttonText!==void 0&&n?{inputText:n}:{},images:c}:t;h?.(w)&&f?.(w)},F=t=>{const c={variableName:e.properties?.variableName||"",buttonText:t};M(c)},L=(t,c)=>{T(w=>c?[...w,t]:w.filter(U=>U!==t))},O=()=>{const t=v.length===0&&!n?.trim()&&!(e.properties?.placeholder&&r?.images.length),c={variableName:e.properties?.variableName||"",selectedValues:v,inputText:n?.trim()||void 0};l||t||M(c)},y=t=>{N(t.target.value)},B=t=>{N(t);try{Promise.resolve(C?.()).catch(()=>{})}catch{}},_=t=>{Y.acceptPlaceholder(t,e.properties?.placeholder,l,B)||t.nativeEvent.isComposing||t.keyCode===229||t.key==="Enter"&&!t.shiftKey&&(t.preventDefault(),S?v.length===0&&!n.trim()&&!r?.images.length||O():P())},P=()=>{const t={variableName:e.properties?.variableName||"",inputText:n};M(t)},J=j.useMemo(()=>{if(!o)return;const t=G.indexOf(o);if(t>-1)return k[t]??o;const c=k.indexOf(o);if(c>-1)return k[c]},[o,k,G]);return j.useEffect(()=>{N(m||"")},[m,D]),j.useEffect(()=>{T(x||[])},[x,D]),s.jsxs("span",{className:"custom-variable-container inline-flex items-center flex-wrap",children:[S&&s.jsx(I,{locale:i,showImageInput:b,imageInput:r,node:e,readonly:l,selectedValues:v,inputValue:n,confirmButtonText:u,handleCheckboxChange:L,handleInputChange:y,handleKeyDown:_,handleConfirmClick:O}),!S&&K&&s.jsx(ee,{showImageInput:b,imageInput:r,dir:a,lang:p,node:V,readonly:l,locale:i,resolvedDefaultButtonText:J,handleButtonClick:F,inputValue:n,handleInputChange:y,handleSendClick:P,onAcceptPlaceholder:B}),!S&&!K&&e.properties?.placeholder&&s.jsx(te,{showImageInput:b,imageInput:r,dir:a,lang:p,readonly:l,locale:i,placeholder:e.properties.placeholder,value:n,onChange:y,onSend:P,onAcceptPlaceholder:B})]})};exports.default=se;
|
|
2
2
|
//# sourceMappingURL=CustomVariable.cjs.map
|