@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
|
@@ -15026,8 +15026,8 @@ var SigningAuthorityValidator = external_exports.object({
|
|
|
15026
15026
|
_id: external_exports.string().optional(),
|
|
15027
15027
|
ownerDid: external_exports.string(),
|
|
15028
15028
|
name: external_exports.string(),
|
|
15029
|
-
did: external_exports.string()
|
|
15030
|
-
endpoint: external_exports.string()
|
|
15029
|
+
did: external_exports.string(),
|
|
15030
|
+
endpoint: external_exports.string()
|
|
15031
15031
|
});
|
|
15032
15032
|
var NotificationActionStatusEnumValidator = external_exports.enum(["PENDING", "COMPLETED", "REJECTED"]);
|
|
15033
15033
|
var NotificationMetaValidator = external_exports.object({
|
|
@@ -15234,6 +15234,7 @@ var getLCAPlugin = /* @__PURE__ */ __name(async (initialLearnCard, url2, useCust
|
|
|
15234
15234
|
});
|
|
15235
15235
|
return {
|
|
15236
15236
|
name: "LearnCard App",
|
|
15237
|
+
isOffline: false,
|
|
15237
15238
|
displayName: "LearnCard App Plugin",
|
|
15238
15239
|
description: "Adds bespoke logic to the LearnCard App.",
|
|
15239
15240
|
methods: {
|
|
@@ -15310,10 +15311,13 @@ var getLCAPlugin = /* @__PURE__ */ __name(async (initialLearnCard, url2, useCust
|
|
|
15310
15311
|
client = await getNewClient(url2, _learnCard);
|
|
15311
15312
|
learnCard = _learnCard;
|
|
15312
15313
|
}, "resetLCAClient"),
|
|
15313
|
-
generateBoostInfo: /* @__PURE__ */ __name(async (_learnCard, description) => {
|
|
15314
|
+
generateBoostInfo: /* @__PURE__ */ __name(async (_learnCard, description, locale) => {
|
|
15314
15315
|
await initialized;
|
|
15315
15316
|
await updateLearnCard(_learnCard);
|
|
15316
|
-
const result = await client.ai.generateBoostInfo.query({
|
|
15317
|
+
const result = await client.ai.generateBoostInfo.query({
|
|
15318
|
+
description,
|
|
15319
|
+
locale
|
|
15320
|
+
});
|
|
15317
15321
|
return {
|
|
15318
15322
|
title: result.title,
|
|
15319
15323
|
description: result.description,
|
|
@@ -15564,6 +15568,7 @@ var getLCAPlugin = /* @__PURE__ */ __name(async (initialLearnCard, url2, useCust
|
|
|
15564
15568
|
);
|
|
15565
15569
|
return {
|
|
15566
15570
|
name: "LearnCard App",
|
|
15571
|
+
isOffline: true,
|
|
15567
15572
|
displayName: "LearnCard App Plugin (Offline)",
|
|
15568
15573
|
description: "Adds bespoke logic to the LearnCard App. (Unable to connect to LCA API)",
|
|
15569
15574
|
methods: {
|