@e-llm-studio/instant-learning 0.1.1-alpha.13 → 0.1.1-alpha.14
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/README.md +1 -1
- package/dist/6fbbe065ef78c384.gif +0 -0
- package/dist/cjs/6fbbe065ef78c384.gif +0 -0
- package/dist/cjs/features/IL-OTJ/ValueTypeWrappers/TeachMeWrapper.js +1 -1
- package/dist/cjs/features/LearningManagement/RuleContent/RuleContent.js +1 -1
- package/dist/cjs/features/LearningManagement/apis/apiConfig.js +1 -1
- package/dist/cjs/features/LearningManagement/apis/scopeApis.js +1 -1
- package/dist/cjs/features/LearningManagement/components/InstantLearningModal.js +2 -0
- package/dist/cjs/features/LearningManagement/components/InstantLearningModal.js.map +1 -0
- package/dist/cjs/features/LearningManagement/config.js +2 -0
- package/dist/cjs/features/LearningManagement/config.js.map +1 -0
- package/dist/cjs/features/LearningManagement/public/ThinkingBulbIcon.gif.js +2 -0
- package/dist/cjs/features/LearningManagement/public/ThinkingBulbIcon.gif.js.map +1 -0
- package/dist/cjs/features/LearningManagement/store/useLearningTemplateStore.js +1 -1
- package/dist/cjs/features/LearningManagement/styles/InstantLearningModal.module.css.js +2 -0
- package/dist/cjs/features/LearningManagement/styles/InstantLearningModal.module.css.js.map +1 -0
- package/dist/cjs/plugins/{ValueTypes → valueTypes}/Default/DefaultTeachMeRenderer.js +1 -1
- package/dist/cjs/plugins/valueTypes/RadioTrafficLearning/RadioTrafficLearningRenderer.js +2 -0
- package/dist/features/IL-OTJ/ValueTypeWrappers/TeachMeWrapper.js +1 -1
- package/dist/features/LearningManagement/RuleContent/RuleContent.js +1 -1
- package/dist/features/LearningManagement/apis/apiConfig.js +1 -1
- package/dist/features/LearningManagement/apis/scopeApis.js +1 -1
- package/dist/features/LearningManagement/components/InstantLearningModal.js +2 -0
- package/dist/features/LearningManagement/components/InstantLearningModal.js.map +1 -0
- package/dist/features/LearningManagement/config.js +2 -0
- package/dist/features/LearningManagement/config.js.map +1 -0
- package/dist/features/LearningManagement/public/ThinkingBulbIcon.gif.js +2 -0
- package/dist/features/LearningManagement/public/ThinkingBulbIcon.gif.js.map +1 -0
- package/dist/features/LearningManagement/store/useLearningTemplateStore.js +1 -1
- package/dist/features/LearningManagement/styles/InstantLearningModal.module.css.js +2 -0
- package/dist/features/LearningManagement/styles/InstantLearningModal.module.css.js.map +1 -0
- package/dist/plugins/{ValueTypes → valueTypes}/Default/DefaultTeachMeRenderer.js +1 -1
- package/dist/plugins/valueTypes/RadioTrafficLearning/RadioTrafficLearningRenderer.js +2 -0
- package/dist/types/src/features/IL-OTJ/ValueTypeWrappers/TeachMeWrapper.d.ts +20 -3
- package/dist/types/src/features/IL-OTJ/ValueTypeWrappers/TeachMeWrapper.d.ts.map +1 -1
- package/dist/types/src/features/LearningManagement/RuleContent/RuleContent.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/plugins/valueTypes/RadioTrafficLearning/RadioTrafficLearningRenderer.d.ts +4 -0
- package/dist/types/src/plugins/valueTypes/RadioTrafficLearning/RadioTrafficLearningRenderer.d.ts.map +1 -0
- package/package.json +1 -1
- package/dist/cjs/plugins/ValueTypes/RadioTrafficLearning/RadioTrafficLearningRenderer.js +0 -2
- package/dist/plugins/ValueTypes/RadioTrafficLearning/RadioTrafficLearningRenderer.js +0 -2
- package/dist/types/src/plugins/ValueTypes/RadioTrafficLearning/RadioTrafficLearningRenderer.d.ts +0 -28
- package/dist/types/src/plugins/ValueTypes/RadioTrafficLearning/RadioTrafficLearningRenderer.d.ts.map +0 -1
- /package/dist/cjs/plugins/{ValueTypes → valueTypes}/Default/DefaultTeachMeRenderer.js.map +0 -0
- /package/dist/cjs/plugins/{ValueTypes → valueTypes}/RadioTrafficLearning/RadioTrafficLearningRenderer.js.map +0 -0
- /package/dist/plugins/{ValueTypes → valueTypes}/Default/DefaultTeachMeRenderer.js.map +0 -0
- /package/dist/plugins/{ValueTypes → valueTypes}/RadioTrafficLearning/RadioTrafficLearningRenderer.js.map +0 -0
- /package/dist/types/src/plugins/{ValueTypes → valueTypes}/Category/CategoryTeachMeRenderer.d.ts +0 -0
- /package/dist/types/src/plugins/{ValueTypes → valueTypes}/Category/CategoryTeachMeRenderer.d.ts.map +0 -0
- /package/dist/types/src/plugins/{ValueTypes → valueTypes}/Default/DefaultTeachMeRenderer.d.ts +0 -0
- /package/dist/types/src/plugins/{ValueTypes → valueTypes}/Default/DefaultTeachMeRenderer.d.ts.map +0 -0
- /package/dist/types/src/plugins/{ValueTypes → valueTypes}/Guidelines/GuidelinesTeachMeRenderer.d.ts +0 -0
- /package/dist/types/src/plugins/{ValueTypes → valueTypes}/Guidelines/GuidelinesTeachMeRenderer.d.ts.map +0 -0
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import e from"../../../node_modules/style-inject/dist/style-inject.es.js";var n={container:"InstantLearningModal-module_container__3mazv",mainHeader:"InstantLearningModal-module_mainHeader__gQ2T8",mainHeaderIcon:"InstantLearningModal-module_mainHeaderIcon__hY-Kc",mainHeaderTitle:"InstantLearningModal-module_mainHeaderTitle__ReT0m",mainHeaderChevron:"InstantLearningModal-module_mainHeaderChevron__jgvqM",mainHeaderChevronClosed:"InstantLearningModal-module_mainHeaderChevronClosed__aR14h",contentBox:"InstantLearningModal-module_contentBox__vY6rx",subtitle:"InstantLearningModal-module_subtitle__9Hrs5",rulesList:"InstantLearningModal-module_rulesList__LepzQ",ruleAccordion:"InstantLearningModal-module_ruleAccordion__-zbDA",ruleHeaderWrapper:"InstantLearningModal-module_ruleHeaderWrapper__fZY7B",variantBrief:"InstantLearningModal-module_variantBrief__AaiYD",summaryWrapper:"InstantLearningModal-module_summaryWrapper__-8oVa",summaryCard:"InstantLearningModal-module_summaryCard__3K8iH",summaryCard__blue:"InstantLearningModal-module_summaryCard__blue__SaTnF",summaryCard__green:"InstantLearningModal-module_summaryCard__green__5JeOB",summaryCard__red:"InstantLearningModal-module_summaryCard__red__UMglS",summaryCard__orange:"InstantLearningModal-module_summaryCard__orange__JRhnX",ruleHeader:"InstantLearningModal-module_ruleHeader__5oB70",ruleHeaderLeft:"InstantLearningModal-module_ruleHeaderLeft__8hASc",ruleNumber:"InstantLearningModal-module_ruleNumber__E9626",ruleTitle:"InstantLearningModal-module_ruleTitle__61UbG",badgeApplied:"InstantLearningModal-module_badgeApplied__IwBVd",badgeNotApplied:"InstantLearningModal-module_badgeNotApplied__3pq7W",contextScore:"InstantLearningModal-module_contextScore__4vD1-",defaultChip:"InstantLearningModal-module_defaultChip__v6xxf",ruleChevron:"InstantLearningModal-module_ruleChevron__ZQIDN",ruleChevronOpen:"InstantLearningModal-module_ruleChevronOpen__28kWP",ruleContent:"InstantLearningModal-module_ruleContent__Upd1r",showNotAppliedToggle:"InstantLearningModal-module_showNotAppliedToggle__MNDFy",showNotAppliedText:"InstantLearningModal-module_showNotAppliedText__lft3M",showNotAppliedChevron:"InstantLearningModal-module_showNotAppliedChevron__DG3lO",showNotAppliedChevronClosed:"InstantLearningModal-module_showNotAppliedChevronClosed__aDb9F",showNotAppliedChevronOpen:"InstantLearningModal-module_showNotAppliedChevronOpen__gQ2F9",variantBadgesContainer:"InstantLearningModal-module_variantBadgesContainer__IZcQW",variantBadge:"InstantLearningModal-module_variantBadge__Ho1wT",descriptionBox:"InstantLearningModal-module_descriptionBox__04P-Q",descriptionText:"InstantLearningModal-module_descriptionText__9K9cL",conditionsContainer:"InstantLearningModal-module_conditionsContainer__HDKR6",conditionBlock:"InstantLearningModal-module_conditionBlock__AWWPb",conditionHeader:"InstantLearningModal-module_conditionHeader__MI4Ze",conditionIconApply:"InstantLearningModal-module_conditionIconApply__Kuijt",conditionIconNotApply:"InstantLearningModal-module_conditionIconNotApply__tho7S",conditionLabel:"InstantLearningModal-module_conditionLabel__wfTXj",conditionChevron:"InstantLearningModal-module_conditionChevron__dv1wL",conditionChevronOpen:"InstantLearningModal-module_conditionChevronOpen__LicpR",conditionContent:"InstantLearningModal-module_conditionContent__7IQsJ",conditionItem:"InstantLearningModal-module_conditionItem__eQByk",noConditions:"InstantLearningModal-module_noConditions__zZdtM",whyRuleContainer:"InstantLearningModal-module_whyRuleContainer__ouVRX",whyRuleAccordion:"InstantLearningModal-module_whyRuleAccordion__i8CbF",whyRuleHeader:"InstantLearningModal-module_whyRuleHeader__FXWid",whyRuleHeaderLeft:"InstantLearningModal-module_whyRuleHeaderLeft__U62MS",whyRuleIcon:"InstantLearningModal-module_whyRuleIcon__zriMN",whyRuleTitle:"InstantLearningModal-module_whyRuleTitle__lWUhA",whyRuleHeaderRight:"InstantLearningModal-module_whyRuleHeaderRight__2BGz8",strengthBadge:"InstantLearningModal-module_strengthBadge__RnNNv",whyRuleChevron:"InstantLearningModal-module_whyRuleChevron__acYiF",whyRuleChevronOpen:"InstantLearningModal-module_whyRuleChevronOpen__On4uy",whyRuleContent:"InstantLearningModal-module_whyRuleContent__-kzcW",whyRuleSection:"InstantLearningModal-module_whyRuleSection__wvczx",sectionTitle:"InstantLearningModal-module_sectionTitle__o2cBL",sectionSubtitle:"InstantLearningModal-module_sectionSubtitle__l59OK",reasoningList:"InstantLearningModal-module_reasoningList__-2T5-",reasoningItem:"InstantLearningModal-module_reasoningItem__4ZICg",cognitiveCardWrapper:"InstantLearningModal-module_cognitiveCardWrapper__Zk6CT",summarySectionHeader:"InstantLearningModal-module_summarySectionHeader__ZZ1yY",ruleHeaderRight:"InstantLearningModal-module_ruleHeaderRight__OrA8S",adIdLabel:"InstantLearningModal-module_adIdLabel__ttNZj",revenueBadge:"InstantLearningModal-module_revenueBadge__a4Xp6"};e(".InstantLearningModal-module_container__3mazv{margin-top:0}.InstantLearningModal-module_mainHeader__gQ2T8{align-items:center;cursor:pointer;display:flex;gap:5px;padding:.5rem 0;user-select:none}.InstantLearningModal-module_mainHeaderIcon__hY-Kc{color:#16a34a;flex-shrink:0}.InstantLearningModal-module_mainHeaderTitle__ReT0m{color:#1a847c;font-size:14px;font-weight:600;line-height:1.4}.InstantLearningModal-module_mainHeaderChevron__jgvqM{color:#19213d;margin-left:.25rem;transition:transform .2s ease}.InstantLearningModal-module_mainHeaderChevronClosed__aR14h{transform:rotate(180deg)}.InstantLearningModal-module_contentBox__vY6rx{background-color:#cdefed05;border:1px solid #cdefed;border-radius:8px;margin-bottom:.5rem;margin-top:.5rem;padding:1rem}.InstantLearningModal-module_contentBox__vY6rx .InstantLearningModal-module_contentBox__vY6rx{margin-top:.25rem;padding:.75rem}.InstantLearningModal-module_subtitle__9Hrs5{color:#62687d;font-size:14px;font-weight:400;line-height:1.5;margin-bottom:1rem}.InstantLearningModal-module_rulesList__LepzQ{display:flex;flex-direction:column;gap:.5rem}.InstantLearningModal-module_ruleAccordion__-zbDA{background-color:#fff;border:1px solid #e3e6ea;border-radius:8px;overflow:hidden}.InstantLearningModal-module_ruleHeaderWrapper__fZY7B{display:flex;flex-direction:column}.InstantLearningModal-module_variantBrief__AaiYD{color:#999;padding:0 1rem .75rem}.InstantLearningModal-module_summaryWrapper__-8oVa{display:flex;gap:.25rem}.InstantLearningModal-module_summaryCard__3K8iH{background:#f5f5f5;border:1px solid #eee;padding:5px;text-align:center;width:20%}.InstantLearningModal-module_summaryCard__blue__SaTnF{background:#f0f8ff;border:1px solid #eee}.InstantLearningModal-module_summaryCard__green__5JeOB{background-color:#f0fdf4;border:1px solid #dcfce7;color:#008615}.InstantLearningModal-module_summaryCard__red__UMglS{background-color:rgb(254 242 242/var(--tw-bg-opacity,1));border-color:rgb(254 226 226/var(--tw-border-opacity,1));color:rgb(220 38 38/var(--tw-text-opacity,1))}.InstantLearningModal-module_summaryCard__orange__JRhnX{background-color:#fff7ed;border:1px solid #ffedd5;color:#ea580c}.InstantLearningModal-module_ruleHeader__5oB70{align-items:center;cursor:pointer;display:flex;justify-content:space-between;padding:.75rem 1rem;user-select:none}.InstantLearningModal-module_ruleHeaderLeft__8hASc{align-items:center;display:flex;gap:.5rem}.InstantLearningModal-module_ruleNumber__E9626{color:#19213d;font-size:14px;font-weight:500}.InstantLearningModal-module_ruleTitle__61UbG{font-weight:500}.InstantLearningModal-module_badgeApplied__IwBVd{background-color:#f0fdf4;border:1px solid #dcfce7;border-radius:200px;color:#008615}.InstantLearningModal-module_badgeApplied__IwBVd,.InstantLearningModal-module_badgeNotApplied__3pq7W{align-items:center;display:inline-flex;font-size:12px;font-weight:500;gap:.25rem;padding:.25rem .5rem}.InstantLearningModal-module_badgeNotApplied__3pq7W{background-color:#fff7ed;border:1px solid #ffedd5;border-radius:200px;color:#ea580c}.InstantLearningModal-module_contextScore__4vD1-{background-color:#e0f2fe}.InstantLearningModal-module_contextScore__4vD1-,.InstantLearningModal-module_defaultChip__v6xxf{border:1px solid #bae6fd;border-radius:200px;color:#19213d;font-size:12px;font-weight:500;padding:.25rem .5rem}.InstantLearningModal-module_defaultChip__v6xxf{background-color:#efefef}.InstantLearningModal-module_ruleChevron__ZQIDN{color:#666f8d;flex-shrink:0;transition:transform .2s ease}.InstantLearningModal-module_ruleChevronOpen__28kWP{transform:rotate(180deg)}.InstantLearningModal-module_ruleContent__Upd1r{padding:0 1rem 1rem}.InstantLearningModal-module_showNotAppliedToggle__MNDFy{align-items:center;cursor:pointer;display:flex;gap:.25rem;margin-top:.5rem;padding:.75rem 0;user-select:none}.InstantLearningModal-module_showNotAppliedText__lft3M{color:#19213d;font-size:14px;font-weight:500}.InstantLearningModal-module_showNotAppliedChevron__DG3lO{color:#19213d;transition:transform .2s ease}.InstantLearningModal-module_showNotAppliedChevronClosed__aDb9F,.InstantLearningModal-module_showNotAppliedChevronOpen__gQ2F9{transform:rotate(180deg)}.InstantLearningModal-module_variantBadgesContainer__IZcQW{display:flex;gap:.5rem}.InstantLearningModal-module_variantBadge__Ho1wT{background-color:#fff;border:1px solid #f0f2f5;border-radius:.25rem;color:#19213d;font-size:.75rem;font-weight:500;padding:.25rem .5rem}.InstantLearningModal-module_descriptionBox__04P-Q{background-color:#f8fafc;border:1px solid #e3e6ea;border-radius:8px;margin-bottom:1rem;padding:1rem}.InstantLearningModal-module_descriptionText__9K9cL{color:#19213d;font-size:14px;font-weight:500;line-height:1.5;margin:0}.InstantLearningModal-module_conditionsContainer__HDKR6{border-left:2px solid #e3e6ea;margin-left:.5rem;padding-left:1rem}.InstantLearningModal-module_conditionBlock__AWWPb{margin-bottom:1rem}.InstantLearningModal-module_conditionBlock__AWWPb:last-child{margin-bottom:0}.InstantLearningModal-module_conditionHeader__MI4Ze{align-items:center;cursor:pointer;display:flex;gap:.5rem;padding:.5rem 0;user-select:none}.InstantLearningModal-module_conditionIconApply__Kuijt{color:#16a34a;flex-shrink:0}.InstantLearningModal-module_conditionIconNotApply__tho7S{color:#ef4444;flex-shrink:0}.InstantLearningModal-module_conditionLabel__wfTXj{color:#19213d;font-size:14px;font-weight:500}.InstantLearningModal-module_conditionChevron__dv1wL{color:#666f8d;transition:transform .2s ease}.InstantLearningModal-module_conditionChevronOpen__LicpR{transform:rotate(180deg)}.InstantLearningModal-module_conditionContent__7IQsJ{padding-left:1.5rem;padding-top:.25rem}.InstantLearningModal-module_conditionItem__eQByk{color:#19213d;font-size:14px;line-height:1.5;margin-bottom:.25rem}.InstantLearningModal-module_noConditions__zZdtM{color:#666f8d;font-size:14px;font-style:italic}.InstantLearningModal-module_whyRuleContainer__ouVRX{margin-top:1rem}.InstantLearningModal-module_whyRuleAccordion__i8CbF{background-color:#fff;border:1px solid #e3e6ea;border-radius:8px;overflow:hidden}.InstantLearningModal-module_whyRuleHeader__FXWid{align-items:center;cursor:pointer;display:flex;justify-content:space-between;padding:.75rem 1rem;user-select:none}.InstantLearningModal-module_whyRuleHeaderLeft__U62MS{align-items:center;display:flex;gap:.5rem}.InstantLearningModal-module_whyRuleIcon__zriMN{color:#6d28d9;flex-shrink:0}.InstantLearningModal-module_whyRuleTitle__lWUhA{color:#1e293b;font-size:12px;font-weight:500;line-height:20px}.InstantLearningModal-module_whyRuleHeaderRight__2BGz8{align-items:center;display:flex;gap:.5rem}.InstantLearningModal-module_strengthBadge__RnNNv{align-items:center;background-color:#fff;border:1px solid #c4b5fd;border-radius:16px;color:#1e293b;display:inline-flex;font-size:10px;font-weight:600;gap:.25rem;padding:.25rem .5rem}.InstantLearningModal-module_whyRuleChevron__acYiF{color:#19213d;transition:transform .2s ease}.InstantLearningModal-module_whyRuleChevronOpen__On4uy{transform:rotate(180deg)}.InstantLearningModal-module_whyRuleContent__-kzcW{padding:0 1rem 1rem}.InstantLearningModal-module_whyRuleSection__wvczx{margin-bottom:1rem}.InstantLearningModal-module_whyRuleSection__wvczx:last-child{margin-bottom:0}.InstantLearningModal-module_sectionTitle__o2cBL{color:#19213d;font-size:12px;font-weight:500;line-height:130%;margin-bottom:.5rem}.InstantLearningModal-module_sectionSubtitle__l59OK{color:#1e293b;font-size:12px;font-weight:400;line-height:150%;margin-bottom:.5rem}.InstantLearningModal-module_reasoningList__-2T5-{padding-left:1.25rem}.InstantLearningModal-module_reasoningItem__4ZICg{color:#666f8d;font-size:12px;font-weight:400;line-height:150%;list-style:decimal;margin-bottom:.25rem}.InstantLearningModal-module_cognitiveCardWrapper__Zk6CT{margin:0 1rem 1rem}.InstantLearningModal-module_summarySectionHeader__ZZ1yY{align-items:center;cursor:pointer;display:flex;justify-content:space-between;transition:opacity .2s;user-select:none}.InstantLearningModal-module_summarySectionHeader__ZZ1yY:hover{opacity:.8}.InstantLearningModal-module_ruleHeaderRight__OrA8S{align-items:center;display:flex;flex-shrink:0;gap:1rem}.InstantLearningModal-module_adIdLabel__ttNZj{background:#f8fafc;border:1px solid #f1f5f9;border-radius:4px;color:#94a3b8;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;font-size:10px;padding:2px 6px}.InstantLearningModal-module_revenueBadge__a4Xp6{background-color:#ecfdf5;border:1px solid #d1fae5;border-radius:200px;color:#059669;font-size:12px;font-weight:600;padding:.25rem .6rem}.InstantLearningModal-module_ruleHeaderLeft__8hASc .InstantLearningModal-module_variantBadge__Ho1wT{align-items:center;background-color:#f3f4f6;border-color:#e5e7eb;color:#4b5563;display:flex;height:24px;line-height:1}.InstantLearningModal-module_ruleHeaderLeft__8hASc .InstantLearningModal-module_revenueBadge__a4Xp6{align-items:center;display:flex;height:24px;line-height:1}.InstantLearningModal-module_ruleTitle__61UbG{color:#19213d;font-size:14px;font-weight:600;max-width:200px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}");export{n as default};
|
|
2
|
+
//# sourceMappingURL=InstantLearningModal.module.css.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"InstantLearningModal.module.css.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__assign as e,__spreadArray as t}from"tslib";import{jsx as o,Fragment as n,jsxs as r}from"react/jsx-runtime";import{useState as a,useCallback as i}from"react";import{Lightbulb as s}from"lucide-react";import"../../../features/IL-OTJ/_components/atoms/Textarea/Textarea.js";import"../../../features/IL-OTJ/_components/InputDataReasoningCard.js";import"../../../features/IL-OTJ/_components/TooltipComponent.js";import{TemplateList as l}from"../../../features/IL-OTJ/_components/templates/TemplatesMap/templatesMap.js";import"../../../features/IL-OTJ/store/CitationsContext.js";import"@mui/material";import"uuid";import"@mui/material/Tooltip";import"react-markdown";import"rehype-raw";import"axios";import"@e-llm-studio/streaming-response";import"@e-llm-studio/watch-me-work";import"../../../features/IL-OTJ/_components/ChatComponents/ChatHeader.js";import"remark-gfm";import"../../../features/IL-OTJ/_components/MarkdownComponents/MarkdownElements.js";import"../../../features/IL-OTJ/_components/CitationLink.js";import"@e-llm-studio/citation";import"@viswa-test/test-citation";import"../../../features/LearningManagement/store/useLearningTemplateStore.js";import"primereact/toast";import"../../../features/LearningManagement/apis/scopeApis.js";import"../../../features/LearningManagement/components/ToolTip.js";import"../../../features/LearningManagement/store/useAuthStore.js";import"date-fns";import"framer-motion";import p from"../../../features/IL-OTJ/
|
|
1
|
+
import{__assign as e,__spreadArray as t}from"tslib";import{jsx as o,Fragment as n,jsxs as r}from"react/jsx-runtime";import{useState as a,useCallback as i}from"react";import{Lightbulb as s}from"lucide-react";import"../../../features/IL-OTJ/_components/atoms/Textarea/Textarea.js";import"../../../features/IL-OTJ/_components/InputDataReasoningCard.js";import"../../../features/IL-OTJ/_components/TooltipComponent.js";import{TemplateList as l}from"../../../features/IL-OTJ/_components/templates/TemplatesMap/templatesMap.js";import"../../../features/IL-OTJ/store/CitationsContext.js";import"@mui/material";import"uuid";import"@mui/material/Tooltip";import"react-markdown";import"rehype-raw";import"axios";import"@e-llm-studio/streaming-response";import"@e-llm-studio/watch-me-work";import"../../../features/IL-OTJ/_components/ChatComponents/ChatHeader.js";import"remark-gfm";import"../../../features/IL-OTJ/_components/MarkdownComponents/MarkdownElements.js";import"../../../features/IL-OTJ/_components/CitationLink.js";import"@e-llm-studio/citation";import"@viswa-test/test-citation";import"../../../features/LearningManagement/store/useLearningTemplateStore.js";import"primereact/toast";import"../../../features/LearningManagement/apis/scopeApis.js";import"../../../features/LearningManagement/components/ToolTip.js";import"../../../features/LearningManagement/store/useAuthStore.js";import"date-fns";import"framer-motion";import"@mui/icons-material/Close";import p from"../../../features/IL-OTJ/_components/AccordianSection.js";import u from"../../../features/IL-OTJ/ILOTJ.js";import"../../../features/LearningManagement/store/useConfigStore.js";import"@radix-ui/react-tooltip";import"../../../features/LearningManagement/components/StationOnboarding/InputField.js";import"../../../features/LearningManagement/store/useEnvStore.js";var c={order_rules:{enabled:!1,global_min_separation_seconds:0},advertiser_rules:{enabled:!1,global_min_separation_seconds:0},inventory_rules:{respect_inventory_code:!1},break_code_rules:{respect_break_code:!1},is_default_enabled:!1},d=[{label:"Global Scope",value:"global"},{label:"Genre Scope",value:"genre"},{label:"Custom Scope",value:"custom"}],m=["Tier 1"],f=function(){var f=a(!0),g=f[0],_=f[1],b=a(""),v=b[0],h=b[1],y=a(""),T=y[0],k=y[1],w=a({station:"",tiers:["Tier 1"]}),L=w[0],C=w[1],I=a([]),x=I[0],A=I[1],S=a([]),j=S[0],O=S[1],M=a(c),N=M[0],E=M[1],J=i(function(t,o){C(function(n){var r;return e(e({},n),((r={})[t]=o,r))})},[]),D=i(function(t,o){E(function(n){var r=e({},n);switch(t){case"order_rules":case"advertiser_rules":r[t]="boolean"==typeof o?e(e({},n[t]),{enabled:o}):{enabled:o.enabled,global_min_separation_seconds:o.global_min_separation_seconds};break;case"inventory_rules":r.inventory_rules={respect_inventory_code:"boolean"==typeof o?o:o.respect_inventory_code};break;case"break_code_rules":r.break_code_rules={respect_break_code:"boolean"==typeof o?o:o.respect_break_code};break;case"is_default_enabled":r.is_default_enabled="boolean"==typeof o?o:!!o}return r})},[]),W=function(e){e(function(e){return t(t([],e,!0),[{id:Date.now(),text:"",reasoning:""}],!1)})},B=function(e,t){e(function(e){return e.filter(function(e){return e.id!==t})})},R=function(t,o,n){t(function(t){return t.map(function(t){return String(t.id)===String(o)?e(e({},t),{text:n}):t})})},G=[e({key:"order_rules",label:"Order"},N.order_rules),e({key:"advertiser_rules",label:"Advertiser"},N.advertiser_rules)],U=[{key:"inventory_rules",label:"Inventory code",enabled:N.inventory_rules.respect_inventory_code},{key:"break_code_rules",label:"Break Code",enabled:N.break_code_rules.respect_break_code},{key:"is_default_enabled",label:"Default Variant",enabled:N.is_default_enabled}],H={"Separation rule":"I would want to add a separation rule","Max priority rule":"I would want to set a max priority rule","Break code matching":"I would want to add a break code matching rule","Inventory code matching":"I would want to add a inventory window matching rule","Enter a rule description":"I want to add a rule description","Tester Genie":"Loading prompt..."},z="<p><span>Hi! 👋 I'm your Instant Learning Concierge.</span>\n <span>How would you like to get started? You can select an option below or describe the rule you’d like to create.</span>\n ".concat(["Separation rule","Max priority rule","Break code matching","Inventory code matching","Enter a rule description","Tester Genie"].map(function(e){return'<button class="clickable-button" data-value="'.concat(H[e],'">').concat(e,"</button>")}).join(""),"</p>");return o(u,{open:g,closeFunction:function(){return _(!1)},chatAssistantName:"defaultAssistant",organizationName:"techolution",baseUrl:"https://devllmstudio.creativeworkspace.ai",baseWebsocketUrl:"wss://devllmstudio.creativeworkspace.ai/graphql",ThinkingBulbIconComponent:o(s,{}),customSections:o(n,{}),isUseNormalChat:!0,chatTitle:"Create New Learning",formTitle:"Learning Details",initialChatMessage:z,template:l.BaseTemplate,templateProps:{state:{title:v,description:T,scopeData:L,whenToApplyConditions:x,whenNotToApplyConditions:j,configData:N,citations:[],citation:{}},handlers:{onTitleChange:function(e){var t,o;return h(null!==(o=null===(t=null==e?void 0:e.target)||void 0===t?void 0:t.value)&&void 0!==o?o:e)},onDescriptionChange:function(e){var t,o;return k(null!==(o=null===(t=null==e?void 0:e.target)||void 0===t?void 0:t.value)&&void 0!==o?o:e)},onAddWhenToApply:function(){return W(A)},onRemoveWhenToApply:function(e){return B(A,e)},onEditWhenToApply:function(e,t){return R(A,e,t)},onAddWhenNotToApply:function(){return W(O)},onRemoveWhenNotToApply:function(e){return B(O,e)},onEditWhenNotToApply:function(e,t){return R(O,e,t)},onScopeChange:J,onConfigChange:D},uiState:{showScope:!1,showConfiguration:!0,titleLabel:"Main Rule Name",scopeLabel:"Define Scope",tierLabel:"Select Tier",descriptionLabel:"Learning Explanation",whenToApplyLabel:"Trigger Events (When to Apply)",whenNotToApplyLabel:"Exclusion Events (When NOT to Apply)",configLabel:"Advanced Settings",stationOptions:d,tierOptions:m,separationItems:G,toggles:U},customNodes:{afterDescription:o(p,e({title:{type:"other",label:"Extra Context Panel"}},{children:o("p",e({style:{padding:"12px",fontSize:"14px",color:"#64748b"}},{children:"Because you decoupled the template, I can inject anything I want here without touching BaseTemplate logic!"}))})),afterTitle:r("div",e({style:{marginBottom:"12px",padding:"8px",backgroundColor:"#f0f4ff",borderRadius:"4px"}},{children:[o("strong",{children:"Tip:"})," Use a clear and descriptive title for your rule to make it easily identifiable later."]}))}}})};export{f as default};
|
|
2
2
|
//# sourceMappingURL=DefaultTeachMeRenderer.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{jsx as e}from"react/jsx-runtime";import i from"../../../features/LearningManagement/components/InstantLearningModal.js";var r=function(r){return e(i,{isOpen:r.isOpen,onClose:r.onClose,initialScope:r.initialScope,ruleSet:r.ruleSet,editingRule:r.editingRule,editingTier:r.editingTier,editingVariants:r.editingVariants,focusedVariantIndex:r.focusedVariantIndex,setFocusedVariantIndex:r.setFocusedVariantIndex,triggerAddVariant:r.triggerAddVariant,triggerFixGaps:r.triggerFixGaps,copiedRule:r.copiedRule,copiedSourceTier:r.copiedSourceTier,copiedTargetTier:r.copiedTargetTier,initialDraftMessage:r.initialDraftMessage})};export{r as default};
|
|
2
|
+
//# sourceMappingURL=RadioTrafficLearningRenderer.js.map
|
|
@@ -1,6 +1,23 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { RuleDefinition, RuleVariant } from "../../LearningManagement/types";
|
|
3
|
+
export interface TeachMeWrapperProps {
|
|
4
|
+
app_integration_id: string;
|
|
5
|
+
isOpen: boolean;
|
|
6
|
+
onClose: () => void;
|
|
7
|
+
initialScope: string;
|
|
8
|
+
ruleSet?: any;
|
|
9
|
+
editingRule?: RuleDefinition | null;
|
|
10
|
+
editingTier?: string | null;
|
|
11
|
+
editingVariants?: RuleVariant[] | null;
|
|
12
|
+
focusedVariantIndex?: number | null;
|
|
13
|
+
setFocusedVariantIndex?: React.Dispatch<React.SetStateAction<number | null>>;
|
|
14
|
+
triggerAddVariant?: boolean;
|
|
15
|
+
triggerFixGaps?: boolean;
|
|
16
|
+
copiedRule?: RuleDefinition | null;
|
|
17
|
+
copiedSourceTier?: string | null;
|
|
18
|
+
copiedTargetTier?: string | null;
|
|
19
|
+
initialDraftMessage?: string;
|
|
3
20
|
}
|
|
4
|
-
declare const TeachMeWrapper: (
|
|
21
|
+
declare const TeachMeWrapper: (props: TeachMeWrapperProps) => import("react/jsx-runtime").JSX.Element;
|
|
5
22
|
export default TeachMeWrapper;
|
|
6
23
|
//# sourceMappingURL=TeachMeWrapper.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TeachMeWrapper.d.ts","sourceRoot":"","sources":["../../../../../../src/features/IL-OTJ/ValueTypeWrappers/TeachMeWrapper.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"TeachMeWrapper.d.ts","sourceRoot":"","sources":["../../../../../../src/features/IL-OTJ/ValueTypeWrappers/TeachMeWrapper.tsx"],"names":[],"mappings":";AAMA,OAAO,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAC;AAqD7E,MAAM,WAAW,mBAAmB;IAClC,kBAAkB,EAAE,MAAM,CAAC;IAC3B,MAAM,EAAE,OAAO,CAAC;IAChB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,YAAY,EAAE,MAAM,CAAC;IACrB,OAAO,CAAC,EAAE,GAAG,CAAC;IAEd,WAAW,CAAC,EAAE,cAAc,GAAG,IAAI,CAAC;IACpC,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,eAAe,CAAC,EAAE,WAAW,EAAE,GAAG,IAAI,CAAC;IAEvC,mBAAmB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACpC,sBAAsB,CAAC,EAAE,KAAK,CAAC,QAAQ,CACrC,KAAK,CAAC,cAAc,CAAC,MAAM,GAAG,IAAI,CAAC,CACpC,CAAC;IAEF,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,cAAc,CAAC,EAAE,OAAO,CAAC;IAEzB,UAAU,CAAC,EAAE,cAAc,GAAG,IAAI,CAAC;IACnC,gBAAgB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACjC,gBAAgB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEjC,mBAAmB,CAAC,EAAE,MAAM,CAAC;CAC9B;AAED,QAAA,MAAM,cAAc,UAAW,mBAAmB,4CAgFjD,CAAC;AAEF,eAAe,cAAc,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RuleContent.d.ts","sourceRoot":"","sources":["../../../../../../src/features/LearningManagement/RuleContent/RuleContent.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAsC,MAAM,OAAO,CAAC;AAiB3D;;;GAGG;AACH,UAAU,gBAAgB;IACxB,sDAAsD;IACtD,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,4DAA4D;IAC5D,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,kCAAkC;IAClC,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,2CAA2C;IAC3C,wBAAwB,CAAC,EAAE,MAAM,CAAC;IAClC,8CAA8C;IAC9C,2BAA2B,CAAC,EAAE,MAAM,CAAC;IACrC,qDAAqD;IACrD,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAChC,wDAAwD;IACxD,yBAAyB,CAAC,EAAE,MAAM,CAAC;IACnC,0CAA0C;IAC1C,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAChC,+CAA+C;IAC/C,yBAAyB,CAAC,EAAE,MAAM,CAAC;IACnC,kDAAkD;IAClD,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,iDAAiD;IACjD,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,2CAA2C;IAC3C,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAE3B,iBAAiB,CAAC,EAAE,CAAC,UAAU,CAAC,EAAE,OAAO,EAAE,OAAO,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IACrE,kBAAkB,EAAE,MAAM,CAAC;IAC3B,KAAK,EAAE,MAAM,CAAC;CACf;AAED;;;;;;;;;;GAUG;AACH,QAAA,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,gBAAgB,
|
|
1
|
+
{"version":3,"file":"RuleContent.d.ts","sourceRoot":"","sources":["../../../../../../src/features/LearningManagement/RuleContent/RuleContent.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAsC,MAAM,OAAO,CAAC;AAiB3D;;;GAGG;AACH,UAAU,gBAAgB;IACxB,sDAAsD;IACtD,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,4DAA4D;IAC5D,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,kCAAkC;IAClC,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,2CAA2C;IAC3C,wBAAwB,CAAC,EAAE,MAAM,CAAC;IAClC,8CAA8C;IAC9C,2BAA2B,CAAC,EAAE,MAAM,CAAC;IACrC,qDAAqD;IACrD,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAChC,wDAAwD;IACxD,yBAAyB,CAAC,EAAE,MAAM,CAAC;IACnC,0CAA0C;IAC1C,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAChC,+CAA+C;IAC/C,yBAAyB,CAAC,EAAE,MAAM,CAAC;IACnC,kDAAkD;IAClD,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,iDAAiD;IACjD,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,2CAA2C;IAC3C,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAE3B,iBAAiB,CAAC,EAAE,CAAC,UAAU,CAAC,EAAE,OAAO,EAAE,OAAO,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IACrE,kBAAkB,EAAE,MAAM,CAAC;IAC3B,KAAK,EAAE,MAAM,CAAC;CACf;AAED;;;;;;;;;;GAUG;AACH,QAAA,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,gBAAgB,CAwyB3C,CAAC;AAEF,eAAe,WAAW,CAAC"}
|
|
@@ -22,6 +22,8 @@ interface RuleTemplateState {
|
|
|
22
22
|
currentRules: RuleTier[];
|
|
23
23
|
/** Newly created variant IDs grouped by tier for auto-scroll */
|
|
24
24
|
createdVariantInfo: CreatedVariantInfo[] | null;
|
|
25
|
+
templateMap: Record<string, string>;
|
|
26
|
+
setTemplateData: (appIntegrationId: string, templateName: string) => void;
|
|
25
27
|
setRuleSets: (rules: AllRuleSetsResponse) => void;
|
|
26
28
|
setScopeTreeData: (data: ScopesTreeResponse | null) => void;
|
|
27
29
|
setStationModalOpen: (open: boolean) => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useLearningTemplateStore.d.ts","sourceRoot":"","sources":["../../../../../../src/features/LearningManagement/store/useLearningTemplateStore.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAE,QAAQ,EAAE,WAAW,EAAE,kBAAkB,EAAE,IAAI,EAAE,MAAM,UAAU,CAAC;AAIhG,sEAAsE;AACtE,MAAM,WAAW,kBAAkB;IACjC,6CAA6C;IAC7C,QAAQ,EAAE,MAAM,CAAC;IACjB,uCAAuC;IACvC,QAAQ,EAAE;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,KAAK,GAAG,UAAU,CAAA;KAAE,EAAE,CAAC;CACxD;AACD,UAAU,iBAAiB;IAEzB,UAAU,EAAE,WAAW,GAAG,UAAU,CAAC;IACrC,iBAAiB,EAAE,MAAM,GAAG,IAAI,CAAC;IACjC,QAAQ,EAAE,mBAAmB,CAAC;IAC9B,kBAAkB,EAAE,OAAO,CAAC;IAC5B,kBAAkB,EAAE,OAAO,CAAC;IAC5B,8BAA8B,EAAE,OAAO,CAAC;IACxC,aAAa,EAAE,kBAAkB,GAAG,IAAI,CAAC;IAGzC,QAAQ,EAAE,WAAW,EAAE,CAAC;IACxB,iBAAiB,EAAE,MAAM,GAAG,IAAI,CAAC;IAGjC,YAAY,EAAE,QAAQ,EAAE,CAAC;IAEzB,gEAAgE;IAChE,kBAAkB,EAAE,kBAAkB,EAAE,GAAG,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"useLearningTemplateStore.d.ts","sourceRoot":"","sources":["../../../../../../src/features/LearningManagement/store/useLearningTemplateStore.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAE,QAAQ,EAAE,WAAW,EAAE,kBAAkB,EAAE,IAAI,EAAE,MAAM,UAAU,CAAC;AAIhG,sEAAsE;AACtE,MAAM,WAAW,kBAAkB;IACjC,6CAA6C;IAC7C,QAAQ,EAAE,MAAM,CAAC;IACjB,uCAAuC;IACvC,QAAQ,EAAE;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,KAAK,GAAG,UAAU,CAAA;KAAE,EAAE,CAAC;CACxD;AACD,UAAU,iBAAiB;IAEzB,UAAU,EAAE,WAAW,GAAG,UAAU,CAAC;IACrC,iBAAiB,EAAE,MAAM,GAAG,IAAI,CAAC;IACjC,QAAQ,EAAE,mBAAmB,CAAC;IAC9B,kBAAkB,EAAE,OAAO,CAAC;IAC5B,kBAAkB,EAAE,OAAO,CAAC;IAC5B,8BAA8B,EAAE,OAAO,CAAC;IACxC,aAAa,EAAE,kBAAkB,GAAG,IAAI,CAAC;IAGzC,QAAQ,EAAE,WAAW,EAAE,CAAC;IACxB,iBAAiB,EAAE,MAAM,GAAG,IAAI,CAAC;IAGjC,YAAY,EAAE,QAAQ,EAAE,CAAC;IAEzB,gEAAgE;IAChE,kBAAkB,EAAE,kBAAkB,EAAE,GAAG,IAAI,CAAC;IAEhD,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAEpC,eAAe,EAAE,CACf,gBAAgB,EAAE,MAAM,EACxB,YAAY,EAAE,MAAM,KACjB,IAAI,CAAC;IAGV,WAAW,EAAE,CAAC,KAAK,EAAE,mBAAmB,KAAK,IAAI,CAAC;IAClD,gBAAgB,EAAE,CAAC,IAAI,EAAE,kBAAkB,GAAG,IAAI,KAAK,IAAI,CAAC;IAC5D,mBAAmB,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IAC7C,qBAAqB,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,CAAC;IAClD,iCAAiC,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,CAAC;IAC9D,oBAAoB,EAAE,CAAC,EAAE,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,CAAC;IAClD,cAAc,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IACrC,UAAU,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;IACrD,eAAe,EAAE,CAAC,KAAK,EAAE,QAAQ,EAAE,KAAK,IAAI,CAAC;IAE7C,iDAAiD;IACjD,qBAAqB,EAAE,CAAC,IAAI,EAAE,kBAAkB,EAAE,GAAG,IAAI,KAAK,IAAI,CAAC;IACnE,mCAAmC;IACnC,uBAAuB,EAAE,MAAM,IAAI,CAAC;IAGpC,WAAW,EAAE,CAAC,QAAQ,EAAE,WAAW,EAAE,KAAK,IAAI,CAAC;IAC/C,UAAU,EAAE,CAAC,OAAO,EAAE,WAAW,KAAK,IAAI,CAAC;IAC3C,aAAa,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IAEpC,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,CAAC;IACzC,KAAK,EAAE,IAAI,EAAE,CAAC;IACd,QAAQ,EAAE,CAAC,OAAO,EAAE,IAAI,EAAE,KAAK,IAAI,CAAC;CACrC;AAED,eAAO,MAAM,iBAAiB,EAAE,mBAI/B,CAAC;AAEF,eAAO,MAAM,wBAAwB,gFAiFlC,CAAC"}
|
package/dist/types/src/plugins/valueTypes/RadioTrafficLearning/RadioTrafficLearningRenderer.d.ts
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { TeachMeWrapperProps } from "../../../features/IL-OTJ/ValueTypeWrappers/TeachMeWrapper";
|
|
2
|
+
declare const RadioTrafficLearningRenderer: (props: TeachMeWrapperProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export default RadioTrafficLearningRenderer;
|
|
4
|
+
//# sourceMappingURL=RadioTrafficLearningRenderer.d.ts.map
|
package/dist/types/src/plugins/valueTypes/RadioTrafficLearning/RadioTrafficLearningRenderer.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RadioTrafficLearningRenderer.d.ts","sourceRoot":"","sources":["../../../../../../src/plugins/ValueTypes/RadioTrafficLearning/RadioTrafficLearningRenderer.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,mBAAmB,EAAE,MAAM,2DAA2D,CAAC;AAEhG,QAAA,MAAM,4BAA4B,UACzB,mBAAmB,4CAqB3B,CAAC;AAEF,eAAe,4BAA4B,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),t=require("react/jsx-runtime"),r=require("react"),n=require("lucide-react");require("../../../features/IL-OTJ/_components/atoms/Textarea/Textarea.js"),require("../../../features/IL-OTJ/_components/InputDataReasoningCard.js"),require("../../../features/IL-OTJ/_components/TooltipComponent.js");var a=require("../../../features/IL-OTJ/_components/templates/TemplatesMap/templatesMap.js");require("../../../features/IL-OTJ/store/CitationsContext.js"),require("@mui/material"),require("uuid"),require("@mui/material/Tooltip"),require("react-markdown"),require("rehype-raw"),require("axios"),require("@e-llm-studio/streaming-response"),require("@e-llm-studio/watch-me-work"),require("../../../features/IL-OTJ/_components/ChatComponents/ChatHeader.js"),require("remark-gfm"),require("../../../features/IL-OTJ/_components/MarkdownComponents/MarkdownElements.js"),require("../../../features/IL-OTJ/_components/CitationLink.js"),require("@e-llm-studio/citation"),require("@viswa-test/test-citation"),require("../../../features/LearningManagement/store/useLearningTemplateStore.js"),require("primereact/toast"),require("../../../features/LearningManagement/apis/scopeApis.js"),require("../../../features/LearningManagement/components/ToolTip.js"),require("../../../features/LearningManagement/store/useAuthStore.js"),require("date-fns"),require("framer-motion");var o=require("../../../features/IL-OTJ/ILOTJ.js");require("@mui/icons-material/Close"),require("@radix-ui/react-tooltip"),require("../../../features/LearningManagement/components/StationOnboarding/InputField.js"),require("../../../features/LearningManagement/store/useConfigStore.js"),require("../../../features/LearningManagement/store/useEnvStore.js");var i={order_rules:{enabled:!1,global_min_separation_seconds:0},advertiser_rules:{enabled:!1,global_min_separation_seconds:0},inventory_rules:{respect_inventory_code:!1},break_code_rules:{respect_break_code:!1},is_default_enabled:!1},s=[{label:"Global Scope",value:"global"},{label:"Genre Scope",value:"genre"},{label:"Custom Scope",value:"custom"}],u=["Tier 1","Tier 2"];exports.default=function(){var l=r.useState(!0),c=l[0],d=l[1],p=r.useState(""),_=p[0],m=p[1],g=r.useState(""),b=g[0],f=g[1],v=r.useState({station:"",tiers:["Tier 1"]}),y=v[0],h=v[1],T=r.useState([]),q=T[0],k=T[1],w=r.useState([]),L=w[0],C=w[1],S=r.useState(i),I=S[0],j=S[1],A=r.useCallback(function(t,r){h(function(n){var a;return e.__assign(e.__assign({},n),((a={})[t]=r,a))})},[]),x=r.useCallback(function(t,r){j(function(n){var a=e.__assign({},n);switch(t){case"order_rules":case"advertiser_rules":a[t]="boolean"==typeof r?e.__assign(e.__assign({},n[t]),{enabled:r}):{enabled:r.enabled,global_min_separation_seconds:r.global_min_separation_seconds};break;case"inventory_rules":a.inventory_rules={respect_inventory_code:"boolean"==typeof r?r:r.respect_inventory_code};break;case"break_code_rules":a.break_code_rules={respect_break_code:"boolean"==typeof r?r:r.respect_break_code};break;case"is_default_enabled":a.is_default_enabled="boolean"==typeof r?r:!!r}return a})},[]),M=function(t){t(function(t){return e.__spreadArray(e.__spreadArray([],t,!0),[{id:Date.now(),text:"",reasoning:""}],!1)})},O=function(e,t){e(function(e){return e.filter(function(e){return e.id!==t})})},N=function(t,r,n){t(function(t){return t.map(function(t){return String(t.id)===String(r)?e.__assign(e.__assign({},t),{text:n}):t})})},E=[e.__assign({key:"order_rules",label:"Order"},I.order_rules),e.__assign({key:"advertiser_rules",label:"Advertiser"},I.advertiser_rules)],J=[{key:"inventory_rules",label:"Inventory code",enabled:I.inventory_rules.respect_inventory_code},{key:"break_code_rules",label:"Break Code",enabled:I.break_code_rules.respect_break_code},{key:"is_default_enabled",label:"Default Variant",enabled:I.is_default_enabled}],W={"Separation rule":"I would want to add a separation rule","Max priority rule":"I would want to set a max priority rule","Break code matching":"I would want to add a break code matching rule","Inventory code matching":"I would want to add a inventory window matching rule","Enter a rule description":"I want to add a rule description","Tester Genie":"Loading prompt..."},D="<p><span>Hi! 👋 I'm your Instant Learning Concierge.</span>\n <span>How would you like to get started? You can select an option below or describe the rule you’d like to create.</span>\n ".concat(["Separation rule","Max priority rule","Break code matching","Inventory code matching","Enter a rule description","Tester Genie"].map(function(e){return'<button class="clickable-button" data-value="'.concat(W[e],'">').concat(e,"</button>")}).join(""),"</p>");return t.jsx(o.default,{open:c,closeFunction:function(){return d(!1)},chatAssistantName:"defaultAssistant",organizationName:"techolution",baseUrl:"https://devllmstudio.creativeworkspace.ai",baseWebsocketUrl:"wss://devllmstudio.creativeworkspace.ai/graphql",ThinkingBulbIconComponent:t.jsx(n.Lightbulb,{}),customSections:t.jsx(t.Fragment,{}),isUseNormalChat:!0,chatTitle:"Create New Learning",formTitle:"Learning Details",initialChatMessage:D,template:a.TemplateList.CreateRule,templateProps:{state:{title:_,description:b,scopeData:y,whenToApplyConditions:q,whenNotToApplyConditions:L,configData:I,citations:[],citation:{}},handlers:{onTitleChange:function(e){var t,r;return m(null!==(r=null===(t=null==e?void 0:e.target)||void 0===t?void 0:t.value)&&void 0!==r?r:e)},onDescriptionChange:function(e){var t,r;return f(null!==(r=null===(t=null==e?void 0:e.target)||void 0===t?void 0:t.value)&&void 0!==r?r:e)},onAddWhenToApply:function(){return M(k)},onRemoveWhenToApply:function(e){return O(k,e)},onEditWhenToApply:function(e,t){return N(k,e,t)},onAddWhenNotToApply:function(){return M(C)},onRemoveWhenNotToApply:function(e){return O(C,e)},onEditWhenNotToApply:function(e,t){return N(C,e,t)},onScopeChange:A,onConfigChange:x},uiState:{showScope:!0,showConfiguration:!1,titleLabel:"Main Rule Name",scopeLabel:"Define Scope",tierLabel:"Select Tier",descriptionLabel:"Learning Explanation",whenToApplyLabel:"Trigger Events (When to Apply)",whenNotToApplyLabel:"Exclusion Events (When NOT to Apply)",configLabel:"Advanced Settings",stationOptions:s,tierOptions:u,separationItems:E,toggles:J}}})};
|
|
2
|
-
//# sourceMappingURL=RadioTrafficLearningRenderer.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{__assign as e,__spreadArray as t}from"tslib";import{jsx as n,Fragment as o}from"react/jsx-runtime";import{useState as r,useCallback as a}from"react";import{Lightbulb as i}from"lucide-react";import"../../../features/IL-OTJ/_components/atoms/Textarea/Textarea.js";import"../../../features/IL-OTJ/_components/InputDataReasoningCard.js";import"../../../features/IL-OTJ/_components/TooltipComponent.js";import{TemplateList as s}from"../../../features/IL-OTJ/_components/templates/TemplatesMap/templatesMap.js";import"../../../features/IL-OTJ/store/CitationsContext.js";import"@mui/material";import"uuid";import"@mui/material/Tooltip";import"react-markdown";import"rehype-raw";import"axios";import"@e-llm-studio/streaming-response";import"@e-llm-studio/watch-me-work";import"../../../features/IL-OTJ/_components/ChatComponents/ChatHeader.js";import"remark-gfm";import"../../../features/IL-OTJ/_components/MarkdownComponents/MarkdownElements.js";import"../../../features/IL-OTJ/_components/CitationLink.js";import"@e-llm-studio/citation";import"@viswa-test/test-citation";import"../../../features/LearningManagement/store/useLearningTemplateStore.js";import"primereact/toast";import"../../../features/LearningManagement/apis/scopeApis.js";import"../../../features/LearningManagement/components/ToolTip.js";import"../../../features/LearningManagement/store/useAuthStore.js";import"date-fns";import"framer-motion";import l from"../../../features/IL-OTJ/ILOTJ.js";import"@mui/icons-material/Close";import"@radix-ui/react-tooltip";import"../../../features/LearningManagement/components/StationOnboarding/InputField.js";import"../../../features/LearningManagement/store/useConfigStore.js";import"../../../features/LearningManagement/store/useEnvStore.js";var p={order_rules:{enabled:!1,global_min_separation_seconds:0},advertiser_rules:{enabled:!1,global_min_separation_seconds:0},inventory_rules:{respect_inventory_code:!1},break_code_rules:{respect_break_code:!1},is_default_enabled:!1},u=[{label:"Global Scope",value:"global"},{label:"Genre Scope",value:"genre"},{label:"Custom Scope",value:"custom"}],c=["Tier 1","Tier 2"],d=function(){var d=r(!0),m=d[0],f=d[1],_=r(""),b=_[0],g=_[1],v=r(""),y=v[0],h=v[1],T=r({station:"",tiers:["Tier 1"]}),k=T[0],w=T[1],L=r([]),C=L[0],I=L[1],A=r([]),S=A[0],j=A[1],M=r(p),O=M[0],x=M[1],N=a(function(t,n){w(function(o){var r;return e(e({},o),((r={})[t]=n,r))})},[]),E=a(function(t,n){x(function(o){var r=e({},o);switch(t){case"order_rules":case"advertiser_rules":r[t]="boolean"==typeof n?e(e({},o[t]),{enabled:n}):{enabled:n.enabled,global_min_separation_seconds:n.global_min_separation_seconds};break;case"inventory_rules":r.inventory_rules={respect_inventory_code:"boolean"==typeof n?n:n.respect_inventory_code};break;case"break_code_rules":r.break_code_rules={respect_break_code:"boolean"==typeof n?n:n.respect_break_code};break;case"is_default_enabled":r.is_default_enabled="boolean"==typeof n?n:!!n}return r})},[]),J=function(e){e(function(e){return t(t([],e,!0),[{id:Date.now(),text:"",reasoning:""}],!1)})},W=function(e,t){e(function(e){return e.filter(function(e){return e.id!==t})})},D=function(t,n,o){t(function(t){return t.map(function(t){return String(t.id)===String(n)?e(e({},t),{text:o}):t})})},R=[e({key:"order_rules",label:"Order"},O.order_rules),e({key:"advertiser_rules",label:"Advertiser"},O.advertiser_rules)],B=[{key:"inventory_rules",label:"Inventory code",enabled:O.inventory_rules.respect_inventory_code},{key:"break_code_rules",label:"Break Code",enabled:O.break_code_rules.respect_break_code},{key:"is_default_enabled",label:"Default Variant",enabled:O.is_default_enabled}],G={"Separation rule":"I would want to add a separation rule","Max priority rule":"I would want to set a max priority rule","Break code matching":"I would want to add a break code matching rule","Inventory code matching":"I would want to add a inventory window matching rule","Enter a rule description":"I want to add a rule description","Tester Genie":"Loading prompt..."},H="<p><span>Hi! 👋 I'm your Instant Learning Concierge.</span>\n <span>How would you like to get started? You can select an option below or describe the rule you’d like to create.</span>\n ".concat(["Separation rule","Max priority rule","Break code matching","Inventory code matching","Enter a rule description","Tester Genie"].map(function(e){return'<button class="clickable-button" data-value="'.concat(G[e],'">').concat(e,"</button>")}).join(""),"</p>");return n(l,{open:m,closeFunction:function(){return f(!1)},chatAssistantName:"defaultAssistant",organizationName:"techolution",baseUrl:"https://devllmstudio.creativeworkspace.ai",baseWebsocketUrl:"wss://devllmstudio.creativeworkspace.ai/graphql",ThinkingBulbIconComponent:n(i,{}),customSections:n(o,{}),isUseNormalChat:!0,chatTitle:"Create New Learning",formTitle:"Learning Details",initialChatMessage:H,template:s.CreateRule,templateProps:{state:{title:b,description:y,scopeData:k,whenToApplyConditions:C,whenNotToApplyConditions:S,configData:O,citations:[],citation:{}},handlers:{onTitleChange:function(e){var t,n;return g(null!==(n=null===(t=null==e?void 0:e.target)||void 0===t?void 0:t.value)&&void 0!==n?n:e)},onDescriptionChange:function(e){var t,n;return h(null!==(n=null===(t=null==e?void 0:e.target)||void 0===t?void 0:t.value)&&void 0!==n?n:e)},onAddWhenToApply:function(){return J(I)},onRemoveWhenToApply:function(e){return W(I,e)},onEditWhenToApply:function(e,t){return D(I,e,t)},onAddWhenNotToApply:function(){return J(j)},onRemoveWhenNotToApply:function(e){return W(j,e)},onEditWhenNotToApply:function(e,t){return D(j,e,t)},onScopeChange:N,onConfigChange:E},uiState:{showScope:!0,showConfiguration:!1,titleLabel:"Main Rule Name",scopeLabel:"Define Scope",tierLabel:"Select Tier",descriptionLabel:"Learning Explanation",whenToApplyLabel:"Trigger Events (When to Apply)",whenNotToApplyLabel:"Exclusion Events (When NOT to Apply)",configLabel:"Advanced Settings",stationOptions:u,tierOptions:c,separationItems:R,toggles:B}}})};export{d as default};
|
|
2
|
-
//# sourceMappingURL=RadioTrafficLearningRenderer.js.map
|
package/dist/types/src/plugins/ValueTypes/RadioTrafficLearning/RadioTrafficLearningRenderer.d.ts
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
export interface ConditionItem {
|
|
3
|
-
id: number | string;
|
|
4
|
-
text: string;
|
|
5
|
-
reasoning?: string;
|
|
6
|
-
}
|
|
7
|
-
export interface ConfigDataType {
|
|
8
|
-
order_rules: {
|
|
9
|
-
enabled: boolean;
|
|
10
|
-
global_min_separation_seconds: number;
|
|
11
|
-
};
|
|
12
|
-
advertiser_rules: {
|
|
13
|
-
enabled: boolean;
|
|
14
|
-
global_min_separation_seconds: number;
|
|
15
|
-
};
|
|
16
|
-
inventory_rules: {
|
|
17
|
-
respect_inventory_code: boolean;
|
|
18
|
-
};
|
|
19
|
-
break_code_rules: {
|
|
20
|
-
respect_break_code: boolean;
|
|
21
|
-
};
|
|
22
|
-
is_default_enabled: boolean;
|
|
23
|
-
}
|
|
24
|
-
interface RadioTrafficLearningRendererProps {
|
|
25
|
-
}
|
|
26
|
-
declare const RadioTrafficLearningRenderer: React.FC<RadioTrafficLearningRendererProps>;
|
|
27
|
-
export default RadioTrafficLearningRenderer;
|
|
28
|
-
//# sourceMappingURL=RadioTrafficLearningRenderer.d.ts.map
|
package/dist/types/src/plugins/ValueTypes/RadioTrafficLearning/RadioTrafficLearningRenderer.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"RadioTrafficLearningRenderer.d.ts","sourceRoot":"","sources":["../../../../../../src/plugins/ValueTypes/RadioTrafficLearning/RadioTrafficLearningRenderer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAgC,MAAM,OAAO,CAAC;AAOrD,MAAM,WAAW,aAAa;IAC1B,EAAE,EAAE,MAAM,GAAG,MAAM,CAAC;IACpB,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,cAAc;IAC3B,WAAW,EAAE;QAAE,OAAO,EAAE,OAAO,CAAC;QAAC,6BAA6B,EAAE,MAAM,CAAA;KAAE,CAAC;IACzE,gBAAgB,EAAE;QAAE,OAAO,EAAE,OAAO,CAAC;QAAC,6BAA6B,EAAE,MAAM,CAAA;KAAE,CAAC;IAC9E,eAAe,EAAE;QAAE,sBAAsB,EAAE,OAAO,CAAA;KAAE,CAAC;IACrD,gBAAgB,EAAE;QAAE,kBAAkB,EAAE,OAAO,CAAA;KAAE,CAAC;IAClD,kBAAkB,EAAE,OAAO,CAAC;CAC/B;AAkBD,UAAU,iCAAiC;CAE1C;AAED,QAAA,MAAM,4BAA4B,EAAE,KAAK,CAAC,EAAE,CAAC,iCAAiC,CAgJ7E,CAAC;AAEF,eAAe,4BAA4B,CAAC"}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/dist/types/src/plugins/{ValueTypes → valueTypes}/Category/CategoryTeachMeRenderer.d.ts
RENAMED
|
File without changes
|
/package/dist/types/src/plugins/{ValueTypes → valueTypes}/Category/CategoryTeachMeRenderer.d.ts.map
RENAMED
|
File without changes
|
/package/dist/types/src/plugins/{ValueTypes → valueTypes}/Default/DefaultTeachMeRenderer.d.ts
RENAMED
|
File without changes
|
/package/dist/types/src/plugins/{ValueTypes → valueTypes}/Default/DefaultTeachMeRenderer.d.ts.map
RENAMED
|
File without changes
|
/package/dist/types/src/plugins/{ValueTypes → valueTypes}/Guidelines/GuidelinesTeachMeRenderer.d.ts
RENAMED
|
File without changes
|
|
File without changes
|