@digipair/skill-web-chatbot 0.32.6 → 0.33.0
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 +16 -3
- package/index.esm2.js +16 -3
- package/libs/engine/src/lib/alias.interface.d.ts +9 -0
- package/libs/engine/src/lib/engine.d.ts +1 -1
- package/package.json +1 -1
- package/schema.en.json +0 -89
package/index.cjs2.js
CHANGED
|
@@ -56496,7 +56496,8 @@ const globalInstance = typeof window === 'undefined' ? global : window;
|
|
|
56496
56496
|
var _globalInstance___DIGIPAIR_CONFIG__;
|
|
56497
56497
|
const _config$1 = globalInstance.__DIGIPAIR_CONFIG__ = (_globalInstance___DIGIPAIR_CONFIG__ = globalInstance.__DIGIPAIR_CONFIG__) != null ? _globalInstance___DIGIPAIR_CONFIG__ : {
|
|
56498
56498
|
LIBRARIES: {},
|
|
56499
|
-
BASE_URL: 'https://cdn.jsdelivr.net/npm'
|
|
56499
|
+
BASE_URL: 'https://cdn.jsdelivr.net/npm',
|
|
56500
|
+
ALIAS: []
|
|
56500
56501
|
};
|
|
56501
56502
|
const isRemoteVersion = /^https?:\/\/[^\s/$.?#].[^\s]*$/;
|
|
56502
56503
|
const isPinsSettings = (value)=>{
|
|
@@ -56538,7 +56539,13 @@ const applyTemplate = (value, context)=>{
|
|
|
56538
56539
|
};
|
|
56539
56540
|
const executePins = async (settingsOrigin, context = {})=>{
|
|
56540
56541
|
var _settings_conditions, _settings_conditions1;
|
|
56541
|
-
|
|
56542
|
+
let settings = await preparePinsSettings(settingsOrigin, context);
|
|
56543
|
+
const alias = _config$1.ALIAS.find((alias)=>settings.library.split(':')[0] === alias.name);
|
|
56544
|
+
if (alias) {
|
|
56545
|
+
settings = await preparePinsSettings(_extends({}, settings, alias), {
|
|
56546
|
+
settings
|
|
56547
|
+
});
|
|
56548
|
+
}
|
|
56542
56549
|
if ((_settings_conditions = settings.conditions) == null ? void 0 : _settings_conditions.each) {
|
|
56543
56550
|
const results = [];
|
|
56544
56551
|
for(let index = 0; index < settings.conditions.each.length; index++){
|
|
@@ -56611,7 +56618,13 @@ const executePinsList = async (pinsSettingsList, context)=>{
|
|
|
56611
56618
|
};
|
|
56612
56619
|
const generateElementFromPins = async (pinsSettings, parent, context)=>{
|
|
56613
56620
|
var _settings_conditions, _settings_conditions1;
|
|
56614
|
-
|
|
56621
|
+
let settings = await preparePinsSettings(pinsSettings, context);
|
|
56622
|
+
const alias = _config$1.ALIAS.find((alias)=>settings.library.split(':')[0] === alias.name);
|
|
56623
|
+
if (alias) {
|
|
56624
|
+
settings = await preparePinsSettings(_extends({}, settings, alias), {
|
|
56625
|
+
settings
|
|
56626
|
+
});
|
|
56627
|
+
}
|
|
56615
56628
|
if ((_settings_conditions = settings.conditions) == null ? void 0 : _settings_conditions.each) {
|
|
56616
56629
|
for(let index = 0; index < settings.conditions.each.length; index++){
|
|
56617
56630
|
const item = settings.conditions.each[index];
|
package/index.esm2.js
CHANGED
|
@@ -56476,7 +56476,8 @@ const globalInstance = typeof window === 'undefined' ? global : window;
|
|
|
56476
56476
|
var _globalInstance___DIGIPAIR_CONFIG__;
|
|
56477
56477
|
const _config$1 = globalInstance.__DIGIPAIR_CONFIG__ = (_globalInstance___DIGIPAIR_CONFIG__ = globalInstance.__DIGIPAIR_CONFIG__) != null ? _globalInstance___DIGIPAIR_CONFIG__ : {
|
|
56478
56478
|
LIBRARIES: {},
|
|
56479
|
-
BASE_URL: 'https://cdn.jsdelivr.net/npm'
|
|
56479
|
+
BASE_URL: 'https://cdn.jsdelivr.net/npm',
|
|
56480
|
+
ALIAS: []
|
|
56480
56481
|
};
|
|
56481
56482
|
const isRemoteVersion = /^https?:\/\/[^\s/$.?#].[^\s]*$/;
|
|
56482
56483
|
const isPinsSettings = (value)=>{
|
|
@@ -56518,7 +56519,13 @@ const applyTemplate = (value, context)=>{
|
|
|
56518
56519
|
};
|
|
56519
56520
|
const executePins = async (settingsOrigin, context = {})=>{
|
|
56520
56521
|
var _settings_conditions, _settings_conditions1;
|
|
56521
|
-
|
|
56522
|
+
let settings = await preparePinsSettings(settingsOrigin, context);
|
|
56523
|
+
const alias = _config$1.ALIAS.find((alias)=>settings.library.split(':')[0] === alias.name);
|
|
56524
|
+
if (alias) {
|
|
56525
|
+
settings = await preparePinsSettings(_extends({}, settings, alias), {
|
|
56526
|
+
settings
|
|
56527
|
+
});
|
|
56528
|
+
}
|
|
56522
56529
|
if ((_settings_conditions = settings.conditions) == null ? void 0 : _settings_conditions.each) {
|
|
56523
56530
|
const results = [];
|
|
56524
56531
|
for(let index = 0; index < settings.conditions.each.length; index++){
|
|
@@ -56591,7 +56598,13 @@ const executePinsList = async (pinsSettingsList, context)=>{
|
|
|
56591
56598
|
};
|
|
56592
56599
|
const generateElementFromPins = async (pinsSettings, parent, context)=>{
|
|
56593
56600
|
var _settings_conditions, _settings_conditions1;
|
|
56594
|
-
|
|
56601
|
+
let settings = await preparePinsSettings(pinsSettings, context);
|
|
56602
|
+
const alias = _config$1.ALIAS.find((alias)=>settings.library.split(':')[0] === alias.name);
|
|
56603
|
+
if (alias) {
|
|
56604
|
+
settings = await preparePinsSettings(_extends({}, settings, alias), {
|
|
56605
|
+
settings
|
|
56606
|
+
});
|
|
56607
|
+
}
|
|
56595
56608
|
if ((_settings_conditions = settings.conditions) == null ? void 0 : _settings_conditions.each) {
|
|
56596
56609
|
for(let index = 0; index < settings.conditions.each.length; index++){
|
|
56597
56610
|
const item = settings.conditions.each[index];
|
package/package.json
CHANGED
package/schema.en.json
DELETED
|
@@ -1,89 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"openapi": "3.0.0",
|
|
3
|
-
"info": {
|
|
4
|
-
"title": "@digipair/skill-web-chatbot",
|
|
5
|
-
"summary": "Display of chatbots",
|
|
6
|
-
"description": "Integration of an interactive chatbot on a web page to enhance engagement and communication with users.",
|
|
7
|
-
"version": "0.1.0",
|
|
8
|
-
"x-icon": "🤖"
|
|
9
|
-
},
|
|
10
|
-
"paths": {
|
|
11
|
-
"/digipair-chatbot-full": {
|
|
12
|
-
"post": {
|
|
13
|
-
"tags": ["web"],
|
|
14
|
-
"summary": "Full-page chatbot",
|
|
15
|
-
"description": "Displays a conversation with a chatbot in full-page mode",
|
|
16
|
-
"parameters": [
|
|
17
|
-
{
|
|
18
|
-
"name": "code",
|
|
19
|
-
"summary": "Digipair",
|
|
20
|
-
"required": true,
|
|
21
|
-
"description": "Digipair to display",
|
|
22
|
-
"schema": {
|
|
23
|
-
"type": "string"
|
|
24
|
-
}
|
|
25
|
-
},
|
|
26
|
-
{
|
|
27
|
-
"name": "apiUrl",
|
|
28
|
-
"summary": "Factory address",
|
|
29
|
-
"required": false,
|
|
30
|
-
"description": "URL address of the factory",
|
|
31
|
-
"schema": {
|
|
32
|
-
"type": "string"
|
|
33
|
-
}
|
|
34
|
-
},
|
|
35
|
-
{
|
|
36
|
-
"name": "userId",
|
|
37
|
-
"summary": "User ID",
|
|
38
|
-
"required": false,
|
|
39
|
-
"description": "Unique identifier of the user",
|
|
40
|
-
"schema": {
|
|
41
|
-
"type": "string"
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
],
|
|
45
|
-
"x-events": []
|
|
46
|
-
}
|
|
47
|
-
},
|
|
48
|
-
"/digipair-chatbot": {
|
|
49
|
-
"post": {
|
|
50
|
-
"tags": ["web"],
|
|
51
|
-
"summary": "Chatbot",
|
|
52
|
-
"description": "Displays a chatbot on a web page",
|
|
53
|
-
"parameters": [
|
|
54
|
-
{
|
|
55
|
-
"name": "code",
|
|
56
|
-
"summary": "Digipair",
|
|
57
|
-
"required": true,
|
|
58
|
-
"description": "Digipair to display",
|
|
59
|
-
"schema": {
|
|
60
|
-
"type": "string"
|
|
61
|
-
}
|
|
62
|
-
},
|
|
63
|
-
{
|
|
64
|
-
"name": "apiUrl",
|
|
65
|
-
"summary": "Factory address",
|
|
66
|
-
"required": false,
|
|
67
|
-
"description": "URL address of the factory",
|
|
68
|
-
"schema": {
|
|
69
|
-
"type": "string"
|
|
70
|
-
}
|
|
71
|
-
},
|
|
72
|
-
{
|
|
73
|
-
"name": "userId",
|
|
74
|
-
"summary": "User ID",
|
|
75
|
-
"required": false,
|
|
76
|
-
"description": "Unique identifier of the user",
|
|
77
|
-
"schema": {
|
|
78
|
-
"type": "string"
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
],
|
|
82
|
-
"x-events": []
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
},
|
|
86
|
-
"components": {
|
|
87
|
-
"schemas": {}
|
|
88
|
-
}
|
|
89
|
-
}
|