@e-llm-studio/instant-learning 1.3.0-alpha.17 → 1.3.0-alpha.18
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
CHANGED
|
@@ -1,31 +1,72 @@
|
|
|
1
1
|
# Instant Learning Library
|
|
2
2
|
|
|
3
|
-
Alpha Release Commands -
|
|
4
3
|
|
|
5
|
-
|
|
4
|
+
## Changelog
|
|
6
5
|
|
|
7
|
-
|
|
6
|
+
### 1.3.0-alpha.18 -2026, June 6th
|
|
7
|
+
Patch Fix: Removal of underscore for all labels
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
### 1.3.0-alpha.17 -2026, June 6th
|
|
10
|
+
**Without BackwardCompatibiltity Support**
|
|
11
|
+
- **TeachMe Renderer**: Added valuetype json support to render teachMe popup and create rule from the same
|
|
10
12
|
|
|
11
|
-
|
|
13
|
+
- **Learning Management Renderer**: Added valuetype json support to render Learning Management Screen and create rule from the same
|
|
14
|
+
**Configurable UI via `dt()`**
|
|
12
15
|
|
|
13
|
-
|
|
16
|
+
The LMS UI is driven by a remote JSON config loaded per `appIntegrationId`. Every label, button text, and dialog copy is resolved at runtime through the `dt()` helper instead of being hardcoded. This lets different integrations display different copy without code changes.
|
|
17
|
+
`dt()` — read a config value anywhere
|
|
14
18
|
|
|
15
|
-
|
|
19
|
+
```ts
|
|
20
|
+
function dt(
|
|
21
|
+
path: string, // dot-notation key into LMSConfig
|
|
22
|
+
fallback?: string, // returned when key is missing
|
|
23
|
+
params?: Record<string, string | number> // fills {placeholder} tokens in the value
|
|
24
|
+
): string
|
|
25
|
+
```
|
|
16
26
|
|
|
17
|
-
|
|
27
|
+
- Reads directly from the Zustand store (no hook — works outside React components).
|
|
28
|
+
- Returns `fallback ?? path` when the key is not found or config is not loaded.
|
|
29
|
+
|
|
30
|
+
**Examples:**
|
|
31
|
+
|
|
32
|
+
```ts
|
|
33
|
+
dt('pageTitle')
|
|
34
|
+
// → value of lmsConfig.pageTitle
|
|
35
|
+
|
|
36
|
+
dt('middleDrawer.addScope', 'Add Scope')
|
|
37
|
+
// → config value or fallback 'Add Scope'
|
|
38
|
+
|
|
39
|
+
dt('learnings.tier.deleteDialog.title', 'Delete {N} learnings', { N: 3 })
|
|
40
|
+
// → "Delete 3 learnings" (placeholder replaced)
|
|
41
|
+
|
|
42
|
+
dt('learnings.tier.learning.approveDialog.desc', undefined, { variant_name: 'Rule A' })
|
|
43
|
+
// → config string with {variant_name} replaced by "Rule A"
|
|
44
|
+
```
|
|
18
45
|
|
|
19
|
-
### 1.3.0-alpha.16
|
|
46
|
+
### 1.3.0-alpha.16 -2026, June 5th
|
|
20
47
|
- **Scope Management**: Added appIntegrationId support to scope creation and deletion flows in AddScopeModal and related API endpoints
|
|
21
48
|
- **Override History**: Included appIntegrationId when fetching override history to ensure correct integration context
|
|
22
49
|
- **Rule Retrieval**: Added appIntegrationId support when fetching rules by ruleId
|
|
23
50
|
- **Scope Deletion**: Fixed deletion logic for station scopes so that associated stations are correctly removed when type = station
|
|
24
51
|
|
|
25
|
-
### 1.3.0-alpha.15-
|
|
52
|
+
### 1.3.0-alpha.15 -2026, June 5th
|
|
26
53
|
- **Teach Me Renderer**: Modified default Teach Me renderer — switched from generic renderer to Radio Traffic value type renderer to support rule creation flow
|
|
27
54
|
|
|
28
|
-
### 1.3.0-alpha.14
|
|
55
|
+
### 1.3.0-alpha.14 -2026, June 5th
|
|
29
56
|
- **IL Mode - Scope Creation**: `parentScopeId` now correctly receives the parent scope's ID (global ID) when creating a new scope from a child node, instead of always being `null`
|
|
30
57
|
- **Auth Fallback**: Added optional chaining (`?.`) on `userDetails.accessToken` to prevent crashes on reload
|
|
31
|
-
- **Access Section**: Fixed logic that was hiding the Access section — it is now always visible regardless of `backwardCompatibility` flag
|
|
58
|
+
- **Access Section**: Fixed logic that was hiding the Access section — it is now always visible regardless of `backwardCompatibility` flag
|
|
59
|
+
|
|
60
|
+
---
|
|
61
|
+
|
|
62
|
+
## Alpha Release Commands -
|
|
63
|
+
|
|
64
|
+
1. npm version prerelease --preid=alpha
|
|
65
|
+
|
|
66
|
+
becomes 0.0.0-alpha.0
|
|
67
|
+
|
|
68
|
+
2. run this again to bump it : npm version prerelease --preid=alpha
|
|
69
|
+
|
|
70
|
+
3. during publish : npm publish --tag alpha
|
|
71
|
+
|
|
72
|
+
4. installation : npm install @e-llm-studio/instant-learning@0.1.0-alpha.1
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("zustand"),t={pageTitle:"",middleDrawer:{scope:"",addScope:"",addSubScope:"",addScopeDialog:{title:"",subtitle:"",scopeName:"",learningApprovalSettings:{title:"",approvalRequired:{title:"",subtitle:""},publishWithoutApproval:{title:"",subtitle:""}},submitButton:"",cancel:""},treeMenu:{search:"",submenu:{learnings:"",access:"",changeHistory:""},contextMenu:{addScope:"",rename:"",delete:"",addSubScope:""}}},learnings:{header:{title:"",exportButton:"",addNewLearningButton:""},tier:{showTierHeader:!0,tierHeader:"",subtitle:"",tierHeaderNoOfLearnings:"",deleteDialog:{title:"",description:"",cancel:"",submit:""},learning:{inheritance:"",actions:{disable:"",enable:"",approve:"",reject:"",delete:""},approveDialog:{title:"",desc:"",footer:"",cancel:"",approveLearning:""},rejectDialog:{title:"",desc:"",feedbackTitle:"",feedbackPlaceholder:"",deleteCheckboxLabel:"",cancel:"",rejectLearning:""},deleteDialog:{title:"",desc:"",warningText:"",cancelText:"",deleteText:""}}}}},n=e.create(function(e){return{lmsConfig:t,setLMSConfig:function(t){return e({lmsConfig:t})},clearLMSConfig:function(){return e({lmsConfig:t})}}});var r=e.create(function(e){return{teachMeConfig:null,setTeachMeConfig:function(t){return e({teachMeConfig:t})},clearTeachMeConfig:function(){return e({teachMeConfig:null})}}});exports.defaultLMSConfig=t,exports.dt=function(e,t,r){var i=n.getState().lmsConfig,o=e.split(".").reduce(function(e,t){return null==e?void 0:e[t]},i);return"string"!=typeof o?null!=t?t:e:
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("zustand"),t={pageTitle:"",middleDrawer:{scope:"",addScope:"",addSubScope:"",addScopeDialog:{title:"",subtitle:"",scopeName:"",learningApprovalSettings:{title:"",approvalRequired:{title:"",subtitle:""},publishWithoutApproval:{title:"",subtitle:""}},submitButton:"",cancel:""},treeMenu:{search:"",submenu:{learnings:"",access:"",changeHistory:""},contextMenu:{addScope:"",rename:"",delete:"",addSubScope:""}}},learnings:{header:{title:"",exportButton:"",addNewLearningButton:""},tier:{showTierHeader:!0,tierHeader:"",subtitle:"",tierHeaderNoOfLearnings:"",deleteDialog:{title:"",description:"",cancel:"",submit:""},learning:{inheritance:"",actions:{disable:"",enable:"",approve:"",reject:"",delete:""},approveDialog:{title:"",desc:"",footer:"",cancel:"",approveLearning:""},rejectDialog:{title:"",desc:"",feedbackTitle:"",feedbackPlaceholder:"",deleteCheckboxLabel:"",cancel:"",rejectLearning:""},deleteDialog:{title:"",desc:"",warningText:"",cancelText:"",deleteText:""}}}}},n=e.create(function(e){return{lmsConfig:t,setLMSConfig:function(t){return e({lmsConfig:t})},clearLMSConfig:function(){return e({lmsConfig:t})}}});var r=e.create(function(e){return{teachMeConfig:null,setTeachMeConfig:function(t){return e({teachMeConfig:t})},clearTeachMeConfig:function(){return e({teachMeConfig:null})}}});exports.defaultLMSConfig=t,exports.dt=function(e,t,r){var i=n.getState().lmsConfig,o=e.split(".").reduce(function(e,t){return null==e?void 0:e[t]},i);return"string"!=typeof o?null!=t?t:e:o.replace(/\{(\w+)\}/g,function(e,t){var n;return String(null!==(n=null==r?void 0:r[t])&&void 0!==n?n:"{".concat(t,"}"))})},exports.dtt=function(e,t,n){var i=r.getState().teachMeConfig,o=e.split(".").reduce(function(e,t){return null==e?void 0:e[t]},i);return"string"!=typeof o?null!=t?t:e:o.replace(/\{(\w+)\}/g,function(e,t){var r;return String(null!==(r=null==n?void 0:n[t])&&void 0!==r?r:"{".concat(t,"}"))})},exports.useLMSConfigStore=n,exports.useTeachMeConfigStore=r;
|
|
2
2
|
//# sourceMappingURL=useLMSConfigStore.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{create as e}from"zustand";var t={pageTitle:"",middleDrawer:{scope:"",addScope:"",addSubScope:"",addScopeDialog:{title:"",subtitle:"",scopeName:"",learningApprovalSettings:{title:"",approvalRequired:{title:"",subtitle:""},publishWithoutApproval:{title:"",subtitle:""}},submitButton:"",cancel:""},treeMenu:{search:"",submenu:{learnings:"",access:"",changeHistory:""},contextMenu:{addScope:"",rename:"",delete:"",addSubScope:""}}},learnings:{header:{title:"",exportButton:"",addNewLearningButton:""},tier:{showTierHeader:!0,tierHeader:"",subtitle:"",tierHeaderNoOfLearnings:"",deleteDialog:{title:"",description:"",cancel:"",submit:""},learning:{inheritance:"",actions:{disable:"",enable:"",approve:"",reject:"",delete:""},approveDialog:{title:"",desc:"",footer:"",cancel:"",approveLearning:""},rejectDialog:{title:"",desc:"",feedbackTitle:"",feedbackPlaceholder:"",deleteCheckboxLabel:"",cancel:"",rejectLearning:""},deleteDialog:{title:"",desc:"",warningText:"",cancelText:"",deleteText:""}}}}},n=e(function(e){return{lmsConfig:t,setLMSConfig:function(t){return e({lmsConfig:t})},clearLMSConfig:function(){return e({lmsConfig:t})}}});function i(e,t,i){var r=n.getState().lmsConfig,l=e.split(".").reduce(function(e,t){return null==e?void 0:e[t]},r);return"string"!=typeof l?null!=t?t:e:
|
|
1
|
+
import{create as e}from"zustand";var t={pageTitle:"",middleDrawer:{scope:"",addScope:"",addSubScope:"",addScopeDialog:{title:"",subtitle:"",scopeName:"",learningApprovalSettings:{title:"",approvalRequired:{title:"",subtitle:""},publishWithoutApproval:{title:"",subtitle:""}},submitButton:"",cancel:""},treeMenu:{search:"",submenu:{learnings:"",access:"",changeHistory:""},contextMenu:{addScope:"",rename:"",delete:"",addSubScope:""}}},learnings:{header:{title:"",exportButton:"",addNewLearningButton:""},tier:{showTierHeader:!0,tierHeader:"",subtitle:"",tierHeaderNoOfLearnings:"",deleteDialog:{title:"",description:"",cancel:"",submit:""},learning:{inheritance:"",actions:{disable:"",enable:"",approve:"",reject:"",delete:""},approveDialog:{title:"",desc:"",footer:"",cancel:"",approveLearning:""},rejectDialog:{title:"",desc:"",feedbackTitle:"",feedbackPlaceholder:"",deleteCheckboxLabel:"",cancel:"",rejectLearning:""},deleteDialog:{title:"",desc:"",warningText:"",cancelText:"",deleteText:""}}}}},n=e(function(e){return{lmsConfig:t,setLMSConfig:function(t){return e({lmsConfig:t})},clearLMSConfig:function(){return e({lmsConfig:t})}}});function i(e,t,i){var r=n.getState().lmsConfig,l=e.split(".").reduce(function(e,t){return null==e?void 0:e[t]},r);return"string"!=typeof l?null!=t?t:e:l.replace(/\{(\w+)\}/g,function(e,t){var n;return String(null!==(n=null==i?void 0:i[t])&&void 0!==n?n:"{".concat(t,"}"))})}var r=e(function(e){return{teachMeConfig:null,setTeachMeConfig:function(t){return e({teachMeConfig:t})},clearTeachMeConfig:function(){return e({teachMeConfig:null})}}});function l(e,t,n){var i=r.getState().teachMeConfig,l=e.split(".").reduce(function(e,t){return null==e?void 0:e[t]},i);return"string"!=typeof l?null!=t?t:e:l.replace(/\{(\w+)\}/g,function(e,t){var i;return String(null!==(i=null==n?void 0:n[t])&&void 0!==i?i:"{".concat(t,"}"))})}export{t as defaultLMSConfig,i as dt,l as dtt,n as useLMSConfigStore,r as useTeachMeConfigStore};
|
|
2
2
|
//# sourceMappingURL=useLMSConfigStore.js.map
|