@telia-ace/knowledge-widget-core 1.0.43 → 1.1.1-rc.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/package.json CHANGED
@@ -1,33 +1,12 @@
1
1
  {
2
2
  "name": "@telia-ace/knowledge-widget-core",
3
- "version": "1.0.43",
4
- "description": "Core framework for ACE Knowledge widgets.",
5
- "license": "SEE LICENSE IN LICENSE.txt",
6
- "author": "Telia Company AB",
7
- "keywords": [
8
- "telia"
9
- ],
10
- "main": "dist/index.js",
11
- "sourceMain": "src/index.ts",
12
- "type": "module",
13
- "types": "dist/index.d.ts",
14
- "files": [
15
- "LICENSE.txt",
16
- "README.md",
17
- "dist/"
18
- ],
19
- "publishConfig": {
20
- "access": "public"
21
- },
22
- "sideEffects": false,
3
+ "version": "1.1.1-rc.0",
23
4
  "dependencies": {
24
- "@telia-ace/widget-core": "^1.0.28",
25
- "@telia-ace/widget-utilities": "^1.0.17",
26
- "@webprovisions/bootstrapping": "1.0.13",
5
+ "@telia-ace/widget-core": "^1.1.1-rc.0",
6
+ "@webprovisions/bootstrapping": "^1.0.14",
27
7
  "@webprovisions/platform": "^1.1.4"
28
8
  },
29
- "scripts": {
30
- "clean": "rimraf ./dist",
31
- "build": "rimraf ./dist && tsc -emitDeclarationOnly && vite build"
32
- }
9
+ "main": "./index.js",
10
+ "module": "./index.mjs",
11
+ "typings": "./index.d.ts"
33
12
  }
