@telia-ace/widget-core 1.3.59 → 1.3.60-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/action-resolver.d.ts +0 -1
- package/bootstrap.d.ts +0 -1
- package/component-platform/actions-controller.d.ts +0 -1
- package/component-platform/changeset-provider.d.ts +8 -0
- package/component-platform/component-controller.d.ts +0 -1
- package/component-platform/component-node-collection.d.ts +0 -1
- package/component-platform/component-node.d.ts +0 -1
- package/component-platform/component-platform.d.ts +0 -1
- package/component-platform/component-query.d.ts +0 -1
- package/component-platform/create-component-model.d.ts +0 -1
- package/component-platform/custom-component-handler.d.ts +0 -1
- package/component-platform/descriptor.d.ts +0 -1
- package/component-platform/extend-component.d.ts +0 -1
- package/component-platform/queries.d.ts +0 -1
- package/component-platform/state-processor.d.ts +0 -1
- package/component-resolver.d.ts +1 -2
- package/environment.d.ts +0 -1
- package/event-subscriber.d.ts +0 -1
- package/implementation.d.ts +0 -1
- package/package.json +2 -2
- package/plugin.d.ts +0 -1
- package/types/configuration.d.ts +0 -1
- package/widget-type.d.ts +0 -1
package/action-resolver.d.ts
CHANGED
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;
|
|
@@ -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
|
};
|
|
@@ -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,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;
|
package/component-resolver.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { Logger } from '
|
|
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).
|
package/event-subscriber.d.ts
CHANGED
|
@@ -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
|
package/implementation.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@telia-ace/widget-core",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.60-rc.0",
|
|
4
4
|
"dependencies": {
|
|
5
|
-
"@telia-ace/widget-utilities": "^1.3.
|
|
5
|
+
"@telia-ace/widget-utilities": "^1.3.60-rc.0",
|
|
6
6
|
"@webprovisions/bootstrapping": "^1.0.14",
|
|
7
7
|
"@webprovisions/platform": "^1.1.4"
|
|
8
8
|
},
|
package/plugin.d.ts
CHANGED
package/types/configuration.d.ts
CHANGED