@digipair/skill-web-chatbot 0.8.7 → 0.8.9

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/index.cjs2.js CHANGED
@@ -55722,10 +55722,7 @@ const _config$1 = globalInstance.__DIGIPAIR_CONFIG__ = (_globalInstance___DIGIPA
55722
55722
  };
55723
55723
  const config$1 = {
55724
55724
  set: (key, value)=>{
55725
- _config$1[key] = key === 'LIBRARIES' && _config$1[key] ? [
55726
- ..._config$1[key],
55727
- ...value
55728
- ] : value;
55725
+ _config$1[key] = key === 'LIBRARIES' && _config$1[key] ? _extends({}, _config$1[key], value) : value;
55729
55726
  }
55730
55727
  };
55731
55728
  const applyTemplate = (value, context)=>{
@@ -57929,7 +57926,9 @@ class ChatbotElement extends s$3 {
57929
57926
  text: boost.text
57930
57927
  }
57931
57928
  });
57932
- const detail = await executePins(pins);
57929
+ const detail = await executePinsList([
57930
+ pins
57931
+ ]);
57933
57932
  this.pushAssistantMessage(detail.assistant);
57934
57933
  if (detail.command && detail.command.length > 0) {
57935
57934
  executePinsList(detail.command, {});
@@ -58368,10 +58367,14 @@ class DigipairFullElement extends s$3 {
58368
58367
  text: boost.text
58369
58368
  }
58370
58369
  });
58371
- const detail = await executePins(pins);
58370
+ const detail = await executePinsList([
58371
+ pins
58372
+ ]);
58372
58373
  this.pushAssistantMessage(detail.assistant);
58373
58374
  if (detail.command && detail.command.library && detail.command.element) {
58374
- executePins(detail.command, {});
58375
+ executePinsList([
58376
+ detail.command
58377
+ ], {});
58375
58378
  }
58376
58379
  } catch (error) {
58377
58380
  this.pushAssistantMessage('Oops...');
package/index.esm2.js CHANGED
@@ -51862,14 +51862,14 @@ function indent(str, spaces) {
51862
51862
  var match = parseIdentifier(input, i1, namePart) || namePart && parseAdditionalSymbol(input, i1) || maybeSpace && parseSpaces(input, i1);
51863
51863
  // match is required
51864
51864
  if (!match) {
51865
- return nextMatch = nextMatch1, tokens = tokens1, i = i1, {
51865
+ return i = i1, tokens = tokens1, nextMatch = nextMatch1, {
51866
51866
  v: nextMatch1
51867
51867
  };
51868
51868
  }
51869
51869
  var token = match.token, offset = match.offset;
51870
51870
  i1 += offset;
51871
51871
  if (token === " ") {
51872
- return nextMatch = nextMatch1, tokens = tokens1, i = i1, "continue";
51872
+ return i = i1, tokens = tokens1, nextMatch = nextMatch1, "continue";
51873
51873
  }
51874
51874
  tokens1 = _to_consumable_array$9(tokens1).concat([
51875
51875
  token
@@ -51888,7 +51888,7 @@ function indent(str, spaces) {
51888
51888
  if (contextKeys.some(function(el) {
51889
51889
  return el.startsWith(name);
51890
51890
  })) {
51891
- return nextMatch = nextMatch1, tokens = tokens1, i = i1, "continue";
51891
+ return i = i1, tokens = tokens1, nextMatch = nextMatch1, "continue";
51892
51892
  }
51893
51893
  if (dateTimeIdentifiers.some(function(el) {
51894
51894
  return el === name;
@@ -51907,9 +51907,9 @@ function indent(str, spaces) {
51907
51907
  if (dateTimeIdentifiers.some(function(el) {
51908
51908
  return el.startsWith(name);
51909
51909
  })) {
51910
- return nextMatch = nextMatch1, tokens = tokens1, i = i1, "continue";
51910
+ return i = i1, tokens = tokens1, nextMatch = nextMatch1, "continue";
51911
51911
  }
51912
- return nextMatch = nextMatch1, tokens = tokens1, i = i1, {
51912
+ return i = i1, tokens = tokens1, nextMatch = nextMatch1, {
51913
51913
  v: nextMatch1
51914
51914
  };
51915
51915
  };
@@ -55702,10 +55702,7 @@ const _config$1 = globalInstance.__DIGIPAIR_CONFIG__ = (_globalInstance___DIGIPA
55702
55702
  };
55703
55703
  const config$1 = {
55704
55704
  set: (key, value)=>{
55705
- _config$1[key] = key === 'LIBRARIES' && _config$1[key] ? [
55706
- ..._config$1[key],
55707
- ...value
55708
- ] : value;
55705
+ _config$1[key] = key === 'LIBRARIES' && _config$1[key] ? _extends({}, _config$1[key], value) : value;
55709
55706
  }
55710
55707
  };
55711
55708
  const applyTemplate = (value, context)=>{
@@ -57909,7 +57906,9 @@ class ChatbotElement extends s$3 {
57909
57906
  text: boost.text
57910
57907
  }
57911
57908
  });
57912
- const detail = await executePins(pins);
57909
+ const detail = await executePinsList([
57910
+ pins
57911
+ ]);
57913
57912
  this.pushAssistantMessage(detail.assistant);
57914
57913
  if (detail.command && detail.command.length > 0) {
57915
57914
  executePinsList(detail.command, {});
@@ -58348,10 +58347,14 @@ class DigipairFullElement extends s$3 {
58348
58347
  text: boost.text
58349
58348
  }
58350
58349
  });
58351
- const detail = await executePins(pins);
58350
+ const detail = await executePinsList([
58351
+ pins
58352
+ ]);
58352
58353
  this.pushAssistantMessage(detail.assistant);
58353
58354
  if (detail.command && detail.command.library && detail.command.element) {
58354
- executePins(detail.command, {});
58355
+ executePinsList([
58356
+ detail.command
58357
+ ], {});
58355
58358
  }
58356
58359
  } catch (error) {
58357
58360
  this.pushAssistantMessage('Oops...');
@@ -4,11 +4,6 @@ export declare const config: {
4
4
  set: (key: CONFIG_KEY, value: any) => void;
5
5
  };
6
6
  export declare const applyTemplate: (value: any, context: any) => any;
7
- export declare const executePins: (settingsOrigin: PinsSettings, context?: any, options?: {
8
- libraries: {
9
- [key: string]: string;
10
- };
11
- }) => Promise<any>;
12
7
  export declare const executePinsList: (pinsSettingsList: PinsSettings[], context: any, options?: {
13
8
  libraries: {
14
9
  [key: string]: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digipair/skill-web-chatbot",
3
- "version": "0.8.7",
3
+ "version": "0.8.9",
4
4
  "dependencies": {},
5
5
  "typings": "./index.d.ts",
6
6
  "main": "./index.cjs.js",