@digipair/skill-web-chatbot 0.8.8 → 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
@@ -51882,14 +51882,14 @@ function indent(str, spaces) {
51882
51882
  var match = parseIdentifier(input, i1, namePart) || namePart && parseAdditionalSymbol(input, i1) || maybeSpace && parseSpaces(input, i1);
51883
51883
  // match is required
51884
51884
  if (!match) {
51885
- return tokens = tokens1, i = i1, nextMatch = nextMatch1, {
51885
+ return tokens = tokens1, nextMatch = nextMatch1, i = i1, {
51886
51886
  v: nextMatch1
51887
51887
  };
51888
51888
  }
51889
51889
  var token = match.token, offset = match.offset;
51890
51890
  i1 += offset;
51891
51891
  if (token === " ") {
51892
- return tokens = tokens1, i = i1, nextMatch = nextMatch1, "continue";
51892
+ return tokens = tokens1, nextMatch = nextMatch1, i = i1, "continue";
51893
51893
  }
51894
51894
  tokens1 = _to_consumable_array$9(tokens1).concat([
51895
51895
  token
@@ -51908,7 +51908,7 @@ function indent(str, spaces) {
51908
51908
  if (contextKeys.some(function(el) {
51909
51909
  return el.startsWith(name);
51910
51910
  })) {
51911
- return tokens = tokens1, i = i1, nextMatch = nextMatch1, "continue";
51911
+ return tokens = tokens1, nextMatch = nextMatch1, i = i1, "continue";
51912
51912
  }
51913
51913
  if (dateTimeIdentifiers.some(function(el) {
51914
51914
  return el === name;
@@ -51927,9 +51927,9 @@ function indent(str, spaces) {
51927
51927
  if (dateTimeIdentifiers.some(function(el) {
51928
51928
  return el.startsWith(name);
51929
51929
  })) {
51930
- return tokens = tokens1, i = i1, nextMatch = nextMatch1, "continue";
51930
+ return tokens = tokens1, nextMatch = nextMatch1, i = i1, "continue";
51931
51931
  }
51932
- return tokens = tokens1, i = i1, nextMatch = nextMatch1, {
51932
+ return tokens = tokens1, nextMatch = nextMatch1, i = i1, {
51933
51933
  v: nextMatch1
51934
51934
  };
51935
51935
  };
@@ -57926,7 +57926,9 @@ class ChatbotElement extends s$3 {
57926
57926
  text: boost.text
57927
57927
  }
57928
57928
  });
57929
- const detail = await executePins(pins);
57929
+ const detail = await executePinsList([
57930
+ pins
57931
+ ]);
57930
57932
  this.pushAssistantMessage(detail.assistant);
57931
57933
  if (detail.command && detail.command.length > 0) {
57932
57934
  executePinsList(detail.command, {});
@@ -58365,10 +58367,14 @@ class DigipairFullElement extends s$3 {
58365
58367
  text: boost.text
58366
58368
  }
58367
58369
  });
58368
- const detail = await executePins(pins);
58370
+ const detail = await executePinsList([
58371
+ pins
58372
+ ]);
58369
58373
  this.pushAssistantMessage(detail.assistant);
58370
58374
  if (detail.command && detail.command.library && detail.command.element) {
58371
- executePins(detail.command, {});
58375
+ executePinsList([
58376
+ detail.command
58377
+ ], {});
58372
58378
  }
58373
58379
  } catch (error) {
58374
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 i = i1, nextMatch = nextMatch1, tokens = tokens1, {
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 i = i1, nextMatch = nextMatch1, tokens = tokens1, "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 i = i1, nextMatch = nextMatch1, tokens = tokens1, "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 i = i1, nextMatch = nextMatch1, tokens = tokens1, "continue";
51910
+ return i = i1, tokens = tokens1, nextMatch = nextMatch1, "continue";
51911
51911
  }
51912
- return i = i1, nextMatch = nextMatch1, tokens = tokens1, {
51912
+ return i = i1, tokens = tokens1, nextMatch = nextMatch1, {
51913
51913
  v: nextMatch1
51914
51914
  };
51915
51915
  };
@@ -57906,7 +57906,9 @@ class ChatbotElement extends s$3 {
57906
57906
  text: boost.text
57907
57907
  }
57908
57908
  });
57909
- const detail = await executePins(pins);
57909
+ const detail = await executePinsList([
57910
+ pins
57911
+ ]);
57910
57912
  this.pushAssistantMessage(detail.assistant);
57911
57913
  if (detail.command && detail.command.length > 0) {
57912
57914
  executePinsList(detail.command, {});
@@ -58345,10 +58347,14 @@ class DigipairFullElement extends s$3 {
58345
58347
  text: boost.text
58346
58348
  }
58347
58349
  });
58348
- const detail = await executePins(pins);
58350
+ const detail = await executePinsList([
58351
+ pins
58352
+ ]);
58349
58353
  this.pushAssistantMessage(detail.assistant);
58350
58354
  if (detail.command && detail.command.library && detail.command.element) {
58351
- executePins(detail.command, {});
58355
+ executePinsList([
58356
+ detail.command
58357
+ ], {});
58352
58358
  }
58353
58359
  } catch (error) {
58354
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.8",
3
+ "version": "0.8.9",
4
4
  "dependencies": {},
5
5
  "typings": "./index.d.ts",
6
6
  "main": "./index.cjs.js",