@lbaz/tetr 0.0.21 → 0.0.23
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.
|
File without changes
|
|
@@ -1,9 +1,29 @@
|
|
|
1
1
|
export declare const DEFINITION_TYPES: {
|
|
2
|
-
readonly Array: "Array";
|
|
3
2
|
readonly String: "String";
|
|
4
|
-
readonly
|
|
3
|
+
readonly Color: "Color";
|
|
4
|
+
readonly Size: "Size";
|
|
5
|
+
readonly Email: "Email";
|
|
6
|
+
readonly Select: "Select";
|
|
7
|
+
readonly RedirectLink: "RedirectLink";
|
|
8
|
+
readonly ContentSrc: "ContentSrc";
|
|
5
9
|
};
|
|
6
10
|
export declare const DATA_TYPES: {
|
|
7
11
|
DICT: string;
|
|
8
12
|
LIST: string;
|
|
9
13
|
};
|
|
14
|
+
export declare const FIELDS: {
|
|
15
|
+
readonly descriptionValue: "descriptionValue";
|
|
16
|
+
readonly imageAlt: "imageAlt";
|
|
17
|
+
readonly imageUrl: "imageUrl";
|
|
18
|
+
readonly imageWidth: "imageWidth";
|
|
19
|
+
readonly imageHeight: "imageHeight";
|
|
20
|
+
readonly nameValue: "nameValue";
|
|
21
|
+
readonly contentValue: "contentValue";
|
|
22
|
+
readonly redirectLink: "redirectLink";
|
|
23
|
+
readonly linkHref: "linkHref";
|
|
24
|
+
readonly linkTarget: "linkTarget";
|
|
25
|
+
readonly tagValue: "tagValue";
|
|
26
|
+
readonly backgroundUrl: "backgroundUrl";
|
|
27
|
+
readonly backgroundSize: "backgroundSize";
|
|
28
|
+
readonly backgroundColor: "backgroundColor";
|
|
29
|
+
};
|
package/dist/constants/index.js
CHANGED
|
@@ -1,10 +1,30 @@
|
|
|
1
1
|
export const DEFINITION_TYPES = {
|
|
2
|
-
'Array': 'Array',
|
|
3
2
|
'String': 'String',
|
|
4
|
-
|
|
3
|
+
"Color": "Color",
|
|
4
|
+
"Size": "Size",
|
|
5
|
+
"Email": "Email",
|
|
6
|
+
"Select": "Select",
|
|
7
|
+
"RedirectLink": "RedirectLink",
|
|
8
|
+
"ContentSrc": "ContentSrc"
|
|
5
9
|
};
|
|
6
10
|
export const DATA_TYPES = {
|
|
7
11
|
DICT: "DICT",
|
|
8
12
|
LIST: "LIST"
|
|
9
13
|
};
|
|
14
|
+
export const FIELDS = {
|
|
15
|
+
'descriptionValue': 'descriptionValue',
|
|
16
|
+
'imageAlt': "imageAlt",
|
|
17
|
+
'imageUrl': "imageUrl",
|
|
18
|
+
'imageWidth': "imageWidth",
|
|
19
|
+
'imageHeight': "imageHeight",
|
|
20
|
+
'nameValue': "nameValue",
|
|
21
|
+
'contentValue': "contentValue",
|
|
22
|
+
'redirectLink': "redirectLink",
|
|
23
|
+
'linkHref': 'linkHref',
|
|
24
|
+
'linkTarget': "linkTarget",
|
|
25
|
+
'tagValue': "tagValue",
|
|
26
|
+
'backgroundUrl': "backgroundUrl",
|
|
27
|
+
'backgroundSize': "backgroundSize",
|
|
28
|
+
'backgroundColor': "backgroundColor"
|
|
29
|
+
};
|
|
10
30
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/constants/index.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,gBAAgB,GAAG;IAC9B,OAAO,EAAE,OAAO;IAChB,QAAQ,EAAE,QAAQ;IAClB,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/constants/index.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,gBAAgB,GAAG;IAC9B,QAAQ,EAAE,QAAQ;IAClB,OAAO,EAAE,OAAO;IAChB,MAAM,EAAE,MAAM;IACd,OAAO,EAAE,OAAO;IAChB,QAAQ,EAAE,QAAQ;IAClB,cAAc,EAAE,cAAc;IAC9B,YAAY,EAAE,YAAY;CAClB,CAAC;AAEX,MAAM,CAAC,MAAM,UAAU,GAAG;IACxB,IAAI,EAAE,MAAM;IACZ,IAAI,EAAE,MAAM;CACb,CAAC;AAEF,MAAM,CAAC,MAAM,MAAM,GAAG;IACpB,kBAAkB,EAAE,kBAAkB;IACtC,UAAU,EAAE,UAAU;IACtB,UAAU,EAAE,UAAU;IACtB,YAAY,EAAE,YAAY;IAC1B,aAAa,EAAE,aAAa;IAC5B,WAAW,EAAE,WAAW;IAExB,cAAc,EAAE,cAAc;IAC9B,cAAc,EAAE,cAAc;IAC9B,UAAU,EAAE,UAAU;IACtB,YAAY,EAAE,YAAY;IAE1B,UAAU,EAAE,UAAU;IAEtB,eAAe,EAAE,eAAe;IAChC,gBAAgB,EAAE,gBAAgB;IAClC,iBAAiB,EAAE,iBAAiB;CAC5B,CAAC"}
|
package/dist/types/data.d.ts
CHANGED
|
@@ -4,10 +4,14 @@ export type Data<T = unknown> = {
|
|
|
4
4
|
};
|
|
5
5
|
export type DefinitionType = keyof typeof DEFINITION_TYPES;
|
|
6
6
|
export type DataType = keyof typeof DATA_TYPES;
|
|
7
|
+
export interface PossibleVariant {
|
|
8
|
+
value: string;
|
|
9
|
+
label: string;
|
|
10
|
+
}
|
|
7
11
|
export interface ItemDefinition {
|
|
8
12
|
type: DefinitionType;
|
|
9
13
|
defaultValue: string;
|
|
10
|
-
possibleVariants?: Array<
|
|
14
|
+
possibleVariants?: Array<PossibleVariant>;
|
|
11
15
|
}
|
|
12
16
|
export interface DataDefinition {
|
|
13
17
|
type: DataType;
|
package/dist/types/data.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"data.js","sourceRoot":"","sources":["../../src/types/data.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"data.js","sourceRoot":"","sources":["../../src/types/data.ts"],"names":[],"mappings":"AAwBC,CAAC"}
|