package/LICENSE.txt DELETED
@@ -1,6 +0,0 @@
1
- Copyright © 2021, Telia Company AB. All rights reserved.
2
-
3
- THIS PACKAGE AND CONTAINING SOFTWARE IS PART OF
4
- THE HUMANY SERVICE. BY USING THIS SOFTWARE YOU
5
- AGREE TO THE FOLLOWING TERMS AND CONDITIONS:
6
- http://www.humany.com/legal
package/README.md DELETED
@@ -1,3 +0,0 @@
1
- # `@telia-ace/knowledge-widget-core`
2
-
3
- Core framework for ACE knowledge widgets.
package/dist/index.js DELETED
@@ -1,25 +0,0 @@
1
- export * from "@telia-ace/widget-core";
2
- import { Environment as h } from "@telia-ace/widget-core";
3
- import { supportBootstrapping as p } from "@webprovisions/bootstrapping";
4
- import { Widget as x, destroyWidget as A } from "@webprovisions/platform";
5
- var r = /* @__PURE__ */ ((t) => (t.guide = "guide", t.link = "link", t.default = "default", t))(r || {}), a = /* @__PURE__ */ ((t) => (t.MODAL = "modal", t.DRAWER = "drawer", t.DROPDOWN = "dropdown", t.NONE = "none", t))(a || {});
6
- const d = (t, e) => fetch(e + "/config.json").then((n) => n.json()).then((n) => n.implementation).then(
7
- (n) => t.createImplementation(n)
8
- ), u = d, i = (t, e) => {
9
- const n = `${t}${e}/interfaceauthorized`;
10
- return fetch(n, {
11
- method: "GET",
12
- credentials: "include"
13
- }).then((o) => o.status === 200 && o.ok);
14
- }, m = i;
15
- export {
16
- r as DialogItemType,
17
- h as Humany,
18
- a as PickerTypes,
19
- x as Widget,
20
- A as destroy,
21
- u as loadImplementation,
22
- p as supportBootstrapping,
23
- m as verifyAuth
24
- };
25
- //# sourceMappingURL=index.js.map
package/dist/index.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sources":["../src/data-types.ts","../src/load-implementation.ts","../src/verify-auth.ts"],"sourcesContent":["export type Symbol = {\n type: 'Uri' | 'Svg' | 'FontAwesome' | 'Text' | string;\n content: string;\n};\n\nexport type Guide = {\n id: string;\n title: string;\n tags: Tag[];\n published?: string;\n modified?: string;\n publishedBy?: string;\n modifiedBy?: string;\n};\n\nexport type Category = {\n id: string;\n title: string;\n symbol?: Symbol;\n activeSymbol?: Symbol;\n description?: string;\n items?: Category[];\n matches?: number;\n};\n\nexport type Tag = {\n id: string;\n title: string;\n symbol?: Symbol;\n matches?: number;\n defaultIcon?: Symbol;\n activeIcon?: Symbol;\n};\n\nexport enum DialogItemType {\n guide = 'guide',\n link = 'link',\n default = 'default',\n}\n\nexport type DialogItem = {\n id: string;\n title: string;\n parent: Guide;\n type: DialogItemType;\n connection?: string;\n connectionKey?: string;\n href?: string;\n target?: string;\n};\n\nexport type GuideCategoryBrowserList = {\n id: string;\n title: string;\n symbol?: Symbol;\n guides: Guide[];\n paging: boolean;\n pager?: string;\n};\n\nexport type Notification = {\n id: string;\n title: string;\n body: string;\n modified?: string;\n expandable?: boolean;\n};\n\nexport type NotificationList = {\n id: string;\n title?: string;\n symbol?: Symbol;\n notifications: Notification[];\n defaultHeaderOptions?: {\n visible: boolean;\n };\n};\n\nexport type Tab = {\n title: string;\n name: string;\n aliases: string[];\n};\n\nexport type WidgetEntry = {\n id: string;\n type: string;\n content: {\n open: boolean;\n };\n origin: string;\n};\n\nexport enum PickerTypes {\n MODAL = 'modal',\n DRAWER = 'drawer',\n DROPDOWN = 'dropdown',\n NONE = 'none',\n}\n","import { Environment, Implementation } from '@telia-ace/widget-core';\nimport { BootstrappedImplementationConfiguration } from '@webprovisions/bootstrapping';\n\n/**\n * Loads a Humany implementation by fetching the configuration from the specified URL.\n * @param implementationPath Implementation URL.\n */\nconst loadImplementation = (humany: Environment, url: string): Promise<Implementation> => {\n return fetch(url + '/config.json')\n .then((response) => response.json())\n .then((json) => json.implementation)\n .then((configuration: BootstrappedImplementationConfiguration) =>\n humany.createImplementation(configuration)\n );\n};\nexport default loadImplementation;\n","const verifyAuth = (host: string, widgetName: string): Promise<boolean> => {\n const url = `${host}${widgetName}/interfaceauthorized`;\n\n return fetch(url, {\n method: 'GET',\n credentials: 'include',\n }).then((response) => response.status === 200 && response.ok);\n};\n\nexport default verifyAuth;\n"],"names":["DialogItemType","PickerTypes","loadImplementation","humany","url","response","json","configuration","loadImplementation$1","verifyAuth","host","widgetName","verifyAuth$1"],"mappings":";;;;AAkCY,IAAAA,sBAAAA,OACRA,EAAA,QAAQ,SACRA,EAAA,OAAO,QACPA,EAAA,UAAU,WAHFA,IAAAA,KAAA,CAAA,CAAA,GA2DAC,sBAAAA,OACRA,EAAA,QAAQ,SACRA,EAAA,SAAS,UACTA,EAAA,WAAW,YACXA,EAAA,OAAO,QAJCA,IAAAA,KAAA,CAAA,CAAA;ACtFZ,MAAMC,IAAqB,CAACC,GAAqBC,MACtC,MAAMA,IAAM,cAAc,EAC5B,KAAK,CAACC,MAAaA,EAAS,KAAM,CAAA,EAClC,KAAK,CAACC,MAASA,EAAK,cAAc,EAClC;AAAA,EAAK,CAACC,MACHJ,EAAO,qBAAqBI,CAAa;AAAA,GAGrDC,IAAeN,GCfTO,IAAa,CAACC,GAAcC,MAAyC;AACjE,QAAAP,IAAM,GAAGM,IAAOC;AAEtB,SAAO,MAAMP,GAAK;AAAA,IACd,QAAQ;AAAA,IACR,aAAa;AAAA,EAAA,CAChB,EAAE,KAAK,CAACC,MAAaA,EAAS,WAAW,OAAOA,EAAS,EAAE;AAChE,GAEAO,IAAeH;"}
File without changes
File without changes
File without changes