@learncard/lca-api-plugin 1.2.23 → 2.0.1
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/lca-api-plugin.cjs.development.cjs +9 -4
- package/dist/lca-api-plugin.cjs.development.cjs.map +2 -2
- package/dist/lca-api-plugin.cjs.production.min.cjs +4 -4
- package/dist/lca-api-plugin.cjs.production.min.cjs.map +3 -3
- package/dist/lca-api-plugin.esm.js +9 -4
- package/dist/lca-api-plugin.esm.js.map +2 -2
- package/dist/test/plugin-mode.test.d.ts +1 -0
- package/dist/types.d.ts +19 -6
- package/package.json +10 -14
- package/src/plugin.ts +7 -2
- package/src/test/plugin-mode.test.ts +41 -0
- package/src/types.ts +10 -4
|
@@ -15065,8 +15065,8 @@ var SigningAuthorityValidator = external_exports.object({
|
|
|
15065
15065
|
_id: external_exports.string().optional(),
|
|
15066
15066
|
ownerDid: external_exports.string(),
|
|
15067
15067
|
name: external_exports.string(),
|
|
15068
|
-
did: external_exports.string()
|
|
15069
|
-
endpoint: external_exports.string()
|
|
15068
|
+
did: external_exports.string(),
|
|
15069
|
+
endpoint: external_exports.string()
|
|
15070
15070
|
});
|
|
15071
15071
|
var NotificationActionStatusEnumValidator = external_exports.enum(["PENDING", "COMPLETED", "REJECTED"]);
|
|
15072
15072
|
var NotificationMetaValidator = external_exports.object({
|
|
@@ -15273,6 +15273,7 @@ var getLCAPlugin = /* @__PURE__ */ __name(async (initialLearnCard, url2, useCust
|
|
|
15273
15273
|
});
|
|
15274
15274
|
return {
|
|
15275
15275
|
name: "LearnCard App",
|
|
15276
|
+
isOffline: false,
|
|
15276
15277
|
displayName: "LearnCard App Plugin",
|
|
15277
15278
|
description: "Adds bespoke logic to the LearnCard App.",
|
|
15278
15279
|
methods: {
|
|
@@ -15349,10 +15350,13 @@ var getLCAPlugin = /* @__PURE__ */ __name(async (initialLearnCard, url2, useCust
|
|
|
15349
15350
|
client = await getNewClient(url2, _learnCard);
|
|
15350
15351
|
learnCard = _learnCard;
|
|
15351
15352
|
}, "resetLCAClient"),
|
|
15352
|
-
generateBoostInfo: /* @__PURE__ */ __name(async (_learnCard, description) => {
|
|
15353
|
+
generateBoostInfo: /* @__PURE__ */ __name(async (_learnCard, description, locale) => {
|
|
15353
15354
|
await initialized;
|
|
15354
15355
|
await updateLearnCard(_learnCard);
|
|
15355
|
-
const result = await client.ai.generateBoostInfo.query({
|
|
15356
|
+
const result = await client.ai.generateBoostInfo.query({
|
|
15357
|
+
description,
|
|
15358
|
+
locale
|
|
15359
|
+
});
|
|
15356
15360
|
return {
|
|
15357
15361
|
title: result.title,
|
|
15358
15362
|
description: result.description,
|
|
@@ -15603,6 +15607,7 @@ var getLCAPlugin = /* @__PURE__ */ __name(async (initialLearnCard, url2, useCust
|
|
|
15603
15607
|
);
|
|
15604
15608
|
return {
|
|
15605
15609
|
name: "LearnCard App",
|
|
15610
|
+
isOffline: true,
|
|
15606
15611
|
displayName: "LearnCard App Plugin (Offline)",
|
|
15607
15612
|
description: "Adds bespoke logic to the LearnCard App. (Unable to connect to LCA API)",
|
|
15608
15613
|
methods: {
|