@telia-ace/knowledge-widget-types-grid 1.0.54-next.0 → 1.1.1-rc.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/create-params-13c11e30.js +1 -0
- package/create-params-4e652cc7.mjs +24 -0
- package/index-0d4037dc.js +1 -0
- package/index-2a0d3b27.mjs +75 -0
- package/index-2a67ee55.mjs +787 -0
- package/index-373df3a5.js +6 -0
- package/index-48abc5fd.js +1 -0
- package/index-5c9c2abf.mjs +883 -0
- package/index-6cc56345.js +9 -0
- package/index-6e1f4d54.js +1291 -0
- package/index-a87d669f.js +642 -0
- package/index-ddecdfc6.mjs +13 -0
- package/index-e3bba2b0.mjs +1704 -0
- package/index-ef4f44cd.mjs +76 -0
- package/index-f35c9d50.js +1 -0
- package/index-f6d7c0ea.mjs +11776 -0
- package/index.js +1 -0
- package/index.mjs +18 -0
- package/package.json +14 -25
- package/render-8a105395.js +1 -0
- package/render-e917ce7f.mjs +51 -0
- package/unmount-063d8ea3.mjs +5 -0
- package/unmount-481ce5a7.js +1 -0
- package/{dist/widget → widget}/services.d.ts +1 -1
- package/LICENSE.txt +0 -6
- package/README.md +0 -4
- package/dist/index.js +0 -20
- package/dist/index.js.map +0 -1
- /package/{dist/index.d.ts → index.d.ts} +0 -0
- /package/{dist/widget → widget}/extended-widget.d.ts +0 -0
- /package/{dist/widget → widget}/index.d.ts +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";function b(a={}){const{phrase:f="",category:e,guideCategory:i,contactCategory:o,take:c,connectionKey:d,accordion:g,id:p,uriName:s,sorting:u,tag:r,tagId:n,tagTitle:l,...m}=a,t={};return Object.keys(m).forEach(y=>{typeof a[y]=="string"&&(t[y]=a[y])}),typeof f=="string"&&f.length&&(t.phrase=f),f===null&&(t.phrase=f),typeof i=="string"&&i!=="0"&&(t.guideCategory=i),typeof i=="number"&&i!==0&&(t.guideCategory=i),typeof i=="object"&&i!==null&&(typeof i.id=="string"&&i.id!=="0"&&(t.guideCategory=i.id),typeof i.id=="number"&&i.id!==0&&(t.guideCategory=i.id)),typeof o=="string"&&o!=="0"&&(t.contactCategory=o),typeof o=="number"&&o!==0&&(t.contactCategory=o),typeof o=="object"&&o!==null&&(typeof o.id=="string"&&o.id!=="0"&&(t.contactCategory=o.id),typeof o.id=="number"&&o.id!==0&&(t.contactCategory=o.id)),typeof e=="string"&&e!=="0"&&(t.category=e),typeof e=="number"&&e!==0&&(t.category=e),typeof e=="object"&&e!==null&&(typeof e.id=="string"&&e.id!=="0"&&(t.category=e.id),typeof e.id=="number"&&e.id!==0&&(t.category=e.id)),p&&(t.id=p),s&&(+t.category||+t.guideCategory||+t.guide||+t.contactCategory||+t.contactMethod)&&(t.uriName=s),d&&(t.connectionKey=d),c&&(t.take=c),u&&(t.sorting=u),typeof g=="string"&&g.length>0&&(t.accordion=g),typeof r=="string"&&r!=="0"&&(t.tag=r),typeof r=="number"&&r!==0&&(t.tag=r),Array.isArray(r)&&r.length&&(t.tag=r),(typeof n=="string"||typeof n=="number")&&(t.tagId=n),typeof l=="string"&&(t.tagTitle=l),typeof t.tag=="string"&&(t.tag=t.tag.split(",")),t}exports.createParams=b;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
function m(a = {}) {
|
|
2
|
+
const {
|
|
3
|
+
phrase: f = "",
|
|
4
|
+
category: e,
|
|
5
|
+
guideCategory: i,
|
|
6
|
+
contactCategory: o,
|
|
7
|
+
take: c,
|
|
8
|
+
connectionKey: d,
|
|
9
|
+
accordion: g,
|
|
10
|
+
id: p,
|
|
11
|
+
uriName: s,
|
|
12
|
+
sorting: u,
|
|
13
|
+
tag: r,
|
|
14
|
+
tagId: n,
|
|
15
|
+
tagTitle: l,
|
|
16
|
+
...b
|
|
17
|
+
} = a, t = {};
|
|
18
|
+
return Object.keys(b).forEach((y) => {
|
|
19
|
+
typeof a[y] == "string" && (t[y] = a[y]);
|
|
20
|
+
}), typeof f == "string" && f.length && (t.phrase = f), f === null && (t.phrase = f), typeof i == "string" && i !== "0" && (t.guideCategory = i), typeof i == "number" && i !== 0 && (t.guideCategory = i), typeof i == "object" && i !== null && (typeof i.id == "string" && i.id !== "0" && (t.guideCategory = i.id), typeof i.id == "number" && i.id !== 0 && (t.guideCategory = i.id)), typeof o == "string" && o !== "0" && (t.contactCategory = o), typeof o == "number" && o !== 0 && (t.contactCategory = o), typeof o == "object" && o !== null && (typeof o.id == "string" && o.id !== "0" && (t.contactCategory = o.id), typeof o.id == "number" && o.id !== 0 && (t.contactCategory = o.id)), typeof e == "string" && e !== "0" && (t.category = e), typeof e == "number" && e !== 0 && (t.category = e), typeof e == "object" && e !== null && (typeof e.id == "string" && e.id !== "0" && (t.category = e.id), typeof e.id == "number" && e.id !== 0 && (t.category = e.id)), p && (t.id = p), s && (+t.category || +t.guideCategory || +t.guide || +t.contactCategory || +t.contactMethod) && (t.uriName = s), d && (t.connectionKey = d), c && (t.take = c), u && (t.sorting = u), typeof g == "string" && g.length > 0 && (t.accordion = g), typeof r == "string" && r !== "0" && (t.tag = r), typeof r == "number" && r !== 0 && (t.tag = r), Array.isArray(r) && r.length && (t.tag = r), (typeof n == "string" || typeof n == "number") && (t.tagId = n), typeof l == "string" && (t.tagTitle = l), typeof t.tag == "string" && (t.tag = t.tag.split(",")), t;
|
|
21
|
+
}
|
|
22
|
+
export {
|
|
23
|
+
m as c
|
|
24
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-6e1f4d54.js");require("react/jsx-runtime");require("react");require("react-dom");exports.DataClient=e.DataClient;exports.DataType=e.DataType;exports.FeedbackType=e.FeedbackType;exports.ServiceClientQueryType=e.ServiceClientQueryType;exports.SortingType=e.SortingType;exports.determineServiceClientQueryType=e.determineServiceClientQueryType;exports.formatLegacyData=e.formatLegacyData;
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
var y = Object.defineProperty;
|
|
2
|
+
var p = (t, e, r) => e in t ? y(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r;
|
|
3
|
+
var o = (t, e, r) => (p(t, typeof e != "symbol" ? e + "" : e, r), r);
|
|
4
|
+
import { l as c, p as m, c as a, e as l, g as u, h as v, L as d, i as N } from "./index-f6d7c0ea.mjs";
|
|
5
|
+
import { k as J, j as D, r as I } from "./index-f6d7c0ea.mjs";
|
|
6
|
+
import "react/jsx-runtime";
|
|
7
|
+
import "react";
|
|
8
|
+
import "react-dom";
|
|
9
|
+
class g {
|
|
10
|
+
constructor() {
|
|
11
|
+
o(this, "memory", {
|
|
12
|
+
tenant: {},
|
|
13
|
+
implementation: {},
|
|
14
|
+
widget: {}
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
async setItem(e, r, s = {}) {
|
|
18
|
+
return c(this)(() => {
|
|
19
|
+
const i = m(this.memory, [a.Necessary]), { scope: S = l.Tenant, expiration: n } = s;
|
|
20
|
+
i[S][e] = u(
|
|
21
|
+
r,
|
|
22
|
+
a.Necessary,
|
|
23
|
+
(n == null ? void 0 : n.toISOString()) || v()
|
|
24
|
+
), this.memory = i, process.env.NODE_ENV !== "production" && d.warn(
|
|
25
|
+
`StorageProvider: StorageProvider is deprecated, use createStorageWriter and readStorage instead, value stored temporarily in memory.
|
|
26
|
+
Key: ${e}
|
|
27
|
+
Value: ${JSON.stringify(r)}
|
|
28
|
+
Options: ${JSON.stringify(s)}
|
|
29
|
+
Memory: ${JSON.stringify(i)}`
|
|
30
|
+
);
|
|
31
|
+
});
|
|
32
|
+
}
|
|
33
|
+
async getItem(e) {
|
|
34
|
+
return c(this)(() => {
|
|
35
|
+
const r = m(this.memory, [a.Necessary]);
|
|
36
|
+
process.env.NODE_ENV !== "production" && d.warn(
|
|
37
|
+
`StorageProvider: StorageProvider is deprecated, use createStorageWriter and readStorage instead, value fetched from legacy memory storage.
|
|
38
|
+
Key: ${e}
|
|
39
|
+
Memory: ${JSON.stringify(r)}`
|
|
40
|
+
);
|
|
41
|
+
const s = N(r, e);
|
|
42
|
+
return this.memory = r, s;
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
async removeItem(e) {
|
|
46
|
+
return c(this)(() => {
|
|
47
|
+
const r = m(this.memory, [a.Necessary]);
|
|
48
|
+
delete r.tenant[e], delete r.implementation[e], delete r.widget[e], this.memory = r, process.env.NODE_ENV !== "production" && d.warn(
|
|
49
|
+
`StorageProvider: StorageProvider is deprecated, use createStorageWriter and readStorage instead, value removed from memory.
|
|
50
|
+
Key: ${e}
|
|
51
|
+
Memory: ${JSON.stringify(r)}`
|
|
52
|
+
);
|
|
53
|
+
});
|
|
54
|
+
}
|
|
55
|
+
async clear() {
|
|
56
|
+
return Promise.resolve();
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
class $ {
|
|
60
|
+
constructor() {
|
|
61
|
+
o(this, "cookies");
|
|
62
|
+
o(this, "session");
|
|
63
|
+
o(this, "local");
|
|
64
|
+
this.cookies = new g(), this.session = new g(), this.local = new g();
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
export {
|
|
68
|
+
a as StorageCategory,
|
|
69
|
+
J as StorageMedium,
|
|
70
|
+
$ as StorageProvider,
|
|
71
|
+
l as StorageScope,
|
|
72
|
+
g as StorageService,
|
|
73
|
+
D as createStorageWriter,
|
|
74
|
+
I as readStorage
|
|
75
|
+
};
|