@epam/ai-dial-ui-kit 0.14.0 → 0.14.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/CHANGELOG.md +2 -0
- package/dist/JsonEditor-qv1Z0dLX.cjs +1 -0
- package/dist/MarkdownEditor-DHn2pYOJ.cjs +1 -0
- package/dist/{MarkdownEditor-5kljDPcm.cjs → MarkdownEditor-jQ8nDJfx.cjs} +1 -1
- package/dist/{MarkdownEditorContainer-BqTGQArV.cjs → MarkdownEditorContainer-Bzcnoemw.cjs} +1 -1
- package/dist/components/JsonEditor/JsonEditor.js +7 -6
- package/dist/components/MarkdownEditor/MarkdownEditor.js +5 -5
- package/dist/components/New/MarkdownEditor/MarkdownEditor.js +9 -9
- package/dist/components/New/MarkdownEditor/constants.js +58 -37
- package/dist/components/New/PasswordInput/PasswordInput.js +33 -32
- package/dist/components-manifest.json +3 -3
- package/dist/dial-ui-kit.cjs +2 -2
- package/dist/editors.cjs +1 -1
- package/dist/lazy-tfN4sKhq.cjs +1 -0
- package/dist/src/components/New/PasswordInput/PasswordInput.d.ts +4 -1
- package/package.json +2 -2
- package/dist/JsonEditor-BlaSMX26.cjs +0 -1
- package/dist/MarkdownEditor-C0_gU7Fi.cjs +0 -1
- package/dist/lazy-B1eG0EeX.cjs +0 -1
package/dist/editors.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./lazy-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./lazy-tfN4sKhq.cjs"),r=()=>Promise.resolve().then(()=>require("./MarkdownEditorContainer-Bzcnoemw.cjs"));exports.EditorThemes=o.EditorThemes;exports.LazyDialJsonEditor=o.LazyDialJsonEditor;exports.LazyDialMarkdownEditor=o.LazyDialMarkdownEditor;exports.LazyMarkdownEditor=o.LazyMarkdownEditor;exports.LazyDialMarkdownEditorContainer=r;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var o=(r=>(r.dark="dark",r.light="light",r))(o||{});const e=()=>Promise.resolve().then(()=>require("./JsonEditor-qv1Z0dLX.cjs")),i=()=>Promise.resolve().then(()=>require("./MarkdownEditor-jQ8nDJfx.cjs")),a=()=>Promise.resolve().then(()=>require("./MarkdownEditor-DHn2pYOJ.cjs"));exports.EditorThemes=o;exports.LazyDialJsonEditor=e;exports.LazyDialMarkdownEditor=i;exports.LazyMarkdownEditor=a;
|
|
@@ -15,6 +15,9 @@ export interface PasswordInputProps extends Omit<InputProps, 'type' | 'iconAfter
|
|
|
15
15
|
* both its purpose and its state. `type` and `iconAfter` are owned by this
|
|
16
16
|
* component; every other {@link Input} prop is passed through.
|
|
17
17
|
*
|
|
18
|
+
* A disabled field is masked with no toggle at all, and comes back masked if it
|
|
19
|
+
* is enabled again.
|
|
20
|
+
*
|
|
18
21
|
* @example
|
|
19
22
|
* ```tsx
|
|
20
23
|
* <PasswordInput
|
|
@@ -28,6 +31,6 @@ export interface PasswordInputProps extends Omit<InputProps, 'type' | 'iconAfter
|
|
|
28
31
|
* @param [showPasswordLabel="Show password"] - Accessible name of the toggle while the value is masked
|
|
29
32
|
* @param [hidePasswordLabel="Hide password"] - Accessible name of the toggle while the value is visible
|
|
30
33
|
* @param [size=ElementSize.Standard] - Field height: standard is 40px, small is 24px
|
|
31
|
-
* @param [disabled=false] - Disables the field and
|
|
34
|
+
* @param [disabled=false] - Disables the field, masks it, and hides the reveal toggle
|
|
32
35
|
*/
|
|
33
36
|
export declare const PasswordInput: FC<PasswordInputProps>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@epam/ai-dial-ui-kit",
|
|
3
|
-
"version": "0.14.
|
|
3
|
+
"version": "0.14.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"description": "A modern UI kit for building AI DIAL interfaces with React",
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
"test:run": "vitest run",
|
|
61
61
|
"verify:agent-hook": "npm run typecheck && npm run lint:check && npm run test:run",
|
|
62
62
|
"fixtures:run-all": "node fixtures/run-all.mjs",
|
|
63
|
-
"verify:distribution": "npm run fixtures:run-all && node tools/export-surface.mjs --check tools/baselines/root-exports.json && node tools/export-surface.mjs --verify-against-baseline tools/baselines/root-exports.json --from-tarball fixtures/.tarballs/
|
|
63
|
+
"verify:distribution": "npm run fixtures:run-all && node tools/export-surface.mjs --check tools/baselines/root-exports.json && node tools/export-surface.mjs --verify-against-baseline tools/baselines/root-exports.json --from-tarball fixtures/.tarballs/ai-dial-ui-kit.tgz && node tools/verify-pack-contents.mjs",
|
|
64
64
|
"format": "prettier --check .",
|
|
65
65
|
"format-fix": "prettier --write .",
|
|
66
66
|
"preview": "vite preview",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("react/jsx-runtime"),o=require("./lazy-B1eG0EeX.cjs"),u=require("@monaco-editor/react"),c={[o.EditorThemes.dark]:{base:"vs-dark",inherit:!1,rules:[{token:"string.key.json",foreground:"#37BABC"},{token:"string.value.json",foreground:"#5C8DEA"},{token:"number",foreground:"#D97C27"},{token:"keyword.json",foreground:"#F4CE46"},{token:"delimiter",foreground:"#EEF1F7"},{token:"delimiter.bracket.json",foreground:"#A972FF"},{token:"delimiter.parenthesis",foreground:"#A972FF"}],colors:{"editor.foreground":"#F76464","editor.background":"#161B2D","editorCursor.foreground":"#EEF1F7","editor.selectionBackground":"#5C8DEA2B","editorLineNumber.foreground":"#242C42","scrollbarSlider.background":"#242C42","scrollbarSlider.hoverBackground":"#242C42","scrollbarSlider.activeBackground":"#242C42"}},[o.EditorThemes.light]:{base:"vs",inherit:!1,rules:[{token:"string.key.json",foreground:"#009D9F"},{token:"string.value.json",foreground:"#2764D9"},{token:"number",foreground:"#B25500"},{token:"keyword.json",foreground:"#3F3D25"},{token:"delimiter",foreground:"#161B2D"},{token:"delimiter.bracket.json",foreground:"#7E39EC"},{token:"delimiter.parenthesis",foreground:"#7E39EC"}],colors:{"editor.foreground":"#AE2F2F","editor.background":"#EEF1F7","editorCursor.foreground":"#161B2D","editor.selectionBackground":"#5C8DEA2B","editorLineNumber.foreground":"#242C42","scrollbarSlider.background":"#242C42","scrollbarSlider.hoverBackground":"#242C42","scrollbarSlider.activeBackground":"#242C42"}}},g=({value:n,onChange:t,onValidateJSON:i,options:s,currentTheme:e,themesConfig:d=c})=>{function a(r){r?.editor?.defineTheme(e,d[e]),r.languages.json.jsonDefaults.setDiagnosticsOptions({validate:!0,enableSchemaRequest:!1,schemas:[{uri:"http://custom-schema/object-required.json",fileMatch:["*"],schema:{type:"object",description:"Top-level value must be an object",additionalProperties:!0}}]})}return l.jsx(u.Editor,{beforeMount:a,height:"100%",defaultLanguage:"json",value:n,onChange:t,theme:e,onValidate:i,options:{minimap:{enabled:!1},formatOnType:!0,formatOnPaste:!0,selectOnLineNumbers:!1,automaticLayout:!0,scrollBeyondLastLine:!1,wordWrap:"on",smoothScrolling:!0,overviewRulerLanes:0,scrollbar:{horizontal:"hidden",verticalScrollbarSize:4,verticalSliderSize:4},...s??{}}})};exports.DialJsonEditor=g;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react/jsx-runtime"),c=require("react"),e=require("@uiw/react-md-editor"),C=require("./lazy-B1eG0EeX.cjs"),O=require("./merge-classes-Dipy1Ih1.cjs"),t=require("@tabler/icons-react"),k=require("./icon-DhjrDQ8I.cjs"),L=require("./icon-CrGVkVpG.cjs"),M=L.DIAL_ICON_SIZE.SM,i={size:M,stroke:k.DIAL_KIT_ICON_STROKE},n=(s,r)=>({...s,icon:r}),v=()=>[n(e.bold,o.jsx(t.IconBold,{...i})),n(e.italic,o.jsx(t.IconItalic,{...i})),n(e.strikethrough,o.jsx(t.IconStrikethrough,{...i})),e.divider,e.group([e.heading1,e.heading2,e.heading3],{name:"heading",groupName:"heading",icon:o.jsx(t.IconTextSize,{...i}),buttonProps:{"aria-label":"Text style",title:"Text style"}}),e.divider,n(e.unorderedListCommand,o.jsx(t.IconList,{...i})),n(e.orderedListCommand,o.jsx(t.IconListNumbers,{...i})),e.divider,n(e.quote,o.jsx(t.IconQuote,{...i})),n(e.link,o.jsx(t.IconLink,{...i})),n(e.code,o.jsx(t.IconCode,{...i})),e.divider,n(e.table,o.jsx(t.IconTable,{...i}))],E=()=>[n(e.codeEdit,o.jsx(t.IconPencil,{...i})),n(e.codeLive,o.jsx(t.IconLayoutColumns,{...i})),n(e.codePreview,o.jsx(t.IconEye,{...i})),e.divider,n(e.fullscreen,o.jsx(t.IconMaximize,{...i}))],T=({value:s,onChange:r,height:d=300,theme:a=C.EditorThemes.light,className:l,placeholder:m,defaultPreview:u="edit",id:I,ariaLabel:x})=>{const g=c.useMemo(()=>v(),[]),j=c.useMemo(()=>E(),[]);return o.jsx("div",{"data-color-mode":a,className:O.mergeClasses("dial-kit-markdown-editor",l),children:o.jsx(e,{value:s,onChange:h=>r?.(h||""),height:d,preview:u,commands:g,extraCommands:j,textareaProps:{placeholder:m,id:I,"aria-label":x}})})};exports.MarkdownEditor=T;
|
package/dist/lazy-B1eG0EeX.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var o=(r=>(r.dark="dark",r.light="light",r))(o||{});const e=()=>Promise.resolve().then(()=>require("./JsonEditor-BlaSMX26.cjs")),i=()=>Promise.resolve().then(()=>require("./MarkdownEditor-5kljDPcm.cjs")),a=()=>Promise.resolve().then(()=>require("./MarkdownEditor-C0_gU7Fi.cjs"));exports.EditorThemes=o;exports.LazyDialJsonEditor=e;exports.LazyDialMarkdownEditor=i;exports.LazyMarkdownEditor=a;
|