@telia-ace/knowledge-widget-components-related-guide-list 1.0.6 → 1.0.8
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/{lib-esm → dist}/index.d.ts +0 -0
- package/dist/index.js +75 -0
- package/dist/index.js.map +1 -0
- package/{lib-esm → dist}/related-guide-list-component.d.ts +0 -0
- package/{lib-esm → dist}/related-guide-list.d.ts +0 -0
- package/dist/related-guide-list.js +97 -0
- package/dist/related-guide-list.js.map +1 -0
- package/package.json +12 -13
- package/lib/index.d.ts +0 -2
- package/lib/index.js +0 -7
- package/lib/related-guide-list-component.d.ts +0 -10
- package/lib/related-guide-list-component.js +0 -111
- package/lib/related-guide-list.d.ts +0 -6
- package/lib/related-guide-list.js +0 -55
- package/lib-esm/index.js +0 -2
- package/lib-esm/related-guide-list-component.js +0 -86
- package/lib-esm/related-guide-list.js +0 -50
|
File without changes
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __defProps = Object.defineProperties;
|
|
3
|
+
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
4
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
7
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
8
|
+
var __spreadValues = (a, b) => {
|
|
9
|
+
for (var prop in b || (b = {}))
|
|
10
|
+
if (__hasOwnProp.call(b, prop))
|
|
11
|
+
__defNormalProp(a, prop, b[prop]);
|
|
12
|
+
if (__getOwnPropSymbols)
|
|
13
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
14
|
+
if (__propIsEnum.call(b, prop))
|
|
15
|
+
__defNormalProp(a, prop, b[prop]);
|
|
16
|
+
}
|
|
17
|
+
return a;
|
|
18
|
+
};
|
|
19
|
+
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
|
+
import { createEventSubscriber, extendComponent } from "@telia-ace/knowledge-widget-core";
|
|
21
|
+
import { DataType } from "@telia-ace/knowledge-widget-types-grid";
|
|
22
|
+
import { createReactComponent } from "@telia-ace/knowledge-widget-ui";
|
|
23
|
+
const RelatedGuideListComponent = (container) => {
|
|
24
|
+
return createReactComponent(container, "related-guide-list", import("./related-guide-list.js"), (component) => {
|
|
25
|
+
const { events } = container.get("$widget");
|
|
26
|
+
const [subscribe, unsubscribe] = createEventSubscriber(events);
|
|
27
|
+
const fetch = (params) => {
|
|
28
|
+
component.writeProperties({ loading: true, error: void 0 });
|
|
29
|
+
component.actions.dispatch("fetch", { params });
|
|
30
|
+
};
|
|
31
|
+
component.actions.create("fetch", ({ items = [] }) => {
|
|
32
|
+
return component.actions.dispatch("fetched", {
|
|
33
|
+
items,
|
|
34
|
+
loading: true
|
|
35
|
+
});
|
|
36
|
+
});
|
|
37
|
+
component.actions.create("fetched", (input) => {
|
|
38
|
+
return component.writeProperties(__spreadProps(__spreadValues({}, input), { loading: false }));
|
|
39
|
+
});
|
|
40
|
+
container.getAsync("router").then((router) => {
|
|
41
|
+
const { params } = router.getRouteData();
|
|
42
|
+
fetch(params);
|
|
43
|
+
});
|
|
44
|
+
subscribe("router:changed", (_, { current }) => {
|
|
45
|
+
fetch(current.routeData.params);
|
|
46
|
+
});
|
|
47
|
+
return () => {
|
|
48
|
+
unsubscribe();
|
|
49
|
+
};
|
|
50
|
+
}).then(() => {
|
|
51
|
+
return extendComponent(container, "related-guide-list", (component) => {
|
|
52
|
+
component.actions.watch("related-guide-list.fetch", (input, next) => {
|
|
53
|
+
const {
|
|
54
|
+
params: { guide, connection }
|
|
55
|
+
} = input;
|
|
56
|
+
if (!guide) {
|
|
57
|
+
return next(input);
|
|
58
|
+
}
|
|
59
|
+
component.properties();
|
|
60
|
+
return container.getAsync("dataClient").then((dataClient) => {
|
|
61
|
+
return dataClient.fetch(DataType.Guide, {
|
|
62
|
+
connection,
|
|
63
|
+
guideId: guide
|
|
64
|
+
}).then(({ related }) => {
|
|
65
|
+
return next(__spreadProps(__spreadValues({}, input), { items: related || [] }));
|
|
66
|
+
}).catch((e) => {
|
|
67
|
+
return next(input);
|
|
68
|
+
});
|
|
69
|
+
});
|
|
70
|
+
});
|
|
71
|
+
});
|
|
72
|
+
});
|
|
73
|
+
};
|
|
74
|
+
export { RelatedGuideListComponent as default };
|
|
75
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../src/related-guide-list-component.ts"],"sourcesContent":["import {\r\n FavoriteProperties,\r\n MetaDataProperties,\r\n} from '@telia-ace/knowledge-widget-component-utilities';\r\nimport { createEventSubscriber, extendComponent } from '@telia-ace/knowledge-widget-core';\r\nimport { DataClient, DataType } from '@telia-ace/knowledge-widget-types-grid';\r\nimport { createReactComponent } from '@telia-ace/knowledge-widget-ui';\r\nimport { Container } from '@webprovisions/platform';\r\n\r\nexport type RelatedGuideListComponentProps = {\r\n header: string;\r\n items?: any[]; // internal\r\n showFavoriteToggle?: boolean;\r\n tags?: boolean;\r\n} & FavoriteProperties &\r\n MetaDataProperties;\r\n\r\nconst RelatedGuideListComponent = (container: Container) => {\r\n return createReactComponent(\r\n container,\r\n 'related-guide-list',\r\n import('./related-guide-list'),\r\n (component) => {\r\n const { events } = container.get('$widget');\r\n const [subscribe, unsubscribe] = createEventSubscriber(events);\r\n\r\n const fetch = (params: { [key: string]: string }) => {\r\n component.writeProperties({ loading: true, error: undefined });\r\n component.actions.dispatch('fetch', { params });\r\n };\r\n\r\n component.actions.create('fetch', ({ items = [] }) => {\r\n return component.actions.dispatch('fetched', {\r\n items,\r\n loading: true,\r\n });\r\n });\r\n\r\n component.actions.create('fetched', (input) => {\r\n return component.writeProperties({ ...input, loading: false });\r\n });\r\n\r\n container.getAsync('router').then((router) => {\r\n const { params } = router.getRouteData();\r\n fetch(params);\r\n });\r\n subscribe('router:changed', (_, { current }) => {\r\n fetch(current.routeData.params);\r\n });\r\n return () => {\r\n unsubscribe();\r\n };\r\n }\r\n ).then(() => {\r\n return extendComponent(container, 'related-guide-list', (component) => {\r\n component.actions.watch('related-guide-list.fetch', (input, next) => {\r\n const {\r\n params: { guide, connection },\r\n } = input;\r\n if (!guide) {\r\n return next(input);\r\n }\r\n const { header } = component.properties() as RelatedGuideListComponentProps;\r\n\r\n return container.getAsync('dataClient').then((dataClient: DataClient) => {\r\n return dataClient\r\n .fetch(DataType.Guide, {\r\n connection,\r\n guideId: guide,\r\n })\r\n .then(({ related }) => {\r\n return next({ ...input, items: related || [] });\r\n })\r\n .catch((e: any) => {\r\n return next(input);\r\n });\r\n });\r\n });\r\n });\r\n });\r\n};\r\n\r\nexport default RelatedGuideListComponent;\r\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAiBM,MAAA,4BAA4B,CAAC,cAAyB;AACxD,SAAO,qBACH,WACA,sBACA,OAAO,4BACP,CAAC,cAAc;AACX,UAAM,EAAE,WAAW,UAAU,IAAI,SAAS;AAC1C,UAAM,CAAC,WAAW,eAAe,sBAAsB,MAAM;AAEvD,UAAA,QAAQ,CAAC,WAAsC;AACjD,gBAAU,gBAAgB,EAAE,SAAS,MAAM,OAAO,QAAW;AAC7D,gBAAU,QAAQ,SAAS,SAAS,EAAE,OAAQ,CAAA;AAAA,IAAA;AAGlD,cAAU,QAAQ,OAAO,SAAS,CAAC,EAAE,QAAQ,CAAA,QAAS;AAC3C,aAAA,UAAU,QAAQ,SAAS,WAAW;AAAA,QACzC;AAAA,QACA,SAAS;AAAA,MAAA,CACZ;AAAA,IAAA,CACJ;AAED,cAAU,QAAQ,OAAO,WAAW,CAAC,UAAU;AAC3C,aAAO,UAAU,gBAAgB,iCAAK,QAAL,EAAY,SAAS,QAAO;AAAA,IAAA,CAChE;AAED,cAAU,SAAS,QAAQ,EAAE,KAAK,CAAC,WAAW;AACpC,YAAA,EAAE,WAAW,OAAO,aAAa;AACvC,YAAM,MAAM;AAAA,IAAA,CACf;AACD,cAAU,kBAAkB,CAAC,GAAG,EAAE,cAAc;AACtC,YAAA,QAAQ,UAAU,MAAM;AAAA,IAAA,CACjC;AACD,WAAO,MAAM;AACG;IAAA;AAAA,EAChB,CAER,EAAE,KAAK,MAAM;AACT,WAAO,gBAAgB,WAAW,sBAAsB,CAAC,cAAc;AACnE,gBAAU,QAAQ,MAAM,4BAA4B,CAAC,OAAO,SAAS;AAC3D,cAAA;AAAA,UACF,QAAQ,EAAE,OAAO;AAAA,YACjB;AACJ,YAAI,CAAC,OAAO;AACR,iBAAO,KAAK,KAAK;AAAA,QACrB;AACmB,kBAAU,WAAW;AAExC,eAAO,UAAU,SAAS,YAAY,EAAE,KAAK,CAAC,eAA2B;AAC9D,iBAAA,WACF,MAAM,SAAS,OAAO;AAAA,YACnB;AAAA,YACA,SAAS;AAAA,UACZ,CAAA,EACA,KAAK,CAAC,EAAE,cAAc;AACZ,mBAAA,KAAK,iCAAK,QAAL,EAAY,OAAO,WAAW,KAAI;AAAA,UAAA,CACjD,EACA,MAAM,CAAC,MAAW;AACf,mBAAO,KAAK,KAAK;AAAA,UAAA,CACpB;AAAA,QAAA,CACR;AAAA,MAAA,CACJ;AAAA,IAAA,CACJ;AAAA,EAAA,CACJ;AACL;;"}
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __defProps = Object.defineProperties;
|
|
3
|
+
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
4
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
7
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
8
|
+
var __spreadValues = (a, b) => {
|
|
9
|
+
for (var prop in b || (b = {}))
|
|
10
|
+
if (__hasOwnProp.call(b, prop))
|
|
11
|
+
__defNormalProp(a, prop, b[prop]);
|
|
12
|
+
if (__getOwnPropSymbols)
|
|
13
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
14
|
+
if (__propIsEnum.call(b, prop))
|
|
15
|
+
__defNormalProp(a, prop, b[prop]);
|
|
16
|
+
}
|
|
17
|
+
return a;
|
|
18
|
+
};
|
|
19
|
+
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
|
+
var __objRest = (source, exclude) => {
|
|
21
|
+
var target = {};
|
|
22
|
+
for (var prop in source)
|
|
23
|
+
if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
24
|
+
target[prop] = source[prop];
|
|
25
|
+
if (source != null && __getOwnPropSymbols)
|
|
26
|
+
for (var prop of __getOwnPropSymbols(source)) {
|
|
27
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
|
|
28
|
+
target[prop] = source[prop];
|
|
29
|
+
}
|
|
30
|
+
return target;
|
|
31
|
+
};
|
|
32
|
+
import { useRouteData, useContainer, useProperties, createEmptyComponent, GuideList, contentBox } from "@telia-ace/knowledge-widget-ui";
|
|
33
|
+
import { appendClassNames, createParams, formatUrl } from "@telia-ace/widget-utilities";
|
|
34
|
+
import React from "react";
|
|
35
|
+
import styled from "styled-components";
|
|
36
|
+
const RelatedGuideList = (_a) => {
|
|
37
|
+
var _b = _a, { className } = _b, other = __objRest(_b, ["className"]);
|
|
38
|
+
const { name, params } = useRouteData();
|
|
39
|
+
const container = useContainer();
|
|
40
|
+
const {
|
|
41
|
+
showFavoriteToggle = false,
|
|
42
|
+
items,
|
|
43
|
+
header,
|
|
44
|
+
metadata,
|
|
45
|
+
tags,
|
|
46
|
+
addFavoriteTooltip,
|
|
47
|
+
removeFavoriteCancelLabel,
|
|
48
|
+
removeFavoriteConfirmLabel,
|
|
49
|
+
removeFavoriteHeader,
|
|
50
|
+
removeFavoriteLabel,
|
|
51
|
+
removeFavoriteTooltip,
|
|
52
|
+
metadataByLabel,
|
|
53
|
+
metadataModifiedLabel,
|
|
54
|
+
metadataPublishedLabel
|
|
55
|
+
} = useProperties();
|
|
56
|
+
if (!items || !items.length) {
|
|
57
|
+
return createEmptyComponent(container, __spreadProps(__spreadValues({}, other), {
|
|
58
|
+
className: appendClassNames(className, "humany-related-guide-list")
|
|
59
|
+
}));
|
|
60
|
+
}
|
|
61
|
+
return /* @__PURE__ */ React.createElement(StyledGuideList, __spreadProps(__spreadValues({}, other), {
|
|
62
|
+
className: appendClassNames(className, "humany-related-guide-list"),
|
|
63
|
+
header,
|
|
64
|
+
items,
|
|
65
|
+
paramMappers: {
|
|
66
|
+
guide: ({ id, title }) => createParams(__spreadProps(__spreadValues({}, params), {
|
|
67
|
+
guide: id,
|
|
68
|
+
uriName: formatUrl(title),
|
|
69
|
+
connection: void 0
|
|
70
|
+
}))
|
|
71
|
+
},
|
|
72
|
+
showTags: tags,
|
|
73
|
+
showFavoriteToggle,
|
|
74
|
+
addFavoriteTooltip,
|
|
75
|
+
removeFavoriteCancelLabel,
|
|
76
|
+
removeFavoriteConfirmLabel,
|
|
77
|
+
removeFavoriteHeader,
|
|
78
|
+
removeFavoriteLabel,
|
|
79
|
+
removeFavoriteTooltip,
|
|
80
|
+
metadata: __spreadProps(__spreadValues({}, metadata), {
|
|
81
|
+
modifiedLabel: metadataModifiedLabel,
|
|
82
|
+
publishedLabel: metadataPublishedLabel,
|
|
83
|
+
byLabel: metadataByLabel
|
|
84
|
+
}),
|
|
85
|
+
routing: {
|
|
86
|
+
guide: name
|
|
87
|
+
}
|
|
88
|
+
}));
|
|
89
|
+
};
|
|
90
|
+
const StyledGuideList = styled(GuideList)`
|
|
91
|
+
${contentBox}
|
|
92
|
+
li:last-child {
|
|
93
|
+
margin: 0;
|
|
94
|
+
}
|
|
95
|
+
`;
|
|
96
|
+
export { RelatedGuideList as default };
|
|
97
|
+
//# sourceMappingURL=related-guide-list.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"related-guide-list.js","sources":["../src/related-guide-list.tsx"],"sourcesContent":["import { Guide } from '@telia-ace/knowledge-widget-core';\r\nimport {\r\n contentBox,\r\n createEmptyComponent,\r\n GuideList,\r\n useContainer,\r\n useProperties,\r\n useRouteData,\r\n} from '@telia-ace/knowledge-widget-ui';\r\nimport { appendClassNames, createParams, formatUrl } from '@telia-ace/widget-utilities';\r\nimport React from 'react';\r\nimport styled from 'styled-components';\r\nimport { RelatedGuideListComponentProps } from './related-guide-list-component';\r\n\r\ntype Props = {\r\n className: string;\r\n};\r\n\r\nconst RelatedGuideList: React.SFC<Props> = ({ className, ...other }) => {\r\n const { name, params } = useRouteData();\r\n const container = useContainer();\r\n const {\r\n showFavoriteToggle = false,\r\n items,\r\n header,\r\n metadata,\r\n tags,\r\n addFavoriteTooltip,\r\n removeFavoriteCancelLabel,\r\n removeFavoriteConfirmLabel,\r\n removeFavoriteHeader,\r\n removeFavoriteLabel,\r\n removeFavoriteTooltip,\r\n metadataByLabel,\r\n metadataModifiedLabel,\r\n metadataPublishedLabel,\r\n } = useProperties<RelatedGuideListComponentProps>();\r\n\r\n if (!items || !items.length) {\r\n return createEmptyComponent(container, {\r\n ...other,\r\n className: appendClassNames(className, 'humany-related-guide-list'),\r\n });\r\n }\r\n\r\n return (\r\n <StyledGuideList\r\n {...other}\r\n className={appendClassNames(className, 'humany-related-guide-list')}\r\n header={header}\r\n items={items}\r\n paramMappers={{\r\n guide: ({ id, title }: Guide) =>\r\n createParams({\r\n ...params,\r\n guide: id,\r\n uriName: formatUrl(title),\r\n connection: undefined,\r\n }),\r\n }}\r\n showTags={tags}\r\n showFavoriteToggle={showFavoriteToggle}\r\n addFavoriteTooltip={addFavoriteTooltip}\r\n removeFavoriteCancelLabel={removeFavoriteCancelLabel}\r\n removeFavoriteConfirmLabel={removeFavoriteConfirmLabel}\r\n removeFavoriteHeader={removeFavoriteHeader}\r\n removeFavoriteLabel={removeFavoriteLabel}\r\n removeFavoriteTooltip={removeFavoriteTooltip}\r\n metadata={{\r\n ...metadata,\r\n modifiedLabel: metadataModifiedLabel,\r\n publishedLabel: metadataPublishedLabel,\r\n byLabel: metadataByLabel,\r\n }}\r\n routing={{\r\n guide: name,\r\n }}\r\n />\r\n );\r\n};\r\n\r\nexport default RelatedGuideList;\r\n\r\nconst StyledGuideList = styled(GuideList)<any>`\r\n ${contentBox}\r\n li:last-child {\r\n margin: 0;\r\n }\r\n`;\r\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAkBA,MAAM,mBAAqC,CAAC,OAA4B;AAA5B,eAAE,gBAAF,IAAgB,kBAAhB,IAAgB,CAAd;AACpC,QAAA,EAAE,MAAM,WAAW,aAAa;AACtC,QAAM,YAAY;AACZ,QAAA;AAAA,IACF,qBAAqB;AAAA,IACrB;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,MACA,cAA8C;AAElD,MAAI,CAAC,SAAS,CAAC,MAAM,QAAQ;AACzB,WAAO,qBAAqB,WAAW,iCAChC,QADgC;AAAA,MAEnC,WAAW,iBAAiB,WAAW,2BAA2B;AAAA,IAAA,EACrE;AAAA,EACL;AAEA,SACK,sBAAA,cAAA,iBAAA,iCACO,QADP;AAAA,IAEG,WAAW,iBAAiB,WAAW,2BAA2B;AAAA,IAClE;AAAA,IACA;AAAA,IACA,cAAc;AAAA,MACV,OAAO,CAAC,EAAE,IAAI,YACV,aAAa,iCACN,SADM;AAAA,QAET,OAAO;AAAA,QACP,SAAS,UAAU,KAAK;AAAA,QACxB,YAAY;AAAA,MAAA,EACf;AAAA,IACT;AAAA,IACA,UAAU;AAAA,IACV;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA,UAAU,iCACH,WADG;AAAA,MAEN,eAAe;AAAA,MACf,gBAAgB;AAAA,MAChB,SAAS;AAAA,IACb;AAAA,IACA,SAAS;AAAA,MACL,OAAO;AAAA,IACX;AAAA,EAAA,EACJ;AAER;AAIA,MAAM,kBAAkB,OAAO,SAAS;AAAA,MAClC;AAAA;AAAA;AAAA;AAAA;;"}
|
package/package.json
CHANGED
|
@@ -1,34 +1,33 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@telia-ace/knowledge-widget-components-related-guide-list",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.8",
|
|
4
4
|
"description": "Related guide list component for ACE Knowledge Widgets.",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"author": "Telia Company AB",
|
|
7
7
|
"keywords": [
|
|
8
8
|
"telia"
|
|
9
9
|
],
|
|
10
|
-
"
|
|
11
|
-
"
|
|
10
|
+
"module": "dist/index.js",
|
|
11
|
+
"types": "dist/index.d.ts",
|
|
12
12
|
"files": [
|
|
13
13
|
"LICENSE.txt",
|
|
14
14
|
"README.md",
|
|
15
|
-
"
|
|
16
|
-
"lib-esm/"
|
|
15
|
+
"dist/"
|
|
17
16
|
],
|
|
18
17
|
"publishConfig": {
|
|
19
18
|
"access": "public"
|
|
20
19
|
},
|
|
21
20
|
"scripts": {
|
|
22
|
-
"clean": "
|
|
23
|
-
"
|
|
21
|
+
"clean": "rimraf ./dist",
|
|
22
|
+
"precompile": "tsc -emitDeclarationOnly",
|
|
23
|
+
"compile": "vite build"
|
|
24
24
|
},
|
|
25
25
|
"sideEffects": false,
|
|
26
|
-
"typings": "lib/index.d.ts",
|
|
27
26
|
"dependencies": {
|
|
28
|
-
"@telia-ace/knowledge-widget-component-utilities": "^1.0.
|
|
29
|
-
"@telia-ace/knowledge-widget-core": "^1.0.
|
|
30
|
-
"@telia-ace/knowledge-widget-types-grid": "^1.0.
|
|
31
|
-
"@telia-ace/knowledge-widget-ui": "^1.0.
|
|
27
|
+
"@telia-ace/knowledge-widget-component-utilities": "^1.0.8",
|
|
28
|
+
"@telia-ace/knowledge-widget-core": "^1.0.7",
|
|
29
|
+
"@telia-ace/knowledge-widget-types-grid": "^1.0.14",
|
|
30
|
+
"@telia-ace/knowledge-widget-ui": "^1.0.11",
|
|
32
31
|
"@telia-ace/widget-utilities": "^1.0.1",
|
|
33
32
|
"@webprovisions/platform": "^1.1.2"
|
|
34
33
|
},
|
|
@@ -42,5 +41,5 @@
|
|
|
42
41
|
"@types/react-dom": "^16.8.0",
|
|
43
42
|
"@types/styled-components": "^5.1.7"
|
|
44
43
|
},
|
|
45
|
-
"gitHead": "
|
|
44
|
+
"gitHead": "15dba08c1ba1c3c117353e50a2586be05a966288"
|
|
46
45
|
}
|
package/lib/index.d.ts
DELETED
package/lib/index.js
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
var related_guide_list_component_1 = __importDefault(require("./related-guide-list-component"));
|
|
7
|
-
exports.default = related_guide_list_component_1.default;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { FavoriteProperties, MetaDataProperties } from '@telia-ace/knowledge-widget-component-utilities';
|
|
2
|
-
import { Container } from '@webprovisions/platform';
|
|
3
|
-
export declare type RelatedGuideListComponentProps = {
|
|
4
|
-
header: string;
|
|
5
|
-
items?: any[];
|
|
6
|
-
showFavoriteToggle?: boolean;
|
|
7
|
-
tags?: boolean;
|
|
8
|
-
} & FavoriteProperties & MetaDataProperties;
|
|
9
|
-
declare const RelatedGuideListComponent: (container: Container) => Promise<void>;
|
|
10
|
-
export default RelatedGuideListComponent;
|
|
@@ -1,111 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __assign = (this && this.__assign) || function () {
|
|
3
|
-
__assign = Object.assign || function(t) {
|
|
4
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
-
s = arguments[i];
|
|
6
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
-
t[p] = s[p];
|
|
8
|
-
}
|
|
9
|
-
return t;
|
|
10
|
-
};
|
|
11
|
-
return __assign.apply(this, arguments);
|
|
12
|
-
};
|
|
13
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
14
|
-
if (k2 === undefined) k2 = k;
|
|
15
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
16
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
17
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
18
|
-
}
|
|
19
|
-
Object.defineProperty(o, k2, desc);
|
|
20
|
-
}) : (function(o, m, k, k2) {
|
|
21
|
-
if (k2 === undefined) k2 = k;
|
|
22
|
-
o[k2] = m[k];
|
|
23
|
-
}));
|
|
24
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
25
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
26
|
-
}) : function(o, v) {
|
|
27
|
-
o["default"] = v;
|
|
28
|
-
});
|
|
29
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
30
|
-
if (mod && mod.__esModule) return mod;
|
|
31
|
-
var result = {};
|
|
32
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
33
|
-
__setModuleDefault(result, mod);
|
|
34
|
-
return result;
|
|
35
|
-
};
|
|
36
|
-
var __read = (this && this.__read) || function (o, n) {
|
|
37
|
-
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
38
|
-
if (!m) return o;
|
|
39
|
-
var i = m.call(o), r, ar = [], e;
|
|
40
|
-
try {
|
|
41
|
-
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
|
42
|
-
}
|
|
43
|
-
catch (error) { e = { error: error }; }
|
|
44
|
-
finally {
|
|
45
|
-
try {
|
|
46
|
-
if (r && !r.done && (m = i["return"])) m.call(i);
|
|
47
|
-
}
|
|
48
|
-
finally { if (e) throw e.error; }
|
|
49
|
-
}
|
|
50
|
-
return ar;
|
|
51
|
-
};
|
|
52
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
53
|
-
var knowledge_widget_core_1 = require("@telia-ace/knowledge-widget-core");
|
|
54
|
-
var knowledge_widget_types_grid_1 = require("@telia-ace/knowledge-widget-types-grid");
|
|
55
|
-
var knowledge_widget_ui_1 = require("@telia-ace/knowledge-widget-ui");
|
|
56
|
-
var RelatedGuideListComponent = function (container) {
|
|
57
|
-
return (0, knowledge_widget_ui_1.createReactComponent)(container, 'related-guide-list', Promise.resolve().then(function () { return __importStar(require('./related-guide-list')); }), function (component) {
|
|
58
|
-
var events = container.get('$widget').events;
|
|
59
|
-
var _a = __read((0, knowledge_widget_core_1.createEventSubscriber)(events), 2), subscribe = _a[0], unsubscribe = _a[1];
|
|
60
|
-
var fetch = function (params) {
|
|
61
|
-
component.writeProperties({ loading: true, error: undefined });
|
|
62
|
-
component.actions.dispatch('fetch', { params: params });
|
|
63
|
-
};
|
|
64
|
-
component.actions.create('fetch', function (_a) {
|
|
65
|
-
var _b = _a.items, items = _b === void 0 ? [] : _b;
|
|
66
|
-
return component.actions.dispatch('fetched', {
|
|
67
|
-
items: items,
|
|
68
|
-
loading: true,
|
|
69
|
-
});
|
|
70
|
-
});
|
|
71
|
-
component.actions.create('fetched', function (input) {
|
|
72
|
-
return component.writeProperties(__assign(__assign({}, input), { loading: false }));
|
|
73
|
-
});
|
|
74
|
-
container.getAsync('router').then(function (router) {
|
|
75
|
-
var params = router.getRouteData().params;
|
|
76
|
-
fetch(params);
|
|
77
|
-
});
|
|
78
|
-
subscribe('router:changed', function (_, _a) {
|
|
79
|
-
var current = _a.current;
|
|
80
|
-
fetch(current.routeData.params);
|
|
81
|
-
});
|
|
82
|
-
return function () {
|
|
83
|
-
unsubscribe();
|
|
84
|
-
};
|
|
85
|
-
}).then(function () {
|
|
86
|
-
return (0, knowledge_widget_core_1.extendComponent)(container, 'related-guide-list', function (component) {
|
|
87
|
-
component.actions.watch('related-guide-list.fetch', function (input, next) {
|
|
88
|
-
var _a = input.params, guide = _a.guide, connection = _a.connection;
|
|
89
|
-
if (!guide) {
|
|
90
|
-
return next(input);
|
|
91
|
-
}
|
|
92
|
-
var header = component.properties().header;
|
|
93
|
-
return container.getAsync('dataClient').then(function (dataClient) {
|
|
94
|
-
return dataClient
|
|
95
|
-
.fetch(knowledge_widget_types_grid_1.DataType.Guide, {
|
|
96
|
-
connection: connection,
|
|
97
|
-
guideId: guide,
|
|
98
|
-
})
|
|
99
|
-
.then(function (_a) {
|
|
100
|
-
var related = _a.related;
|
|
101
|
-
return next(__assign(__assign({}, input), { items: related || [] }));
|
|
102
|
-
})
|
|
103
|
-
.catch(function (e) {
|
|
104
|
-
return next(input);
|
|
105
|
-
});
|
|
106
|
-
});
|
|
107
|
-
});
|
|
108
|
-
});
|
|
109
|
-
});
|
|
110
|
-
};
|
|
111
|
-
exports.default = RelatedGuideListComponent;
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
|
|
3
|
-
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
|
4
|
-
return cooked;
|
|
5
|
-
};
|
|
6
|
-
var __assign = (this && this.__assign) || function () {
|
|
7
|
-
__assign = Object.assign || function(t) {
|
|
8
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
9
|
-
s = arguments[i];
|
|
10
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
11
|
-
t[p] = s[p];
|
|
12
|
-
}
|
|
13
|
-
return t;
|
|
14
|
-
};
|
|
15
|
-
return __assign.apply(this, arguments);
|
|
16
|
-
};
|
|
17
|
-
var __rest = (this && this.__rest) || function (s, e) {
|
|
18
|
-
var t = {};
|
|
19
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
20
|
-
t[p] = s[p];
|
|
21
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
22
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
23
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
24
|
-
t[p[i]] = s[p[i]];
|
|
25
|
-
}
|
|
26
|
-
return t;
|
|
27
|
-
};
|
|
28
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
29
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
30
|
-
};
|
|
31
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
32
|
-
var knowledge_widget_ui_1 = require("@telia-ace/knowledge-widget-ui");
|
|
33
|
-
var widget_utilities_1 = require("@telia-ace/widget-utilities");
|
|
34
|
-
var react_1 = __importDefault(require("react"));
|
|
35
|
-
var styled_components_1 = __importDefault(require("styled-components"));
|
|
36
|
-
var RelatedGuideList = function (_a) {
|
|
37
|
-
var className = _a.className, other = __rest(_a, ["className"]);
|
|
38
|
-
var _b = (0, knowledge_widget_ui_1.useRouteData)(), name = _b.name, params = _b.params;
|
|
39
|
-
var container = (0, knowledge_widget_ui_1.useContainer)();
|
|
40
|
-
var _c = (0, knowledge_widget_ui_1.useProperties)(), _d = _c.showFavoriteToggle, showFavoriteToggle = _d === void 0 ? false : _d, items = _c.items, header = _c.header, metadata = _c.metadata, tags = _c.tags, addFavoriteTooltip = _c.addFavoriteTooltip, removeFavoriteCancelLabel = _c.removeFavoriteCancelLabel, removeFavoriteConfirmLabel = _c.removeFavoriteConfirmLabel, removeFavoriteHeader = _c.removeFavoriteHeader, removeFavoriteLabel = _c.removeFavoriteLabel, removeFavoriteTooltip = _c.removeFavoriteTooltip, metadataByLabel = _c.metadataByLabel, metadataModifiedLabel = _c.metadataModifiedLabel, metadataPublishedLabel = _c.metadataPublishedLabel;
|
|
41
|
-
if (!items || !items.length) {
|
|
42
|
-
return (0, knowledge_widget_ui_1.createEmptyComponent)(container, __assign(__assign({}, other), { className: (0, widget_utilities_1.appendClassNames)(className, 'humany-related-guide-list') }));
|
|
43
|
-
}
|
|
44
|
-
return (react_1.default.createElement(StyledGuideList, __assign({}, other, { className: (0, widget_utilities_1.appendClassNames)(className, 'humany-related-guide-list'), header: header, items: items, paramMappers: {
|
|
45
|
-
guide: function (_a) {
|
|
46
|
-
var id = _a.id, title = _a.title;
|
|
47
|
-
return (0, widget_utilities_1.createParams)(__assign(__assign({}, params), { guide: id, uriName: (0, widget_utilities_1.formatUrl)(title), connection: undefined }));
|
|
48
|
-
},
|
|
49
|
-
}, showTags: tags, showFavoriteToggle: showFavoriteToggle, addFavoriteTooltip: addFavoriteTooltip, removeFavoriteCancelLabel: removeFavoriteCancelLabel, removeFavoriteConfirmLabel: removeFavoriteConfirmLabel, removeFavoriteHeader: removeFavoriteHeader, removeFavoriteLabel: removeFavoriteLabel, removeFavoriteTooltip: removeFavoriteTooltip, metadata: __assign(__assign({}, metadata), { modifiedLabel: metadataModifiedLabel, publishedLabel: metadataPublishedLabel, byLabel: metadataByLabel }), routing: {
|
|
50
|
-
guide: name,
|
|
51
|
-
} })));
|
|
52
|
-
};
|
|
53
|
-
exports.default = RelatedGuideList;
|
|
54
|
-
var StyledGuideList = (0, styled_components_1.default)(knowledge_widget_ui_1.GuideList)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n ", "\n li:last-child {\n margin: 0;\n }\n"], ["\n ", "\n li:last-child {\n margin: 0;\n }\n"])), knowledge_widget_ui_1.contentBox);
|
|
55
|
-
var templateObject_1;
|
package/lib-esm/index.js
DELETED
|
@@ -1,86 +0,0 @@
|
|
|
1
|
-
var __assign = (this && this.__assign) || function () {
|
|
2
|
-
__assign = Object.assign || function(t) {
|
|
3
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
-
s = arguments[i];
|
|
5
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
-
t[p] = s[p];
|
|
7
|
-
}
|
|
8
|
-
return t;
|
|
9
|
-
};
|
|
10
|
-
return __assign.apply(this, arguments);
|
|
11
|
-
};
|
|
12
|
-
var __read = (this && this.__read) || function (o, n) {
|
|
13
|
-
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
14
|
-
if (!m) return o;
|
|
15
|
-
var i = m.call(o), r, ar = [], e;
|
|
16
|
-
try {
|
|
17
|
-
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
|
18
|
-
}
|
|
19
|
-
catch (error) { e = { error: error }; }
|
|
20
|
-
finally {
|
|
21
|
-
try {
|
|
22
|
-
if (r && !r.done && (m = i["return"])) m.call(i);
|
|
23
|
-
}
|
|
24
|
-
finally { if (e) throw e.error; }
|
|
25
|
-
}
|
|
26
|
-
return ar;
|
|
27
|
-
};
|
|
28
|
-
import { createEventSubscriber, extendComponent } from '@telia-ace/knowledge-widget-core';
|
|
29
|
-
import { DataType } from '@telia-ace/knowledge-widget-types-grid';
|
|
30
|
-
import { createReactComponent } from '@telia-ace/knowledge-widget-ui';
|
|
31
|
-
var RelatedGuideListComponent = function (container) {
|
|
32
|
-
return createReactComponent(container, 'related-guide-list', import('./related-guide-list'), function (component) {
|
|
33
|
-
var events = container.get('$widget').events;
|
|
34
|
-
var _a = __read(createEventSubscriber(events), 2), subscribe = _a[0], unsubscribe = _a[1];
|
|
35
|
-
var fetch = function (params) {
|
|
36
|
-
component.writeProperties({ loading: true, error: undefined });
|
|
37
|
-
component.actions.dispatch('fetch', { params: params });
|
|
38
|
-
};
|
|
39
|
-
component.actions.create('fetch', function (_a) {
|
|
40
|
-
var _b = _a.items, items = _b === void 0 ? [] : _b;
|
|
41
|
-
return component.actions.dispatch('fetched', {
|
|
42
|
-
items: items,
|
|
43
|
-
loading: true,
|
|
44
|
-
});
|
|
45
|
-
});
|
|
46
|
-
component.actions.create('fetched', function (input) {
|
|
47
|
-
return component.writeProperties(__assign(__assign({}, input), { loading: false }));
|
|
48
|
-
});
|
|
49
|
-
container.getAsync('router').then(function (router) {
|
|
50
|
-
var params = router.getRouteData().params;
|
|
51
|
-
fetch(params);
|
|
52
|
-
});
|
|
53
|
-
subscribe('router:changed', function (_, _a) {
|
|
54
|
-
var current = _a.current;
|
|
55
|
-
fetch(current.routeData.params);
|
|
56
|
-
});
|
|
57
|
-
return function () {
|
|
58
|
-
unsubscribe();
|
|
59
|
-
};
|
|
60
|
-
}).then(function () {
|
|
61
|
-
return extendComponent(container, 'related-guide-list', function (component) {
|
|
62
|
-
component.actions.watch('related-guide-list.fetch', function (input, next) {
|
|
63
|
-
var _a = input.params, guide = _a.guide, connection = _a.connection;
|
|
64
|
-
if (!guide) {
|
|
65
|
-
return next(input);
|
|
66
|
-
}
|
|
67
|
-
var header = component.properties().header;
|
|
68
|
-
return container.getAsync('dataClient').then(function (dataClient) {
|
|
69
|
-
return dataClient
|
|
70
|
-
.fetch(DataType.Guide, {
|
|
71
|
-
connection: connection,
|
|
72
|
-
guideId: guide,
|
|
73
|
-
})
|
|
74
|
-
.then(function (_a) {
|
|
75
|
-
var related = _a.related;
|
|
76
|
-
return next(__assign(__assign({}, input), { items: related || [] }));
|
|
77
|
-
})
|
|
78
|
-
.catch(function (e) {
|
|
79
|
-
return next(input);
|
|
80
|
-
});
|
|
81
|
-
});
|
|
82
|
-
});
|
|
83
|
-
});
|
|
84
|
-
});
|
|
85
|
-
};
|
|
86
|
-
export default RelatedGuideListComponent;
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
|
|
2
|
-
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
|
3
|
-
return cooked;
|
|
4
|
-
};
|
|
5
|
-
var __assign = (this && this.__assign) || function () {
|
|
6
|
-
__assign = Object.assign || function(t) {
|
|
7
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
8
|
-
s = arguments[i];
|
|
9
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
10
|
-
t[p] = s[p];
|
|
11
|
-
}
|
|
12
|
-
return t;
|
|
13
|
-
};
|
|
14
|
-
return __assign.apply(this, arguments);
|
|
15
|
-
};
|
|
16
|
-
var __rest = (this && this.__rest) || function (s, e) {
|
|
17
|
-
var t = {};
|
|
18
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
19
|
-
t[p] = s[p];
|
|
20
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
21
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
22
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
23
|
-
t[p[i]] = s[p[i]];
|
|
24
|
-
}
|
|
25
|
-
return t;
|
|
26
|
-
};
|
|
27
|
-
import { contentBox, createEmptyComponent, GuideList, useContainer, useProperties, useRouteData, } from '@telia-ace/knowledge-widget-ui';
|
|
28
|
-
import { appendClassNames, createParams, formatUrl } from '@telia-ace/widget-utilities';
|
|
29
|
-
import React from 'react';
|
|
30
|
-
import styled from 'styled-components';
|
|
31
|
-
var RelatedGuideList = function (_a) {
|
|
32
|
-
var className = _a.className, other = __rest(_a, ["className"]);
|
|
33
|
-
var _b = useRouteData(), name = _b.name, params = _b.params;
|
|
34
|
-
var container = useContainer();
|
|
35
|
-
var _c = useProperties(), _d = _c.showFavoriteToggle, showFavoriteToggle = _d === void 0 ? false : _d, items = _c.items, header = _c.header, metadata = _c.metadata, tags = _c.tags, addFavoriteTooltip = _c.addFavoriteTooltip, removeFavoriteCancelLabel = _c.removeFavoriteCancelLabel, removeFavoriteConfirmLabel = _c.removeFavoriteConfirmLabel, removeFavoriteHeader = _c.removeFavoriteHeader, removeFavoriteLabel = _c.removeFavoriteLabel, removeFavoriteTooltip = _c.removeFavoriteTooltip, metadataByLabel = _c.metadataByLabel, metadataModifiedLabel = _c.metadataModifiedLabel, metadataPublishedLabel = _c.metadataPublishedLabel;
|
|
36
|
-
if (!items || !items.length) {
|
|
37
|
-
return createEmptyComponent(container, __assign(__assign({}, other), { className: appendClassNames(className, 'humany-related-guide-list') }));
|
|
38
|
-
}
|
|
39
|
-
return (React.createElement(StyledGuideList, __assign({}, other, { className: appendClassNames(className, 'humany-related-guide-list'), header: header, items: items, paramMappers: {
|
|
40
|
-
guide: function (_a) {
|
|
41
|
-
var id = _a.id, title = _a.title;
|
|
42
|
-
return createParams(__assign(__assign({}, params), { guide: id, uriName: formatUrl(title), connection: undefined }));
|
|
43
|
-
},
|
|
44
|
-
}, showTags: tags, showFavoriteToggle: showFavoriteToggle, addFavoriteTooltip: addFavoriteTooltip, removeFavoriteCancelLabel: removeFavoriteCancelLabel, removeFavoriteConfirmLabel: removeFavoriteConfirmLabel, removeFavoriteHeader: removeFavoriteHeader, removeFavoriteLabel: removeFavoriteLabel, removeFavoriteTooltip: removeFavoriteTooltip, metadata: __assign(__assign({}, metadata), { modifiedLabel: metadataModifiedLabel, publishedLabel: metadataPublishedLabel, byLabel: metadataByLabel }), routing: {
|
|
45
|
-
guide: name,
|
|
46
|
-
} })));
|
|
47
|
-
};
|
|
48
|
-
export default RelatedGuideList;
|
|
49
|
-
var StyledGuideList = styled(GuideList)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n ", "\n li:last-child {\n margin: 0;\n }\n"], ["\n ", "\n li:last-child {\n margin: 0;\n }\n"])), contentBox);
|
|
50
|
-
var templateObject_1;
|