@telia-ace/widget-types-grid 1.0.21 → 1.0.22

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 CHANGED
@@ -1,6 +1,6 @@
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:
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
6
  http://www.humany.com/legal
package/README.md CHANGED
@@ -1,3 +1,3 @@
1
- # `@telia-ace/widget-types-grid`
2
-
3
- The type definition for ACE One Widget (exported as `GridWidget`).
1
+ # `@telia-ace/widget-types-grid`
2
+
3
+ The type definition for ACE One Widget (exported as `GridWidget`).
@@ -1,13 +1,13 @@
1
- import { ChangesetOptions, ChangesetProvider, ComponentNodeSettings, ComponentPlatform, ComponentQuery } from '@telia-ace/widget-core';
2
- import { StorageWriter } from '@telia-ace/widget-services';
3
- import { Container, Widget } from '@webprovisions/platform';
4
- export declare class LocalStorageChangesetProvider implements ChangesetProvider {
5
- private container;
6
- private storageWriter;
7
- constructor(container: Container, storageWriter: StorageWriter);
8
- static create(container: Container): Promise<LocalStorageChangesetProvider>;
9
- write(key: string, target: ComponentQuery, attributes: Partial<ComponentNodeSettings>, options: ChangesetOptions): Promise<any>;
10
- remove(key: string): Promise<any>;
11
- load(platform: ComponentPlatform): Promise<any>;
12
- }
13
- export declare const createPlatform: (widget: Widget) => Promise<ComponentPlatform>;
1
+ import { ChangesetOptions, ChangesetProvider, ComponentNodeSettings, ComponentPlatform, ComponentQuery } from '@telia-ace/widget-core';
2
+ import { StorageWriter } from '@telia-ace/widget-services';
3
+ import { Container, Widget } from '@webprovisions/platform';
4
+ export declare class LocalStorageChangesetProvider implements ChangesetProvider {
5
+ private container;
6
+ private storageWriter;
7
+ constructor(container: Container, storageWriter: StorageWriter);
8
+ static create(container: Container): Promise<LocalStorageChangesetProvider>;
9
+ write(key: string, target: ComponentQuery, attributes: Partial<ComponentNodeSettings>, options: ChangesetOptions): Promise<any>;
10
+ remove(key: string): Promise<any>;
11
+ load(platform: ComponentPlatform): Promise<any>;
12
+ }
13
+ export declare const createPlatform: (widget: Widget) => Promise<ComponentPlatform>;
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- export { default as Component } from './ui/component';
2
- export { default as DetachedComponent } from './ui/detached-component';
3
- export { default as NotFound } from './ui/not-found';
4
- export { styling as genericComponentStyling } from './ui/styles';
5
- export { default as GridWidget, default as Widget } from './widget';
1
+ export { default as Component } from './ui/component';
2
+ export { default as DetachedComponent } from './ui/detached-component';
3
+ export { default as NotFound } from './ui/not-found';
4
+ export { styling as genericComponentStyling } from './ui/styles';
5
+ export { default as GridWidget, default as Widget } from './widget';
package/dist/index.js CHANGED
@@ -487,7 +487,7 @@ class Dt {
487
487
  }
488
488
  render() {
489
489
  const { widgetDOMElement: e, triggerDOMElement: n } = this.options, i = this.container.get("$widget");
490
- return e.getAttribute("data-rendered") === "true" ? Promise.resolve() : (n && this.options.triggerType === P.Badge && Ot(n), import("./render.7937414f.js").then((s) => s.default(this.container, e)).then(() => {
490
+ return e.getAttribute("data-rendered") === "true" ? Promise.resolve() : (n && this.options.triggerType === P.Badge && Ot(n), import("./render.20e0f363.js").then((s) => s.default(this.container, e)).then(() => {
491
491
  if (e.setAttribute("data-rendered", "true"), n && this.options.triggerType === P.Badge) {
492
492
  const o = this.options.triggerOptions.openTooltip;
493
493
  Ee(n, o);
@@ -609,7 +609,7 @@ const Nt = (t) => {
609
609
  } = i, l = new n(r, { credentials: "same-origin" }), h = new e(l, {
610
610
  funnel: s.replace("_contact-method", "").replace("_contact", ""),
611
611
  site: Lt(c, a)
612
- });
612
+ }, null, t);
613
613
  return o.subscribe("widget:settings-updated", (u, { data: p }) => {
614
614
  p && p.projection !== r && h.proxy.setBaseUrl(p.projection);
615
615
  }), h;