@epam/ai-dial-skill-editor 1.2.0-dev.148 → 1.2.0-dev.152
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/components/SkillFileUploadDialog/SkillFileUploadDialog.d.ts.map +1 -1
- package/index.css +1 -1
- package/index.js +339 -339
- package/package.json +5 -5
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SkillFileUploadDialog.d.ts","sourceRoot":"","sources":["../../../src/components/SkillFileUploadDialog/SkillFileUploadDialog.tsx"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAEhC,OAAO,KAAK,EACV,sBAAsB,EACtB,iBAAiB,EAGlB,MAAM,iCAAiC,CAAC;AAOzC,yCAAyC;AACzC,MAAM,WAAW,0BAA0B;IACzC,kCAAkC;IAClC,MAAM,EAAE,OAAO,CAAC;IAChB,0FAA0F;IAC1F,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,sDAAsD;IACtD,WAAW,EAAE,IAAI,CAAC,sBAAsB,EAAE,eAAe,GAAG,aAAa,CAAC,CAAC;IAC3E;;;OAGG;IACH,YAAY,CAAC,EAAE,IAAI,EAAE,CAAC;IACtB,sBAAsB;IACtB,MAAM,CAAC,EAAE,iBAAiB,CAAC;CAC5B;AAWD;;;GAGG;AACH,eAAO,MAAM,qBAAqB,EAAE,EAAE,CAAC,0BAA0B,
|
|
1
|
+
{"version":3,"file":"SkillFileUploadDialog.d.ts","sourceRoot":"","sources":["../../../src/components/SkillFileUploadDialog/SkillFileUploadDialog.tsx"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAEhC,OAAO,KAAK,EACV,sBAAsB,EACtB,iBAAiB,EAGlB,MAAM,iCAAiC,CAAC;AAOzC,yCAAyC;AACzC,MAAM,WAAW,0BAA0B;IACzC,kCAAkC;IAClC,MAAM,EAAE,OAAO,CAAC;IAChB,0FAA0F;IAC1F,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,sDAAsD;IACtD,WAAW,EAAE,IAAI,CAAC,sBAAsB,EAAE,eAAe,GAAG,aAAa,CAAC,CAAC;IAC3E;;;OAGG;IACH,YAAY,CAAC,EAAE,IAAI,EAAE,CAAC;IACtB,sBAAsB;IACtB,MAAM,CAAC,EAAE,iBAAiB,CAAC;CAC5B;AAWD;;;GAGG;AACH,eAAO,MAAM,qBAAqB,EAAE,EAAE,CAAC,0BAA0B,CAqPhE,CAAC"}
|
package/index.css
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
._body_m2y60_2._body_m2y60_2{flex-direction:column}._sideColumn_m2y60_6._sideColumn_m2y60_6{width:100%}._reservedColumn_m2y60_10._reservedColumn_m2y60_10{display:none}@media (width>=1280px){._body_m2y60_2._body_m2y60_2{flex-direction:row}._sideColumn_m2y60_6._sideColumn_m2y60_6{flex-shrink:0;width:400px}._reservedColumn_m2y60_10._reservedColumn_m2y60_10{display:block}}._headerBorder_1kidu_1{border-bottom-color:var(--el-header-border-color,var(--stroke-tertiary,#e0e6f0))}._footerBorder_1kidu_5{border-top-color:var(--el-header-border-color,var(--stroke-tertiary,#e0e6f0))}._sidebarBorder_1kidu_9{border-inline-end-color:var(--el-sidebar-border-color,var(--stroke-tertiary,#e0e6f0))}@media (prefers-color-scheme:dark){.wmde-markdown,.wmde-markdown-var{--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;--color-prettylights-syntax-comment:#8b949e;--color-prettylights-syntax-constant:#79c0ff;--color-prettylights-syntax-entity:#d2a8ff;--color-prettylights-syntax-storage-modifier-import:#c9d1d9;--color-prettylights-syntax-entity-tag:#7ee787;--color-prettylights-syntax-keyword:#ff7b72;--color-prettylights-syntax-string:#a5d6ff;--color-prettylights-syntax-variable:#ffa657;--color-prettylights-syntax-brackethighlighter-unmatched:#f85149;--color-prettylights-syntax-invalid-illegal-text:#f0f6fc;--color-prettylights-syntax-invalid-illegal-bg:#8e1519;--color-prettylights-syntax-carriage-return-text:#f0f6fc;--color-prettylights-syntax-carriage-return-bg:#b62324;--color-prettylights-syntax-string-regexp:#7ee787;--color-prettylights-syntax-markup-list:#f2cc60;--color-prettylights-syntax-markup-heading:#1f6feb;--color-prettylights-syntax-markup-italic:#c9d1d9;--color-prettylights-syntax-markup-bold:#c9d1d9;--color-prettylights-syntax-markup-deleted-text:#ffdcd7;--color-prettylights-syntax-markup-deleted-bg:#67060c;--color-prettylights-syntax-markup-inserted-text:#aff5b4;--color-prettylights-syntax-markup-inserted-bg:#033a16;--color-prettylights-syntax-markup-changed-text:#ffdfb6;--color-prettylights-syntax-markup-changed-bg:#5a1e02;--color-prettylights-syntax-markup-ignored-text:#c9d1d9;--color-prettylights-syntax-markup-ignored-bg:#1158c7;--color-prettylights-syntax-meta-diff-range:#d2a8ff;--color-prettylights-syntax-brackethighlighter-angle:#8b949e;--color-prettylights-syntax-sublimelinter-gutter-mark:#484f58;--color-prettylights-syntax-constant-other-reference-link:#a5d6ff;--color-fg-default:#c9d1d9;--color-fg-muted:#8b949e;--color-fg-subtle:#484f58;--color-canvas-default:#0d1117;--color-canvas-subtle:#161b22;--color-border-default:#30363d;--color-border-muted:#21262d;--color-neutral-muted:#6e768166;--color-accent-fg:#58a6ff;--color-accent-emphasis:#1f6feb;--color-attention-subtle:#bb800926;--color-danger-fg:#f85149;--color-danger-emphasis:#da3633;--color-attention-fg:#d29922;--color-attention-emphasis:#9e6a03;--color-done-fg:#a371f7;--color-done-emphasis:#8957e5;--color-success-fg:#3fb950;--color-success-emphasis:#238636;--color-copied-active-bg:#2e9b33}}@media (prefers-color-scheme:light){.wmde-markdown,.wmde-markdown-var{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light;--color-prettylights-syntax-comment:#6e7781;--color-prettylights-syntax-constant:#0550ae;--color-prettylights-syntax-entity:#8250df;--color-prettylights-syntax-storage-modifier-import:#24292f;--color-prettylights-syntax-entity-tag:#116329;--color-prettylights-syntax-keyword:#cf222e;--color-prettylights-syntax-string:#0a3069;--color-prettylights-syntax-variable:#953800;--color-prettylights-syntax-brackethighlighter-unmatched:#82071e;--color-prettylights-syntax-invalid-illegal-text:#f6f8fa;--color-prettylights-syntax-invalid-illegal-bg:#82071e;--color-prettylights-syntax-carriage-return-text:#f6f8fa;--color-prettylights-syntax-carriage-return-bg:#cf222e;--color-prettylights-syntax-string-regexp:#116329;--color-prettylights-syntax-markup-list:#3b2300;--color-prettylights-syntax-markup-heading:#0550ae;--color-prettylights-syntax-markup-italic:#24292f;--color-prettylights-syntax-markup-bold:#24292f;--color-prettylights-syntax-markup-deleted-text:#82071e;--color-prettylights-syntax-markup-deleted-bg:#ffebe9;--color-prettylights-syntax-markup-inserted-text:#116329;--color-prettylights-syntax-markup-inserted-bg:#dafbe1;--color-prettylights-syntax-markup-changed-text:#953800;--color-prettylights-syntax-markup-changed-bg:#ffd8b5;--color-prettylights-syntax-markup-ignored-text:#eaeef2;--color-prettylights-syntax-markup-ignored-bg:#0550ae;--color-prettylights-syntax-meta-diff-range:#8250df;--color-prettylights-syntax-brackethighlighter-angle:#57606a;--color-prettylights-syntax-sublimelinter-gutter-mark:#8c959f;--color-prettylights-syntax-constant-other-reference-link:#0a3069;--color-fg-default:#24292f;--color-fg-muted:#57606a;--color-fg-subtle:#6e7781;--color-canvas-default:#fff;--color-canvas-subtle:#f6f8fa;--color-border-default:#d0d7de;--color-border-muted:#d8dee4;--color-neutral-muted:#afb8c133;--color-accent-fg:#0969da;--color-accent-emphasis:#0969da;--color-attention-subtle:#fff8c5;--color-danger-fg:#d1242f;--color-danger-emphasis:#cf222e;--color-attention-fg:#9a6700;--color-attention-emphasis:#9a6700;--color-done-fg:#8250df;--color-done-emphasis:#8250df;--color-success-fg:#1a7f37;--color-success-emphasis:#1f883d;--color-copied-active-bg:#2e9b33}}[data-color-mode*=dark] .wmde-markdown,[data-color-mode*=dark] .wmde-markdown-var,.wmde-markdown-var[data-color-mode*=dark],.wmde-markdown[data-color-mode*=dark],body[data-color-mode*=dark]{--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;--color-prettylights-syntax-comment:#8b949e;--color-prettylights-syntax-constant:#79c0ff;--color-prettylights-syntax-entity:#d2a8ff;--color-prettylights-syntax-storage-modifier-import:#c9d1d9;--color-prettylights-syntax-entity-tag:#7ee787;--color-prettylights-syntax-keyword:#ff7b72;--color-prettylights-syntax-string:#a5d6ff;--color-prettylights-syntax-variable:#ffa657;--color-prettylights-syntax-brackethighlighter-unmatched:#f85149;--color-prettylights-syntax-invalid-illegal-text:#f0f6fc;--color-prettylights-syntax-invalid-illegal-bg:#8e1519;--color-prettylights-syntax-carriage-return-text:#f0f6fc;--color-prettylights-syntax-carriage-return-bg:#b62324;--color-prettylights-syntax-string-regexp:#7ee787;--color-prettylights-syntax-markup-list:#f2cc60;--color-prettylights-syntax-markup-heading:#1f6feb;--color-prettylights-syntax-markup-italic:#c9d1d9;--color-prettylights-syntax-markup-bold:#c9d1d9;--color-prettylights-syntax-markup-deleted-text:#ffdcd7;--color-prettylights-syntax-markup-deleted-bg:#67060c;--color-prettylights-syntax-markup-inserted-text:#aff5b4;--color-prettylights-syntax-markup-inserted-bg:#033a16;--color-prettylights-syntax-markup-changed-text:#ffdfb6;--color-prettylights-syntax-markup-changed-bg:#5a1e02;--color-prettylights-syntax-markup-ignored-text:#c9d1d9;--color-prettylights-syntax-markup-ignored-bg:#1158c7;--color-prettylights-syntax-meta-diff-range:#d2a8ff;--color-prettylights-syntax-brackethighlighter-angle:#8b949e;--color-prettylights-syntax-sublimelinter-gutter-mark:#484f58;--color-prettylights-syntax-constant-other-reference-link:#a5d6ff;--color-fg-default:#c9d1d9;--color-fg-muted:#8b949e;--color-fg-subtle:#484f58;--color-canvas-default:#0d1117;--color-canvas-subtle:#161b22;--color-border-default:#30363d;--color-border-muted:#21262d;--color-neutral-muted:#6e768166;--color-accent-fg:#58a6ff;--color-accent-emphasis:#1f6feb;--color-attention-subtle:#bb800926;--color-danger-fg:#f85149}[data-color-mode*=light] .wmde-markdown,[data-color-mode*=light] .wmde-markdown-var,.wmde-markdown-var[data-color-mode*=light],.wmde-markdown[data-color-mode*=light],body[data-color-mode*=light]{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light;--color-prettylights-syntax-comment:#6e7781;--color-prettylights-syntax-constant:#0550ae;--color-prettylights-syntax-entity:#8250df;--color-prettylights-syntax-storage-modifier-import:#24292f;--color-prettylights-syntax-entity-tag:#116329;--color-prettylights-syntax-keyword:#cf222e;--color-prettylights-syntax-string:#0a3069;--color-prettylights-syntax-variable:#953800;--color-prettylights-syntax-brackethighlighter-unmatched:#82071e;--color-prettylights-syntax-invalid-illegal-text:#f6f8fa;--color-prettylights-syntax-invalid-illegal-bg:#82071e;--color-prettylights-syntax-carriage-return-text:#f6f8fa;--color-prettylights-syntax-carriage-return-bg:#cf222e;--color-prettylights-syntax-string-regexp:#116329;--color-prettylights-syntax-markup-list:#3b2300;--color-prettylights-syntax-markup-heading:#0550ae;--color-prettylights-syntax-markup-italic:#24292f;--color-prettylights-syntax-markup-bold:#24292f;--color-prettylights-syntax-markup-deleted-text:#82071e;--color-prettylights-syntax-markup-deleted-bg:#ffebe9;--color-prettylights-syntax-markup-inserted-text:#116329;--color-prettylights-syntax-markup-inserted-bg:#dafbe1;--color-prettylights-syntax-markup-changed-text:#953800;--color-prettylights-syntax-markup-changed-bg:#ffd8b5;--color-prettylights-syntax-markup-ignored-text:#eaeef2;--color-prettylights-syntax-markup-ignored-bg:#0550ae;--color-prettylights-syntax-meta-diff-range:#8250df;--color-prettylights-syntax-brackethighlighter-angle:#57606a;--color-prettylights-syntax-sublimelinter-gutter-mark:#8c959f;--color-prettylights-syntax-constant-other-reference-link:#0a3069;--color-fg-default:#24292f;--color-fg-muted:#57606a;--color-fg-subtle:#6e7781;--color-canvas-default:#fff;--color-canvas-subtle:#f6f8fa;--color-border-default:#d0d7de;--color-border-muted:#d8dee4;--color-neutral-muted:#afb8c133;--color-accent-fg:#0969da;--color-accent-emphasis:#0969da;--color-attention-subtle:#fff8c5;--color-danger-fg:#cf222e}.wmde-markdown{-webkit-text-size-adjust:100%;word-wrap:break-word;color:var(--color-fg-default);background-color:var(--color-canvas-default);font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Noto Sans,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji;font-size:16px;line-height:1.5}.wmde-markdown details,.wmde-markdown figcaption,.wmde-markdown figure{display:block}.wmde-markdown summary{display:list-item}.wmde-markdown [hidden]{display:none!important}.wmde-markdown a{color:var(--color-accent-fg);background-color:#0000;text-decoration:none}.wmde-markdown a:active,.wmde-markdown a:hover{outline-width:0}.wmde-markdown abbr[title]{border-bottom:none;-webkit-text-decoration:underline dotted;text-decoration:underline dotted}.wmde-markdown b,.wmde-markdown strong{font-weight:600}.wmde-markdown dfn{font-style:italic}.wmde-markdown h1{border-bottom:1px solid var(--color-border-muted);margin:.67em 0;padding-bottom:.3em;font-size:2em;font-weight:600}.wmde-markdown mark{background-color:var(--color-attention-subtle);color:var(--color-text-primary)}.wmde-markdown small{font-size:90%}.wmde-markdown sub,.wmde-markdown sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}.wmde-markdown sub{bottom:-.25em}.wmde-markdown sup{top:-.5em}.wmde-markdown img{box-sizing:content-box;background-color:var(--color-canvas-default);border-style:none;max-width:100%;display:inline-block}.wmde-markdown code,.wmde-markdown kbd,.wmde-markdown pre,.wmde-markdown samp{font-family:monospace;font-size:1em}.wmde-markdown figure{margin:1em 40px}.wmde-markdown hr{box-sizing:content-box;border:0;border-bottom:1px solid var(--color-border-muted);background:0 0;background-color:var(--color-border-default);height:.25em;margin:24px 0;padding:0;overflow:hidden}.wmde-markdown input{font:inherit;font-family:inherit;font-size:inherit;line-height:inherit;margin:0;overflow:visible}.wmde-markdown [type=button],.wmde-markdown [type=reset],.wmde-markdown [type=submit]{-webkit-appearance:button}.wmde-markdown [type=button]::-moz-focus-inner{border-style:none;padding:0}.wmde-markdown [type=reset]::-moz-focus-inner{border-style:none;padding:0}.wmde-markdown [type=submit]::-moz-focus-inner{border-style:none;padding:0}:is(.wmde-markdown [type=button]:-moz-focusring,.wmde-markdown [type=reset]:-moz-focusring,.wmde-markdown [type=submit]:-moz-focusring){outline:1px dotted buttontext}.wmde-markdown [type=checkbox],.wmde-markdown [type=radio]{box-sizing:border-box;padding:0}.wmde-markdown [type=number]::-webkit-inner-spin-button{height:auto}.wmde-markdown [type=number]::-webkit-outer-spin-button{height:auto}.wmde-markdown [type=search]{-webkit-appearance:textfield;outline-offset:-2px}.wmde-markdown [type=search]::-webkit-search-cancel-button{-webkit-appearance:none}.wmde-markdown [type=search]::-webkit-search-decoration{-webkit-appearance:none}.wmde-markdown ::-webkit-input-placeholder{color:inherit;opacity:.54}.wmde-markdown ::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}.wmde-markdown a:hover{text-decoration:underline}.wmde-markdown hr:before{content:"";display:table}.wmde-markdown hr:after{clear:both;content:"";display:table}.wmde-markdown table{border-spacing:0;border-collapse:collapse;width:max-content;max-width:100%;display:block}.wmde-markdown td,.wmde-markdown th{padding:0}.wmde-markdown details summary{cursor:pointer}.wmde-markdown details:not([open])>:not(summary){display:none!important}.wmde-markdown kbd{color:var(--color-fg-default);vertical-align:middle;background-color:var(--color-canvas-subtle);border:solid 1px var(--color-neutral-muted);border-bottom-color:var(--color-neutral-muted);box-shadow:inset 0 -1px 0 var(--color-neutral-muted);border-radius:6px;padding:3px 5px;font:11px/10px ui-monospace,SFMono-Regular,SF Mono,Menlo,Consolas,Liberation Mono,monospace;display:inline-block}.wmde-markdown h1,.wmde-markdown h2,.wmde-markdown h3,.wmde-markdown h4,.wmde-markdown h5,.wmde-markdown h6{margin-top:24px;margin-bottom:16px;font-weight:600;line-height:1.25}.wmde-markdown h2{border-bottom:1px solid var(--color-border-muted);padding-bottom:.3em;font-size:1.5em;font-weight:600}.wmde-markdown h3{font-size:1.25em;font-weight:600}.wmde-markdown h4{font-size:1em;font-weight:600}.wmde-markdown h5{font-size:.875em;font-weight:600}.wmde-markdown h6{color:var(--color-fg-muted);font-size:.85em;font-weight:600}.wmde-markdown p{margin-top:0;margin-bottom:10px}.wmde-markdown blockquote{color:var(--color-fg-muted);border-left:.25em solid var(--color-border-default);margin:0;padding:0 1em}.wmde-markdown ul,.wmde-markdown ol{margin-top:0;margin-bottom:0;padding-left:2em}.wmde-markdown ol ol,.wmde-markdown ul ol{list-style-type:lower-roman}.wmde-markdown ul ul ol,.wmde-markdown ul ol ol,.wmde-markdown ol ul ol,.wmde-markdown ol ol ol{list-style-type:lower-alpha}.wmde-markdown dd{margin-left:0}.wmde-markdown tt,.wmde-markdown code{font-family:ui-monospace,SFMono-Regular,SF Mono,Menlo,Consolas,Liberation Mono,monospace;font-size:12px}.wmde-markdown pre{word-wrap:normal;margin-top:0;margin-bottom:0;font-family:ui-monospace,SFMono-Regular,SF Mono,Menlo,Consolas,Liberation Mono,monospace;font-size:12px}.wmde-markdown .octicon{vertical-align:text-bottom;fill:currentColor;display:inline-block;overflow:visible!important}.wmde-markdown ::placeholder{color:var(--color-fg-subtle);opacity:1}.wmde-markdown input::-webkit-outer-spin-button{appearance:none;margin:0}.wmde-markdown input::-webkit-inner-spin-button{appearance:none;margin:0}.wmde-markdown [data-catalyst]{display:block}.wmde-markdown:before{content:"";display:table}.wmde-markdown:after{clear:both;content:"";display:table}.wmde-markdown>:first-child{margin-top:0!important}.wmde-markdown>:last-child{margin-bottom:0!important}.wmde-markdown a:not([href]){color:inherit;text-decoration:none}.wmde-markdown .absent{color:var(--color-danger-fg)}.wmde-markdown a.anchor{float:left;margin-left:-20px;padding-right:4px;line-height:1}.wmde-markdown .anchor:focus{outline:none}.wmde-markdown p,.wmde-markdown blockquote,.wmde-markdown ul,.wmde-markdown ol,.wmde-markdown dl,.wmde-markdown table,.wmde-markdown pre,.wmde-markdown details{margin-top:0;margin-bottom:16px}.wmde-markdown blockquote>:first-child{margin-top:0}.wmde-markdown blockquote>:last-child{margin-bottom:0}.wmde-markdown sup>a:before{content:"["}.wmde-markdown sup>a:after{content:"]"}.wmde-markdown h1 .octicon-link,.wmde-markdown h2 .octicon-link,.wmde-markdown h3 .octicon-link,.wmde-markdown h4 .octicon-link,.wmde-markdown h5 .octicon-link,.wmde-markdown h6 .octicon-link{color:var(--color-fg-default);vertical-align:middle;visibility:hidden}.wmde-markdown h1:hover .anchor,.wmde-markdown h2:hover .anchor,.wmde-markdown h3:hover .anchor,.wmde-markdown h4:hover .anchor,.wmde-markdown h5:hover .anchor,.wmde-markdown h6:hover .anchor{text-decoration:none}.wmde-markdown h1:hover .anchor .octicon-link,.wmde-markdown h2:hover .anchor .octicon-link,.wmde-markdown h3:hover .anchor .octicon-link,.wmde-markdown h4:hover .anchor .octicon-link,.wmde-markdown h5:hover .anchor .octicon-link,.wmde-markdown h6:hover .anchor .octicon-link{visibility:visible}.wmde-markdown h1 tt,.wmde-markdown h1 code,.wmde-markdown h2 tt,.wmde-markdown h2 code,.wmde-markdown h3 tt,.wmde-markdown h3 code,.wmde-markdown h4 tt,.wmde-markdown h4 code,.wmde-markdown h5 tt,.wmde-markdown h5 code,.wmde-markdown h6 tt,.wmde-markdown h6 code{font-size:inherit;padding:0 .2em}.wmde-markdown ul.no-list,.wmde-markdown ol.no-list{padding:0;list-style-type:none}.wmde-markdown ol[type="1"]{list-style-type:decimal}.wmde-markdown ol[type=a]{list-style-type:lower-alpha}.wmde-markdown ol[type=i]{list-style-type:lower-roman}.wmde-markdown div>ol:not([type]){list-style-type:decimal}.wmde-markdown ul ul,.wmde-markdown ul ol,.wmde-markdown ol ol,.wmde-markdown ol ul{margin-top:0;margin-bottom:0}.wmde-markdown li>p{margin-top:16px}.wmde-markdown li+li{margin-top:.25em}.wmde-markdown dl{padding:0}.wmde-markdown dl dt{margin-top:16px;padding:0;font-size:1em;font-style:italic;font-weight:600}.wmde-markdown dl dd{margin-bottom:16px;padding:0 16px}.wmde-markdown table th{font-weight:600}.wmde-markdown table th,.wmde-markdown table td{border:1px solid var(--color-border-default);padding:6px 13px}.wmde-markdown table tr{background-color:var(--color-canvas-default);border-top:1px solid var(--color-border-muted)}.wmde-markdown table tr:nth-child(2n){background-color:var(--color-canvas-subtle)}.wmde-markdown table img{background-color:#0000}.wmde-markdown img[align=right]{padding-left:20px}.wmde-markdown img[align=left]{padding-right:20px}.wmde-markdown .emoji{vertical-align:text-top;background-color:#0000;max-width:none}.wmde-markdown span.frame{display:block;overflow:hidden}.wmde-markdown span.frame>span{float:left;border:1px solid var(--color-border-default);width:auto;margin:13px 0 0;padding:7px;display:block;overflow:hidden}.wmde-markdown span.frame span img{float:left;display:block}.wmde-markdown span.frame span span{clear:both;color:var(--color-fg-default);padding:5px 0 0;display:block}.wmde-markdown span.align-center{clear:both;display:block;overflow:hidden}.wmde-markdown span.align-center>span{text-align:center;margin:13px auto 0;display:block;overflow:hidden}.wmde-markdown span.align-center span img{text-align:center;margin:0 auto}.wmde-markdown span.align-right{clear:both;display:block;overflow:hidden}.wmde-markdown span.align-right>span{text-align:right;margin:13px 0 0;display:block;overflow:hidden}.wmde-markdown span.align-right span img{text-align:right;margin:0}.wmde-markdown span.float-left{float:left;margin-right:13px;display:block;overflow:hidden}.wmde-markdown span.float-left span{margin:13px 0 0}.wmde-markdown span.float-right{float:right;margin-left:13px;display:block;overflow:hidden}.wmde-markdown span.float-right>span{text-align:right;margin:13px auto 0;display:block;overflow:hidden}.wmde-markdown code,.wmde-markdown tt{background-color:var(--color-neutral-muted);border-radius:6px;margin:0;padding:.2em .4em;font-size:85%}.wmde-markdown code br,.wmde-markdown tt br{display:none}.wmde-markdown del code{-webkit-text-decoration:inherit;text-decoration:inherit}.wmde-markdown pre code{font-size:100%}.wmde-markdown pre>code{word-break:normal;white-space:pre;background:0 0;border:0;margin:0;padding:0}.wmde-markdown pre{background-color:var(--color-canvas-subtle);border-radius:6px;font-size:85%;line-height:1.45}.wmde-markdown pre code,.wmde-markdown pre tt{max-width:auto;line-height:inherit;word-wrap:normal;background-color:#0000;border:0;margin:0;padding:0;display:inline;overflow:visible}.wmde-markdown pre>code{padding:16px;display:block;overflow:auto}.wmde-markdown pre>code::-webkit-scrollbar{background:0 0;width:8px;height:8px}.wmde-markdown pre>code::-webkit-scrollbar-thumb{background:var(--color-fg-muted);border-radius:10px}.wmde-markdown .csv-data td,.wmde-markdown .csv-data th{text-align:left;white-space:nowrap;padding:5px;font-size:12px;line-height:1;overflow:hidden}.wmde-markdown .csv-data .blob-num{text-align:right;background:var(--color-canvas-default);border:0;padding:10px 8px 9px}.wmde-markdown .csv-data tr{border-top:0}.wmde-markdown .csv-data th{background:var(--color-canvas-subtle);border-top:0;font-weight:600}.wmde-markdown .footnotes{color:var(--color-fg-muted);border-top:1px solid var(--color-border-default);font-size:12px}.wmde-markdown .footnotes ol{padding-left:16px}.wmde-markdown .footnotes li{position:relative}.wmde-markdown .footnotes li:target:before{pointer-events:none;content:"";border:2px solid var(--color-accent-emphasis);border-radius:6px;position:absolute;inset:-8px -8px -8px -24px}.wmde-markdown .footnotes li:target{color:var(--color-fg-default)}.wmde-markdown .footnotes .data-footnote-backref g-emoji{font-family:monospace}.wmde-markdown .task-list-item{list-style-type:none}.wmde-markdown .task-list-item label{font-weight:400}.wmde-markdown .task-list-item.enabled label{cursor:pointer}.wmde-markdown .task-list-item+.wmde-markdown .task-list-item{margin-top:3px}.wmde-markdown .task-list-item .handle{display:none}.wmde-markdown .task-list-item-checkbox,.wmde-markdown .contains-task-list input[type=checkbox]{vertical-align:middle;margin:0 .2em .25em -1.6em}.wmde-markdown .contains-task-list:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)) .task-list-item-checkbox{margin:0 -1.6em .25em .2em}.wmde-markdown .contains-task-list:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)) input[type=checkbox]{margin:0 -1.6em .25em .2em}.wmde-markdown ::-webkit-calendar-picker-indicator{filter:invert(50%)}.wmde-markdown pre{position:relative}.wmde-markdown pre .copied{visibility:hidden;cursor:pointer;color:var(--color-fg-default);background:var(--color-border-default);border-radius:5px;padding:6px;font-size:12px;transition:all .3s;display:flex;position:absolute;top:6px;right:6px}.wmde-markdown pre .copied .octicon-copy{display:block}.wmde-markdown pre .copied .octicon-check{display:none}.wmde-markdown pre:hover .copied{visibility:visible}.wmde-markdown pre:hover .copied:hover{background:var(--color-prettylights-syntax-entity-tag);color:var(--color-canvas-default)}.wmde-markdown pre:hover .copied:active,.wmde-markdown pre .copied.active{background:var(--color-copied-active-bg);color:var(--color-canvas-default)}.wmde-markdown pre .active .octicon-copy{display:none}.wmde-markdown pre .active .octicon-check{display:block}.wmde-markdown .markdown-alert{color:inherit;border-left:.25em solid var(--borderColor-default,var(--color-border-default));margin-bottom:16px;padding:.5rem 1em}.wmde-markdown .markdown-alert>:last-child{margin-bottom:0!important}.wmde-markdown .markdown-alert .markdown-alert-title{align-items:center;font-size:14px;font-weight:500;line-height:1;display:flex}.wmde-markdown .markdown-alert .markdown-alert-title svg.octicon{margin-right:var(--base-size-8,8px)!important}.wmde-markdown .markdown-alert.markdown-alert-note{border-left-color:var(--borderColor-accent-emphasis,var(--color-accent-emphasis))}.wmde-markdown .markdown-alert.markdown-alert-note .markdown-alert-title{color:var(--fgColor-accent,var(--color-accent-fg))}.wmde-markdown .markdown-alert.markdown-alert-tip{border-left-color:var(--borderColor-success-emphasis,var(--color-success-emphasis))}.wmde-markdown .markdown-alert.markdown-alert-tip .markdown-alert-title{color:var(--fgColor-success,var(--color-success-fg))}.wmde-markdown .markdown-alert.markdown-alert-important{border-left-color:var(--borderColor-done-emphasis,var(--color-done-emphasis))}.wmde-markdown .markdown-alert.markdown-alert-important .markdown-alert-title{color:var(--fgColor-done,var(--color-done-fg))}.wmde-markdown .markdown-alert.markdown-alert-warning{border-left-color:var(--borderColor-attention-emphasis,var(--color-attention-emphasis))}.wmde-markdown .markdown-alert.markdown-alert-warning .markdown-alert-title{color:var(--fgColor-attention,var(--color-attention-fg))}.wmde-markdown .markdown-alert.markdown-alert-caution{border-left-color:var(--borderColor-danger-emphasis,var(--color-danger-emphasis))}.wmde-markdown .markdown-alert.markdown-alert-caution .markdown-alert-title{color:var(--fgColor-danger,var(--color-danger-fg))}.wmde-markdown .highlight-line{background-color:var(--color-neutral-muted)}.wmde-markdown .code-line.line-number:before{text-align:right;width:1rem;color:var(--color-fg-subtle);content:attr(line);white-space:nowrap;margin-right:16px;display:inline-block}.wmde-markdown .token.comment,.wmde-markdown .token.prolog,.wmde-markdown .token.doctype,.wmde-markdown .token.cdata{color:var(--color-prettylights-syntax-comment)}.wmde-markdown .token.namespace{opacity:.7}.wmde-markdown .token.property,.wmde-markdown .token.tag,.wmde-markdown .token.selector,.wmde-markdown .token.constant,.wmde-markdown .token.symbol,.wmde-markdown .token.deleted{color:var(--color-prettylights-syntax-entity-tag)}.wmde-markdown .token.maybe-class-name{color:var(--color-prettylights-syntax-variable)}.wmde-markdown .token.property-access,.wmde-markdown .token.operator,.wmde-markdown .token.boolean,.wmde-markdown .token.number,.wmde-markdown .token.selector .token.class,.wmde-markdown .token.attr-name,.wmde-markdown .token.string,.wmde-markdown .token.char,.wmde-markdown .token.builtin{color:var(--color-prettylights-syntax-constant)}.wmde-markdown .token.deleted{color:var(--color-prettylights-syntax-markup-deleted-text)}.wmde-markdown .code-line .token.deleted{background-color:var(--color-prettylights-syntax-markup-deleted-bg)}.wmde-markdown .token.inserted{color:var(--color-prettylights-syntax-markup-inserted-text)}.wmde-markdown .code-line .token.inserted{background-color:var(--color-prettylights-syntax-markup-inserted-bg)}.wmde-markdown .token.variable{color:var(--color-prettylights-syntax-constant)}.wmde-markdown .token.entity,.wmde-markdown .token.url,.wmde-markdown .language-css .token.string,.wmde-markdown .style .token.string,.wmde-markdown .token.color,.wmde-markdown .token.atrule,.wmde-markdown .token.attr-value,.wmde-markdown .token.function,.wmde-markdown .token.class-name{color:var(--color-prettylights-syntax-string)}.wmde-markdown .token.rule,.wmde-markdown .token.regex,.wmde-markdown .token.important,.wmde-markdown .token.keyword{color:var(--color-prettylights-syntax-keyword)}.wmde-markdown .token.coord{color:var(--color-prettylights-syntax-meta-diff-range)}.wmde-markdown .token.important,.wmde-markdown .token.bold{font-weight:700}.wmde-markdown .token.italic{font-style:italic}.wmde-markdown .token.entity{cursor:help}.w-md-editor-bar{cursor:s-resize;z-index:3;-webkit-user-select:none;user-select:none;border-radius:0 0 3px;width:14px;height:10px;margin-top:-11px;margin-right:0;position:absolute;bottom:0;right:0}.w-md-editor-bar svg{margin:0 auto;display:block}.w-md-editor-area{border-radius:5px;overflow:auto}.w-md-editor-text{text-align:left;white-space:pre-wrap;word-break:keep-all;overflow-wrap:break-word;box-sizing:border-box;font-variant-ligatures:common-ligatures;min-height:100%;margin:0;padding:10px;position:relative;font-size:14px!important;line-height:18px!important}.w-md-editor-text-pre,.w-md-editor-text-input,.w-md-editor-text>.w-md-editor-text-pre{box-sizing:inherit;display:inherit;font-family:inherit;font-size:inherit;font-style:inherit;font-variant-ligatures:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;-moz-tab-size:inherit;-o-tab-size:inherit;tab-size:inherit;text-indent:inherit;text-rendering:inherit;text-transform:inherit;white-space:inherit;overflow-wrap:inherit;word-break:inherit;word-break:normal;background:0 0;border:0;margin:0;padding:0;font-family:var(--md-editor-font-family)!important}.w-md-editor-text-pre{pointer-events:none;position:relative;background-color:#0000!important;margin:0!important}.w-md-editor-text-pre>code{font-family:var(--md-editor-font-family)!important;padding:0!important;font-size:14px!important;line-height:18px!important}.w-md-editor-text-input{resize:none;width:100%;height:100%;color:inherit;padding:inherit;-webkit-font-smoothing:antialiased;-webkit-text-fill-color:transparent;outline:0;position:absolute;top:0;left:0;overflow:hidden}.w-md-editor-text-input:empty{-webkit-text-fill-color:inherit!important}.w-md-editor-text-pre,.w-md-editor-text-input{word-wrap:pre;word-break:break-word;white-space:pre-wrap}@media (-ms-high-contrast:none),(-ms-high-contrast:active){.w-md-editor-text-input{color:#0000!important}.w-md-editor-text-input::selection{color:#0000!important;background-color:#accef7!important}}.w-md-editor-text-pre .punctuation{color:var(--color-prettylights-syntax-comment,#8b949e)!important}.w-md-editor-text-pre .token.url,.w-md-editor-text-pre .token.content{color:var(--color-prettylights-syntax-constant,#0550ae)!important}.w-md-editor-text-pre .token.title.important{color:var(--color-prettylights-syntax-markup-bold,#24292f)}.w-md-editor-text-pre .token.code-block .function{color:var(--color-prettylights-syntax-entity,#8250df)}.w-md-editor-text-pre .token.bold{font-weight:unset!important}.w-md-editor-text-pre .token.title{line-height:unset!important;font-size:unset!important;font-weight:unset!important}.w-md-editor-text-pre .token.code.keyword{color:var(--color-prettylights-syntax-constant,#0550ae)!important}.w-md-editor-text-pre .token.strike,.w-md-editor-text-pre .token.strike .content{color:var(--color-prettylights-syntax-markup-deleted-text,#82071e)!important}.w-md-editor-toolbar-child{box-shadow:0 0 0 1px var(--md-editor-box-shadow-color), 0 0 0 var(--md-editor-box-shadow-color), 0 1px 1px var(--md-editor-box-shadow-color);background-color:var(--md-editor-background-color);z-index:1;border-radius:3px;display:none;position:absolute}.w-md-editor-toolbar-child.active{display:block}.w-md-editor-toolbar-child .w-md-editor-toolbar{border-bottom:0;border-radius:3px;padding:3px}.w-md-editor-toolbar-child .w-md-editor-toolbar ul>li{display:block}.w-md-editor-toolbar-child .w-md-editor-toolbar ul>li button{width:-webkit-fill-available;height:initial;box-sizing:border-box;margin:0;padding:3px 4px 2px}.w-md-editor-toolbar{border-bottom:1px solid var(--md-editor-box-shadow-color);background-color:var(--md-editor-background-color);-webkit-user-select:none;user-select:none;border-radius:3px 3px 0 0;flex-wrap:wrap;justify-content:space-between;align-items:center;padding:3px;display:flex}.w-md-editor-toolbar.bottom{border-bottom:0;border-top:1px solid var(--md-editor-box-shadow-color);border-radius:0 0 3px 3px}.w-md-editor-toolbar ul,.w-md-editor-toolbar li{line-height:initial;margin:0;padding:0;list-style:none}.w-md-editor-toolbar li{font-size:14px;display:inline-block}.w-md-editor-toolbar li+li{margin:0}.w-md-editor-toolbar li>button{text-transform:none;cursor:pointer;white-space:nowrap;height:20px;color:var(--color-fg-default);background:0 0;border:none;border-radius:2px;outline:none;margin:0 1px;padding:4px;font-weight:400;line-height:14px;transition:all .3s;overflow:visible}.w-md-editor-toolbar li>button:hover,.w-md-editor-toolbar li>button:focus{background-color:var(--color-neutral-muted);color:var(--color-accent-fg)}.w-md-editor-toolbar li>button:active{background-color:var(--color-neutral-muted);color:var(--color-danger-fg)}.w-md-editor-toolbar li>button:disabled{color:var(--md-editor-box-shadow-color);cursor:not-allowed}.w-md-editor-toolbar li>button:disabled:hover{color:var(--md-editor-box-shadow-color);background-color:#0000}.w-md-editor-toolbar li.active>button{color:var(--color-accent-fg);background-color:var(--color-neutral-muted)}.w-md-editor-toolbar-divider{vertical-align:middle;background-color:var(--md-editor-box-shadow-color);width:1px;height:14px;margin:-3px 3px 0!important}.w-md-editor{text-align:left;color:var(--color-fg-default);--md-editor-font-family:"Helvetica Neue", Helvetica, Arial, sans-serif;--md-editor-background-color:var(--color-canvas-default,#fff);--md-editor-box-shadow-color:var(--color-border-default,#d0d7de);box-shadow:0 0 0 1px var(--md-editor-box-shadow-color), 0 0 0 var(--md-editor-box-shadow-color), 0 1px 1px var(--md-editor-box-shadow-color);background-color:var(--md-editor-background-color);border-radius:3px;flex-direction:column;padding-bottom:1px;font-family:Helvetica Neue,Helvetica,Arial,sans-serif;display:flex;position:relative}.w-md-editor.w-md-editor-rtl{text-align:right!important;direction:rtl!important}.w-md-editor.w-md-editor-rtl .w-md-editor-preview{box-shadow:inset -1px 0 0 0 var(--md-editor-box-shadow-color);left:0;right:unset!important;text-align:right!important}.w-md-editor.w-md-editor-rtl .w-md-editor-text{text-align:right!important}.w-md-editor-toolbar{height:fit-content}.w-md-editor-content{border-radius:0 0 3px;height:100%;position:relative;overflow:auto}.w-md-editor .copied{display:none!important}.w-md-editor-input{width:50%;height:100%}.w-md-editor-text-pre>code{word-break:break-word!important;white-space:pre-wrap!important}.w-md-editor-preview{box-sizing:border-box;width:50%;box-shadow:inset 1px 0 0 0 var(--md-editor-box-shadow-color);border-radius:0 0 5px;flex-direction:column;padding:10px 20px;display:flex;position:absolute;top:0;bottom:0;right:0;overflow:auto}.w-md-editor-preview .anchor{display:none}.w-md-editor-preview .contains-task-list li.task-list-item{list-style:none}.w-md-editor-show-preview .w-md-editor-input{background-color:var(--md-editor-background-color);width:0%;overflow:hidden}.w-md-editor-show-preview .w-md-editor-preview{width:100%;box-shadow:inset 0 0}.w-md-editor-show-edit .w-md-editor-input{width:100%}.w-md-editor-show-edit .w-md-editor-preview{width:0%;padding:0}.w-md-editor-fullscreen{z-index:99999;position:fixed;inset:0;overflow:hidden;height:100%!important}.w-md-editor-fullscreen .w-md-editor-content{height:100%}._title_1cnn4_1{color:var(--se-title-color,var(--text-primary,#161b2d))}._helperText_1cnn4_5{color:var(--se-helper-text-color,var(--text-secondary,#57647a))}._refineFeedback_1cnn4_9{color:var(--se-refine-action-text,var(--text-primary,#161b2d))}._refineError_1cnn4_13{color:var(--se-refine-error-text,var(--text-error,#8b2020))}
|
|
2
|
-
/*$vite$:1*/.sr-only{height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;clip:rect(0,0,0,0);border-width:0;white-space:nowrap}.pointer-events-none{pointer-events:none}.absolute{position:absolute}.relative{position:relative}.inset-0{inset:0}.z-\[100\]{z-index:100}.mt-4{margin-top:1rem}.mt-5{margin-top:1.25rem}.flex{display:flex}.hidden{display:none}.min-h-0{min-height:0}.min-
|
|
2
|
+
/*$vite$:1*/.sr-only{height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;clip:rect(0,0,0,0);border-width:0;white-space:nowrap}.pointer-events-none{pointer-events:none}.absolute{position:absolute}.relative{position:relative}.inset-0{inset:0}.z-\[100\]{z-index:100}.mt-4{margin-top:1rem}.mt-5{margin-top:1.25rem}.flex{display:flex}.hidden{display:none}.min-h-0{min-height:0}.min-w-0{min-width:0}.flex-1{flex:1 1 0%}.flex-col{flex-direction:column}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-2{gap:.5rem}.gap-4{gap:1rem}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.rounded-lg{border-radius:.5rem}.border{border-width:1px}.border-error{border-color:var(--stroke-error,#ae2f2f)}.border-tertiary{border-color:var(--stroke-tertiary,#e0e6f0)}.p-2{padding:.5rem}.p-8{padding:2rem}.px-4{padding-left:1rem;padding-right:1rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.px-8{padding-left:2rem;padding-right:2rem}.py-4{padding-bottom:1rem;padding-top:1rem}.py-6{padding-bottom:1.5rem;padding-top:1.5rem}.text-center{text-align:center}.text-secondary{color:var(--text-secondary,#57647a)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.backdrop-blur-sm{--tw-backdrop-blur:blur(4px);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.transition{transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1)}.hover\:border-error:hover{border-color:var(--stroke-error,#ae2f2f)}@media (min-width:1280px){.desktop\:block{display:block}.desktop\:inline{display:inline}.desktop\:hidden{display:none}.desktop\:gap-5{gap:1.25rem}.desktop\:px-8{padding-left:2rem;padding-right:2rem}}
|
package/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { MARKDOWN_EDITOR_MAX_HEIGHT_CLASS_NAME as e, MARKDOWN_EDITOR_PREVIEW_LIST_CLASS_NAME as t, TextRefinementField as n, buildCssVars as r, formatFileSize as i, mergeClasses as a, useAvailableHeightCap as o, useTextRefinement as s } from "@epam/ai-dial-chat-shared";
|
|
2
|
-
import { Accordion as c,
|
|
3
|
-
import { Fragment as
|
|
4
|
-
import { IconArrowNarrowLeft as
|
|
5
|
-
import { Suspense as
|
|
6
|
-
import { DialFileNodeType as
|
|
7
|
-
import { LazyMarkdownEditor as
|
|
2
|
+
import { Accordion as c, ButtonAppearance as l, ButtonVariant as u, CaptionText as d, DIAL_ICON_SIZE as f, DIAL_KIT_ICON_STROKE as p, EditorThemes as m, ErrorText as h, FileDropzone as g, GhostButton as _, GhostIconButton as ee, Input as te, Label as ne, NeutralButton as v, Popup as re, PopupSize as y, PrimaryButton as b, Spinner as x, Textarea as ie } from "@epam/ai-dial-ui-kit";
|
|
3
|
+
import { Fragment as S, jsx as C, jsxs as w } from "react/jsx-runtime";
|
|
4
|
+
import { IconArrowNarrowLeft as T, IconFileText as E, IconPlus as ae, IconTrashX as oe, IconUpload as D } from "@tabler/icons-react";
|
|
5
|
+
import { Suspense as se, lazy as O, useCallback as k, useEffect as A, useId as j, useMemo as M, useRef as N, useState as P } from "react";
|
|
6
|
+
import { DialFileNodeType as F, DialFoldersTree as ce } from "@epam/ai-dial-react-file-manager";
|
|
7
|
+
import { LazyMarkdownEditor as le } from "@epam/ai-dial-ui-kit/editors";
|
|
8
8
|
a("flex flex-col", {
|
|
9
9
|
body: "_body_m2y60_2",
|
|
10
10
|
sideColumn: "_sideColumn_m2y60_6",
|
|
@@ -12,131 +12,131 @@ a("flex flex-col", {
|
|
|
12
12
|
}.sideColumn);
|
|
13
13
|
//#endregion
|
|
14
14
|
//#region ../builder-form/src/constants/public-class-names.ts
|
|
15
|
-
var
|
|
15
|
+
var ue = {
|
|
16
16
|
layout: "dial-builder-form-layout",
|
|
17
17
|
section: "dial-builder-form-section"
|
|
18
|
-
},
|
|
18
|
+
}, I = {
|
|
19
19
|
headerBorder: "_headerBorder_1kidu_1",
|
|
20
20
|
footerBorder: "_footerBorder_1kidu_5",
|
|
21
21
|
sidebarBorder: "_sidebarBorder_1kidu_9"
|
|
22
|
-
},
|
|
23
|
-
let m =
|
|
24
|
-
"--el-header-border-color":
|
|
25
|
-
"--el-sidebar-border-color":
|
|
22
|
+
}, de = ({ title: e, onBack: t, backAriaLabel: n = "Back", actions: i, leftContent: o, rightContent: s, isSaving: c = !1, labels: l, styles: u, dir: d }) => {
|
|
23
|
+
let m = j(), h = c ? l?.savingStatusLabel ?? "Saving" : "", g = r({
|
|
24
|
+
"--el-header-border-color": u?.colors?.headerBorderColor,
|
|
25
|
+
"--el-sidebar-border-color": u?.colors?.sidebarBorderColor
|
|
26
26
|
});
|
|
27
|
-
return /* @__PURE__ */
|
|
28
|
-
dir:
|
|
29
|
-
className: a("flex min-h-0 flex-1 flex-col",
|
|
27
|
+
return /* @__PURE__ */ w("div", {
|
|
28
|
+
dir: d,
|
|
29
|
+
className: a("flex min-h-0 flex-1 flex-col", ue.layout),
|
|
30
30
|
style: g,
|
|
31
31
|
children: [
|
|
32
|
-
/* @__PURE__ */
|
|
32
|
+
/* @__PURE__ */ C("span", {
|
|
33
33
|
role: "status",
|
|
34
34
|
"aria-live": "polite",
|
|
35
35
|
className: "sr-only",
|
|
36
36
|
id: m,
|
|
37
37
|
children: h
|
|
38
38
|
}),
|
|
39
|
-
/* @__PURE__ */
|
|
40
|
-
className: a("flex items-center justify-between gap-2 border-b px-4 py-2 desktop:px-8 desktop:pb-3 desktop:pt-3",
|
|
41
|
-
children: [/* @__PURE__ */
|
|
39
|
+
/* @__PURE__ */ w("div", {
|
|
40
|
+
className: a("flex items-center justify-between gap-2 border-b px-4 py-2 desktop:px-8 desktop:pb-3 desktop:pt-3", I.headerBorder),
|
|
41
|
+
children: [/* @__PURE__ */ w("div", {
|
|
42
42
|
className: "flex min-w-0 flex-1 items-center gap-2",
|
|
43
|
-
children: [/* @__PURE__ */
|
|
44
|
-
icon: /* @__PURE__ */
|
|
45
|
-
size:
|
|
46
|
-
stroke:
|
|
43
|
+
children: [/* @__PURE__ */ C(ee, {
|
|
44
|
+
icon: /* @__PURE__ */ C(T, {
|
|
45
|
+
size: f.LG,
|
|
46
|
+
stroke: p,
|
|
47
47
|
"aria-hidden": !0,
|
|
48
48
|
className: "rtl:scale-x-[-1]"
|
|
49
49
|
}),
|
|
50
50
|
"aria-label": n,
|
|
51
51
|
onClick: t
|
|
52
|
-
}), /* @__PURE__ */
|
|
52
|
+
}), /* @__PURE__ */ C("h1", {
|
|
53
53
|
className: "dial-h2-text min-w-0 truncate",
|
|
54
54
|
children: e
|
|
55
55
|
})]
|
|
56
|
-
}), i != null && /* @__PURE__ */
|
|
56
|
+
}), i != null && /* @__PURE__ */ C("div", {
|
|
57
57
|
className: "hidden shrink-0 items-center gap-2 desktop:flex",
|
|
58
58
|
children: i
|
|
59
59
|
})]
|
|
60
60
|
}),
|
|
61
|
-
/* @__PURE__ */
|
|
61
|
+
/* @__PURE__ */ w("div", {
|
|
62
62
|
className: "flex flex-1 flex-col overflow-y-auto desktop:flex-row desktop:overflow-hidden",
|
|
63
|
-
children: [/* @__PURE__ */
|
|
64
|
-
className: a(s == null ? "desktop:flex-1" : "desktop:w-[360px] desktop:shrink-0 desktop:overflow-y-auto desktop:border-e", "desktop:overflow-y-auto", s == null ? void 0 :
|
|
63
|
+
children: [/* @__PURE__ */ C("div", {
|
|
64
|
+
className: a(s == null ? "desktop:flex-1" : "desktop:w-[360px] desktop:shrink-0 desktop:overflow-y-auto desktop:border-e", "desktop:overflow-y-auto", s == null ? void 0 : I.sidebarBorder),
|
|
65
65
|
children: o
|
|
66
|
-
}), s != null && /* @__PURE__ */
|
|
66
|
+
}), s != null && /* @__PURE__ */ C("div", {
|
|
67
67
|
className: "desktop:flex-1 desktop:overflow-y-auto",
|
|
68
68
|
children: s
|
|
69
69
|
})]
|
|
70
70
|
}),
|
|
71
|
-
i != null && /* @__PURE__ */
|
|
72
|
-
className: a("flex shrink-0 flex-row-reverse items-center gap-2 border-t px-4 py-2 desktop:hidden [&>*]:flex-1",
|
|
71
|
+
i != null && /* @__PURE__ */ C("div", {
|
|
72
|
+
className: a("flex shrink-0 flex-row-reverse items-center gap-2 border-t px-4 py-2 desktop:hidden [&>*]:flex-1", I.footerBorder),
|
|
73
73
|
children: i
|
|
74
74
|
})
|
|
75
75
|
]
|
|
76
76
|
});
|
|
77
|
-
},
|
|
77
|
+
}, fe = {
|
|
78
78
|
root: "dial-skill-editor-root",
|
|
79
79
|
refineFeedback: "dial-skill-editor-refine-feedback"
|
|
80
|
-
},
|
|
81
|
-
let [t, n] =
|
|
80
|
+
}, L = (e) => !!e.dataTransfer?.types.includes("Files"), pe = (e) => {
|
|
81
|
+
let [t, n] = P(!1), r = N(0);
|
|
82
82
|
return {
|
|
83
83
|
isDragActive: t,
|
|
84
84
|
dropZoneHandlers: {
|
|
85
|
-
onDragEnter:
|
|
86
|
-
|
|
85
|
+
onDragEnter: k((e) => {
|
|
86
|
+
L(e) && (e.preventDefault(), r.current += 1, n(!0));
|
|
87
87
|
}, []),
|
|
88
|
-
onDragLeave:
|
|
89
|
-
|
|
88
|
+
onDragLeave: k((e) => {
|
|
89
|
+
L(e) && (--r.current, r.current <= 0 && (r.current = 0, n(!1)));
|
|
90
90
|
}, []),
|
|
91
|
-
onDragOver:
|
|
92
|
-
|
|
91
|
+
onDragOver: k((e) => {
|
|
92
|
+
L(e) && e.preventDefault();
|
|
93
93
|
}, []),
|
|
94
|
-
onDrop:
|
|
95
|
-
if (!
|
|
94
|
+
onDrop: k((t) => {
|
|
95
|
+
if (!L(t)) return;
|
|
96
96
|
t.preventDefault(), r.current = 0, n(!1);
|
|
97
97
|
let i = Array.from(t.dataTransfer?.files ?? []);
|
|
98
98
|
i.length > 0 && e(i);
|
|
99
99
|
}, [e])
|
|
100
100
|
}
|
|
101
101
|
};
|
|
102
|
-
},
|
|
102
|
+
}, R = "SKILL.md", z = /* @__PURE__ */ function(e) {
|
|
103
103
|
return e.File = "file", e.Folder = "folder", e;
|
|
104
|
-
}({}),
|
|
104
|
+
}({}), B = (e) => {
|
|
105
105
|
let t = e.lastIndexOf("/");
|
|
106
106
|
return t === -1 ? null : e.slice(0, t);
|
|
107
|
-
},
|
|
107
|
+
}, V = (e) => {
|
|
108
108
|
let t = e.lastIndexOf("/");
|
|
109
109
|
return t === -1 ? e : e.slice(t + 1);
|
|
110
|
-
},
|
|
110
|
+
}, me = (e) => {
|
|
111
111
|
let t = /* @__PURE__ */ new Map(), n = (e) => {
|
|
112
112
|
let n = t.get(e);
|
|
113
113
|
if (n) return n;
|
|
114
114
|
let r = {
|
|
115
115
|
path: e,
|
|
116
|
-
name:
|
|
117
|
-
nodeType:
|
|
118
|
-
parentPath:
|
|
116
|
+
name: V(e),
|
|
117
|
+
nodeType: F.FOLDER,
|
|
118
|
+
parentPath: B(e),
|
|
119
119
|
folderId: e,
|
|
120
120
|
items: []
|
|
121
121
|
};
|
|
122
122
|
return t.set(e, r), r;
|
|
123
123
|
};
|
|
124
124
|
for (let r of e) {
|
|
125
|
-
if (r.kind ===
|
|
125
|
+
if (r.kind === z.Folder) {
|
|
126
126
|
n(r.path);
|
|
127
127
|
continue;
|
|
128
128
|
}
|
|
129
129
|
t.set(r.path, {
|
|
130
130
|
path: r.path,
|
|
131
131
|
name: r.name,
|
|
132
|
-
nodeType:
|
|
133
|
-
parentPath:
|
|
134
|
-
folderId:
|
|
132
|
+
nodeType: F.ITEM,
|
|
133
|
+
parentPath: B(r.path),
|
|
134
|
+
folderId: B(r.path) ?? ""
|
|
135
135
|
});
|
|
136
136
|
}
|
|
137
137
|
for (let t of [...e]) {
|
|
138
|
-
let e =
|
|
139
|
-
for (; e != null;) n(e), e =
|
|
138
|
+
let e = B(t.path);
|
|
139
|
+
for (; e != null;) n(e), e = B(e);
|
|
140
140
|
}
|
|
141
141
|
let r = [];
|
|
142
142
|
for (let e of t.values()) {
|
|
@@ -148,525 +148,525 @@ var de = {
|
|
|
148
148
|
n ? n.items = [...n.items ?? [], e] : r.push(e);
|
|
149
149
|
}
|
|
150
150
|
return r;
|
|
151
|
-
},
|
|
151
|
+
}, he = ({ isVisible: e, labels: t }) => {
|
|
152
152
|
if (!e) return null;
|
|
153
153
|
let n = t ?? {};
|
|
154
|
-
return /* @__PURE__ */
|
|
154
|
+
return /* @__PURE__ */ C("div", {
|
|
155
155
|
role: "status",
|
|
156
156
|
"aria-live": "polite",
|
|
157
157
|
className: a("pointer-events-none absolute inset-0 z-[100] flex items-center justify-center backdrop-blur-sm"),
|
|
158
|
-
children: /* @__PURE__ */
|
|
158
|
+
children: /* @__PURE__ */ w("div", {
|
|
159
159
|
className: "flex flex-col items-center text-center",
|
|
160
160
|
children: [
|
|
161
|
-
/* @__PURE__ */
|
|
161
|
+
/* @__PURE__ */ C(D, {
|
|
162
162
|
size: 100,
|
|
163
163
|
className: "text-accent-primary",
|
|
164
164
|
"aria-hidden": !0,
|
|
165
|
-
stroke:
|
|
165
|
+
stroke: p
|
|
166
166
|
}),
|
|
167
|
-
/* @__PURE__ */
|
|
167
|
+
/* @__PURE__ */ C("span", {
|
|
168
168
|
className: "dial-h3-text mt-5",
|
|
169
169
|
children: n.dropOverlayTitle ?? "Upload files"
|
|
170
170
|
}),
|
|
171
|
-
/* @__PURE__ */
|
|
171
|
+
/* @__PURE__ */ C("span", {
|
|
172
172
|
className: "dial-small-text mt-4",
|
|
173
173
|
children: n.dropOverlaySubtitle ?? "Drop files here to add them to this skill"
|
|
174
174
|
})
|
|
175
175
|
]
|
|
176
176
|
})
|
|
177
177
|
});
|
|
178
|
-
},
|
|
178
|
+
}, H = /* @__PURE__ */ function(e) {
|
|
179
179
|
return e.SupportingFile = "supporting-file", e.Manifest = "manifest", e;
|
|
180
|
-
}({}),
|
|
180
|
+
}({}), U = /* @__PURE__ */ function(e) {
|
|
181
181
|
return e.Valid = "valid", e.Invalid = "invalid", e;
|
|
182
|
-
}({}),
|
|
183
|
-
let o = a ?? {}, [s, c] =
|
|
182
|
+
}({}), ge = (e) => (e.webkitRelativePath || e.name).replace(/\\/g, "/"), _e = 0, ve = () => `skill-file-candidate-${++_e}`, ye = ({ isOpen: e, onClose: t, fileActions: n, initialFiles: r, labels: a }) => {
|
|
183
|
+
let o = a ?? {}, [s, c] = P([]), [d, f] = P(/* @__PURE__ */ new Map()), [m, _] = P([]), [te, ne] = P(!1), [v, b] = P(), [ie, T] = P(!1), ae = j(), D = (e) => {
|
|
184
184
|
let t = e.map((e) => ({
|
|
185
|
-
id:
|
|
185
|
+
id: ve(),
|
|
186
186
|
file: e,
|
|
187
|
-
path:
|
|
187
|
+
path: ge(e)
|
|
188
188
|
}));
|
|
189
|
-
|
|
190
|
-
},
|
|
189
|
+
b(void 0), c((e) => [...e, ...t]);
|
|
190
|
+
}, se = (e) => {
|
|
191
191
|
c((t) => t.filter((t) => t.id !== e));
|
|
192
192
|
};
|
|
193
|
-
|
|
193
|
+
A(() => {
|
|
194
194
|
e && (c((r ?? []).map((e) => ({
|
|
195
|
-
id:
|
|
195
|
+
id: ve(),
|
|
196
196
|
file: e,
|
|
197
|
-
path:
|
|
198
|
-
}))),
|
|
199
|
-
}, [e]),
|
|
197
|
+
path: ge(e)
|
|
198
|
+
}))), f(/* @__PURE__ */ new Map()), _([]), b(void 0));
|
|
199
|
+
}, [e]), A(() => {
|
|
200
200
|
if (!e) return;
|
|
201
201
|
let t = !1;
|
|
202
202
|
if (s.length === 0) {
|
|
203
|
-
|
|
203
|
+
f(/* @__PURE__ */ new Map()), _([]);
|
|
204
204
|
return;
|
|
205
205
|
}
|
|
206
|
-
return
|
|
207
|
-
t || (
|
|
206
|
+
return ne(!0), n.validateBatch(s).then(({ results: e, batchErrors: n }) => {
|
|
207
|
+
t || (f(new Map(e.map((e) => [e.candidateId, e]))), _(n.map((e) => e.message)));
|
|
208
208
|
}).finally(() => {
|
|
209
|
-
t ||
|
|
209
|
+
t || ne(!1);
|
|
210
210
|
}), () => {
|
|
211
211
|
t = !0;
|
|
212
212
|
};
|
|
213
213
|
}, [s, e]);
|
|
214
|
-
let
|
|
215
|
-
|
|
214
|
+
let O = s.some((e) => d.get(e.id)?.status === U.Invalid), k = s.length > 0 && s.every((e) => d.get(e.id)?.status === U.Invalid), M = s.length > 0 && !O && m.length === 0 && !te && !ie, N = async () => {
|
|
215
|
+
T(!0), b(void 0);
|
|
216
216
|
try {
|
|
217
217
|
let { results: e, batchErrors: r } = await n.validateBatch(s), i = new Map(e.map((e) => [e.candidateId, e]));
|
|
218
|
-
if (
|
|
218
|
+
if (f(i), _(r.map((e) => e.message)), s.some((e) => i.get(e.id)?.status === U.Invalid) || r.length > 0) return;
|
|
219
219
|
let a = await n.commitBatch(s);
|
|
220
220
|
if (a.error) {
|
|
221
|
-
|
|
221
|
+
b(a.error);
|
|
222
222
|
return;
|
|
223
223
|
}
|
|
224
224
|
t();
|
|
225
225
|
} finally {
|
|
226
|
-
|
|
226
|
+
T(!1);
|
|
227
227
|
}
|
|
228
228
|
};
|
|
229
|
-
return /* @__PURE__ */
|
|
229
|
+
return /* @__PURE__ */ C(re, {
|
|
230
230
|
open: e,
|
|
231
231
|
header: o.uploadDialogTitle ?? "Upload files from device",
|
|
232
|
-
size:
|
|
232
|
+
size: y.Sm,
|
|
233
233
|
closeAriaLabel: o.uploadDialogCloseAriaLabel ?? "Close",
|
|
234
234
|
onClose: t,
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
}
|
|
250
|
-
children: /* @__PURE__ */
|
|
235
|
+
mainButtons: [{
|
|
236
|
+
label: o.uploadCancelLabel ?? "Cancel",
|
|
237
|
+
variant: u.Primary,
|
|
238
|
+
appearance: l.Ghost,
|
|
239
|
+
onClick: t
|
|
240
|
+
}, {
|
|
241
|
+
label: o.uploadConfirmLabel ?? "Add",
|
|
242
|
+
variant: u.Primary,
|
|
243
|
+
iconBefore: ie ? /* @__PURE__ */ C(x, {
|
|
244
|
+
size: 16,
|
|
245
|
+
ariaLabel: ""
|
|
246
|
+
}) : void 0,
|
|
247
|
+
onClick: () => void N(),
|
|
248
|
+
disabled: !M
|
|
249
|
+
}],
|
|
250
|
+
children: /* @__PURE__ */ w("div", {
|
|
251
251
|
className: "flex flex-col gap-4 px-6 py-4",
|
|
252
252
|
children: [
|
|
253
|
-
/* @__PURE__ */
|
|
254
|
-
label: /* @__PURE__ */
|
|
253
|
+
/* @__PURE__ */ C(g, {
|
|
254
|
+
label: /* @__PURE__ */ w(S, { children: [/* @__PURE__ */ C("span", {
|
|
255
255
|
className: "desktop:hidden",
|
|
256
256
|
children: o.uploadDropZoneMobileLabel ?? "Click here to upload"
|
|
257
|
-
}), /* @__PURE__ */
|
|
257
|
+
}), /* @__PURE__ */ C("span", {
|
|
258
258
|
className: "hidden desktop:inline",
|
|
259
259
|
children: o.uploadDropZoneLabel ?? "Drag and drop it or click here to upload"
|
|
260
260
|
})] }),
|
|
261
261
|
ariaLabel: o.uploadDropZoneAriaLabel ?? "Upload files",
|
|
262
262
|
multiple: !0,
|
|
263
|
-
className:
|
|
264
|
-
onChange:
|
|
263
|
+
className: k ? "border-error hover:border-error" : void 0,
|
|
264
|
+
onChange: D
|
|
265
265
|
}),
|
|
266
|
-
/* @__PURE__ */
|
|
266
|
+
/* @__PURE__ */ C("span", {
|
|
267
267
|
role: "status",
|
|
268
268
|
"aria-live": "polite",
|
|
269
269
|
className: "sr-only",
|
|
270
|
-
id:
|
|
271
|
-
children:
|
|
270
|
+
id: ae,
|
|
271
|
+
children: m.map((e) => `${o.uploadBatchErrorAriaPrefix ?? "Upload error: "}${e}`).join(" ")
|
|
272
272
|
}),
|
|
273
|
-
|
|
274
|
-
s.length > 0 && /* @__PURE__ */
|
|
273
|
+
m.map((e) => /* @__PURE__ */ C(h, { text: e }, e)),
|
|
274
|
+
s.length > 0 && /* @__PURE__ */ C("ul", {
|
|
275
275
|
className: "flex flex-col gap-2",
|
|
276
276
|
children: s.map((e) => {
|
|
277
|
-
let t =
|
|
278
|
-
return /* @__PURE__ */
|
|
277
|
+
let t = d.get(e.id), n = t?.kind === H.Manifest, r = t?.status === U.Invalid;
|
|
278
|
+
return /* @__PURE__ */ w("li", {
|
|
279
279
|
className: "flex items-center gap-2 rounded-lg border border-tertiary p-2",
|
|
280
280
|
children: [
|
|
281
|
-
/* @__PURE__ */
|
|
281
|
+
/* @__PURE__ */ C(E, {
|
|
282
282
|
size: 20,
|
|
283
283
|
"aria-hidden": !0,
|
|
284
|
-
stroke:
|
|
284
|
+
stroke: p
|
|
285
285
|
}),
|
|
286
|
-
/* @__PURE__ */
|
|
286
|
+
/* @__PURE__ */ w("div", {
|
|
287
287
|
className: "flex min-w-0 flex-1 flex-col",
|
|
288
288
|
children: [
|
|
289
|
-
/* @__PURE__ */
|
|
289
|
+
/* @__PURE__ */ C("span", {
|
|
290
290
|
className: "dial-small-text truncate",
|
|
291
291
|
children: e.path
|
|
292
292
|
}),
|
|
293
|
-
/* @__PURE__ */
|
|
293
|
+
/* @__PURE__ */ C("span", {
|
|
294
294
|
className: "dial-tiny-text text-secondary",
|
|
295
295
|
children: i(e.file.size)
|
|
296
296
|
}),
|
|
297
|
-
r && t?.error && /* @__PURE__ */
|
|
298
|
-
n && !r && /* @__PURE__ */
|
|
297
|
+
r && t?.error && /* @__PURE__ */ C(h, { text: t.error }),
|
|
298
|
+
n && !r && /* @__PURE__ */ C("span", {
|
|
299
299
|
className: "dial-tiny-text text-secondary",
|
|
300
300
|
children: o.uploadManifestRowNote ?? "Will replace this Skill's name, description, and instructions"
|
|
301
301
|
})
|
|
302
302
|
]
|
|
303
303
|
}),
|
|
304
|
-
/* @__PURE__ */
|
|
305
|
-
icon: /* @__PURE__ */
|
|
304
|
+
/* @__PURE__ */ C(ee, {
|
|
305
|
+
icon: /* @__PURE__ */ C(oe, {
|
|
306
306
|
size: 16,
|
|
307
307
|
"aria-hidden": !0,
|
|
308
|
-
stroke:
|
|
308
|
+
stroke: p
|
|
309
309
|
}),
|
|
310
310
|
"aria-label": o.uploadRemoveCandidateLabel?.(e.path) ?? `Remove ${e.path}`,
|
|
311
|
-
onClick: () =>
|
|
311
|
+
onClick: () => se(e.id)
|
|
312
312
|
})
|
|
313
313
|
]
|
|
314
314
|
}, e.id);
|
|
315
315
|
})
|
|
316
316
|
}),
|
|
317
|
-
|
|
317
|
+
v && /* @__PURE__ */ C(h, { text: v })
|
|
318
318
|
]
|
|
319
319
|
})
|
|
320
320
|
});
|
|
321
|
-
},
|
|
321
|
+
}, W = {
|
|
322
322
|
title: "_title_1cnn4_1",
|
|
323
323
|
helperText: "_helperText_1cnn4_5",
|
|
324
324
|
refineFeedback: "_refineFeedback_1cnn4_9",
|
|
325
325
|
refineError: "_refineError_1cnn4_13"
|
|
326
|
-
},
|
|
327
|
-
let { MarkdownEditor: e } = await
|
|
326
|
+
}, be = O(async () => {
|
|
327
|
+
let { MarkdownEditor: e } = await le();
|
|
328
328
|
return { default: e };
|
|
329
|
-
}),
|
|
330
|
-
let [
|
|
329
|
+
}), G = ({ initialValues: i, files: l, selectedPath: u, onSelectedPathChange: g, expandedPaths: ee, onExpandedPathsChange: re, isLoading: y = !1, hasLoadError: T = !1, isSubmitting: E = !1, errors: D, submitError: O, conflict: F, onReloadLatest: le, isNameReadOnly: ue = !1, onDirtyChange: I, onValuesChange: L, onRefineDescription: B, onRefineInstructions: V, fileActions: H, supportingFileContent: U, onSubmit: ge, onCancel: _e, onBack: ve, backAriaLabel: G, title: xe, onRetry: Se, onRetrySubmit: Ce, labels: we, styles: Te, dir: Ee, instructionsEditorTheme: De = m.light }) => {
|
|
330
|
+
let [K, Oe] = P({
|
|
331
331
|
name: i?.name ?? "",
|
|
332
332
|
description: i?.description ?? "",
|
|
333
333
|
instructions: i?.instructions ?? ""
|
|
334
|
-
}),
|
|
334
|
+
}), ke = j(), Ae = j(), q = N(void 0), je = o(), Me = N(K), J = (e) => {
|
|
335
335
|
let t = {
|
|
336
|
-
...
|
|
336
|
+
...Me.current,
|
|
337
337
|
...e
|
|
338
338
|
};
|
|
339
|
-
|
|
340
|
-
},
|
|
341
|
-
if (
|
|
342
|
-
|
|
339
|
+
Me.current = t, Oe(t), L?.(t);
|
|
340
|
+
}, Ne = (e) => e ? async (t, n) => {
|
|
341
|
+
if (q.current && !q.current.aborted) throw new DOMException("Busy", "AbortError");
|
|
342
|
+
q.current = n;
|
|
343
343
|
try {
|
|
344
344
|
return await e(t, n);
|
|
345
345
|
} finally {
|
|
346
|
-
|
|
346
|
+
q.current === n && (q.current = void 0);
|
|
347
347
|
}
|
|
348
|
-
} : void 0,
|
|
349
|
-
value:
|
|
350
|
-
onChange: (e) =>
|
|
351
|
-
onRefine:
|
|
352
|
-
disabled:
|
|
348
|
+
} : void 0, Y = s({
|
|
349
|
+
value: K.description,
|
|
350
|
+
onChange: (e) => J({ description: e }),
|
|
351
|
+
onRefine: Ne(B),
|
|
352
|
+
disabled: E || y || T,
|
|
353
353
|
resetKey: i
|
|
354
|
-
}),
|
|
355
|
-
value:
|
|
356
|
-
onChange: (e) =>
|
|
357
|
-
onRefine:
|
|
358
|
-
disabled:
|
|
354
|
+
}), Pe = s({
|
|
355
|
+
value: K.instructions,
|
|
356
|
+
onChange: (e) => J({ instructions: e }),
|
|
357
|
+
onRefine: Ne(V),
|
|
358
|
+
disabled: E || y || T,
|
|
359
359
|
resetKey: i
|
|
360
|
-
}),
|
|
361
|
-
|
|
362
|
-
},
|
|
363
|
-
|
|
364
|
-
},
|
|
365
|
-
|
|
366
|
-
},
|
|
367
|
-
|
|
368
|
-
},
|
|
369
|
-
|
|
370
|
-
|
|
360
|
+
}), Fe = Y.isPending || Pe.isPending, Ie = () => {
|
|
361
|
+
Y.reset(), Pe.reset();
|
|
362
|
+
}, Le = () => {
|
|
363
|
+
Ie(), _e();
|
|
364
|
+
}, Re = () => {
|
|
365
|
+
Ie(), ve();
|
|
366
|
+
}, ze = () => {
|
|
367
|
+
E || y || T || q.current && !q.current.aborted || ge(K);
|
|
368
|
+
}, Be = N(i), Ve = Be.current !== i, He = N(l);
|
|
369
|
+
A(() => {
|
|
370
|
+
Be.current = i;
|
|
371
371
|
let e = {
|
|
372
372
|
name: i?.name ?? "",
|
|
373
373
|
description: i?.description ?? "",
|
|
374
374
|
instructions: i?.instructions ?? ""
|
|
375
375
|
};
|
|
376
|
-
|
|
376
|
+
Me.current = e, Oe(e), He.current = l;
|
|
377
377
|
}, [i]);
|
|
378
|
-
let
|
|
379
|
-
|
|
380
|
-
if (
|
|
378
|
+
let Ue = (e) => JSON.stringify([...e].sort((e, t) => e.path.localeCompare(t.path))), We = N(!1);
|
|
379
|
+
A(() => {
|
|
380
|
+
if (Ve) return;
|
|
381
381
|
let e = {
|
|
382
382
|
name: i?.name ?? "",
|
|
383
383
|
description: i?.description ?? "",
|
|
384
384
|
instructions: i?.instructions ?? ""
|
|
385
|
-
}, t = JSON.stringify(
|
|
386
|
-
t !==
|
|
385
|
+
}, t = JSON.stringify(K) !== JSON.stringify(e) || Ue(l) !== Ue(He.current);
|
|
386
|
+
t !== We.current && (We.current = t, I?.(t));
|
|
387
387
|
}, [
|
|
388
|
-
|
|
389
|
-
|
|
388
|
+
K,
|
|
389
|
+
l,
|
|
390
390
|
i,
|
|
391
|
-
|
|
392
|
-
|
|
391
|
+
Ve,
|
|
392
|
+
I
|
|
393
393
|
]);
|
|
394
|
-
let [
|
|
395
|
-
|
|
396
|
-
}, [
|
|
394
|
+
let [Ge, Ke] = P(R), X = u ?? Ge, qe = k((e) => {
|
|
395
|
+
Ke(e), g?.(e);
|
|
396
|
+
}, [g]), [Je, Ye] = P([]), Xe = ee ?? Je, Ze = M(() => new Set(Xe), [Xe]), Qe = k((e) => {
|
|
397
397
|
let t = [...e];
|
|
398
|
-
|
|
399
|
-
}, [
|
|
400
|
-
|
|
401
|
-
}, [
|
|
402
|
-
"--se-title-color":
|
|
403
|
-
"--se-helper-text-color":
|
|
404
|
-
"--se-refine-action-text":
|
|
405
|
-
"--se-refine-error-text":
|
|
398
|
+
Ye(t), re?.(t);
|
|
399
|
+
}, [re]), [$e, et] = P(!1), [tt, nt] = P(), [rt, it] = P(!1), { isDragActive: at, dropZoneHandlers: ot } = pe(k((e) => {
|
|
400
|
+
$e || (nt(e), et(!0));
|
|
401
|
+
}, [$e])), Z = we ?? {}, Q = Te?.colors, st = Te?.typography ?? {}, ct = st.titleClassName ?? "dial-body-semi-text", lt = st.helperTextClassName ?? "dial-tiny-semi-text", ut = st.removeIconClassName ?? "text-secondary", dt = r({
|
|
402
|
+
"--se-title-color": Q?.title,
|
|
403
|
+
"--se-helper-text-color": Q?.helperText,
|
|
404
|
+
"--se-refine-action-text": Q?.refineActionText,
|
|
405
|
+
"--se-refine-error-text": Q?.refineErrorText
|
|
406
406
|
}), ft = {
|
|
407
|
-
feedbackClassName: a(
|
|
408
|
-
errorClassName:
|
|
409
|
-
}, pt =
|
|
410
|
-
headerBorderColor:
|
|
411
|
-
sidebarBorderColor:
|
|
412
|
-
} } : void 0, mt =
|
|
413
|
-
path:
|
|
414
|
-
name:
|
|
415
|
-
kind:
|
|
416
|
-
}, ...
|
|
417
|
-
|
|
418
|
-
}, [
|
|
419
|
-
|
|
407
|
+
feedbackClassName: a(W.refineFeedback, st.refineFeedbackClassName ?? "dial-small-text", fe.refineFeedback),
|
|
408
|
+
errorClassName: W.refineError
|
|
409
|
+
}, pt = Q?.border ? { colors: {
|
|
410
|
+
headerBorderColor: Q.border,
|
|
411
|
+
sidebarBorderColor: Q.border
|
|
412
|
+
} } : void 0, mt = M(() => me([{
|
|
413
|
+
path: R,
|
|
414
|
+
name: R,
|
|
415
|
+
kind: z.File
|
|
416
|
+
}, ...l]), [l]), $ = M(() => l.find((e) => e.path === X), [l, X]), ht = k((e) => {
|
|
417
|
+
qe(e.path);
|
|
418
|
+
}, [qe]), gt = k((e) => {
|
|
419
|
+
H.onRemoveNode(e), X === e && qe(R);
|
|
420
420
|
}, [
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
]), _t =
|
|
421
|
+
H,
|
|
422
|
+
X,
|
|
423
|
+
qe
|
|
424
|
+
]), _t = k((e) => e.path === "SKILL.md" ? [] : [{
|
|
425
425
|
key: "remove",
|
|
426
|
-
label:
|
|
427
|
-
icon: /* @__PURE__ */
|
|
428
|
-
size:
|
|
426
|
+
label: Z.removeLabel ?? "Remove",
|
|
427
|
+
icon: /* @__PURE__ */ C(oe, {
|
|
428
|
+
size: f.SM,
|
|
429
429
|
className: ut,
|
|
430
430
|
"aria-hidden": !0,
|
|
431
|
-
stroke:
|
|
431
|
+
stroke: p
|
|
432
432
|
}),
|
|
433
433
|
onClick: () => gt(e.path)
|
|
434
434
|
}], [
|
|
435
|
-
|
|
435
|
+
Z.removeLabel,
|
|
436
436
|
ut,
|
|
437
437
|
gt
|
|
438
|
-
]), vt = /* @__PURE__ */
|
|
438
|
+
]), vt = /* @__PURE__ */ w("div", {
|
|
439
439
|
className: "flex flex-col gap-2 desktop:gap-5",
|
|
440
|
-
children: [/* @__PURE__ */
|
|
440
|
+
children: [/* @__PURE__ */ w("div", {
|
|
441
441
|
className: "flex items-center justify-between",
|
|
442
|
-
children: [/* @__PURE__ */
|
|
443
|
-
className: a(
|
|
444
|
-
children:
|
|
445
|
-
}), /* @__PURE__ */
|
|
446
|
-
label:
|
|
447
|
-
iconBefore: /* @__PURE__ */
|
|
442
|
+
children: [/* @__PURE__ */ C("span", {
|
|
443
|
+
className: a(W.title, ct),
|
|
444
|
+
children: Z.filesHeading ?? "Files"
|
|
445
|
+
}), /* @__PURE__ */ C(v, {
|
|
446
|
+
label: Z.addUploadLabel ?? "Upload from device",
|
|
447
|
+
iconBefore: /* @__PURE__ */ C(ae, {
|
|
448
448
|
size: 16,
|
|
449
449
|
"aria-hidden": !0,
|
|
450
|
-
stroke:
|
|
450
|
+
stroke: p
|
|
451
451
|
}),
|
|
452
452
|
onClick: () => {
|
|
453
|
-
|
|
453
|
+
nt(void 0), et(!0);
|
|
454
454
|
}
|
|
455
455
|
})]
|
|
456
|
-
}), /* @__PURE__ */
|
|
456
|
+
}), /* @__PURE__ */ C("div", {
|
|
457
457
|
role: "tree",
|
|
458
|
-
"aria-label":
|
|
459
|
-
children: /* @__PURE__ */
|
|
458
|
+
"aria-label": Z.filesTreeAriaLabel ?? "Skill files",
|
|
459
|
+
children: /* @__PURE__ */ C(ce, {
|
|
460
460
|
items: mt,
|
|
461
461
|
showFiles: !0,
|
|
462
|
-
selectedPath:
|
|
463
|
-
expandedPaths:
|
|
464
|
-
onExpandedPathsChange:
|
|
462
|
+
selectedPath: X,
|
|
463
|
+
expandedPaths: Ze,
|
|
464
|
+
onExpandedPathsChange: Qe,
|
|
465
465
|
onItemClick: ht,
|
|
466
466
|
getContextMenuItems: _t,
|
|
467
467
|
rootItemPath: ""
|
|
468
468
|
})
|
|
469
469
|
})]
|
|
470
|
-
}), yt = /* @__PURE__ */
|
|
471
|
-
label:
|
|
472
|
-
onClick:
|
|
473
|
-
disabled:
|
|
474
|
-
}), /* @__PURE__ */ b
|
|
475
|
-
label:
|
|
476
|
-
iconBefore:
|
|
470
|
+
}), yt = /* @__PURE__ */ w(S, { children: [/* @__PURE__ */ C(v, {
|
|
471
|
+
label: Z.cancelLabel ?? "Cancel",
|
|
472
|
+
onClick: Le,
|
|
473
|
+
disabled: E
|
|
474
|
+
}), /* @__PURE__ */ C(b, {
|
|
475
|
+
label: Z.createLabel ?? "Create",
|
|
476
|
+
iconBefore: E ? /* @__PURE__ */ C(x, {
|
|
477
477
|
size: 16,
|
|
478
478
|
ariaLabel: ""
|
|
479
479
|
}) : void 0,
|
|
480
|
-
onClick:
|
|
481
|
-
disabled:
|
|
480
|
+
onClick: ze,
|
|
481
|
+
disabled: E || Fe || y || T
|
|
482
482
|
})] });
|
|
483
|
-
return
|
|
484
|
-
dir:
|
|
483
|
+
return y ? /* @__PURE__ */ C("div", {
|
|
484
|
+
dir: Ee,
|
|
485
485
|
className: "relative flex min-h-0 flex-1 flex-col",
|
|
486
|
-
children: /* @__PURE__ */
|
|
487
|
-
title:
|
|
488
|
-
onBack:
|
|
489
|
-
backAriaLabel:
|
|
486
|
+
children: /* @__PURE__ */ C(de, {
|
|
487
|
+
title: xe,
|
|
488
|
+
onBack: Re,
|
|
489
|
+
backAriaLabel: G,
|
|
490
490
|
actions: yt,
|
|
491
491
|
isSaving: !1,
|
|
492
|
-
labels: { savingStatusLabel:
|
|
492
|
+
labels: { savingStatusLabel: Z.savingStatusLabel },
|
|
493
493
|
styles: pt,
|
|
494
|
-
leftContent: /* @__PURE__ */
|
|
494
|
+
leftContent: /* @__PURE__ */ C("div", {
|
|
495
495
|
role: "status",
|
|
496
|
-
"aria-label":
|
|
496
|
+
"aria-label": Z.loadingAriaLabel ?? "Loading skill",
|
|
497
497
|
className: "flex flex-1 items-center justify-center p-8",
|
|
498
|
-
children: /* @__PURE__ */
|
|
498
|
+
children: /* @__PURE__ */ C(x, {})
|
|
499
499
|
})
|
|
500
500
|
})
|
|
501
|
-
}) :
|
|
502
|
-
dir:
|
|
501
|
+
}) : T ? /* @__PURE__ */ C("div", {
|
|
502
|
+
dir: Ee,
|
|
503
503
|
className: "relative flex min-h-0 flex-1 flex-col",
|
|
504
|
-
children: /* @__PURE__ */
|
|
505
|
-
title:
|
|
506
|
-
onBack:
|
|
507
|
-
backAriaLabel:
|
|
504
|
+
children: /* @__PURE__ */ C(de, {
|
|
505
|
+
title: xe,
|
|
506
|
+
onBack: Re,
|
|
507
|
+
backAriaLabel: G,
|
|
508
508
|
actions: yt,
|
|
509
509
|
isSaving: !1,
|
|
510
|
-
labels: { savingStatusLabel:
|
|
510
|
+
labels: { savingStatusLabel: Z.savingStatusLabel },
|
|
511
511
|
styles: pt,
|
|
512
|
-
leftContent: /* @__PURE__ */
|
|
512
|
+
leftContent: /* @__PURE__ */ w("div", {
|
|
513
513
|
role: "alert",
|
|
514
514
|
className: "flex flex-col items-center gap-4 p-8",
|
|
515
|
-
children: [/* @__PURE__ */
|
|
516
|
-
label:
|
|
517
|
-
onClick:
|
|
515
|
+
children: [/* @__PURE__ */ C(h, { text: Z.loadErrorMessage ?? "Couldn't load this skill. Please try again." }), /* @__PURE__ */ C(b, {
|
|
516
|
+
label: Z.retryLabel ?? "Retry",
|
|
517
|
+
onClick: Se
|
|
518
518
|
})]
|
|
519
519
|
})
|
|
520
520
|
})
|
|
521
|
-
}) : /* @__PURE__ */
|
|
522
|
-
dir:
|
|
523
|
-
className: a("relative flex min-h-0 flex-1 flex-col",
|
|
521
|
+
}) : /* @__PURE__ */ w("div", {
|
|
522
|
+
dir: Ee,
|
|
523
|
+
className: a("relative flex min-h-0 flex-1 flex-col", fe.root),
|
|
524
524
|
style: dt,
|
|
525
|
-
...
|
|
525
|
+
...ot,
|
|
526
526
|
children: [
|
|
527
|
-
/* @__PURE__ */
|
|
528
|
-
isVisible:
|
|
529
|
-
labels:
|
|
527
|
+
/* @__PURE__ */ C(he, {
|
|
528
|
+
isVisible: at && !$e,
|
|
529
|
+
labels: we
|
|
530
530
|
}),
|
|
531
|
-
/* @__PURE__ */
|
|
532
|
-
title:
|
|
533
|
-
onBack:
|
|
534
|
-
backAriaLabel:
|
|
531
|
+
/* @__PURE__ */ C(de, {
|
|
532
|
+
title: xe,
|
|
533
|
+
onBack: Re,
|
|
534
|
+
backAriaLabel: G,
|
|
535
535
|
actions: yt,
|
|
536
|
-
isSaving:
|
|
537
|
-
labels: { savingStatusLabel:
|
|
536
|
+
isSaving: E,
|
|
537
|
+
labels: { savingStatusLabel: Z.savingStatusLabel },
|
|
538
538
|
styles: pt,
|
|
539
|
-
leftContent: /* @__PURE__ */
|
|
539
|
+
leftContent: /* @__PURE__ */ w(S, { children: [/* @__PURE__ */ C("div", {
|
|
540
540
|
className: "px-4 py-4 desktop:hidden",
|
|
541
|
-
children: /* @__PURE__ */
|
|
542
|
-
title:
|
|
541
|
+
children: /* @__PURE__ */ C(c, {
|
|
542
|
+
title: Z.editingFileLabel ?? "Editing file",
|
|
543
543
|
description: $?.name ?? "SKILL.md",
|
|
544
|
-
expanded:
|
|
545
|
-
onToggle:
|
|
546
|
-
ariaLabel:
|
|
544
|
+
expanded: rt,
|
|
545
|
+
onToggle: it,
|
|
546
|
+
ariaLabel: Z.editingFileLabel ?? "Editing file",
|
|
547
547
|
children: vt
|
|
548
548
|
})
|
|
549
|
-
}), /* @__PURE__ */
|
|
549
|
+
}), /* @__PURE__ */ C("div", {
|
|
550
550
|
className: "hidden px-8 py-6 desktop:block",
|
|
551
551
|
children: vt
|
|
552
552
|
})] }),
|
|
553
|
-
rightContent: /* @__PURE__ */
|
|
553
|
+
rightContent: /* @__PURE__ */ w("div", {
|
|
554
554
|
className: "flex flex-1 flex-col gap-4 px-4 py-6 desktop:gap-5 desktop:px-8",
|
|
555
555
|
children: [
|
|
556
|
-
|
|
556
|
+
O != null && /* @__PURE__ */ w("div", {
|
|
557
557
|
role: "alert",
|
|
558
558
|
className: "flex items-center gap-2",
|
|
559
|
-
children: [/* @__PURE__ */
|
|
560
|
-
label:
|
|
561
|
-
onClick:
|
|
559
|
+
children: [/* @__PURE__ */ C(h, { text: O }), Ce != null && /* @__PURE__ */ C(_, {
|
|
560
|
+
label: Z.retryLabel ?? "Retry",
|
|
561
|
+
onClick: Ce
|
|
562
562
|
})]
|
|
563
563
|
}),
|
|
564
|
-
|
|
564
|
+
F != null && /* @__PURE__ */ w("div", {
|
|
565
565
|
role: "alert",
|
|
566
566
|
className: "flex items-center gap-2",
|
|
567
|
-
children: [/* @__PURE__ */
|
|
568
|
-
label:
|
|
569
|
-
onClick:
|
|
567
|
+
children: [/* @__PURE__ */ C(h, { text: F.message }), /* @__PURE__ */ C(_, {
|
|
568
|
+
label: Z.reloadLatestLabel ?? "Reload latest",
|
|
569
|
+
onClick: le
|
|
570
570
|
})]
|
|
571
571
|
}),
|
|
572
|
-
/* @__PURE__ */
|
|
573
|
-
className: a(
|
|
574
|
-
children:
|
|
572
|
+
/* @__PURE__ */ C("h2", {
|
|
573
|
+
className: a(W.title, ct),
|
|
574
|
+
children: X === "SKILL.md" ? R : Z.selectedFileHeading?.($?.name ?? X) ?? $?.name ?? X
|
|
575
575
|
}),
|
|
576
|
-
|
|
577
|
-
/* @__PURE__ */
|
|
576
|
+
X === "SKILL.md" ? /* @__PURE__ */ w(S, { children: [
|
|
577
|
+
/* @__PURE__ */ C(te, {
|
|
578
578
|
labelProps: {
|
|
579
|
-
label:
|
|
579
|
+
label: Z.nameLabel ?? "Name",
|
|
580
580
|
required: !0
|
|
581
581
|
},
|
|
582
|
-
value:
|
|
583
|
-
onChange: (e) =>
|
|
584
|
-
placeholder:
|
|
585
|
-
caption:
|
|
586
|
-
error:
|
|
587
|
-
invalid: !!
|
|
588
|
-
disabled:
|
|
582
|
+
value: K.name,
|
|
583
|
+
onChange: (e) => J({ name: e ?? "" }),
|
|
584
|
+
placeholder: Z.namePlaceholder ?? "good-morning-breakfast",
|
|
585
|
+
caption: D?.name ? void 0 : Z.nameCaption ?? "Lowercase letters and hyphens only, no spaces. We'll reformat automatically if needed.",
|
|
586
|
+
error: D?.name,
|
|
587
|
+
invalid: !!D?.name,
|
|
588
|
+
disabled: ue
|
|
589
589
|
}),
|
|
590
|
-
/* @__PURE__ */
|
|
591
|
-
isEnabled: !!
|
|
592
|
-
fieldId:
|
|
590
|
+
/* @__PURE__ */ C(n, {
|
|
591
|
+
isEnabled: !!B,
|
|
592
|
+
fieldId: ke,
|
|
593
593
|
required: !0,
|
|
594
|
-
label:
|
|
595
|
-
labels:
|
|
596
|
-
refinement:
|
|
597
|
-
disabled:
|
|
594
|
+
label: Z.descriptionLabel ?? "Description",
|
|
595
|
+
labels: Z,
|
|
596
|
+
refinement: Y,
|
|
597
|
+
disabled: Fe || E,
|
|
598
598
|
...ft,
|
|
599
|
-
children: /* @__PURE__ */
|
|
600
|
-
id:
|
|
599
|
+
children: /* @__PURE__ */ C(ie, {
|
|
600
|
+
id: ke,
|
|
601
601
|
"aria-required": !0,
|
|
602
|
-
labelProps:
|
|
603
|
-
label:
|
|
602
|
+
labelProps: B ? void 0 : {
|
|
603
|
+
label: Z.descriptionLabel ?? "Description",
|
|
604
604
|
required: !0
|
|
605
605
|
},
|
|
606
|
-
value:
|
|
607
|
-
placeholder:
|
|
606
|
+
value: K.description,
|
|
607
|
+
placeholder: Z.descriptionPlaceholder ?? "What this skill does and when to use it",
|
|
608
608
|
onChange: (e) => {
|
|
609
|
-
|
|
609
|
+
Y.reset(), J({ description: e });
|
|
610
610
|
},
|
|
611
|
-
error:
|
|
612
|
-
invalid: !!
|
|
611
|
+
error: D?.description,
|
|
612
|
+
invalid: !!D?.description
|
|
613
613
|
})
|
|
614
614
|
}),
|
|
615
|
-
/* @__PURE__ */
|
|
616
|
-
isEnabled: !!
|
|
617
|
-
fieldId:
|
|
615
|
+
/* @__PURE__ */ C(n, {
|
|
616
|
+
isEnabled: !!V,
|
|
617
|
+
fieldId: Ae,
|
|
618
618
|
required: !0,
|
|
619
|
-
labelClassName: a(
|
|
620
|
-
label:
|
|
621
|
-
labels:
|
|
622
|
-
refinement:
|
|
623
|
-
disabled:
|
|
619
|
+
labelClassName: a(W.helperText, lt),
|
|
620
|
+
label: Z.instructionsLabel ?? "Instructions",
|
|
621
|
+
labels: Z,
|
|
622
|
+
refinement: Pe,
|
|
623
|
+
disabled: Fe || E,
|
|
624
624
|
...ft,
|
|
625
|
-
children: /* @__PURE__ */
|
|
625
|
+
children: /* @__PURE__ */ w("div", {
|
|
626
626
|
className: "flex flex-1 flex-col gap-2",
|
|
627
627
|
children: [
|
|
628
|
-
!
|
|
629
|
-
htmlFor:
|
|
630
|
-
className: a(
|
|
631
|
-
label:
|
|
628
|
+
!V && /* @__PURE__ */ C(ne, {
|
|
629
|
+
htmlFor: Ae,
|
|
630
|
+
className: a(W.helperText, lt),
|
|
631
|
+
label: Z.instructionsLabel ?? "Instructions",
|
|
632
632
|
required: !0
|
|
633
633
|
}),
|
|
634
|
-
/* @__PURE__ */
|
|
635
|
-
ref:
|
|
634
|
+
/* @__PURE__ */ C("div", {
|
|
635
|
+
ref: je,
|
|
636
636
|
className: a(e, t),
|
|
637
|
-
children: /* @__PURE__ */
|
|
638
|
-
fallback: /* @__PURE__ */
|
|
639
|
-
children: /* @__PURE__ */
|
|
640
|
-
id:
|
|
641
|
-
ariaLabel:
|
|
642
|
-
value:
|
|
637
|
+
children: /* @__PURE__ */ C(se, {
|
|
638
|
+
fallback: /* @__PURE__ */ C(x, { ariaLabel: Z.instructionsLoadingAriaLabel ?? "Loading" }),
|
|
639
|
+
children: /* @__PURE__ */ C(be, {
|
|
640
|
+
id: Ae,
|
|
641
|
+
ariaLabel: Z.instructionsLabel ?? "Instructions",
|
|
642
|
+
value: K.instructions,
|
|
643
643
|
onChange: (e) => {
|
|
644
|
-
|
|
644
|
+
Pe.reset(), J({ instructions: e });
|
|
645
645
|
},
|
|
646
|
-
theme:
|
|
647
|
-
placeholder:
|
|
646
|
+
theme: De,
|
|
647
|
+
placeholder: Z.instructionsPlaceholder ?? "Write the skill instructions in Markdown"
|
|
648
648
|
})
|
|
649
649
|
})
|
|
650
650
|
}),
|
|
651
|
-
|
|
651
|
+
D?.instructions != null && /* @__PURE__ */ C(h, { text: D.instructions })
|
|
652
652
|
]
|
|
653
653
|
})
|
|
654
654
|
})
|
|
655
|
-
] }) : $?.kind ===
|
|
655
|
+
] }) : $?.kind === z.File && (U ?? /* @__PURE__ */ C(d, { text: Z.supportingFileNote ?? "This supporting file is included in the skill package as-is. Remove it from the Files panel to replace its content." }))
|
|
656
656
|
]
|
|
657
657
|
})
|
|
658
658
|
}),
|
|
659
|
-
/* @__PURE__ */
|
|
660
|
-
isOpen:
|
|
659
|
+
/* @__PURE__ */ C(ye, {
|
|
660
|
+
isOpen: $e,
|
|
661
661
|
onClose: () => {
|
|
662
|
-
|
|
662
|
+
et(!1), nt(void 0);
|
|
663
663
|
},
|
|
664
|
-
fileActions:
|
|
665
|
-
initialFiles:
|
|
666
|
-
labels:
|
|
664
|
+
fileActions: H,
|
|
665
|
+
initialFiles: tt,
|
|
666
|
+
labels: we
|
|
667
667
|
})
|
|
668
668
|
]
|
|
669
669
|
});
|
|
670
670
|
};
|
|
671
671
|
//#endregion
|
|
672
|
-
export {
|
|
672
|
+
export { fe as SKILL_EDITOR_CLASS, G as SkillEditor, H as SkillFileCandidateKind, z as SkillFileNodeKind, U as SkillFileValidationStatus };
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@epam/ai-dial-skill-editor",
|
|
3
3
|
"description": "Host-agnostic form for authoring a DIAL Skill, with an inline supporting-file tree",
|
|
4
|
-
"version": "1.2.0-dev.
|
|
4
|
+
"version": "1.2.0-dev.152",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"main": "./index.js",
|
|
@@ -20,12 +20,12 @@
|
|
|
20
20
|
"@tabler/icons-react": "^3.44.0",
|
|
21
21
|
"@uiw/react-markdown-preview": "^5.2.1",
|
|
22
22
|
"@uiw/react-md-editor": "^4.1.1",
|
|
23
|
-
"@epam/ai-dial-builder-form": "1.2.0-dev.
|
|
23
|
+
"@epam/ai-dial-builder-form": "1.2.0-dev.152"
|
|
24
24
|
},
|
|
25
25
|
"peerDependencies": {
|
|
26
|
-
"@epam/ai-dial-chat-shared": "1.2.0-dev.
|
|
27
|
-
"@epam/ai-dial-ui-kit": "^0.15.0-dev.
|
|
28
|
-
"@epam/ai-dial-react-file-manager": "^0.3.0-dev.
|
|
26
|
+
"@epam/ai-dial-chat-shared": "1.2.0-dev.152",
|
|
27
|
+
"@epam/ai-dial-ui-kit": "^0.15.0-dev.19",
|
|
28
|
+
"@epam/ai-dial-react-file-manager": "^0.3.0-dev.7",
|
|
29
29
|
"react": "^19.2.8"
|
|
30
30
|
},
|
|
31
31
|
"repository": {
|