@e-llm-studio/instant-learning 1.3.0 → 1.3.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/ComponentRegistry.js +1 -1
- package/dist/ILMarketplaceWrapper.js +1 -1
- package/dist/ILMarketplaceWrapper.module.css.js +1 -1
- package/dist/cjs/ComponentRegistry.js +1 -1
- package/dist/cjs/ILMarketplaceWrapper.js +1 -1
- package/dist/cjs/ILMarketplaceWrapper.module.css.js +1 -1
- package/dist/cjs/features/IL-OTJ/ValueTypeWrappers/TeachMePlugin.js +1 -1
- package/dist/cjs/features/IL-OTJ/ValueTypeWrappers/TeachMeWrapper.js +1 -1
- package/dist/cjs/features/IL-OTJ/_components/atoms/Textarea/Textarea.js +1 -1
- package/dist/cjs/features/IL-marketplace/PromoteFlow/EnvironmentConfigurationModal.js +2 -0
- package/dist/cjs/features/IL-marketplace/PromoteFlow/EnvironmentConfigurationModal.js.map +1 -0
- package/dist/cjs/features/IL-marketplace/PromoteFlow/EnvironmentConfigurationModal.module.css.js +2 -0
- package/dist/cjs/features/IL-marketplace/PromoteFlow/EnvironmentConfigurationModal.module.css.js.map +1 -0
- package/dist/cjs/features/IL-marketplace/PromoteFlow/PromoteFlow.js +2 -0
- package/dist/cjs/features/IL-marketplace/PromoteFlow/PromoteFlow.js.map +1 -0
- package/dist/cjs/features/IL-marketplace/PromoteFlow/PromoteFlow.module.css.js +2 -0
- package/dist/cjs/features/IL-marketplace/PromoteFlow/PromoteFlow.module.css.js.map +1 -0
- package/dist/cjs/features/IL-marketplace/PromoteFlow/promote-flow.api.js +2 -0
- package/dist/cjs/features/IL-marketplace/PromoteFlow/promote-flow.api.js.map +1 -0
- package/dist/cjs/features/IL-marketplace/PromoteFlow/promote-flow.store.js +2 -0
- package/dist/cjs/features/IL-marketplace/PromoteFlow/promote-flow.store.js.map +1 -0
- package/dist/cjs/features/IL-marketplace/PromoteFlow/promote-flow.utils.js +2 -0
- package/dist/cjs/features/IL-marketplace/PromoteFlow/promote-flow.utils.js.map +1 -0
- package/dist/cjs/features/IL-marketplace/components/GuidelineLandingPage.js +1 -1
- package/dist/cjs/features/IL-marketplace/components/GuidelineLibrary.module.css.js +1 -1
- package/dist/cjs/features/IL-marketplace/components/GuidelineLibraryCard.js +1 -1
- package/dist/cjs/features/IL-marketplace/components/GuidelineLibraryCard.module.css.js +1 -1
- package/dist/cjs/features/IL-marketplace/components/GuidelineLibraryContent.js +1 -1
- package/dist/cjs/features/IL-marketplace/components/ILMarketPlacePublish/PublishToMarketplaceCompnent.js +1 -1
- package/dist/cjs/features/IL-marketplace/components/LearningManagementWrapper.js +1 -1
- package/dist/cjs/features/IL-marketplace/services/guideline.runtime.config.js +1 -1
- package/dist/cjs/features/LearningManagement/AuditLog/AuditLog.js +1 -1
- package/dist/cjs/features/LearningManagement/LearningManagement.js +1 -1
- package/dist/cjs/features/LearningManagement/LearningManagementTest.js +1 -1
- package/dist/cjs/features/LearningManagement/LearningTemplateLayout.js +1 -1
- package/dist/cjs/features/LearningManagement/RuleContent/ContentLogic.js +1 -1
- package/dist/cjs/features/LearningManagement/RuleContent/DraftsAccordion.js +1 -1
- package/dist/cjs/features/LearningManagement/RuleContent/RuleAccordionHeader.js +1 -1
- package/dist/cjs/features/LearningManagement/RuleContent/RuleContent.js +1 -1
- package/dist/cjs/features/LearningManagement/RuleContent/RuleHeader.js +1 -1
- package/dist/cjs/features/LearningManagement/RuleContent/TierCard.js +1 -1
- package/dist/cjs/features/LearningManagement/RuleContent/VariantCard.js +1 -1
- package/dist/cjs/features/LearningManagement/apis/scopeApis.js +1 -1
- package/dist/cjs/features/LearningManagement/components/InstantLearningModalDynamic.js +1 -1
- package/dist/cjs/features/LearningManagement/components/PromptTextEditor.js +1 -1
- package/dist/cjs/features/LearningManagement/components/ScopeTree/TreeNode.js +1 -1
- package/dist/cjs/features/LearningManagement/queries/useLMSConfigQuery.js +1 -1
- package/dist/cjs/features/LearningManagement/store/useLearningTemplateStore.js +1 -1
- package/dist/cjs/features/LearningManagement/styles/RuleHeader.module.css.js +1 -1
- package/dist/cjs/plugins/ValueTypes/Default/DefaultTeachMeRenderer.js +1 -1
- package/dist/cjs/schema-driven/BPARenderer.js +1 -1
- package/dist/cjs/schema-driven/components/PromptTextEditorField.js +1 -1
- package/dist/cjs/schema-driven/components/TableComponent.js +2 -0
- package/dist/cjs/schema-driven/components/TableComponent.js.map +1 -0
- package/dist/cjs/schema-driven/helper.js +2 -0
- package/dist/cjs/schema-driven/helper.js.map +1 -0
- package/dist/cjs/schema-driven/hooks/useSectionEditSession.js +1 -1
- package/dist/cjs/schema-driven/store/useDynamicFormStore.js +1 -1
- package/dist/cjs/schema-driven/types.js +2 -0
- package/dist/cjs/schema-driven/types.js.map +1 -0
- package/dist/cjs/schema-driven/utils/PayloadUtils.js +1 -1
- package/dist/features/IL-OTJ/ValueTypeWrappers/TeachMePlugin.js +1 -1
- package/dist/features/IL-OTJ/ValueTypeWrappers/TeachMeWrapper.js +1 -1
- package/dist/features/IL-OTJ/_components/atoms/Textarea/Textarea.js +1 -1
- package/dist/features/IL-marketplace/PromoteFlow/EnvironmentConfigurationModal.js +2 -0
- package/dist/features/IL-marketplace/PromoteFlow/EnvironmentConfigurationModal.js.map +1 -0
- package/dist/features/IL-marketplace/PromoteFlow/EnvironmentConfigurationModal.module.css.js +2 -0
- package/dist/features/IL-marketplace/PromoteFlow/EnvironmentConfigurationModal.module.css.js.map +1 -0
- package/dist/features/IL-marketplace/PromoteFlow/PromoteFlow.js +2 -0
- package/dist/features/IL-marketplace/PromoteFlow/PromoteFlow.js.map +1 -0
- package/dist/features/IL-marketplace/PromoteFlow/PromoteFlow.module.css.js +2 -0
- package/dist/features/IL-marketplace/PromoteFlow/PromoteFlow.module.css.js.map +1 -0
- package/dist/features/IL-marketplace/PromoteFlow/promote-flow.api.js +2 -0
- package/dist/features/IL-marketplace/PromoteFlow/promote-flow.api.js.map +1 -0
- package/dist/features/IL-marketplace/PromoteFlow/promote-flow.store.js +2 -0
- package/dist/features/IL-marketplace/PromoteFlow/promote-flow.store.js.map +1 -0
- package/dist/features/IL-marketplace/PromoteFlow/promote-flow.utils.js +2 -0
- package/dist/features/IL-marketplace/PromoteFlow/promote-flow.utils.js.map +1 -0
- package/dist/features/IL-marketplace/components/GuidelineLandingPage.js +1 -1
- package/dist/features/IL-marketplace/components/GuidelineLibrary.module.css.js +1 -1
- package/dist/features/IL-marketplace/components/GuidelineLibraryCard.js +1 -1
- package/dist/features/IL-marketplace/components/GuidelineLibraryCard.module.css.js +1 -1
- package/dist/features/IL-marketplace/components/GuidelineLibraryContent.js +1 -1
- package/dist/features/IL-marketplace/components/ILMarketPlacePublish/PublishToMarketplaceCompnent.js +1 -1
- package/dist/features/IL-marketplace/components/LearningManagementWrapper.js +1 -1
- package/dist/features/IL-marketplace/services/guideline.runtime.config.js +1 -1
- package/dist/features/LearningManagement/AuditLog/AuditLog.js +1 -1
- package/dist/features/LearningManagement/LearningManagement.js +1 -1
- package/dist/features/LearningManagement/LearningManagementTest.js +1 -1
- package/dist/features/LearningManagement/LearningTemplateLayout.js +1 -1
- package/dist/features/LearningManagement/RuleContent/ContentLogic.js +1 -1
- package/dist/features/LearningManagement/RuleContent/DraftsAccordion.js +1 -1
- package/dist/features/LearningManagement/RuleContent/RuleAccordionHeader.js +1 -1
- package/dist/features/LearningManagement/RuleContent/RuleContent.js +1 -1
- package/dist/features/LearningManagement/RuleContent/RuleHeader.js +1 -1
- package/dist/features/LearningManagement/RuleContent/TierCard.js +1 -1
- package/dist/features/LearningManagement/RuleContent/VariantCard.js +1 -1
- package/dist/features/LearningManagement/apis/scopeApis.js +1 -1
- package/dist/features/LearningManagement/components/InstantLearningModalDynamic.js +1 -1
- package/dist/features/LearningManagement/components/PromptTextEditor.js +1 -1
- package/dist/features/LearningManagement/components/ScopeTree/TreeNode.js +1 -1
- package/dist/features/LearningManagement/queries/useLMSConfigQuery.js +1 -1
- package/dist/features/LearningManagement/store/useLearningTemplateStore.js +1 -1
- package/dist/features/LearningManagement/styles/RuleHeader.module.css.js +1 -1
- package/dist/plugins/ValueTypes/Default/DefaultTeachMeRenderer.js +1 -1
- package/dist/schema-driven/BPARenderer.js +1 -1
- package/dist/schema-driven/components/PromptTextEditorField.js +1 -1
- package/dist/schema-driven/components/TableComponent.js +2 -0
- package/dist/schema-driven/components/TableComponent.js.map +1 -0
- package/dist/schema-driven/helper.js +2 -0
- package/dist/schema-driven/helper.js.map +1 -0
- package/dist/schema-driven/hooks/useSectionEditSession.js +1 -1
- package/dist/schema-driven/store/useDynamicFormStore.js +1 -1
- package/dist/schema-driven/types.js +2 -0
- package/dist/schema-driven/types.js.map +1 -0
- package/dist/schema-driven/utils/PayloadUtils.js +1 -1
- package/dist/types/src/ComponentRegistry.d.ts.map +1 -1
- package/dist/types/src/ILMarketplaceMockTest.d.ts.map +1 -1
- package/dist/types/src/ILMarketplaceWrapper.d.ts +21 -1
- package/dist/types/src/ILMarketplaceWrapper.d.ts.map +1 -1
- package/dist/types/src/adapters/creativeWorkspaceAdapter.d.ts +4 -1
- package/dist/types/src/adapters/creativeWorkspaceAdapter.d.ts.map +1 -1
- package/dist/types/src/features/IL-OTJ/ValueTypeWrappers/TeachMePlugin.d.ts +5 -0
- package/dist/types/src/features/IL-OTJ/ValueTypeWrappers/TeachMePlugin.d.ts.map +1 -1
- package/dist/types/src/features/IL-OTJ/ValueTypeWrappers/TeachMeWrapper.d.ts +1 -0
- package/dist/types/src/features/IL-OTJ/ValueTypeWrappers/TeachMeWrapper.d.ts.map +1 -1
- package/dist/types/src/features/IL-OTJ/_components/atoms/Textarea/Textarea.d.ts +1 -0
- package/dist/types/src/features/IL-OTJ/_components/atoms/Textarea/Textarea.d.ts.map +1 -1
- package/dist/types/src/features/IL-marketplace/PromoteFlow/EnvironmentConfigurationModal.d.ts +18 -0
- package/dist/types/src/features/IL-marketplace/PromoteFlow/EnvironmentConfigurationModal.d.ts.map +1 -0
- package/dist/types/src/features/IL-marketplace/PromoteFlow/PromoteFlow.d.ts +11 -0
- package/dist/types/src/features/IL-marketplace/PromoteFlow/PromoteFlow.d.ts.map +1 -0
- package/dist/types/src/features/IL-marketplace/PromoteFlow/promote-flow.api.d.ts +10 -0
- package/dist/types/src/features/IL-marketplace/PromoteFlow/promote-flow.api.d.ts.map +1 -0
- package/dist/types/src/features/IL-marketplace/PromoteFlow/promote-flow.interfaces.d.ts +80 -0
- package/dist/types/src/features/IL-marketplace/PromoteFlow/promote-flow.interfaces.d.ts.map +1 -0
- package/dist/types/src/features/IL-marketplace/PromoteFlow/promote-flow.store.d.ts +18 -0
- package/dist/types/src/features/IL-marketplace/PromoteFlow/promote-flow.store.d.ts.map +1 -0
- package/dist/types/src/features/IL-marketplace/PromoteFlow/promote-flow.utils.d.ts +15 -0
- package/dist/types/src/features/IL-marketplace/PromoteFlow/promote-flow.utils.d.ts.map +1 -0
- package/dist/types/src/features/IL-marketplace/components/GuidelineLandingPage.d.ts.map +1 -1
- package/dist/types/src/features/IL-marketplace/components/GuidelineLibraryCard.d.ts +17 -1
- package/dist/types/src/features/IL-marketplace/components/GuidelineLibraryCard.d.ts.map +1 -1
- package/dist/types/src/features/IL-marketplace/components/GuidelineLibraryContent.d.ts +3 -2
- package/dist/types/src/features/IL-marketplace/components/GuidelineLibraryContent.d.ts.map +1 -1
- package/dist/types/src/features/IL-marketplace/components/ILMarketPlacePublish/PublishToMarketplace.types.d.ts +2 -0
- package/dist/types/src/features/IL-marketplace/components/ILMarketPlacePublish/PublishToMarketplace.types.d.ts.map +1 -1
- package/dist/types/src/features/IL-marketplace/components/ILMarketPlacePublish/PublishToMarketplaceCompnent.d.ts.map +1 -1
- package/dist/types/src/features/IL-marketplace/components/LearningManagementWrapper.d.ts +5 -1
- package/dist/types/src/features/IL-marketplace/components/LearningManagementWrapper.d.ts.map +1 -1
- package/dist/types/src/features/IL-marketplace/index.d.ts +2 -0
- package/dist/types/src/features/IL-marketplace/index.d.ts.map +1 -1
- package/dist/types/src/features/IL-marketplace/services/IL-marketplace.api.d.ts +6 -1
- package/dist/types/src/features/IL-marketplace/services/IL-marketplace.api.d.ts.map +1 -1
- package/dist/types/src/features/IL-marketplace/services/guideline.runtime.config.d.ts +3 -0
- package/dist/types/src/features/IL-marketplace/services/guideline.runtime.config.d.ts.map +1 -1
- package/dist/types/src/features/IL-marketplace/services/instant-learning.api.d.ts +2 -1
- package/dist/types/src/features/IL-marketplace/services/instant-learning.api.d.ts.map +1 -1
- package/dist/types/src/features/IL-marketplace/types/file-item.d.ts +2 -0
- package/dist/types/src/features/IL-marketplace/types/file-item.d.ts.map +1 -1
- package/dist/types/src/features/IL-marketplace/types.d.ts +27 -1
- package/dist/types/src/features/IL-marketplace/types.d.ts.map +1 -1
- package/dist/types/src/features/LearningManagement/AuditLog/AuditLog.d.ts +1 -0
- package/dist/types/src/features/LearningManagement/AuditLog/AuditLog.d.ts.map +1 -1
- package/dist/types/src/features/LearningManagement/LearningManagement.d.ts +5 -1
- package/dist/types/src/features/LearningManagement/LearningManagement.d.ts.map +1 -1
- package/dist/types/src/features/LearningManagement/LearningTemplateLayout.d.ts +3 -0
- package/dist/types/src/features/LearningManagement/LearningTemplateLayout.d.ts.map +1 -1
- package/dist/types/src/features/LearningManagement/RuleContent/ContentLogic.d.ts +2 -0
- package/dist/types/src/features/LearningManagement/RuleContent/ContentLogic.d.ts.map +1 -1
- package/dist/types/src/features/LearningManagement/RuleContent/DraftsAccordion.d.ts.map +1 -1
- package/dist/types/src/features/LearningManagement/RuleContent/RuleAccordionHeader.d.ts.map +1 -1
- package/dist/types/src/features/LearningManagement/RuleContent/RuleContent.d.ts +3 -0
- package/dist/types/src/features/LearningManagement/RuleContent/RuleContent.d.ts.map +1 -1
- package/dist/types/src/features/LearningManagement/RuleContent/RuleHeader.d.ts +2 -0
- package/dist/types/src/features/LearningManagement/RuleContent/RuleHeader.d.ts.map +1 -1
- package/dist/types/src/features/LearningManagement/RuleContent/TierCard.d.ts.map +1 -1
- package/dist/types/src/features/LearningManagement/RuleContent/VariantCard.d.ts.map +1 -1
- package/dist/types/src/features/LearningManagement/apis/scopeApis.d.ts +2 -2
- package/dist/types/src/features/LearningManagement/apis/scopeApis.d.ts.map +1 -1
- package/dist/types/src/features/LearningManagement/components/InstantLearningModalDynamic.d.ts +2 -0
- package/dist/types/src/features/LearningManagement/components/InstantLearningModalDynamic.d.ts.map +1 -1
- package/dist/types/src/features/LearningManagement/components/PromptTextEditor.d.ts +2 -0
- package/dist/types/src/features/LearningManagement/components/PromptTextEditor.d.ts.map +1 -1
- package/dist/types/src/features/LearningManagement/components/ScopeTree/TreeNode.d.ts.map +1 -1
- package/dist/types/src/features/LearningManagement/queries/useLMSConfigQuery.d.ts.map +1 -1
- package/dist/types/src/features/LearningManagement/store/useLMSConfigStore.d.ts +2 -0
- package/dist/types/src/features/LearningManagement/store/useLMSConfigStore.d.ts.map +1 -1
- package/dist/types/src/features/LearningManagement/store/useLearningTemplateStore.d.ts +2 -0
- package/dist/types/src/features/LearningManagement/store/useLearningTemplateStore.d.ts.map +1 -1
- package/dist/types/src/index.d.ts +1 -1
- package/dist/types/src/index.d.ts.map +1 -1
- package/dist/types/src/plugins/ValueTypes/Default/DefaultTeachMeRenderer.d.ts.map +1 -1
- package/dist/types/src/schema-driven/BPARenderer.d.ts.map +1 -1
- package/dist/types/src/schema-driven/components/PromptTextEditorField.d.ts.map +1 -1
- package/dist/types/src/schema-driven/components/TableComponent.d.ts +5 -0
- package/dist/types/src/schema-driven/components/TableComponent.d.ts.map +1 -0
- package/dist/types/src/schema-driven/helper.d.ts +23 -0
- package/dist/types/src/schema-driven/helper.d.ts.map +1 -0
- package/dist/types/src/schema-driven/hooks/useSectionEditSession.d.ts.map +1 -1
- package/dist/types/src/schema-driven/store/useDynamicFormStore.d.ts +3 -2
- package/dist/types/src/schema-driven/store/useDynamicFormStore.d.ts.map +1 -1
- package/dist/types/src/schema-driven/types.d.ts +142 -0
- package/dist/types/src/schema-driven/types.d.ts.map +1 -1
- package/dist/types/src/schema-driven/utils/PayloadUtils.d.ts +4 -5
- package/dist/types/src/schema-driven/utils/PayloadUtils.d.ts.map +1 -1
- package/package.json +4 -4
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { ColumnDef } from "./types";
|
|
2
|
+
export declare function defaultForColumn<T>(col: ColumnDef<T>): any;
|
|
3
|
+
export declare function buildEmptyRow<T extends Record<string, any>>(columns: ColumnDef<T>[]): T;
|
|
4
|
+
/**
|
|
5
|
+
* When `orderKey` is provided, stamps every row with its 1-based position
|
|
6
|
+
* in that field. Returns the array unchanged (same reference) when no
|
|
7
|
+
* `orderKey` is configured, so this is a no-op for existing consumers.
|
|
8
|
+
*/
|
|
9
|
+
export declare function withOrder<T extends Record<string, any>>(rows: T[], orderKey: Extract<keyof T, string> | undefined): T[];
|
|
10
|
+
/**
|
|
11
|
+
* The default stylesheet, as a template. `{scope}` is replaced with a
|
|
12
|
+
* unique per-instance class so multiple tables never leak styles into
|
|
13
|
+
* each other. Import this if you want to start from the default and
|
|
14
|
+
* only override a few rules, e.g.:
|
|
15
|
+
*
|
|
16
|
+
* const css = DEFAULT_TABLE_CSS_TEMPLATE + `.et-add-btn { color: red; }`
|
|
17
|
+
*
|
|
18
|
+
* (your extra rules should target `.et-*` too — they'll be scoped the
|
|
19
|
+
* same way as the defaults when you pass them back in via the `css` prop
|
|
20
|
+
* — or scope them yourself with `.your-wrapper-class .et-*`).
|
|
21
|
+
*/
|
|
22
|
+
export declare const DEFAULT_TABLE_CSS_TEMPLATE = "\n.{scope}.et-wrapper { display: flex; flex-direction: column; gap: 12px; font-family: inherit; }\n.{scope} .et-table-container { overflow-x: auto; -webkit-overflow-scrolling: touch; }\n.{scope} .et-table { width: 100%; border-collapse: separate; border-spacing: 0; border: 1px solid #E7E4F2; border-radius: 12px; overflow: hidden; font-size: 14px; min-width: 100%; }\n.{scope} .et-table thead th { background: #F3F1FB; color: #2C2A3D; font-weight: 600; text-align: left; padding: 14px 16px; border-bottom: 1px solid #E7E4F2; white-space: nowrap; }\n.{scope} .et-table tbody td { padding: 10px 16px; border-bottom: 1px solid #EFEDF7; vertical-align: middle; background: #fff; }\n.{scope} .et-table tbody tr:last-child td { border-bottom: none; }\n.{scope} .et-table tbody tr:hover td { background: #FAFAFE; }\n.{scope} .et-row-locked td { background: #FFFBF0; }\n.{scope} .et-index-col { width: 48px; color: #8A8698; font-variant-numeric: tabular-nums; }\n.{scope} .et-drag-col { width: 32px; text-align: center; }\n.{scope} .et-drag-handle { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 28px; cursor: grab; color: #8A8698; user-select: none; border-radius: 6px; touch-action: none; }\n.{scope} .et-drag-handle:hover { color: var(--et-accent, #6C5CE7); background: #F3F1FB; }\n.{scope} .et-drag-handle:active { cursor: grabbing; }\n.{scope} tr[draggable=\"true\"] { will-change: transform, opacity; }\n.{scope} .et-lock-icon { opacity: 0.85; }\n.{scope} .et-action-col { width: 40px; text-align: center; }\n.{scope} .et-readonly-cell { color: #5B5770; display: inline-flex; align-items: center; gap: 6px; }\n.{scope} .et-input, .{scope} .et-select { width: 100%; min-width: 64px; padding: 7px 10px; border: 1px solid #DFDCEC; border-radius: 8px; background: #FBFAFE; font-size: 14px; color: #262433; transition: border-color 0.15s ease, box-shadow 0.15s ease; }\n.{scope} .et-input:focus, .{scope} .et-select:focus { outline: none; border-color: var(--et-accent, #6C5CE7); box-shadow: 0 0 0 3px var(--et-accent-soft, rgba(108, 92, 231, 0.15)); background: #fff; }\n.{scope} .et-input:disabled,.{scope} .et-select:disabled {\n background: #FBFAFE;\n color: #262433;\n border-color: #DFDCEC;\n cursor: not-allowed;\n opacity: 1;\n}\n.{scope} .et-checkbox { width: 18px; height: 18px; accent-color: var(--et-accent, #6C5CE7); cursor: pointer; }\n.{scope} .et-checkbox:disabled { cursor: not-allowed; opacity: 1; }\n.{scope} .et-delete-btn { border: none; background: transparent; cursor: pointer; font-size: 15px; opacity: 0.6; padding: 4px; border-radius: 6px; line-height: 1; }\n.{scope} .et-delete-btn:hover { opacity: 1; background: #FBEAEA; }\n.{scope} .et-add-btn { align-self: flex-start; padding: 10px 18px; border-radius: 10px; border: 1px solid #DFDCEC; background: #fff; color: var(--et-accent-strong, #4B3FD6); font-weight: 600; font-size: 14px; cursor: pointer; transition: background 0.15s ease, border-color 0.15s ease; }\n.{scope} .et-add-btn:hover { background: #F3F1FB; border-color: #C9C3EE; }\n.{scope} .et-empty-state { text-align: center; padding: 28px 16px; color: #9C98AC; font-size: 14px; }\n\n/* lock column */\n.{scope} .et-lock-col { width: 36px; text-align: center; }\n.{scope} .et-lock-btn { border: none; background: transparent; cursor: pointer; font-size: 15px; padding: 2px; opacity: 0.75; line-height: 1; }\n.{scope} .et-lock-btn:hover:not(:disabled) { opacity: 1; }\n.{scope} .et-lock-btn:disabled { cursor: default; opacity: 0.85; }\n\n/* header info tooltip icon */\n.{scope} .et-info-icon { color: #B8B4C9; font-size: 12px; margin-left: 4px; cursor: help; font-weight: 400; }\n\n/* badge / status pill (e.g. Ingestion Choice) */\n.{scope} .et-badge { display: inline-flex; align-items: center; padding: 4px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; white-space: nowrap; }\n.{scope} .et-badge-success { color: #1E7E4D; background: #DFF6E8; }\n.{scope} .et-badge-warning { color: #92600A; background: #FDF1CC; }\n.{scope} .et-badge-danger { color: #A13333; background: #FBE4E4; }\n.{scope} .et-badge-info { color: #2E4FA3; background: #E3EBFB; }\n.{scope} .et-badge-neutral { color: #4B4863; background: #EFEDF7; }\n.{scope} .et-badge-select { min-width: 128px; padding: 5px 10px; border-radius: 999px; border: 1px solid transparent; font-size: 13px; font-weight: 600; cursor: pointer; }\n.{scope} .et-badge-select:disabled {\n cursor: default;\n opacity: 1;\n cursor: not-allowed;\n}\n.{scope} .et-badge-select:focus { outline: none; box-shadow: 0 0 0 3px var(--et-accent-soft, rgba(108, 92, 231, 0.15)); }\n.{scope} .et-badge-select-success { color: #1E7E4D; background-color: #DFF6E8; }\n.{scope} .et-badge-select-warning { color: #92600A; background-color: #FDF1CC; }\n.{scope} .et-badge-select-danger { color: #A13333; background-color: #FBE4E4; }\n.{scope} .et-badge-select-info { color: #2E4FA3; background-color: #E3EBFB; }\n.{scope} .et-badge-select-neutral { color: #4B4863; background-color: #EFEDF7; }\n\n/* tags (e.g. General Modality) */\n.{scope} .et-tags { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; min-height: 28px; }\n.{scope} .et-tags-clickable { cursor: pointer; border-radius: 8px; padding: 2px; margin: -2px; }\n.{scope} .et-tags-clickable:hover { background: #FAFAFE; }\n.{scope} .et-tag { display: inline-flex; align-items: center; gap: 4px; padding: 4px 8px 4px 10px; border-radius: 8px; background: #F3F1FB; color: #2C2A3D; font-size: 13px; border: 1px solid #E7E4F2; }\n.{scope} .et-tag-static { padding: 4px 10px; }\n.{scope} .et-tag-remove { border: none; background: transparent; cursor: pointer; color: #8A8698; font-size: 13px; line-height: 1; padding: 0; }\n.{scope} .et-tag-remove:hover { color: #A13333; }\n.{scope} .et-tags-placeholder { color: #A5A2B5; font-size: 13px; padding: 4px 2px; }\n.{scope} .et-tags-empty { color: #C9C6D6; font-size: 13px; }\n.{scope} .et-tags-editor { display: flex; flex-direction: column; gap: 6px; padding: 10px; border: 1px solid #DFDCEC; border-radius: 10px; background: #FBFAFE; box-shadow: 0 2px 10px rgba(44, 42, 61, 0.08); min-width: 160px; }\n.{scope} .et-tags-option { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #262433; cursor: pointer; }\n.{scope} .et-tags-option input { accent-color: var(--et-accent, #6C5CE7); cursor: pointer; }\n.{scope} .et-tags-done { align-self: flex-end; border: none; background: var(--et-accent, #6C5CE7); color: #fff; font-size: 12px; font-weight: 600; padding: 5px 12px; border-radius: 7px; cursor: pointer; margin-top: 2px; }\n.{scope} .et-tags-done:hover { opacity: 0.9; }\n\n/* file type chip (e.g. File Extension) */\n.{scope} .et-file-chip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid #E7E4F2; border-radius: 8px; padding: 4px 10px; font-size: 13px; color: #4B4863; background: #fff; }\n.{scope} .et-file-icon { font-size: 13px; line-height: 1; }\n.{scope} .et-file-select { min-width: 88px; }\n";
|
|
23
|
+
//# sourceMappingURL=helper.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"helper.d.ts","sourceRoot":"","sources":["../../../../src/schema-driven/helper.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAEpC,wBAAgB,gBAAgB,CAAC,CAAC,EAAE,GAAG,EAAE,SAAS,CAAC,CAAC,CAAC,GAAG,GAAG,CAgB1D;AAED,wBAAgB,aAAa,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAAE,OAAO,EAAE,SAAS,CAAC,CAAC,CAAC,EAAE,GAAG,CAAC,CAMvF;AAED;;;;GAIG;AACH,wBAAgB,SAAS,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EACrD,IAAI,EAAE,CAAC,EAAE,EACT,QAAQ,EAAE,OAAO,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC,GAAG,SAAS,GAC7C,CAAC,EAAE,CAGL;AAOD;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,0BAA0B,m1NAoFtC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useSectionEditSession.d.ts","sourceRoot":"","sources":["../../../../../src/schema-driven/hooks/useSectionEditSession.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useSectionEditSession.d.ts","sourceRoot":"","sources":["../../../../../src/schema-driven/hooks/useSectionEditSession.ts"],"names":[],"mappings":"AAsCA;qFACqF;AACrF,eAAO,MAAM,wBAAwB,gBAAgB,OAAO,MAAM,EAAE,GAAG,CAAC,KAAQ,OAG7E,CAAC;AAEJ,MAAM,WAAW,WAAW;IAAG,OAAO,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,GAAG,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAA;CAAE;AAE7E;;;;;GAKG;AACH,eAAO,MAAM,oBAAoB,gBAAgB,OAAO,MAAM,EAAE,GAAG,CAAC,YAAiB,GAAG,KAAG,WAAW,EAcrG,CAAC;AAEF;;;;;;GAMG;AACH,wBAAgB,qBAAqB,CAAC,SAAS,EAAE,MAAM,EAAE,UAAU,EAAE,GAAG,EAAE,OAAO,EAAE,GAAG;;;;;;;;;;EA6IrF"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
type VariantData = Record<string, Record<number, Record<string, any>>>;
|
|
1
2
|
interface DynamicFormState {
|
|
2
3
|
globalData: Record<string, any>;
|
|
3
|
-
variantData:
|
|
4
|
+
variantData: VariantData;
|
|
4
5
|
globalReasoning: Record<string, string>;
|
|
5
6
|
variantReasoning: Record<string, Record<number, Record<string, string>>>;
|
|
6
7
|
globalMirage: Record<string, any>;
|
|
@@ -20,7 +21,7 @@ interface DynamicFormState {
|
|
|
20
21
|
mergeVariantSlot: (tierKey: string, variantIndex: number, data: Record<string, any>, reasoning?: Record<string, string>) => void;
|
|
21
22
|
resetVariantSlots: (tierKey: string) => void;
|
|
22
23
|
clearAllMirages: () => void;
|
|
23
|
-
initializeStore: (globalData: Record<string, any>, variantData?:
|
|
24
|
+
initializeStore: (globalData: Record<string, any>, variantData?: VariantData) => void;
|
|
24
25
|
resetStore: () => void;
|
|
25
26
|
}
|
|
26
27
|
export declare const useDynamicFormStore: import("zustand").UseBoundStore<import("zustand").StoreApi<DynamicFormState>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useDynamicFormStore.d.ts","sourceRoot":"","sources":["../../../../../src/schema-driven/store/useDynamicFormStore.ts"],"names":[],"mappings":"AAGA,
|
|
1
|
+
{"version":3,"file":"useDynamicFormStore.d.ts","sourceRoot":"","sources":["../../../../../src/schema-driven/store/useDynamicFormStore.ts"],"names":[],"mappings":"AAGA,KAAK,W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uration consumed by the schema-driven TableComponent. */
|
|
4
|
+
export interface TableColumnSchema {
|
|
5
|
+
key: string;
|
|
6
|
+
header: string;
|
|
7
|
+
type: TableColumnType;
|
|
8
|
+
options?: (string | {
|
|
9
|
+
label: string;
|
|
10
|
+
value: string;
|
|
11
|
+
})[];
|
|
12
|
+
editable?: boolean;
|
|
13
|
+
width?: string;
|
|
14
|
+
placeholder?: string;
|
|
15
|
+
defaultValue?: unknown;
|
|
16
|
+
info?: string;
|
|
17
|
+
badgeMap?: Record<string, {
|
|
18
|
+
label?: string;
|
|
19
|
+
tone?: string;
|
|
20
|
+
color?: string;
|
|
21
|
+
background?: string;
|
|
22
|
+
}>;
|
|
23
|
+
tagOptions?: string[];
|
|
24
|
+
}
|
|
2
25
|
/**
|
|
3
26
|
* Shape of a single node in the `learningMetadataComponents` JSON schema.
|
|
4
27
|
* Mirrors `LMSMetadataField` (useLMSConfigStore) plus the `data_key` field,
|
|
@@ -8,6 +31,8 @@ export interface SchemaFieldNode {
|
|
|
8
31
|
type?: 'string' | 'array' | 'object' | 'boolean';
|
|
9
32
|
title?: string;
|
|
10
33
|
placeholder?: string;
|
|
34
|
+
/** Optional character limit. Omit for unlimited input. */
|
|
35
|
+
maxLength?: number;
|
|
11
36
|
tooltip?: string;
|
|
12
37
|
description?: string;
|
|
13
38
|
/** Optional helper copy rendered under the field's title in the UI — the schema
|
|
@@ -53,6 +78,16 @@ export interface SchemaFieldNode {
|
|
|
53
78
|
parent_edit?: boolean;
|
|
54
79
|
group_edit?: boolean;
|
|
55
80
|
group_title?: string;
|
|
81
|
+
/** TableComponent column definitions. Row data is stored under `data_key`. */
|
|
82
|
+
columns?: TableColumnSchema[];
|
|
83
|
+
/** Optional schema-level initial rows; host/API values take precedence. */
|
|
84
|
+
rows?: Record<string, unknown>[];
|
|
85
|
+
/** Show row drag handles and allow rows to be reordered. */
|
|
86
|
+
reorderable?: boolean;
|
|
87
|
+
/** Show the interactive per-row lock control. */
|
|
88
|
+
lockable?: boolean;
|
|
89
|
+
/** Row property used to persist the interactive lock state. */
|
|
90
|
+
lockedKey?: string;
|
|
56
91
|
properties?: Record<string, SchemaFieldNode>;
|
|
57
92
|
}
|
|
58
93
|
/** Root shape of `learningMetadataComponents` itself. */
|
|
@@ -78,4 +113,111 @@ export interface SchemaComponentProps {
|
|
|
78
113
|
title?: string;
|
|
79
114
|
[key: string]: any;
|
|
80
115
|
}
|
|
116
|
+
export type ColumnType = 'text' | 'number' | 'checkbox' | 'dropdown' | 'readonly' | 'badge' | 'badgeSelect' | 'tags' | 'fileType';
|
|
117
|
+
export type BadgeTone = 'success' | 'warning' | 'danger' | 'info' | 'neutral';
|
|
118
|
+
export interface BadgeConfig {
|
|
119
|
+
/** text shown in the pill; falls back to the raw value */
|
|
120
|
+
label?: string;
|
|
121
|
+
/** built-in color scheme */
|
|
122
|
+
tone?: BadgeTone;
|
|
123
|
+
/** explicit overrides, take precedence over tone */
|
|
124
|
+
color?: string;
|
|
125
|
+
background?: string;
|
|
126
|
+
}
|
|
127
|
+
export interface ColumnDef<T> {
|
|
128
|
+
/** key into the row object this column reads/writes */
|
|
129
|
+
key: Extract<keyof T, string>;
|
|
130
|
+
/** column header label */
|
|
131
|
+
header: string;
|
|
132
|
+
/** which kind of control renders each cell in this column */
|
|
133
|
+
type: ColumnType;
|
|
134
|
+
/** options for type === 'dropdown' */
|
|
135
|
+
options?: string[];
|
|
136
|
+
/** can the user edit this cell? defaults to true (forced false for 'readonly') */
|
|
137
|
+
editable?: boolean;
|
|
138
|
+
/** css width, e.g. '140px' or '1fr' */
|
|
139
|
+
width?: string;
|
|
140
|
+
/** placeholder for text/number inputs */
|
|
141
|
+
placeholder?: string;
|
|
142
|
+
/** value a new row gets for this column when "Add" is clicked */
|
|
143
|
+
defaultValue?: T[Extract<keyof T, string>];
|
|
144
|
+
/** custom renderer for a readonly cell's value, e.g. icon + label */
|
|
145
|
+
renderReadonly?: (value: any, row: T) => React.ReactNode;
|
|
146
|
+
/** for type === 'badge' or 'badgeSelect': maps a raw value to a label + color scheme */
|
|
147
|
+
badgeMap?: Record<string, BadgeConfig>;
|
|
148
|
+
/** for type === 'tags': the value is a string[]; these are the choices offered in the "+ Add" control */
|
|
149
|
+
tagOptions?: string[];
|
|
150
|
+
/** small (i) tooltip icon shown next to the header label */
|
|
151
|
+
info?: string;
|
|
152
|
+
}
|
|
153
|
+
export interface TableComponentProps<T extends Record<string, any>> {
|
|
154
|
+
/** column configuration — defines both header and how each cell edits */
|
|
155
|
+
columns?: ColumnDef<T>[];
|
|
156
|
+
/** current row data (fully controlled). Used by standalone consumers. */
|
|
157
|
+
rows?: T[];
|
|
158
|
+
/** called with the next rows array whenever anything changes. */
|
|
159
|
+
onRowsChange?: (rows: T[]) => void;
|
|
160
|
+
/** Schema-driven renderer contract: table configuration lives on `schema`. */
|
|
161
|
+
schema?: {
|
|
162
|
+
columns?: ColumnDef<T>[];
|
|
163
|
+
rows?: T[];
|
|
164
|
+
reorderable?: boolean;
|
|
165
|
+
lockable?: boolean;
|
|
166
|
+
lockedKey?: Extract<keyof T, string>;
|
|
167
|
+
orderKey?: Extract<keyof T, string>;
|
|
168
|
+
};
|
|
169
|
+
/** Schema-driven renderer contract: the current array value. */
|
|
170
|
+
value?: T[];
|
|
171
|
+
/** Schema-driven renderer contract: receives the next array value. */
|
|
172
|
+
onChange?: (rows: T[]) => void;
|
|
173
|
+
/** Disables all table mutations when supplied by the schema-driven renderer. */
|
|
174
|
+
readOnly?: boolean;
|
|
175
|
+
/** unique id field on each row; falls back to array index if omitted */
|
|
176
|
+
rowKey?: Extract<keyof T, string>;
|
|
177
|
+
/** show the "+ Add" button and allow appending blank rows. default: true */
|
|
178
|
+
addable?: boolean;
|
|
179
|
+
/** show a delete icon per row. default: true */
|
|
180
|
+
deletable?: boolean;
|
|
181
|
+
/** allow drag-handle reordering of rows. default: false */
|
|
182
|
+
reorderable?: boolean;
|
|
183
|
+
addButtonLabel?: string;
|
|
184
|
+
emptyStateMessage?: string;
|
|
185
|
+
/** rows matching this predicate are PERMANENTLY locked — shown with a static lock icon, never toggleable */
|
|
186
|
+
isRowLocked?: (row: T) => boolean;
|
|
187
|
+
/**
|
|
188
|
+
* Turns on an interactive lock column. Rows not covered by `isRowLocked`
|
|
189
|
+
* can be locked/unlocked by clicking the icon; state is stored on
|
|
190
|
+
* `row[lockedKey]` unless `onToggleLock` is supplied.
|
|
191
|
+
* default: false
|
|
192
|
+
*/
|
|
193
|
+
lockable?: boolean;
|
|
194
|
+
/** row field used to persist the toggleable lock state. default: 'locked' */
|
|
195
|
+
lockedKey?: Extract<keyof T, string>;
|
|
196
|
+
/** override the default toggle-in-place behavior for the lock icon */
|
|
197
|
+
onToggleLock?: (row: T, rowIndex: number) => void;
|
|
198
|
+
/**
|
|
199
|
+
* When set, every row is stamped with its 1-based position in this field
|
|
200
|
+
* (`row[orderKey] = index + 1`) any time the array's order or length
|
|
201
|
+
* changes — after add, delete, or drag reorder. This mirrors the visible
|
|
202
|
+
* "Sr No" column but persists it into the row data so it's included in
|
|
203
|
+
* whatever payload is built from `rows`/`value`. Omit to leave rows
|
|
204
|
+
* untouched (no field is added or written).
|
|
205
|
+
*/
|
|
206
|
+
orderKey?: Extract<keyof T, string>;
|
|
207
|
+
className?: string;
|
|
208
|
+
/** quick accent-color override without writing a full stylesheet */
|
|
209
|
+
accentColor?: string;
|
|
210
|
+
/**
|
|
211
|
+
* Raw CSS for the table. Target the et-* class names below (see
|
|
212
|
+
* buildDefaultCss / DEFAULT_TABLE_CSS_TEMPLATE for the full list) to
|
|
213
|
+
* restyle specific parts, or pass a whole stylesheet to replace the
|
|
214
|
+
* look entirely. Omit it to get the built-in default look.
|
|
215
|
+
* Each table instance is scoped automatically, so two tables on the
|
|
216
|
+
* same page can be given different css props without colliding.
|
|
217
|
+
*/
|
|
218
|
+
css?: string;
|
|
219
|
+
}
|
|
220
|
+
export declare const FILE_ICON_COLOR: Record<string, string>;
|
|
221
|
+
export declare const BADGE_TONE_DEFAULT: BadgeTone;
|
|
222
|
+
export declare const DEFAULT_FILE_TYPES: string[];
|
|
81
223
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/schema-driven/types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B;;;;GAIG;AACH,MAAM,WAAW,eAAe;IAC9B,IAAI,CAAC,EAAE,QAAQ,GAAG,OAAO,GAAG,QAAQ,GAAG,SAAS,CAAC;IACjD,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;4DAGwD;IACxD,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAMlB,OAAO,CAAC,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAC;QAAC,WAAW,CAAC,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;IACnE,IAAI,CAAC,EAAE,KAAK,CAAC,MAAM,GAAG;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAC;QAAC,WAAW,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IAG9E,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAG/B,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,WAAW,CAAC,EAAE,OAAO,CAAC;IAGtB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;;iFAG6E;IA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MAAM,CAAC;CACd;AAID,eAAO,MAAM,eAAe,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAQlD,CAAC;AAEF,eAAO,MAAM,kBAAkB,EAAE,SAAqB,CAAC;AACvD,eAAO,MAAM,kBAAkB,UAAuD,CAAC"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
export declare const getVariantPrefilledData: (jsonSchema: any, prefilledData: Record<string, any>) => Record<string, Record<number, Record<string, any>>>;
|
|
1
2
|
/**
|
|
2
3
|
* A core leaf's value may arrive under a looser name than the property key:
|
|
3
4
|
* - from the AI's `updated_fields` (e.g. `title` for `rule_title`), or
|
|
@@ -48,12 +49,10 @@ export declare const generatePayloadFromSchema: (jsonSchema: any, tierKey: strin
|
|
|
48
49
|
*/
|
|
49
50
|
export declare const resolveSchemaRuleSetId: (jsonSchema: any, dynamicOptions?: Record<string, any>) => string | null;
|
|
50
51
|
/**
|
|
51
|
-
*
|
|
52
|
-
*
|
|
53
|
-
* once per tier/variantIndex pair in `tierVariantMap` (mirrors the tier/variant
|
|
54
|
-
* enumeration `configData` already tracks elsewhere in the modal).
|
|
52
|
+
* Checks required JSON fields in the dynamic form store.
|
|
53
|
+
* Optional tier/variant scopes limit validation to the data being saved.
|
|
55
54
|
*/
|
|
56
|
-
export declare const areRequiredFieldsFilled: (jsonSchema: any, tierVariantMap: Map<string, Map<number, any
|
|
55
|
+
export declare const areRequiredFieldsFilled: (jsonSchema: any, tierVariantMap: Map<string, Map<number, any>>, activeTierKeys?: Iterable<string>, activeVariantIndexes?: Iterable<number>) => boolean;
|
|
57
56
|
/**
|
|
58
57
|
* Write an AI/C.A.R.E. response back into the dynamic store.
|
|
59
58
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PayloadUtils.d.ts","sourceRoot":"","sources":["../../../../../src/schema-driven/utils/PayloadUtils.ts"],"names":[],"mappings":"AAgCA;;;;;;;;;GASG;AACH,eAAO,MAAM,gBAAgB,EAAE,MAAM,CA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AAG,YACL,OAAO,MAAM,EAAE,GAAG,CAAC,GAAG,IAAI,GAAG,SAAS,YACtC,MAAM,iBACD,MAAM,YAOX;IAAE,UAAU,CAAC,EAAE,OAAO,CAAC;IAAC,WAAW,CAAC,EAAE,OAAO,CAAA;CAAE,SA4F1D,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@e-llm-studio/instant-learning",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.2",
|
|
4
4
|
"author": "Devesh Patel",
|
|
5
5
|
"description": "Reusable React components for Instant Learning.",
|
|
6
6
|
"license": "MIT",
|
|
@@ -177,10 +177,10 @@
|
|
|
177
177
|
"unist-util-visit": "^5.1.0",
|
|
178
178
|
"wavesurfer.js": "^7.12.5",
|
|
179
179
|
"zustand": "^5.0.13",
|
|
180
|
-
"@e-llm-studio/
|
|
180
|
+
"@e-llm-studio/prompt-editor": "0.1.0",
|
|
181
181
|
"@e-llm-studio/watch-me-work": "0.0.28",
|
|
182
|
-
"@e-llm-studio/
|
|
183
|
-
"@e-llm-studio/
|
|
182
|
+
"@e-llm-studio/audit-log": "2.1.0",
|
|
183
|
+
"@e-llm-studio/citation": "0.0.251"
|
|
184
184
|
},
|
|
185
185
|
"overrides": {
|
|
186
186
|
"react-is": "^18.3.1",
|