@epam/ai-dial-ui-kit 0.10.0-dev.43 → 0.10.0-dev.45

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.
@@ -60788,7 +60788,7 @@ const xg = ({
60788
60788
  }) })
60789
60789
  }
60790
60790
  );
60791
- }, TV = () => import("./JsonEditor-OROzN050.js"), IV = () => import("./MarkdownEditor-DsJPeGVE.js");
60791
+ }, TV = () => import("./JsonEditor-O8XBRFzH.js"), IV = () => import("./MarkdownEditor-Dzkdsu15.js");
60792
60792
  export {
60793
60793
  mV as $,
60794
60794
  wi as A,
@@ -28,6 +28,15 @@ function formatComponent(comp) {
28
28
  ""
29
29
  ];
30
30
  if (comp.description) lines.push(comp.description, "");
31
+ if (comp.lazy) {
32
+ lines.push("## Lazy Loading", "");
33
+ lines.push(`- Loader export: \`${comp.lazy.loaderExportName}\``);
34
+ lines.push(`- Package import: \`${comp.lazy.packageImport}\``);
35
+ lines.push(`- SSR disabled: ${String(comp.lazy.ssr)}`);
36
+ lines.push("");
37
+ lines.push("### Next.js", "");
38
+ lines.push("```tsx", comp.lazy.nextDynamicExample, "```", "");
39
+ }
31
40
  if (comp.props.length > 0) {
32
41
  lines.push("## Props", "");
33
42
  lines.push("| Prop | Type | Required | Default | Description |");
@@ -5,6 +5,12 @@ export interface PropEntry {
5
5
  defaultValue?: string;
6
6
  description?: string;
7
7
  }
8
+ export interface LazyComponentEntry {
9
+ loaderExportName: string;
10
+ packageImport: string;
11
+ ssr: false;
12
+ nextDynamicExample: string;
13
+ }
8
14
  export interface ComponentEntry {
9
15
  name: string;
10
16
  category: string;
@@ -12,6 +18,7 @@ export interface ComponentEntry {
12
18
  props: PropEntry[];
13
19
  examples: string[];
14
20
  sourceFile: string;
21
+ lazy?: LazyComponentEntry;
15
22
  }
16
23
  export interface TypeMember {
17
24
  name: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@epam/ai-dial-ui-kit",
3
- "version": "0.10.0-dev.43",
3
+ "version": "0.10.0-dev.45",
4
4
  "type": "module",
5
5
  "license": "Apache-2.0",
6
6
  "description": "A modern UI kit for building AI DIAL interfaces with React",
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("./index-BJdrse-M.cjs"),o=require("./editor-Ba3vCFHk.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:t,onChange:n,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.jsxRuntimeExports.jsx(u.Editor,{beforeMount:a,height:"100%",defaultLanguage:"json",value:t,onChange:n,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;