@telia-ace/widget-core 1.0.6 → 1.0.7
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 +5 -5
- package/README.md +3 -3
- package/dist/action-resolver.d.ts +8 -8
- package/dist/component-platform/actions-controller.d.ts +40 -40
- package/dist/component-platform/changeset-provider.d.ts +8 -8
- package/dist/component-platform/component-configuration-api.d.ts +2 -2
- package/dist/component-platform/component-controller.d.ts +38 -38
- package/dist/component-platform/component-node-collection.d.ts +18 -18
- package/dist/component-platform/component-node.d.ts +63 -63
- package/dist/component-platform/component-platform.d.ts +54 -54
- package/dist/component-platform/component-query.d.ts +16 -16
- package/dist/component-platform/create-component-model.d.ts +36 -36
- package/dist/component-platform/custom-component-handler.d.ts +21 -21
- package/dist/component-platform/descriptor.d.ts +8 -8
- package/dist/component-platform/extend-component.d.ts +8 -8
- package/dist/component-platform/index.d.ts +18 -18
- package/dist/component-platform/queries.d.ts +6 -6
- package/dist/component-platform/state-processor.d.ts +12 -12
- package/dist/component-resolver.d.ts +14 -14
- package/dist/event-subscriber.d.ts +7 -7
- package/dist/index.d.ts +8 -8
- package/dist/index.js.map +1 -1
- package/dist/types/configuration.d.ts +86 -86
- package/dist/types/index.d.ts +2 -2
- package/dist/types/ui.d.ts +54 -54
- package/package.json +2 -2
|
@@ -1,86 +1,86 @@
|
|
|
1
|
-
import { ComponentNodeLayout } from '../component-platform';
|
|
2
|
-
export declare type ComponentSettings = {
|
|
3
|
-
type: string;
|
|
4
|
-
context?: Context;
|
|
5
|
-
properties?: Properties;
|
|
6
|
-
layout?: ComponentNodeLayout;
|
|
7
|
-
tags?: string[];
|
|
8
|
-
children?: ComponentReference[];
|
|
9
|
-
};
|
|
10
|
-
declare enum HistoryMode {
|
|
11
|
-
scopedHash = "scopedHash",
|
|
12
|
-
hash = "hash",
|
|
13
|
-
browser = "browser",
|
|
14
|
-
memory = "memory"
|
|
15
|
-
}
|
|
16
|
-
export declare type RoutingSettings = {
|
|
17
|
-
initialPath: string;
|
|
18
|
-
mode: HistoryMode;
|
|
19
|
-
basePath?: string;
|
|
20
|
-
};
|
|
21
|
-
export declare type ComponentReference = string | [string, ...ComponentReferenceOverride[]];
|
|
22
|
-
export declare type Properties = {
|
|
23
|
-
[key: string]: any;
|
|
24
|
-
};
|
|
25
|
-
export declare type Context = {
|
|
26
|
-
[key: string]: any;
|
|
27
|
-
};
|
|
28
|
-
export declare type ViewDefinition = {
|
|
29
|
-
path: string | string[];
|
|
30
|
-
entry: ComponentReference;
|
|
31
|
-
};
|
|
32
|
-
export declare type Breakpoints = 'all' | string[];
|
|
33
|
-
export declare type ComponentReferenceOverride = {
|
|
34
|
-
breakpoints?: Breakpoints;
|
|
35
|
-
size?: number | 'full' | 'none';
|
|
36
|
-
indent?: number;
|
|
37
|
-
tags?: string[];
|
|
38
|
-
context?: Context;
|
|
39
|
-
properties?: Properties;
|
|
40
|
-
};
|
|
41
|
-
export declare type ComponentDefinitionMap = {
|
|
42
|
-
[name: string]: ComponentSettings;
|
|
43
|
-
};
|
|
44
|
-
export declare type WidgetSettings = {
|
|
45
|
-
data: {
|
|
46
|
-
projection: string;
|
|
47
|
-
site?: 'current' | 'referrer';
|
|
48
|
-
forceHttps?: boolean;
|
|
49
|
-
};
|
|
50
|
-
components: ComponentDefinitionMap;
|
|
51
|
-
entry: ComponentReference;
|
|
52
|
-
breakpoints: {
|
|
53
|
-
[name: string]: string;
|
|
54
|
-
};
|
|
55
|
-
routing: RoutingSettings;
|
|
56
|
-
views: {
|
|
57
|
-
[name: string]: ViewDefinition;
|
|
58
|
-
};
|
|
59
|
-
integrationResources: {
|
|
60
|
-
path: string;
|
|
61
|
-
mediaQueriesSupported: boolean;
|
|
62
|
-
}[];
|
|
63
|
-
trigger?: {
|
|
64
|
-
symbol?: Symbol;
|
|
65
|
-
label?: string;
|
|
66
|
-
action?: string;
|
|
67
|
-
};
|
|
68
|
-
activate?: boolean | null;
|
|
69
|
-
plugins?: {
|
|
70
|
-
[key: string]: any;
|
|
71
|
-
};
|
|
72
|
-
};
|
|
73
|
-
export declare type MinMax = {
|
|
74
|
-
min: string;
|
|
75
|
-
max: string;
|
|
76
|
-
};
|
|
77
|
-
declare type Symbol = {
|
|
78
|
-
type: 'Uri' | 'Svg' | 'FontAwesome' | 'Text' | string;
|
|
79
|
-
content: string;
|
|
80
|
-
};
|
|
81
|
-
export declare enum WidgetRenderState {
|
|
82
|
-
open = "open",
|
|
83
|
-
closed = "closed",
|
|
84
|
-
hidden = "hidden"
|
|
85
|
-
}
|
|
86
|
-
export {};
|
|
1
|
+
import { ComponentNodeLayout } from '../component-platform';
|
|
2
|
+
export declare type ComponentSettings = {
|
|
3
|
+
type: string;
|
|
4
|
+
context?: Context;
|
|
5
|
+
properties?: Properties;
|
|
6
|
+
layout?: ComponentNodeLayout;
|
|
7
|
+
tags?: string[];
|
|
8
|
+
children?: ComponentReference[];
|
|
9
|
+
};
|
|
10
|
+
declare enum HistoryMode {
|
|
11
|
+
scopedHash = "scopedHash",
|
|
12
|
+
hash = "hash",
|
|
13
|
+
browser = "browser",
|
|
14
|
+
memory = "memory"
|
|
15
|
+
}
|
|
16
|
+
export declare type RoutingSettings = {
|
|
17
|
+
initialPath: string;
|
|
18
|
+
mode: HistoryMode;
|
|
19
|
+
basePath?: string;
|
|
20
|
+
};
|
|
21
|
+
export declare type ComponentReference = string | [string, ...ComponentReferenceOverride[]];
|
|
22
|
+
export declare type Properties = {
|
|
23
|
+
[key: string]: any;
|
|
24
|
+
};
|
|
25
|
+
export declare type Context = {
|
|
26
|
+
[key: string]: any;
|
|
27
|
+
};
|
|
28
|
+
export declare type ViewDefinition = {
|
|
29
|
+
path: string | string[];
|
|
30
|
+
entry: ComponentReference;
|
|
31
|
+
};
|
|
32
|
+
export declare type Breakpoints = 'all' | string[];
|
|
33
|
+
export declare type ComponentReferenceOverride = {
|
|
34
|
+
breakpoints?: Breakpoints;
|
|
35
|
+
size?: number | 'full' | 'none';
|
|
36
|
+
indent?: number;
|
|
37
|
+
tags?: string[];
|
|
38
|
+
context?: Context;
|
|
39
|
+
properties?: Properties;
|
|
40
|
+
};
|
|
41
|
+
export declare type ComponentDefinitionMap = {
|
|
42
|
+
[name: string]: ComponentSettings;
|
|
43
|
+
};
|
|
44
|
+
export declare type WidgetSettings = {
|
|
45
|
+
data: {
|
|
46
|
+
projection: string;
|
|
47
|
+
site?: 'current' | 'referrer';
|
|
48
|
+
forceHttps?: boolean;
|
|
49
|
+
};
|
|
50
|
+
components: ComponentDefinitionMap;
|
|
51
|
+
entry: ComponentReference;
|
|
52
|
+
breakpoints: {
|
|
53
|
+
[name: string]: string;
|
|
54
|
+
};
|
|
55
|
+
routing: RoutingSettings;
|
|
56
|
+
views: {
|
|
57
|
+
[name: string]: ViewDefinition;
|
|
58
|
+
};
|
|
59
|
+
integrationResources: {
|
|
60
|
+
path: string;
|
|
61
|
+
mediaQueriesSupported: boolean;
|
|
62
|
+
}[];
|
|
63
|
+
trigger?: {
|
|
64
|
+
symbol?: Symbol;
|
|
65
|
+
label?: string;
|
|
66
|
+
action?: string;
|
|
67
|
+
};
|
|
68
|
+
activate?: boolean | null;
|
|
69
|
+
plugins?: {
|
|
70
|
+
[key: string]: any;
|
|
71
|
+
};
|
|
72
|
+
};
|
|
73
|
+
export declare type MinMax = {
|
|
74
|
+
min: string;
|
|
75
|
+
max: string;
|
|
76
|
+
};
|
|
77
|
+
declare type Symbol = {
|
|
78
|
+
type: 'Uri' | 'Svg' | 'FontAwesome' | 'Text' | string;
|
|
79
|
+
content: string;
|
|
80
|
+
};
|
|
81
|
+
export declare enum WidgetRenderState {
|
|
82
|
+
open = "open",
|
|
83
|
+
closed = "closed",
|
|
84
|
+
hidden = "hidden"
|
|
85
|
+
}
|
|
86
|
+
export {};
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './configuration';
|
|
2
|
-
export * from './ui';
|
|
1
|
+
export * from './configuration';
|
|
2
|
+
export * from './ui';
|
package/dist/types/ui.d.ts
CHANGED
|
@@ -1,54 +1,54 @@
|
|
|
1
|
-
export declare type Theme = {
|
|
2
|
-
gap: string;
|
|
3
|
-
accessibility: {
|
|
4
|
-
isTabbing: boolean;
|
|
5
|
-
border: string;
|
|
6
|
-
colors: {
|
|
7
|
-
inactiveText: string;
|
|
8
|
-
activeText: string;
|
|
9
|
-
};
|
|
10
|
-
};
|
|
11
|
-
border: string;
|
|
12
|
-
borderRadius: string;
|
|
13
|
-
boxShadow: string;
|
|
14
|
-
inputBorder: string;
|
|
15
|
-
colors: {
|
|
16
|
-
warning: string;
|
|
17
|
-
accent: string;
|
|
18
|
-
link: string;
|
|
19
|
-
primary: string;
|
|
20
|
-
text: string;
|
|
21
|
-
textLight: string;
|
|
22
|
-
};
|
|
23
|
-
fonts: {
|
|
24
|
-
type: string;
|
|
25
|
-
base: string;
|
|
26
|
-
small: string;
|
|
27
|
-
normal: string;
|
|
28
|
-
medium: string;
|
|
29
|
-
large: string;
|
|
30
|
-
huge: string;
|
|
31
|
-
};
|
|
32
|
-
sizes: {
|
|
33
|
-
cardinal: number;
|
|
34
|
-
small: string;
|
|
35
|
-
normal: string;
|
|
36
|
-
medium: string;
|
|
37
|
-
large: string;
|
|
38
|
-
};
|
|
39
|
-
typographyVariantMapping?: {
|
|
40
|
-
h1: 'h1';
|
|
41
|
-
h2: 'h2';
|
|
42
|
-
h3: 'h3';
|
|
43
|
-
h4: 'h4';
|
|
44
|
-
h5: 'h5';
|
|
45
|
-
h6: 'h6';
|
|
46
|
-
p: 'p';
|
|
47
|
-
span: 'span';
|
|
48
|
-
};
|
|
49
|
-
};
|
|
50
|
-
export declare type ModeWrapper = React.FC<{
|
|
51
|
-
className: string;
|
|
52
|
-
route: string;
|
|
53
|
-
isTabbing: boolean;
|
|
54
|
-
}>;
|
|
1
|
+
export declare type Theme = {
|
|
2
|
+
gap: string;
|
|
3
|
+
accessibility: {
|
|
4
|
+
isTabbing: boolean;
|
|
5
|
+
border: string;
|
|
6
|
+
colors: {
|
|
7
|
+
inactiveText: string;
|
|
8
|
+
activeText: string;
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
border: string;
|
|
12
|
+
borderRadius: string;
|
|
13
|
+
boxShadow: string;
|
|
14
|
+
inputBorder: string;
|
|
15
|
+
colors: {
|
|
16
|
+
warning: string;
|
|
17
|
+
accent: string;
|
|
18
|
+
link: string;
|
|
19
|
+
primary: string;
|
|
20
|
+
text: string;
|
|
21
|
+
textLight: string;
|
|
22
|
+
};
|
|
23
|
+
fonts: {
|
|
24
|
+
type: string;
|
|
25
|
+
base: string;
|
|
26
|
+
small: string;
|
|
27
|
+
normal: string;
|
|
28
|
+
medium: string;
|
|
29
|
+
large: string;
|
|
30
|
+
huge: string;
|
|
31
|
+
};
|
|
32
|
+
sizes: {
|
|
33
|
+
cardinal: number;
|
|
34
|
+
small: string;
|
|
35
|
+
normal: string;
|
|
36
|
+
medium: string;
|
|
37
|
+
large: string;
|
|
38
|
+
};
|
|
39
|
+
typographyVariantMapping?: {
|
|
40
|
+
h1: 'h1';
|
|
41
|
+
h2: 'h2';
|
|
42
|
+
h3: 'h3';
|
|
43
|
+
h4: 'h4';
|
|
44
|
+
h5: 'h5';
|
|
45
|
+
h6: 'h6';
|
|
46
|
+
p: 'p';
|
|
47
|
+
span: 'span';
|
|
48
|
+
};
|
|
49
|
+
};
|
|
50
|
+
export declare type ModeWrapper = React.FC<{
|
|
51
|
+
className: string;
|
|
52
|
+
route: string;
|
|
53
|
+
isTabbing: boolean;
|
|
54
|
+
}>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@telia-ace/widget-core",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.7",
|
|
4
4
|
"description": "Core framework for ACE widgets.",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"author": "Telia Company AB",
|
|
@@ -29,5 +29,5 @@
|
|
|
29
29
|
"@webprovisions/bootstrapping": "^1.0.12",
|
|
30
30
|
"@webprovisions/platform": "^1.1.2"
|
|
31
31
|
},
|
|
32
|
-
"gitHead": "
|
|
32
|
+
"gitHead": "0dfcfc79a4b6c45f98b7e62b71d5c0a30b907236"
|
|
33
33
|
}
|