@learncard/lca-api-plugin 2.0.0 → 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 +5 -2
- 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 +5 -2
- package/dist/lca-api-plugin.esm.js.map +2 -2
- package/dist/types.d.ts +13 -3
- package/package.json +9 -13
- package/src/plugin.ts +5 -2
- package/src/test/plugin-mode.test.ts +4 -3
- package/src/types.ts +4 -1
|
@@ -15350,10 +15350,13 @@ var getLCAPlugin = /* @__PURE__ */ __name(async (initialLearnCard, url2, useCust
|
|
|
15350
15350
|
client = await getNewClient(url2, _learnCard);
|
|
15351
15351
|
learnCard = _learnCard;
|
|
15352
15352
|
}, "resetLCAClient"),
|
|
15353
|
-
generateBoostInfo: /* @__PURE__ */ __name(async (_learnCard, description) => {
|
|
15353
|
+
generateBoostInfo: /* @__PURE__ */ __name(async (_learnCard, description, locale) => {
|
|
15354
15354
|
await initialized;
|
|
15355
15355
|
await updateLearnCard(_learnCard);
|
|
15356
|
-
const result = await client.ai.generateBoostInfo.query({
|
|
15356
|
+
const result = await client.ai.generateBoostInfo.query({
|
|
15357
|
+
description,
|
|
15358
|
+
locale
|
|
15359
|
+
});
|
|
15357
15360
|
return {
|
|
15358
15361
|
title: result.title,
|
|
15359
15362
|
description: result.description,
|