@telia-ace/widget-core 1.3.59-rc.1 → 1.3.59-rc.2

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.
@@ -1,5 +1,4 @@
1
1
  import { Container, EventSubscriptionCancellation } from '@webprovisions/platform';
2
-
3
2
  export type Action = (origin: string, action: string, value?: any) => void;
4
3
  export default class ActionResolver {
5
4
  private events;
package/bootstrap.d.ts CHANGED
@@ -1,7 +1,6 @@
1
1
  import { BootstrappedImplementation } from '@webprovisions/bootstrapping';
2
2
  import { ConfigureCallback } from '@webprovisions/platform';
3
3
  import { default as Implementation } from './implementation';
4
-
5
4
  export type BootstrapOptions = {
6
5
  /**
7
6
  * Resolver function for the root element to base the bootstrapping on.
@@ -3,7 +3,6 @@ import { ComponentNodeController } from './component-controller';
3
3
  import { ComponentNode } from './component-node';
4
4
  import { ComponentPlatform } from './component-platform';
5
5
  import { ComponentQuery } from './component-query';
6
-
7
6
  export type ActionData = any;
8
7
  export type ActionHandler = (data: any, options: any, instance: ComponentNodeController) => any;
9
8
  export type NextActionDelegate = (data: any, options?: any) => Promise<any>;
@@ -0,0 +1,8 @@
1
+ import { ChangesetOptions, ComponentNodeSettings } from './component-node';
2
+ import { ComponentPlatform } from './component-platform';
3
+ import { ComponentQuery } from './component-query';
4
+ export interface ChangesetProvider {
5
+ write: (key: string, target: ComponentQuery, attributes: Partial<ComponentNodeSettings>, options: ChangesetOptions) => void;
6
+ remove: (key: string) => void;
7
+ load: (platform: ComponentPlatform) => Promise<any>;
8
+ }
@@ -2,7 +2,6 @@ import { ActionsController } from './actions-controller';
2
2
  import { ChangesetOptions, ComponentNode, ComponentNodeContext, ComponentNodeLayout, ComponentNodeProperties } from './component-node';
3
3
  import { ComponentPlatform } from './component-platform';
4
4
  import { ComponentQuery } from './component-query';
5
-
6
5
  export interface ComponentController {
7
6
  actions: ActionsController;
8
7
  writeProperties(properties: Partial<ComponentNodeProperties>, options: ChangesetOptions): void;
@@ -1,7 +1,6 @@
1
1
  import { EventManager } from '@webprovisions/platform';
2
2
  import { ComponentNode } from './component-node';
3
3
  import { SwitchMap } from './component-platform';
4
-
5
4
  export type QueryDescriptor = {
6
5
  id?: string;
7
6
  type?: string;
@@ -1,6 +1,5 @@
1
1
  import { Container, EventManager } from '@webprovisions/platform';
2
2
  import { Breakpoints } from '../types';
3
-
4
3
  export type ComponentNodeEventData = {
5
4
  node: ComponentNode;
6
5
  };
@@ -5,7 +5,6 @@ import { ChangesetOptions, ComponentNode, ComponentNodeSettings, RemoveChangeset
5
5
  import { ComponentNodeCollection } from './component-node-collection';
6
6
  import { ComponentQuery } from './component-query';
7
7
  import { CustomHandlerCallback } from './custom-component-handler';
8
-
9
8
  export type MergeOptions = {
10
9
  breakpoints?: string[];
11
10
  };
@@ -1,7 +1,6 @@
1
1
  import { AbstractComponentController } from './component-controller';
2
2
  import { ComponentNode } from './component-node';
3
3
  import { ComponentPlatform } from './component-platform';
4
-
5
4
  export type ComponentQueryRule = {
6
5
  id?: string;
7
6
  type?: string;
@@ -2,7 +2,6 @@ import { EventSubscriptionCancellation } from '@webprovisions/platform';
2
2
  import { Breakpoints, ComponentSettings, ViewDefinition, WidgetSettings } from '../types';
3
3
  import { ComponentNode, ComponentNodeContext, ComponentNodeLayout, ComponentNodeProperties } from './component-node';
4
4
  import { ComponentPlatform } from './component-platform';
5
-
6
5
  type ComponentReference = string | [string, ...ComponentReferenceOverride[]];
7
6
  type ComponentReferenceOverride = {
8
7
  breakpoints?: Breakpoints;
@@ -2,7 +2,6 @@ import { ComponentReference, ComponentSettings, ViewDefinition } from '../types'
2
2
  import { ComponentNode } from './component-node';
3
3
  import { ComponentPlatform } from './component-platform';
4
4
  import { NormalizedComponentReference } from './create-component-model';
5
-
6
5
  export type CustomHandlerCallback = (ref: NormalizedComponentReference, options: {
7
6
  platform: ComponentPlatform;
8
7
  node: ComponentNode;
@@ -1,5 +1,4 @@
1
1
  import { ComponentNode } from './component-node';
2
-
3
2
  export type ComponentDescriptor = {
4
3
  id: string;
5
4
  type?: string;
@@ -1,7 +1,6 @@
1
1
  import { Container } from '@webprovisions/platform';
2
2
  import { ComponentNodeController } from './component-controller';
3
3
  import { ComponentQuery } from './component-query';
4
-
5
4
  export type ExtendComponentHandler = (controller: ComponentNodeController) => any;
6
5
  export type ExtendComponentOptions = {
7
6
  reuseController?: boolean;
@@ -1,6 +1,5 @@
1
1
  import { ComponentNode } from './component-node';
2
2
  import { SwitchMap } from './component-platform';
3
-
4
3
  export declare const traverseComponents: (root: ComponentNode, switches: SwitchMap, fn: (node: ComponentNode) => boolean | void) => void;
5
4
  export declare const findVisibleComponents: (root: ComponentNode, switches: SwitchMap) => ComponentNode[];
6
5
  export declare const findComponent: (root: ComponentNode, switches: SwitchMap, fn: (node: ComponentNode) => boolean) => ComponentNode | undefined;
@@ -1,6 +1,5 @@
1
1
  import { ComponentPlatform } from '.';
2
2
  import { ComponentNode } from './component-node';
3
-
4
3
  export type ProcessOptions = {
5
4
  context?: boolean;
6
5
  properties?: boolean;
@@ -1,6 +1,5 @@
1
- import { Logger } from '../../utilities/src/index.ts';
1
+ import { Logger } from '@telia-ace/widget-utilities';
2
2
  import { Container, EventManager, EventSubscriptionCancellation } from '@webprovisions/platform';
3
-
4
3
  export type ReactComponent = any | null;
5
4
  export default class ComponentResolver {
6
5
  aliases: Map<string, string>;
package/environment.d.ts CHANGED
@@ -1,7 +1,6 @@
1
1
  import { BootstrappedImplementationConfiguration } from '@webprovisions/bootstrapping';
2
2
  import { ConfigurationApiDefinition, Environment as EnvironmentBase, WidgetSelector } from '@webprovisions/platform';
3
3
  import { default as Implementation } from './implementation';
4
-
5
4
  export interface RuntimeConfiguration {
6
5
  /**
7
6
  * Extensions for the configuration API (optional).
@@ -1,5 +1,4 @@
1
1
  import { EventListener, EventManager, EventSubscriptionCancellation } from '@webprovisions/platform';
2
-
3
2
  export type SubscribeDelegate = (type: string, listener: EventListener) => void;
4
3
  /**
5
4
  * Creates s subscriber for the specified `EventManager` and provides a single cancellation
@@ -1,5 +1,4 @@
1
1
  import { Implementation as ImplementationBase } from '@webprovisions/platform';
2
-
3
2
  /**
4
3
  * Represents an implementation.
5
4
  */
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@telia-ace/widget-core",
3
- "version": "1.3.59-rc.1",
3
+ "version": "1.3.59-rc.2",
4
4
  "dependencies": {
5
- "@telia-ace/widget-utilities": "^1.3.59-rc.1",
5
+ "@telia-ace/widget-utilities": "^1.3.59-rc.2",
6
6
  "@webprovisions/bootstrapping": "^1.0.14",
7
7
  "@webprovisions/platform": "^1.1.4"
8
8
  },
package/plugin.d.ts CHANGED
@@ -1,5 +1,4 @@
1
1
  import { Container, Plugin as PluginBase } from '@webprovisions/platform';
2
-
3
2
  /**
4
3
  * Base class for a widget plugin.
5
4
  */
@@ -1,5 +1,4 @@
1
1
  import { ComponentNodeLayout } from '../component-platform';
2
-
3
2
  export type ComponentSettings = {
4
3
  type: string;
5
4
  context?: Context;
package/widget-type.d.ts CHANGED
@@ -1,5 +1,4 @@
1
1
  import { Container, WidgetType as WidgetTypeBase } from '@webprovisions/platform';
2
-
3
2
  /**
4
3
  * Base class for a widget.
5
4
  */