@telia-ace/knowledge-widget-types-grid 1.1.1-rc.1 → 1.1.1-rc.3
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.js +1 -1
- package/index.mjs +17 -16
- package/package.json +5 -5
- package/create-params-13c11e30.js +0 -1
- package/create-params-4e652cc7.mjs +0 -24
- package/index-0d4037dc.js +0 -1
- package/index-2a0d3b27.mjs +0 -75
- package/index-2a67ee55.mjs +0 -787
- package/index-373df3a5.js +0 -6
- package/index-48abc5fd.js +0 -1
- package/index-5c9c2abf.mjs +0 -883
- package/index-6cc56345.js +0 -9
- package/index-6e1f4d54.js +0 -1291
- package/index-a87d669f.js +0 -642
- package/index-ddecdfc6.mjs +0 -13
- package/index-e3bba2b0.mjs +0 -1704
- package/index-ef4f44cd.mjs +0 -76
- package/index-f35c9d50.js +0 -1
- package/index-f6d7c0ea.mjs +0 -11776
- package/render-8a105395.js +0 -1
- package/render-e917ce7f.mjs +0 -51
- package/unmount-063d8ea3.mjs +0 -5
- package/unmount-481ce5a7.js +0 -1
package/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";var u=Object.create;var c=Object.defineProperty;var s=Object.getOwnPropertyDescriptor;var l=Object.getOwnPropertyNames;var p=Object.getPrototypeOf,g=Object.prototype.hasOwnProperty;var m=(e,t,r,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of l(t))!g.call(e,n)&&n!==r&&c(e,n,{get:()=>t[n],enumerable:!(i=s(t,n))||i.enumerable});return e};var a=(e,t,r)=>(r=e!=null?u(p(e)):{},m(t||!e||!e.__esModule?c(r,"default",{value:e,enumerable:!0}):r,e));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("@telia-ace/knowledge-data-client"),o=require("@telia-ace/widget-types-grid"),y=e=>import("@telia-ace/knowledge-widget-adapters").then(({ContactMethodPlatform:t})=>t.create(e)),b=e=>import("@telia-ace/knowledge-data-client").then(({DataClient:t})=>t.create(e));class h extends o.Widget{constructor(t){super(t),this.container.registerAsync("contactMethods",()=>y(this.container)),this.container.registerAsync("dataClient",()=>b(this.container))}}Object.defineProperty(exports,"Component",{enumerable:!0,get:()=>o.Component});Object.defineProperty(exports,"DetachedComponent",{enumerable:!0,get:()=>o.DetachedComponent});Object.defineProperty(exports,"NotFound",{enumerable:!0,get:()=>o.NotFound});Object.defineProperty(exports,"genericComponentStyling",{enumerable:!0,get:()=>o.genericComponentStyling});exports.GridWidget=h;Object.keys(d).forEach(e=>{e!=="default"&&!Object.prototype.hasOwnProperty.call(exports,e)&&Object.defineProperty(exports,e,{enumerable:!0,get:()=>d[e]})});
|
package/index.mjs
CHANGED
|
@@ -1,18 +1,19 @@
|
|
|
1
|
-
|
|
2
|
-
import "
|
|
3
|
-
import "
|
|
4
|
-
import "
|
|
1
|
+
export * from "@telia-ace/knowledge-data-client";
|
|
2
|
+
import { Widget as r } from "@telia-ace/widget-types-grid";
|
|
3
|
+
import { Component as m, DetachedComponent as p, NotFound as h, genericComponentStyling as g } from "@telia-ace/widget-types-grid";
|
|
4
|
+
const n = (e) => import("@telia-ace/knowledge-widget-adapters").then(({ ContactMethodPlatform: t }) => t.create(e)), o = (e) => import("@telia-ace/knowledge-data-client").then(({ DataClient: t }) => t.create(e));
|
|
5
|
+
class c extends r {
|
|
6
|
+
constructor(t) {
|
|
7
|
+
super(t), this.container.registerAsync(
|
|
8
|
+
"contactMethods",
|
|
9
|
+
() => n(this.container)
|
|
10
|
+
), this.container.registerAsync("dataClient", () => o(this.container));
|
|
11
|
+
}
|
|
12
|
+
}
|
|
5
13
|
export {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
y as GridWidget,
|
|
12
|
-
d as NotFound,
|
|
13
|
-
c as ServiceClientQueryType,
|
|
14
|
-
C as SortingType,
|
|
15
|
-
g as determineServiceClientQueryType,
|
|
16
|
-
D as formatLegacyData,
|
|
17
|
-
S as genericComponentStyling
|
|
14
|
+
m as Component,
|
|
15
|
+
p as DetachedComponent,
|
|
16
|
+
c as GridWidget,
|
|
17
|
+
h as NotFound,
|
|
18
|
+
g as genericComponentStyling
|
|
18
19
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@telia-ace/knowledge-widget-types-grid",
|
|
3
|
-
"version": "1.1.1-rc.
|
|
3
|
+
"version": "1.1.1-rc.3",
|
|
4
4
|
"main": "./index.js",
|
|
5
5
|
"types": "./index.d.ts",
|
|
6
6
|
"exports": {
|
|
@@ -10,10 +10,10 @@
|
|
|
10
10
|
}
|
|
11
11
|
},
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"@telia-ace/knowledge-widget-core": "^1.1.1-rc.
|
|
14
|
-
"@telia-ace/knowledge-data-client": "^1.1.1-rc.
|
|
15
|
-
"@telia-ace/widget-types-grid": "^1.1.1-rc.
|
|
16
|
-
"@telia-ace/knowledge-widget-adapters": "^1.1.1-rc.
|
|
13
|
+
"@telia-ace/knowledge-widget-core": "^1.1.1-rc.3",
|
|
14
|
+
"@telia-ace/knowledge-data-client": "^1.1.1-rc.3",
|
|
15
|
+
"@telia-ace/widget-types-grid": "^1.1.1-rc.3",
|
|
16
|
+
"@telia-ace/knowledge-widget-adapters": "^1.1.1-rc.3",
|
|
17
17
|
"@webprovisions/platform": "^1.1.4"
|
|
18
18
|
},
|
|
19
19
|
"peerDependencies": {
|
|
@@ -1 +0,0 @@
|
|
|
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;
|
|
@@ -1,24 +0,0 @@
|
|
|
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
|
-
};
|
package/index-0d4037dc.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
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;
|
package/index-2a0d3b27.mjs
DELETED
|
@@ -1,75 +0,0 @@
|
|
|
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
|
-
};
|