@claspo/common 6.0.0 → 6.0.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,7 +1,7 @@
|
|
|
1
|
-
import { ClBaseComponentI, ClBaseComponentPropsI } from '../document/Document.interface';
|
|
1
|
+
import { ClBaseComponentI, ClBaseComponentPropsI, ClComponentType } from '../document/Document.interface';
|
|
2
2
|
export interface ComponentManifestI {
|
|
3
3
|
name: string;
|
|
4
|
-
componentType:
|
|
4
|
+
componentType: ClComponentType;
|
|
5
5
|
version: string;
|
|
6
6
|
contextMenuModel: BaseContextMenuManifestModelI[];
|
|
7
7
|
floatingControlsModel: BaseFloatingControlManifestModelI[];
|
|
@@ -5,7 +5,7 @@ export interface ClDocumentI {
|
|
|
5
5
|
export interface ClBaseComponentI {
|
|
6
6
|
id: string;
|
|
7
7
|
path: number[];
|
|
8
|
-
type:
|
|
8
|
+
type: ClComponentType;
|
|
9
9
|
version: string;
|
|
10
10
|
props: ClBaseComponentPropsI;
|
|
11
11
|
name: string;
|
|
@@ -13,6 +13,25 @@ export interface ClBaseComponentI {
|
|
|
13
13
|
children?: ClBaseComponentI[];
|
|
14
14
|
componentRef?: any;
|
|
15
15
|
}
|
|
16
|
+
export declare enum ClComponentType {
|
|
17
|
+
VIEW = "VIEW",
|
|
18
|
+
CONTAINER = "CONTAINER",
|
|
19
|
+
TEXT = "TEXT",
|
|
20
|
+
INPUT = "INPUT",
|
|
21
|
+
BUTTON = "BUTTON",
|
|
22
|
+
IMAGE = "IMAGE",
|
|
23
|
+
CONSENT = "CONSENT",
|
|
24
|
+
COUNTDOWN_TIMER = "COUNTDOWN_TIMER",
|
|
25
|
+
PROMO_CODE = "PROMO_CODE",
|
|
26
|
+
MULTIPLE_INPUT = "MULTIPLE_INPUT",
|
|
27
|
+
VIDEO = "VIDEO",
|
|
28
|
+
SLIDER = "SLIDER",
|
|
29
|
+
SLIDE = "SLIDE",
|
|
30
|
+
SOCIAL = "SOCIAL",
|
|
31
|
+
COLUMNS = "COLUMNS",
|
|
32
|
+
COLUMN = "COLUMN",
|
|
33
|
+
PRIZE_BASED_GAMING = "PRIZE_BASED_GAMING"
|
|
34
|
+
}
|
|
16
35
|
export interface ClBaseComponentPropsI {
|
|
17
36
|
adaptiveStyles?: BaseComponentAdaptiveStylesI;
|
|
18
37
|
styles?: ClBaseComponentElementParamsI[];
|
|
@@ -41,14 +60,28 @@ export interface ClComponentStyleAttributesI {
|
|
|
41
60
|
[key: string]: string;
|
|
42
61
|
}
|
|
43
62
|
export interface ClDocumentHandlerI {
|
|
44
|
-
type:
|
|
63
|
+
type: ClDocumentHandlerType;
|
|
45
64
|
actions: ClDocumentActionI[];
|
|
46
65
|
relativeSelector?: string;
|
|
47
66
|
}
|
|
67
|
+
export declare enum ClDocumentHandlerType {
|
|
68
|
+
CLICK = "CLICK"
|
|
69
|
+
}
|
|
48
70
|
export interface ClDocumentActionI<T = any> {
|
|
49
|
-
type:
|
|
71
|
+
type: ClDocumentActionType;
|
|
50
72
|
params?: T;
|
|
51
73
|
}
|
|
74
|
+
export declare enum ClDocumentActionType {
|
|
75
|
+
SHOW_WIDGET = "SHOW_WIDGET",
|
|
76
|
+
OPEN_LINK = "OPEN_LINK",
|
|
77
|
+
SUBSCRIBE_CONTACT = "SUBSCRIBE_CONTACT",
|
|
78
|
+
REQUEST = "REQUEST",
|
|
79
|
+
CLOSE_WIDGET = "CLOSE_WIDGET",
|
|
80
|
+
GO_TO_VIEW = "GO_TO_VIEW",
|
|
81
|
+
GO_TO_PREVIOUS_VIEW = "GO_TO_PREVIOUS_VIEW",
|
|
82
|
+
GO_TO_NEXT_VIEW = "GO_TO_NEXT_VIEW",
|
|
83
|
+
CLICK = "CLICK"
|
|
84
|
+
}
|
|
52
85
|
export interface ClDocumentSharedI {
|
|
53
86
|
headerFontFamily: string;
|
|
54
87
|
textFontFamily: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export var ClWidgetVerticalPosition;!function(
|
|
1
|
+
export var ClComponentType;!function(T){T.VIEW="VIEW",T.CONTAINER="CONTAINER",T.TEXT="TEXT",T.INPUT="INPUT",T.BUTTON="BUTTON",T.IMAGE="IMAGE",T.CONSENT="CONSENT",T.COUNTDOWN_TIMER="COUNTDOWN_TIMER",T.PROMO_CODE="PROMO_CODE",T.MULTIPLE_INPUT="MULTIPLE_INPUT",T.VIDEO="VIDEO",T.SLIDER="SLIDER",T.SLIDE="SLIDE",T.SOCIAL="SOCIAL",T.COLUMNS="COLUMNS",T.COLUMN="COLUMN",T.PRIZE_BASED_GAMING="PRIZE_BASED_GAMING"}(ClComponentType||(ClComponentType={}));export var ClDocumentHandlerType;!function(T){T.CLICK="CLICK"}(ClDocumentHandlerType||(ClDocumentHandlerType={}));export var ClDocumentActionType;!function(T){T.SHOW_WIDGET="SHOW_WIDGET",T.OPEN_LINK="OPEN_LINK",T.SUBSCRIBE_CONTACT="SUBSCRIBE_CONTACT",T.REQUEST="REQUEST",T.CLOSE_WIDGET="CLOSE_WIDGET",T.GO_TO_VIEW="GO_TO_VIEW",T.GO_TO_PREVIOUS_VIEW="GO_TO_PREVIOUS_VIEW",T.GO_TO_NEXT_VIEW="GO_TO_NEXT_VIEW",T.CLICK="CLICK"}(ClDocumentActionType||(ClDocumentActionType={}));export var ClWidgetVerticalPosition;!function(T){T.TOP="TOP",T.CENTER="CENTER",T.BOTTOM="BOTTOM"}(ClWidgetVerticalPosition||(ClWidgetVerticalPosition={}));export var ClWidgetHorizontalPosition;!function(T){T.LEFT="LEFT",T.CENTER="CENTER",T.RIGHT="RIGHT"}(ClWidgetHorizontalPosition||(ClWidgetHorizontalPosition={}));export var ClLauncherEntryAnimationType;!function(T){T.SLIDE_TO_TOP="SLIDE_TO_TOP",T.SLIDE_TO_BOTTOM="SLIDE_TO_BOTTOM",T.SLIDE_TO_LEFT="SLIDE_TO_LEFT",T.SLIDE_TO_RIGHT="SLIDE_TO_RIGHT"}(ClLauncherEntryAnimationType||(ClLauncherEntryAnimationType={}));export var ClLoopAnimationType;!function(T){T.PULSE="PULSE",T.VIBRATE="VIBRATE",T.WOBBLE="WOBBLE",T.SHAKE="SHAKE",T.JELLO="JELLO",T.BOUNCE="BOUNCE",T.BLINK="BLINK",T.FLICKER="FLICKER",T.PING="PING"}(ClLoopAnimationType||(ClLoopAnimationType={}));export var ClCloseButtonHorizontalPosition;!function(T){T.LEFT="LEFT",T.RIGHT="RIGHT"}(ClCloseButtonHorizontalPosition||(ClCloseButtonHorizontalPosition={}));
|