@e-llm-studio/instant-learning 1.3.0-alpha.104 → 1.3.0-alpha.106
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/ComponentRegistry.js +2 -0
- package/dist/ComponentRegistry.js.map +1 -0
- package/dist/cjs/ComponentRegistry.js +2 -0
- package/dist/cjs/ComponentRegistry.js.map +1 -0
- package/dist/cjs/features/LearningManagement/components/InstantLearningModal.js +1 -1
- package/dist/cjs/features/LearningManagement/components/PromptTextEditor.js +2 -0
- package/dist/cjs/features/LearningManagement/components/PromptTextEditor.js.map +1 -0
- package/dist/cjs/features/LearningManagement/styles/PromptTextEditor.module.css.js +2 -0
- package/dist/cjs/features/LearningManagement/styles/PromptTextEditor.module.css.js.map +1 -0
- package/dist/features/LearningManagement/components/InstantLearningModal.js +1 -1
- package/dist/features/LearningManagement/components/PromptTextEditor.js +2 -0
- package/dist/features/LearningManagement/components/PromptTextEditor.js.map +1 -0
- package/dist/features/LearningManagement/styles/PromptTextEditor.module.css.js +2 -0
- package/dist/features/LearningManagement/styles/PromptTextEditor.module.css.js.map +1 -0
- package/dist/types/src/ComponentRegistry.d.ts +29 -0
- package/dist/types/src/ComponentRegistry.d.ts.map +1 -0
- package/dist/types/src/features/LearningManagement/components/InstantLearningModal.d.ts.map +1 -1
- package/dist/types/src/features/LearningManagement/components/PromptTextEditor.d.ts +44 -0
- package/dist/types/src/features/LearningManagement/components/PromptTextEditor.d.ts.map +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{__assign as t}from"tslib";import{jsx as e}from"react/jsx-runtime";import i from"@mui/material/Box";import{AIPromptEditor as o}from"@e-llm-studio/creative-workspace-ui-component";import r from"../styles/PromptTextEditor.module.css.js";var m=function(m){var a=m.value,n=m.onChange,l=m.placeholder,p=m.title,s=m.description,d=m.minHeight,c=void 0===d?"270px":d,x=m.maxHeight,h=void 0===x?"420px":x,u=m.minWidth,f=m.maxWidth,v=m.className,g=m.style,W=m.sx;return e(i,t({className:[r.promptTextEditorWrapper,v].filter(Boolean).join(" "),style:g,sx:W},{children:e(o,{value:a,onChange:n,placeholder:l,title:p,description:s,minHeight:c,maxHeight:h,minWidth:u,maxWidth:f,className:"".concat(r.promptTextEditorInner," prompt-text-editor-inner")})}))};export{m as default};
|
|
2
|
+
//# sourceMappingURL=PromptTextEditor.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PromptTextEditor.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import o from"../../../node_modules/style-inject/dist/style-inject.es.js";var r={promptTextEditorWrapper:"PromptTextEditor-module_promptTextEditorWrapper__RwD3x",promptTextEditorInner:"PromptTextEditor-module_promptTextEditorInner__18prR"};o(".PromptTextEditor-module_promptTextEditorWrapper__RwD3x{background-color:#fff;border:1px solid #e3e6ea;border-radius:.75rem;box-shadow:0 1px 3px 0 #00000014,0 1px 2px -1px #0000000f;overflow:hidden;transition:box-shadow .2s ease,border-color .2s ease}.PromptTextEditor-module_promptTextEditorWrapper__RwD3x:focus-within{border-color:#2563eb;box-shadow:0 0 0 3px #2563eb26}.PromptTextEditor-module_promptTextEditorInner__18prR{display:block;width:100%}");export{r as default};
|
|
2
|
+
//# sourceMappingURL=PromptTextEditor.module.css.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PromptTextEditor.module.css.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface RegistryEntry {
|
|
3
|
+
importPath: () => Promise<{
|
|
4
|
+
default: React.ComponentType<any>;
|
|
5
|
+
}>;
|
|
6
|
+
category: 'editor' | 'form-element' | 'display' | (string & {});
|
|
7
|
+
tags: string[];
|
|
8
|
+
}
|
|
9
|
+
export type RegistryComponentName = 'PromptTextEditor';
|
|
10
|
+
export declare const componentRegistry: Record<RegistryComponentName, RegistryEntry>;
|
|
11
|
+
export declare const isRegistryComponentName: (name: string) => name is "PromptTextEditor";
|
|
12
|
+
export declare const getComponentsByTag: (tags: string[]) => {
|
|
13
|
+
importPath: () => Promise<{
|
|
14
|
+
default: React.ComponentType<any>;
|
|
15
|
+
}>;
|
|
16
|
+
category: 'editor' | 'form-element' | 'display' | (string & {});
|
|
17
|
+
tags: string[];
|
|
18
|
+
name: "PromptTextEditor";
|
|
19
|
+
}[];
|
|
20
|
+
export declare const getComponentsByCategory: (category: string) => {
|
|
21
|
+
importPath: () => Promise<{
|
|
22
|
+
default: React.ComponentType<any>;
|
|
23
|
+
}>;
|
|
24
|
+
category: 'editor' | 'form-element' | 'display' | (string & {});
|
|
25
|
+
tags: string[];
|
|
26
|
+
name: "PromptTextEditor";
|
|
27
|
+
}[];
|
|
28
|
+
export declare const resolveRegistryComponent: (name?: string | null) => React.LazyExoticComponent<React.ComponentType<any>> | null;
|
|
29
|
+
//# sourceMappingURL=ComponentRegistry.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ComponentRegistry.d.ts","sourceRoot":"","sources":["../../../src/ComponentRegistry.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,MAAM,WAAW,aAAa;IAC5B,UAAU,EAAE,MAAM,OAAO,CAAC;QAAE,OAAO,EAAE,KAAK,CAAC,aAAa,CAAC,GAAG,CAAC,CAAA;KAAE,CAAC,CAAC;IACjE,QAAQ,EAAE,QAAQ,GAAG,cAAc,GAAG,SAAS,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC,CAAC;IAChE,IAAI,EAAE,MAAM,EAAE,CAAC;CAChB;AAED,MAAM,MAAM,qBAAqB,GAAG,kBAAkB,CAAC;AAKvD,eAAO,MAAM,iBAAiB,EAAE,MAAM,CAAC,qBAAqB,EAAE,aAAa,CAS1E,CAAC;AACF,eAAO,MAAM,uBAAuB,SAC5B,MAAM,+BAC+C,CAAC;AAC9D,eAAO,MAAM,kBAAkB,SAAU,MAAM,EAAE;gBAvBnC,MAAM,QAAQ;QAAE,OAAO,EAAE,MAAM,aAAa,CAAC,GAAG,CAAC,CAAA;KAAE,CAAC;cACtD,QAAQ,GAAG,cAAc,GAAG,SAAS,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC;UACzD,MAAM,EAAE;;GAwByB,CAAC;AAE1C,eAAO,MAAM,uBAAuB,aAAc,MAAM;gBA5B1C,MAAM,QAAQ;QAAE,OAAO,EAAE,MAAM,aAAa,CAAC,GAAG,CAAC,CAAA;KAAE,CAAC;cACtD,QAAQ,GAAG,cAAc,GAAG,SAAS,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC;UACzD,MAAM,EAAE;;GA6ByB,CAAC;AAQ1C,eAAO,MAAM,wBAAwB,UAC5B,MAAM,GAAG,IAAI,KACnB,MAAM,mBAAmB,CAAC,MAAM,aAAa,CAAC,GAAG,CAAC,CAAC,GAAG,IAWxD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InstantLearningModal.d.ts","sourceRoot":"","sources":["../../../../../../src/features/LearningManagement/components/InstantLearningModal.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4D,MAAM,OAAO,CAAC;AAoCjF,OAAO,EAAE,cAAc,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AA2BpE,UAAU,yBAAyB;IACjC,MAAM,EAAE,OAAO,CAAC;IAChB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,OAAO,CAAC,EAAE,WAAW,CAAC;IACtB,+EAA+E;IAC/E,WAAW,CAAC,EAAE,cAAc,GAAG,IAAI,CAAC;IACpC,sFAAsF;IACtF,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,qEAAqE;IACrE,eAAe,CAAC,EAAE,WAAW,EAAE,GAAG,IAAI,CAAC;IACvC,iFAAiF;IACjF,mBAAmB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACpC,sBAAsB,CAAC,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,MAAM,GAAG,IAAI,CAAC,CAAC,CAAC;IAC7E,6FAA6F;IAC7F,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,UAAU,CAAC,EAAE,cAAc,GAAG,IAAI,CAAC;IACnC,gBAAgB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACjC,gBAAgB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACjC,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,wBAAwB,EAAE,MAAM,CAAC;IACjC,MAAM,EAAE,MAAM,CAAC;IACf,aAAa,CAAC,EAAC,GAAG,CAAC;CACpB;AAoBD;;;;GAIG;AACH,eAAO,MAAM,eAAe,QAAS,MAAM,GAAG,GAAG,WAMhD,CAAC;AAwIF,QAAA,MAAM,oBAAoB,EAAE,KAAK,CAAC,EAAE,CAAC,yBAAyB,
|
|
1
|
+
{"version":3,"file":"InstantLearningModal.d.ts","sourceRoot":"","sources":["../../../../../../src/features/LearningManagement/components/InstantLearningModal.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4D,MAAM,OAAO,CAAC;AAoCjF,OAAO,EAAE,cAAc,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AA2BpE,UAAU,yBAAyB;IACjC,MAAM,EAAE,OAAO,CAAC;IAChB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,OAAO,CAAC,EAAE,WAAW,CAAC;IACtB,+EAA+E;IAC/E,WAAW,CAAC,EAAE,cAAc,GAAG,IAAI,CAAC;IACpC,sFAAsF;IACtF,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,qEAAqE;IACrE,eAAe,CAAC,EAAE,WAAW,EAAE,GAAG,IAAI,CAAC;IACvC,iFAAiF;IACjF,mBAAmB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACpC,sBAAsB,CAAC,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,MAAM,GAAG,IAAI,CAAC,CAAC,CAAC;IAC7E,6FAA6F;IAC7F,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,UAAU,CAAC,EAAE,cAAc,GAAG,IAAI,CAAC;IACnC,gBAAgB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACjC,gBAAgB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACjC,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,wBAAwB,EAAE,MAAM,CAAC;IACjC,MAAM,EAAE,MAAM,CAAC;IACf,aAAa,CAAC,EAAC,GAAG,CAAC;CACpB;AAoBD;;;;GAIG;AACH,eAAO,MAAM,eAAe,QAAS,MAAM,GAAG,GAAG,WAMhD,CAAC;AAwIF,QAAA,MAAM,oBAAoB,EAAE,KAAK,CAAC,EAAE,CAAC,yBAAyB,CA83N7D,CAAC;AAEF,eAAe,oBAAoB,CAAC"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { BoxProps } from '@mui/material/Box';
|
|
3
|
+
import '../styles/PromptTextEditorOverrides.css';
|
|
4
|
+
/**
|
|
5
|
+
* Props accepted by the underlying `AIPromptEditor` from
|
|
6
|
+
* `@e-llm-studio/creative-workspace-ui-component`.
|
|
7
|
+
*/
|
|
8
|
+
export interface PromptTextEditorProps {
|
|
9
|
+
value: string;
|
|
10
|
+
onChange: (value: string) => void;
|
|
11
|
+
placeholder?: string;
|
|
12
|
+
title?: string;
|
|
13
|
+
description?: string;
|
|
14
|
+
minHeight?: string;
|
|
15
|
+
maxHeight?: string;
|
|
16
|
+
minWidth?: string;
|
|
17
|
+
maxWidth?: string;
|
|
18
|
+
/** Class name applied to our wrapper container (merged with default card styling) */
|
|
19
|
+
className?: string;
|
|
20
|
+
/** Inline style applied to our wrapper container */
|
|
21
|
+
style?: React.CSSProperties;
|
|
22
|
+
/** MUI `sx` prop applied to the wrapper `Box`, for theme-aware/responsive overrides */
|
|
23
|
+
sx?: BoxProps['sx'];
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Local wrapper around the library's `AIPromptEditor`.
|
|
27
|
+
*
|
|
28
|
+
* We resolve this component through `ComponentRegistry` instead of pointing
|
|
29
|
+
* directly at `m.AIPromptEditor` so that:
|
|
30
|
+
* - We can pass a different/extended prop set (className, style, sx) without
|
|
31
|
+
* touching the library.
|
|
32
|
+
* - We can style the *container* the editor sits in (card look: border,
|
|
33
|
+
* radius, shadow, spacing) since the library itself ships unstyled here —
|
|
34
|
+
* its internal markup relies on Tailwind utility classes that this app
|
|
35
|
+
* doesn't compile, so the toolbar/buttons render plain by design. This
|
|
36
|
+
* wrapper only dresses up the outer shell; it does not attempt to
|
|
37
|
+
* reproduce the library's internal Tailwind-dependent styling.
|
|
38
|
+
*
|
|
39
|
+
* @param props - Component props
|
|
40
|
+
* @returns JSX element wrapping AIPromptEditor with custom container styling
|
|
41
|
+
*/
|
|
42
|
+
declare const PromptTextEditor: React.FC<PromptTextEditorProps>;
|
|
43
|
+
export default PromptTextEditor;
|
|
44
|
+
//# sourceMappingURL=PromptTextEditor.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PromptTextEditor.d.ts","sourceRoot":"","sources":["../../../../../../src/features/LearningManagement/components/PromptTextEditor.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAY,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAGlD,OAAO,yCAAyC,CAAC;AAEjD;;;GAGG;AACH,MAAM,WAAW,qBAAqB;IACpC,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,qFAAqF;IACrF,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,oDAAoD;IACpD,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC5B,uFAAuF;IACvF,EAAE,CAAC,EAAE,QAAQ,CAAC,IAAI,CAAC,CAAC;CACrB;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,QAAA,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC,qBAAqB,CA+BrD,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
|