lucid-extension-sdk 0.0.406 → 0.0.408
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/core/cardintegration/cardfielddisplaysettings.d.ts +0 -2
- package/core/cardintegration/cardfielddisplaysettings.js +4 -7
- package/core/cardintegration/cardintegrationconfig.d.ts +0 -1
- package/core/data/serializedfield/serializedfielddefinition.d.ts +3 -3
- package/core/data/serializedfield/serializedfielddefinition.js +1 -1
- package/core/sharedcardintegration/cardintegrationdefinitions.d.ts +3 -2
- package/package.json +1 -1
|
@@ -86,7 +86,6 @@ export type TextBadgeSettings = {
|
|
|
86
86
|
maxfontsize?: number | undefined;
|
|
87
87
|
maxtextwidth?: number | undefined;
|
|
88
88
|
iswithinpill?: boolean | undefined;
|
|
89
|
-
usingcarduirefresh?: boolean | undefined;
|
|
90
89
|
hasleadingicon?: boolean | undefined;
|
|
91
90
|
};
|
|
92
91
|
export interface StencilConfig {
|
|
@@ -206,7 +205,6 @@ export declare const isSerializedLucidCardFieldSettings: (subject: unknown) => s
|
|
|
206
205
|
maxfontsize: (x: unknown) => x is number | undefined;
|
|
207
206
|
maxtextwidth: (x: unknown) => x is number | undefined;
|
|
208
207
|
iswithinpill: (x: unknown) => x is boolean | undefined;
|
|
209
|
-
usingcarduirefresh: (x: unknown) => x is boolean | undefined;
|
|
210
208
|
hasleadingicon: (x: unknown) => x is boolean | undefined;
|
|
211
209
|
}> | undefined;
|
|
212
210
|
}> | undefined;
|
|
@@ -92,7 +92,6 @@ const isTextBadgeSettings = (0, validators_1.objectValidator)({
|
|
|
92
92
|
'maxfontsize': (0, validators_1.option)(checks_1.isNumber),
|
|
93
93
|
'maxtextwidth': (0, validators_1.option)(checks_1.isNumber),
|
|
94
94
|
'iswithinpill': (0, validators_1.option)(checks_1.isBoolean),
|
|
95
|
-
'usingcarduirefresh': (0, validators_1.option)(checks_1.isBoolean),
|
|
96
95
|
'hasleadingicon': (0, validators_1.option)(checks_1.isBoolean),
|
|
97
96
|
});
|
|
98
97
|
const isStencilConfig = (0, validators_1.objectValidator)({
|
|
@@ -117,7 +116,7 @@ function copyLucidCardFieldDisplaySettings(settings) {
|
|
|
117
116
|
exports.copyLucidCardFieldDisplaySettings = copyLucidCardFieldDisplaySettings;
|
|
118
117
|
/** @ignore */
|
|
119
118
|
function serializeLucidCardFieldDisplaySettings(settings) {
|
|
120
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k
|
|
119
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
121
120
|
return {
|
|
122
121
|
'StencilConfig': settings.stencilConfig && {
|
|
123
122
|
'getterKey': settings.stencilConfig.displayType,
|
|
@@ -143,8 +142,7 @@ function serializeLucidCardFieldDisplaySettings(settings) {
|
|
|
143
142
|
'maxfontsize': (_g = settings.stencilConfig.textBadgeSettings) === null || _g === void 0 ? void 0 : _g.maxfontsize,
|
|
144
143
|
'maxtextwidth': (_h = settings.stencilConfig.textBadgeSettings) === null || _h === void 0 ? void 0 : _h.maxtextwidth,
|
|
145
144
|
'iswithinpill': (_j = settings.stencilConfig.textBadgeSettings) === null || _j === void 0 ? void 0 : _j.iswithinpill,
|
|
146
|
-
'
|
|
147
|
-
'hasleadingicon': (_l = settings.stencilConfig.textBadgeSettings) === null || _l === void 0 ? void 0 : _l.hasleadingicon,
|
|
145
|
+
'hasleadingicon': (_k = settings.stencilConfig.textBadgeSettings) === null || _k === void 0 ? void 0 : _k.hasleadingicon,
|
|
148
146
|
},
|
|
149
147
|
},
|
|
150
148
|
};
|
|
@@ -152,7 +150,7 @@ function serializeLucidCardFieldDisplaySettings(settings) {
|
|
|
152
150
|
exports.serializeLucidCardFieldDisplaySettings = serializeLucidCardFieldDisplaySettings;
|
|
153
151
|
/** @ignore */
|
|
154
152
|
function deserializeLucidCardFieldDisplaySettings(settings) {
|
|
155
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k
|
|
153
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
156
154
|
return {
|
|
157
155
|
stencilConfig: settings['StencilConfig'] && {
|
|
158
156
|
displayType: settings['StencilConfig']['getterKey'],
|
|
@@ -178,8 +176,7 @@ function deserializeLucidCardFieldDisplaySettings(settings) {
|
|
|
178
176
|
maxfontsize: (_g = settings['StencilConfig']['textBadgeSettings']) === null || _g === void 0 ? void 0 : _g['maxfontsize'],
|
|
179
177
|
maxtextwidth: (_h = settings['StencilConfig']['textBadgeSettings']) === null || _h === void 0 ? void 0 : _h['maxtextwidth'],
|
|
180
178
|
iswithinpill: (_j = settings['StencilConfig']['textBadgeSettings']) === null || _j === void 0 ? void 0 : _j['iswithinpill'],
|
|
181
|
-
|
|
182
|
-
hasleadingicon: (_l = settings['StencilConfig']['textBadgeSettings']) === null || _l === void 0 ? void 0 : _l['hasleadingicon'],
|
|
179
|
+
hasleadingicon: (_k = settings['StencilConfig']['textBadgeSettings']) === null || _k === void 0 ? void 0 : _k['hasleadingicon'],
|
|
183
180
|
},
|
|
184
181
|
},
|
|
185
182
|
};
|
|
@@ -76,7 +76,6 @@ export declare const isSerializedCardIntegrationConfig: (subject: unknown) => su
|
|
|
76
76
|
maxfontsize: (x: unknown) => x is number | undefined;
|
|
77
77
|
maxtextwidth: (x: unknown) => x is number | undefined;
|
|
78
78
|
iswithinpill: (x: unknown) => x is boolean | undefined;
|
|
79
|
-
usingcarduirefresh: (x: unknown) => x is boolean | undefined;
|
|
80
79
|
hasleadingicon: (x: unknown) => x is boolean | undefined;
|
|
81
80
|
}> | undefined;
|
|
82
81
|
}> | undefined;
|
|
@@ -18,12 +18,12 @@ export declare const isFieldConstraintType: (x: unknown) => x is FieldConstraint
|
|
|
18
18
|
export type SerializedFieldConstraint = {
|
|
19
19
|
'Type': FieldConstraintType;
|
|
20
20
|
'Details'?: UnsafeJsonSerializableOrUndefined;
|
|
21
|
-
'Reason'?: string | undefined;
|
|
21
|
+
'Reason'?: string | undefined | null;
|
|
22
22
|
};
|
|
23
23
|
export declare const isSerializedFieldConstraint: (subject: unknown) => subject is import("../../guards").DestructureGuardedTypeObj<{
|
|
24
24
|
Type: (x: unknown) => x is FieldConstraintType;
|
|
25
25
|
Details: (x: unknown) => x is any;
|
|
26
|
-
Reason: (x: unknown) => x is string | undefined;
|
|
26
|
+
Reason: (x: unknown) => x is string | null | undefined;
|
|
27
27
|
}>;
|
|
28
28
|
export type SerializedFieldDefinition = {
|
|
29
29
|
'Name': string;
|
|
@@ -38,7 +38,7 @@ export declare const isSerializedFieldDefinition: (subject: unknown) => subject
|
|
|
38
38
|
Constraints: (x: unknown) => x is import("../../guards").DestructureGuardedTypeObj<{
|
|
39
39
|
Type: (x: unknown) => x is FieldConstraintType;
|
|
40
40
|
Details: (x: unknown) => x is any;
|
|
41
|
-
Reason: (x: unknown) => x is string | undefined;
|
|
41
|
+
Reason: (x: unknown) => x is string | null | undefined;
|
|
42
42
|
}>[] | undefined;
|
|
43
43
|
SyncSchema: (x: unknown) => x is string | undefined;
|
|
44
44
|
Mapping: (x: unknown) => x is LucidFields[] | SemanticKind[] | undefined;
|
|
@@ -22,7 +22,7 @@ exports.isFieldConstraintType = (0, validators_1.enumValidator)(FieldConstraintT
|
|
|
22
22
|
exports.isSerializedFieldConstraint = (0, validators_1.objectValidator)({
|
|
23
23
|
'Type': (0, validators_1.enumValidator)(FieldConstraintType),
|
|
24
24
|
'Details': (0, validators_1.option)(checks_1.isAny),
|
|
25
|
-
'Reason': (0, validators_1.
|
|
25
|
+
'Reason': (0, validators_1.nullableOption)(checks_1.isString),
|
|
26
26
|
});
|
|
27
27
|
exports.isSerializedFieldDefinition = (0, validators_1.strictObjectValidator)({
|
|
28
28
|
'Name': checks_1.isString,
|
|
@@ -105,8 +105,9 @@ export declare const isSerializedExtensionCardFieldDefinition: (subject: unknown
|
|
|
105
105
|
Type: typeof isSerializedFieldTypeDefinition;
|
|
106
106
|
Constraints: (x: unknown) => x is import("../guards").DestructureGuardedTypeObj<{
|
|
107
107
|
Type: (x: unknown) => x is import("../data/serializedfield/serializedfielddefinition").FieldConstraintType;
|
|
108
|
-
|
|
109
|
-
|
|
108
|
+
/** If defined, the default value for this field */
|
|
109
|
+
Details: (x: unknown) => x is any;
|
|
110
|
+
Reason: (x: unknown) => x is string | null | undefined;
|
|
110
111
|
}>[] | undefined;
|
|
111
112
|
l: typeof isString;
|
|
112
113
|
d: (x: unknown) => x is string | undefined;
|