@telia-ace/knowledge-widget-plugins 1.3.41-rc.1 → 1.3.41

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.
Files changed (2) hide show
  1. package/index.mjs +7 -7
  2. package/package.json +5 -5
package/index.mjs CHANGED
@@ -1,10 +1,10 @@
1
1
  import { Plugin as y, extendComponent as P } from "@telia-ace/knowledge-widget-core";
2
- import { createStorageWriter as F, StorageCategory as L, StorageMedium as C, readStorage as S } from "@telia-ace/widget-services";
2
+ import { readStorage as F, StorageMedium as L, createStorageWriter as C, StorageCategory as S } from "@telia-ace/widget-services";
3
3
  import { ResourceLoader as T } from "@telia-ace/knowledge-resource-loader";
4
4
  import { DataClient as B, DataType as M } from "@telia-ace/knowledge-data-client";
5
- const b = "favorites", v = async (n) => await F(n, b, L.Necessary, {
6
- medium: C.Local
7
- }), E = async (n) => await S(n, b, C.Local) || [], N = async (n, e) => {
5
+ const b = "favorites", v = async (n) => await C(n, b, S.Necessary, {
6
+ medium: L.Local
7
+ }), E = async (n) => await F(n, b, L.Local) || [], N = async (n, e) => {
8
8
  const s = await v(e), o = await E(e);
9
9
  if (o.indexOf(n) > -1)
10
10
  return o;
@@ -97,10 +97,10 @@ const G = async (n, e) => {
97
97
  if (t) {
98
98
  const { categories: r = [], contactMethods: u = [] } = t;
99
99
  if (i === null)
100
- return i = r.length === 0 && u.length === 1, F(
100
+ return i = r.length === 0 && u.length === 1, C(
101
101
  a.container,
102
102
  A,
103
- L.Functional
103
+ S.Functional
104
104
  ).then((f) => f(i));
105
105
  }
106
106
  })), { events: o } = n.get("$widget");
@@ -113,7 +113,7 @@ const G = async (n, e) => {
113
113
  const r = n.get("$widget"), { name: u, implementation: f } = r;
114
114
  if (u.endsWith("_contact") ? t = f.widgets.get(u.replace("_contact", "")) : u.endsWith("_contact-method") || (t = r), t) {
115
115
  let d = null;
116
- const l = await S(
116
+ const l = await F(
117
117
  t.container,
118
118
  A
119
119
  ), m = (await t.container.getAsync("components")).components().ofType("widget-header").select();
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@telia-ace/knowledge-widget-plugins",
3
- "version": "1.3.41-rc.1",
3
+ "version": "1.3.41",
4
4
  "dependencies": {
5
- "@telia-ace/knowledge-data-client": "^1.3.41-rc.1",
6
- "@telia-ace/widget-services": "^1.3.41-rc.1",
5
+ "@telia-ace/knowledge-data-client": "^1.3.41",
6
+ "@telia-ace/widget-services": "^1.3.41",
7
7
  "@webprovisions/platform": "^1.1.4",
8
- "@telia-ace/knowledge-widget-core": "^1.3.41-rc.1",
9
- "@telia-ace/knowledge-resource-loader": "^1.3.41-rc.1"
8
+ "@telia-ace/knowledge-widget-core": "^1.3.41",
9
+ "@telia-ace/knowledge-resource-loader": "^1.3.41"
10
10
  },
11
11
  "peerDependencies": {
12
12
  "@emotion/react": "11.11.1"