@telia-ace/knowledge-widget-components-related-guide-list 1.0.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/LICENSE.txt +6 -0
- package/README.md +3 -0
- package/lib/index.d.ts +2 -0
- package/lib/index.js +7 -0
- package/lib/related-guide-list-component.d.ts +10 -0
- package/lib/related-guide-list-component.js +111 -0
- package/lib/related-guide-list.d.ts +6 -0
- package/lib/related-guide-list.js +55 -0
- package/lib-esm/index.d.ts +2 -0
- package/lib-esm/index.js +2 -0
- package/lib-esm/related-guide-list-component.d.ts +10 -0
- package/lib-esm/related-guide-list-component.js +86 -0
- package/lib-esm/related-guide-list.d.ts +6 -0
- package/lib-esm/related-guide-list.js +50 -0
- package/package.json +44 -0
package/LICENSE.txt
ADDED
package/README.md
ADDED
package/lib/index.d.ts
ADDED
package/lib/index.js
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
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;
|
|
@@ -0,0 +1,10 @@
|
|
|
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;
|
|
@@ -0,0 +1,111 @@
|
|
|
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;
|
|
@@ -0,0 +1,55 @@
|
|
|
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
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
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;
|
|
@@ -0,0 +1,86 @@
|
|
|
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;
|
|
@@ -0,0 +1,50 @@
|
|
|
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;
|
package/package.json
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@telia-ace/knowledge-widget-components-related-guide-list",
|
|
3
|
+
"version": "1.0.1",
|
|
4
|
+
"description": "Related guide list component for ACE Knowledge Widgets.",
|
|
5
|
+
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
|
+
"author": "Telia Company AB",
|
|
7
|
+
"keywords": [
|
|
8
|
+
"telia"
|
|
9
|
+
],
|
|
10
|
+
"main": "lib/index.js",
|
|
11
|
+
"module": "lib-esm/index.js",
|
|
12
|
+
"files": [
|
|
13
|
+
"LICENSE.txt",
|
|
14
|
+
"README.md",
|
|
15
|
+
"lib/",
|
|
16
|
+
"lib-esm/"
|
|
17
|
+
],
|
|
18
|
+
"publishConfig": {
|
|
19
|
+
"access": "public"
|
|
20
|
+
},
|
|
21
|
+
"scripts": {
|
|
22
|
+
"clean": "cleandir lib && cleandir lib-esm",
|
|
23
|
+
"compile": "tsc -p tsconfig.cjs.json && tsc -p tsconfig.esm.json"
|
|
24
|
+
},
|
|
25
|
+
"sideEffects": false,
|
|
26
|
+
"typings": "lib/index.d.ts",
|
|
27
|
+
"dependencies": {
|
|
28
|
+
"@telia-ace/knowledge-widget-component-utilities": "^1.0.1",
|
|
29
|
+
"@telia-ace/knowledge-widget-core": "^1.0.1",
|
|
30
|
+
"@telia-ace/knowledge-widget-types-grid": "^1.0.1",
|
|
31
|
+
"@telia-ace/knowledge-widget-ui": "^1.0.1",
|
|
32
|
+
"@telia-ace/widget-utilities": "^1.0.1",
|
|
33
|
+
"@webprovisions/platform": "^1.1.2",
|
|
34
|
+
"react": "^17.0.2",
|
|
35
|
+
"react-dom": "^17.0.2",
|
|
36
|
+
"styled-components": "^4.3.2"
|
|
37
|
+
},
|
|
38
|
+
"devDependencies": {
|
|
39
|
+
"@types/react": "^17.0.39",
|
|
40
|
+
"@types/react-dom": "^17.0.13",
|
|
41
|
+
"@types/styled-components": "^5.1.7"
|
|
42
|
+
},
|
|
43
|
+
"gitHead": "58b00b80f6a1e4a3c13f4291cb29b9422ea1aa4a"
|
|
44
|
+
}
|