@player-ui/common-types-plugin 0.7.1 → 0.7.2--canary.314.10088
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/dist/common-types-plugin.dev.js +27 -76
- package/dist/common-types-plugin.prod.js +1 -1
- package/dist/index.cjs.js +24 -73
- package/dist/index.d.ts +2 -32
- package/dist/index.esm.js +25 -73
- package/dist/xlr/BooleanType.json +1 -1
- package/dist/xlr/CollectionType.json +1 -1
- package/dist/xlr/DateType.json +1 -1
- package/dist/xlr/IntegerNNType.json +1 -1
- package/dist/xlr/IntegerPosType.json +1 -1
- package/dist/xlr/IntegerType.json +1 -1
- package/dist/xlr/PhoneType.json +1 -1
- package/dist/xlr/StringType.json +1 -1
- package/package.json +3 -3
- package/src/data-types/types.ts +8 -18
- package/src/index.ts +2 -2
- package/src/data-types/refs.ts +0 -33
package/dist/index.cjs.js
CHANGED
|
@@ -187,63 +187,8 @@ var validators = /*#__PURE__*/Object.freeze({
|
|
|
187
187
|
zip: zip
|
|
188
188
|
});
|
|
189
189
|
|
|
190
|
-
const
|
|
191
|
-
type: "BooleanType"
|
|
192
|
-
};
|
|
193
|
-
const IntegerTypeRef = {
|
|
194
|
-
type: "IntegerType"
|
|
195
|
-
};
|
|
196
|
-
const IntegerPosTypeRef = {
|
|
197
|
-
type: "IntegerPosType"
|
|
198
|
-
};
|
|
199
|
-
const IntegerNNTypeRef = {
|
|
200
|
-
type: "IntegerNNType"
|
|
201
|
-
};
|
|
202
|
-
const StringTypeRef = {
|
|
203
|
-
type: "StringType"
|
|
204
|
-
};
|
|
205
|
-
const CollectionTypeRef = {
|
|
206
|
-
type: "CollectionType"
|
|
207
|
-
};
|
|
208
|
-
const DateTypeRef = {
|
|
209
|
-
type: "DateType"
|
|
210
|
-
};
|
|
211
|
-
const PhoneTypeRef = {
|
|
212
|
-
type: "PhoneType"
|
|
213
|
-
};
|
|
214
|
-
|
|
215
|
-
var refs = /*#__PURE__*/Object.freeze({
|
|
216
|
-
__proto__: null,
|
|
217
|
-
BooleanTypeRef: BooleanTypeRef,
|
|
218
|
-
IntegerTypeRef: IntegerTypeRef,
|
|
219
|
-
IntegerPosTypeRef: IntegerPosTypeRef,
|
|
220
|
-
IntegerNNTypeRef: IntegerNNTypeRef,
|
|
221
|
-
StringTypeRef: StringTypeRef,
|
|
222
|
-
CollectionTypeRef: CollectionTypeRef,
|
|
223
|
-
DateTypeRef: DateTypeRef,
|
|
224
|
-
PhoneTypeRef: PhoneTypeRef
|
|
225
|
-
});
|
|
226
|
-
|
|
227
|
-
var __defProp$1 = Object.defineProperty;
|
|
228
|
-
var __defProps$1 = Object.defineProperties;
|
|
229
|
-
var __getOwnPropDescs$1 = Object.getOwnPropertyDescriptors;
|
|
230
|
-
var __getOwnPropSymbols$1 = Object.getOwnPropertySymbols;
|
|
231
|
-
var __hasOwnProp$1 = Object.prototype.hasOwnProperty;
|
|
232
|
-
var __propIsEnum$1 = Object.prototype.propertyIsEnumerable;
|
|
233
|
-
var __defNormalProp$1 = (obj, key, value) => key in obj ? __defProp$1(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
234
|
-
var __spreadValues$1 = (a, b) => {
|
|
235
|
-
for (var prop in b || (b = {}))
|
|
236
|
-
if (__hasOwnProp$1.call(b, prop))
|
|
237
|
-
__defNormalProp$1(a, prop, b[prop]);
|
|
238
|
-
if (__getOwnPropSymbols$1)
|
|
239
|
-
for (var prop of __getOwnPropSymbols$1(b)) {
|
|
240
|
-
if (__propIsEnum$1.call(b, prop))
|
|
241
|
-
__defNormalProp$1(a, prop, b[prop]);
|
|
242
|
-
}
|
|
243
|
-
return a;
|
|
244
|
-
};
|
|
245
|
-
var __spreadProps$1 = (a, b) => __defProps$1(a, __getOwnPropDescs$1(b));
|
|
246
|
-
const BooleanType = __spreadProps$1(__spreadValues$1({}, BooleanTypeRef), {
|
|
190
|
+
const BooleanType = {
|
|
191
|
+
type: "BooleanType",
|
|
247
192
|
default: false,
|
|
248
193
|
validation: [
|
|
249
194
|
{
|
|
@@ -252,8 +197,9 @@ const BooleanType = __spreadProps$1(__spreadValues$1({}, BooleanTypeRef), {
|
|
|
252
197
|
options: [true, false]
|
|
253
198
|
}
|
|
254
199
|
]
|
|
255
|
-
}
|
|
256
|
-
const IntegerType =
|
|
200
|
+
};
|
|
201
|
+
const IntegerType = {
|
|
202
|
+
type: "IntegerType",
|
|
257
203
|
validation: [
|
|
258
204
|
{
|
|
259
205
|
type: "integer"
|
|
@@ -262,8 +208,9 @@ const IntegerType = __spreadProps$1(__spreadValues$1({}, IntegerTypeRef), {
|
|
|
262
208
|
format: {
|
|
263
209
|
type: "integer"
|
|
264
210
|
}
|
|
265
|
-
}
|
|
266
|
-
const IntegerPosType =
|
|
211
|
+
};
|
|
212
|
+
const IntegerPosType = {
|
|
213
|
+
type: "IntegerPosType",
|
|
267
214
|
validation: [
|
|
268
215
|
{
|
|
269
216
|
type: "integer"
|
|
@@ -276,8 +223,9 @@ const IntegerPosType = __spreadProps$1(__spreadValues$1({}, IntegerPosTypeRef),
|
|
|
276
223
|
format: {
|
|
277
224
|
type: "integer"
|
|
278
225
|
}
|
|
279
|
-
}
|
|
280
|
-
const IntegerNNType =
|
|
226
|
+
};
|
|
227
|
+
const IntegerNNType = {
|
|
228
|
+
type: "IntegerNNType",
|
|
281
229
|
validation: [
|
|
282
230
|
{
|
|
283
231
|
type: "integer"
|
|
@@ -290,8 +238,9 @@ const IntegerNNType = __spreadProps$1(__spreadValues$1({}, IntegerNNTypeRef), {
|
|
|
290
238
|
format: {
|
|
291
239
|
type: "integer"
|
|
292
240
|
}
|
|
293
|
-
}
|
|
294
|
-
const StringType =
|
|
241
|
+
};
|
|
242
|
+
const StringType = {
|
|
243
|
+
type: "StringType",
|
|
295
244
|
default: "",
|
|
296
245
|
validation: [
|
|
297
246
|
{
|
|
@@ -301,15 +250,17 @@ const StringType = __spreadProps$1(__spreadValues$1({}, StringTypeRef), {
|
|
|
301
250
|
format: {
|
|
302
251
|
type: "string"
|
|
303
252
|
}
|
|
304
|
-
}
|
|
305
|
-
const CollectionType =
|
|
253
|
+
};
|
|
254
|
+
const CollectionType = {
|
|
255
|
+
type: "CollectionType",
|
|
306
256
|
validation: [
|
|
307
257
|
{
|
|
308
258
|
type: "collection"
|
|
309
259
|
}
|
|
310
260
|
]
|
|
311
|
-
}
|
|
312
|
-
const DateType =
|
|
261
|
+
};
|
|
262
|
+
const DateType = {
|
|
263
|
+
type: "DateType",
|
|
313
264
|
validation: [
|
|
314
265
|
{
|
|
315
266
|
type: "string"
|
|
@@ -318,8 +269,9 @@ const DateType = __spreadProps$1(__spreadValues$1({}, DateTypeRef), {
|
|
|
318
269
|
format: {
|
|
319
270
|
type: "date"
|
|
320
271
|
}
|
|
321
|
-
}
|
|
322
|
-
const PhoneType =
|
|
272
|
+
};
|
|
273
|
+
const PhoneType = {
|
|
274
|
+
type: "PhoneType",
|
|
323
275
|
validation: [
|
|
324
276
|
{
|
|
325
277
|
type: "phone"
|
|
@@ -328,7 +280,7 @@ const PhoneType = __spreadProps$1(__spreadValues$1({}, PhoneTypeRef), {
|
|
|
328
280
|
format: {
|
|
329
281
|
type: "phone"
|
|
330
282
|
}
|
|
331
|
-
}
|
|
283
|
+
};
|
|
332
284
|
|
|
333
285
|
var dataTypes = /*#__PURE__*/Object.freeze({
|
|
334
286
|
__proto__: null,
|
|
@@ -759,7 +711,6 @@ class CommonTypesPlugin {
|
|
|
759
711
|
exports.CommonTypesPlugin = CommonTypesPlugin;
|
|
760
712
|
exports.PLACEHOLDER = PLACEHOLDER;
|
|
761
713
|
exports.createMaskedNumericFormatter = createMaskedNumericFormatter;
|
|
762
|
-
exports.dataRefs = refs;
|
|
763
714
|
exports.dataTypes = dataTypes;
|
|
764
715
|
exports.formatAsEnum = formatAsEnum;
|
|
765
716
|
exports.formatAsMasked = formatAsMasked;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ValidatorFunction, FormatType, ExtendedPlayerPlugin, Player } from '@player-ui/player';
|
|
2
|
-
import { Expression, Schema
|
|
2
|
+
import { Expression, Schema } from '@player-ui/types';
|
|
3
3
|
|
|
4
4
|
/** Checks to see if the data-type is a string */
|
|
5
5
|
declare const string: ValidatorFunction;
|
|
@@ -129,36 +129,6 @@ declare namespace types {
|
|
|
129
129
|
};
|
|
130
130
|
}
|
|
131
131
|
|
|
132
|
-
declare const BooleanTypeRef: Language.DataTypeRef;
|
|
133
|
-
declare const IntegerTypeRef: Language.DataTypeRef;
|
|
134
|
-
declare const IntegerPosTypeRef: Language.DataTypeRef;
|
|
135
|
-
declare const IntegerNNTypeRef: Language.DataTypeRef;
|
|
136
|
-
declare const StringTypeRef: Language.DataTypeRef;
|
|
137
|
-
declare const CollectionTypeRef: Language.DataTypeRef;
|
|
138
|
-
declare const DateTypeRef: Language.DataTypeRef;
|
|
139
|
-
declare const PhoneTypeRef: Language.DataTypeRef;
|
|
140
|
-
|
|
141
|
-
declare const refs_BooleanTypeRef: typeof BooleanTypeRef;
|
|
142
|
-
declare const refs_IntegerTypeRef: typeof IntegerTypeRef;
|
|
143
|
-
declare const refs_IntegerPosTypeRef: typeof IntegerPosTypeRef;
|
|
144
|
-
declare const refs_IntegerNNTypeRef: typeof IntegerNNTypeRef;
|
|
145
|
-
declare const refs_StringTypeRef: typeof StringTypeRef;
|
|
146
|
-
declare const refs_CollectionTypeRef: typeof CollectionTypeRef;
|
|
147
|
-
declare const refs_DateTypeRef: typeof DateTypeRef;
|
|
148
|
-
declare const refs_PhoneTypeRef: typeof PhoneTypeRef;
|
|
149
|
-
declare namespace refs {
|
|
150
|
-
export {
|
|
151
|
-
refs_BooleanTypeRef as BooleanTypeRef,
|
|
152
|
-
refs_IntegerTypeRef as IntegerTypeRef,
|
|
153
|
-
refs_IntegerPosTypeRef as IntegerPosTypeRef,
|
|
154
|
-
refs_IntegerNNTypeRef as IntegerNNTypeRef,
|
|
155
|
-
refs_StringTypeRef as StringTypeRef,
|
|
156
|
-
refs_CollectionTypeRef as CollectionTypeRef,
|
|
157
|
-
refs_DateTypeRef as DateTypeRef,
|
|
158
|
-
refs_PhoneTypeRef as PhoneTypeRef,
|
|
159
|
-
};
|
|
160
|
-
}
|
|
161
|
-
|
|
162
132
|
/**
|
|
163
133
|
* Converts an integer to and from a string for display
|
|
164
134
|
*/
|
|
@@ -257,4 +227,4 @@ declare class CommonTypesPlugin implements ExtendedPlayerPlugin<[
|
|
|
257
227
|
apply(player: Player): void;
|
|
258
228
|
}
|
|
259
229
|
|
|
260
|
-
export { CommonTypesPlugin, PLACEHOLDER, createMaskedNumericFormatter,
|
|
230
|
+
export { CommonTypesPlugin, PLACEHOLDER, createMaskedNumericFormatter, types as dataTypes, formatAsEnum, formatAsMasked, index as formats, removeFormatCharactersFromMaskedString, index$1 as validators };
|
package/dist/index.esm.js
CHANGED
|
@@ -183,63 +183,8 @@ var validators = /*#__PURE__*/Object.freeze({
|
|
|
183
183
|
zip: zip
|
|
184
184
|
});
|
|
185
185
|
|
|
186
|
-
const
|
|
187
|
-
type: "BooleanType"
|
|
188
|
-
};
|
|
189
|
-
const IntegerTypeRef = {
|
|
190
|
-
type: "IntegerType"
|
|
191
|
-
};
|
|
192
|
-
const IntegerPosTypeRef = {
|
|
193
|
-
type: "IntegerPosType"
|
|
194
|
-
};
|
|
195
|
-
const IntegerNNTypeRef = {
|
|
196
|
-
type: "IntegerNNType"
|
|
197
|
-
};
|
|
198
|
-
const StringTypeRef = {
|
|
199
|
-
type: "StringType"
|
|
200
|
-
};
|
|
201
|
-
const CollectionTypeRef = {
|
|
202
|
-
type: "CollectionType"
|
|
203
|
-
};
|
|
204
|
-
const DateTypeRef = {
|
|
205
|
-
type: "DateType"
|
|
206
|
-
};
|
|
207
|
-
const PhoneTypeRef = {
|
|
208
|
-
type: "PhoneType"
|
|
209
|
-
};
|
|
210
|
-
|
|
211
|
-
var refs = /*#__PURE__*/Object.freeze({
|
|
212
|
-
__proto__: null,
|
|
213
|
-
BooleanTypeRef: BooleanTypeRef,
|
|
214
|
-
IntegerTypeRef: IntegerTypeRef,
|
|
215
|
-
IntegerPosTypeRef: IntegerPosTypeRef,
|
|
216
|
-
IntegerNNTypeRef: IntegerNNTypeRef,
|
|
217
|
-
StringTypeRef: StringTypeRef,
|
|
218
|
-
CollectionTypeRef: CollectionTypeRef,
|
|
219
|
-
DateTypeRef: DateTypeRef,
|
|
220
|
-
PhoneTypeRef: PhoneTypeRef
|
|
221
|
-
});
|
|
222
|
-
|
|
223
|
-
var __defProp$1 = Object.defineProperty;
|
|
224
|
-
var __defProps$1 = Object.defineProperties;
|
|
225
|
-
var __getOwnPropDescs$1 = Object.getOwnPropertyDescriptors;
|
|
226
|
-
var __getOwnPropSymbols$1 = Object.getOwnPropertySymbols;
|
|
227
|
-
var __hasOwnProp$1 = Object.prototype.hasOwnProperty;
|
|
228
|
-
var __propIsEnum$1 = Object.prototype.propertyIsEnumerable;
|
|
229
|
-
var __defNormalProp$1 = (obj, key, value) => key in obj ? __defProp$1(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
230
|
-
var __spreadValues$1 = (a, b) => {
|
|
231
|
-
for (var prop in b || (b = {}))
|
|
232
|
-
if (__hasOwnProp$1.call(b, prop))
|
|
233
|
-
__defNormalProp$1(a, prop, b[prop]);
|
|
234
|
-
if (__getOwnPropSymbols$1)
|
|
235
|
-
for (var prop of __getOwnPropSymbols$1(b)) {
|
|
236
|
-
if (__propIsEnum$1.call(b, prop))
|
|
237
|
-
__defNormalProp$1(a, prop, b[prop]);
|
|
238
|
-
}
|
|
239
|
-
return a;
|
|
240
|
-
};
|
|
241
|
-
var __spreadProps$1 = (a, b) => __defProps$1(a, __getOwnPropDescs$1(b));
|
|
242
|
-
const BooleanType = __spreadProps$1(__spreadValues$1({}, BooleanTypeRef), {
|
|
186
|
+
const BooleanType = {
|
|
187
|
+
type: "BooleanType",
|
|
243
188
|
default: false,
|
|
244
189
|
validation: [
|
|
245
190
|
{
|
|
@@ -248,8 +193,9 @@ const BooleanType = __spreadProps$1(__spreadValues$1({}, BooleanTypeRef), {
|
|
|
248
193
|
options: [true, false]
|
|
249
194
|
}
|
|
250
195
|
]
|
|
251
|
-
}
|
|
252
|
-
const IntegerType =
|
|
196
|
+
};
|
|
197
|
+
const IntegerType = {
|
|
198
|
+
type: "IntegerType",
|
|
253
199
|
validation: [
|
|
254
200
|
{
|
|
255
201
|
type: "integer"
|
|
@@ -258,8 +204,9 @@ const IntegerType = __spreadProps$1(__spreadValues$1({}, IntegerTypeRef), {
|
|
|
258
204
|
format: {
|
|
259
205
|
type: "integer"
|
|
260
206
|
}
|
|
261
|
-
}
|
|
262
|
-
const IntegerPosType =
|
|
207
|
+
};
|
|
208
|
+
const IntegerPosType = {
|
|
209
|
+
type: "IntegerPosType",
|
|
263
210
|
validation: [
|
|
264
211
|
{
|
|
265
212
|
type: "integer"
|
|
@@ -272,8 +219,9 @@ const IntegerPosType = __spreadProps$1(__spreadValues$1({}, IntegerPosTypeRef),
|
|
|
272
219
|
format: {
|
|
273
220
|
type: "integer"
|
|
274
221
|
}
|
|
275
|
-
}
|
|
276
|
-
const IntegerNNType =
|
|
222
|
+
};
|
|
223
|
+
const IntegerNNType = {
|
|
224
|
+
type: "IntegerNNType",
|
|
277
225
|
validation: [
|
|
278
226
|
{
|
|
279
227
|
type: "integer"
|
|
@@ -286,8 +234,9 @@ const IntegerNNType = __spreadProps$1(__spreadValues$1({}, IntegerNNTypeRef), {
|
|
|
286
234
|
format: {
|
|
287
235
|
type: "integer"
|
|
288
236
|
}
|
|
289
|
-
}
|
|
290
|
-
const StringType =
|
|
237
|
+
};
|
|
238
|
+
const StringType = {
|
|
239
|
+
type: "StringType",
|
|
291
240
|
default: "",
|
|
292
241
|
validation: [
|
|
293
242
|
{
|
|
@@ -297,15 +246,17 @@ const StringType = __spreadProps$1(__spreadValues$1({}, StringTypeRef), {
|
|
|
297
246
|
format: {
|
|
298
247
|
type: "string"
|
|
299
248
|
}
|
|
300
|
-
}
|
|
301
|
-
const CollectionType =
|
|
249
|
+
};
|
|
250
|
+
const CollectionType = {
|
|
251
|
+
type: "CollectionType",
|
|
302
252
|
validation: [
|
|
303
253
|
{
|
|
304
254
|
type: "collection"
|
|
305
255
|
}
|
|
306
256
|
]
|
|
307
|
-
}
|
|
308
|
-
const DateType =
|
|
257
|
+
};
|
|
258
|
+
const DateType = {
|
|
259
|
+
type: "DateType",
|
|
309
260
|
validation: [
|
|
310
261
|
{
|
|
311
262
|
type: "string"
|
|
@@ -314,8 +265,9 @@ const DateType = __spreadProps$1(__spreadValues$1({}, DateTypeRef), {
|
|
|
314
265
|
format: {
|
|
315
266
|
type: "date"
|
|
316
267
|
}
|
|
317
|
-
}
|
|
318
|
-
const PhoneType =
|
|
268
|
+
};
|
|
269
|
+
const PhoneType = {
|
|
270
|
+
type: "PhoneType",
|
|
319
271
|
validation: [
|
|
320
272
|
{
|
|
321
273
|
type: "phone"
|
|
@@ -324,7 +276,7 @@ const PhoneType = __spreadProps$1(__spreadValues$1({}, PhoneTypeRef), {
|
|
|
324
276
|
format: {
|
|
325
277
|
type: "phone"
|
|
326
278
|
}
|
|
327
|
-
}
|
|
279
|
+
};
|
|
328
280
|
|
|
329
281
|
var dataTypes = /*#__PURE__*/Object.freeze({
|
|
330
282
|
__proto__: null,
|
|
@@ -752,5 +704,5 @@ class CommonTypesPlugin {
|
|
|
752
704
|
}
|
|
753
705
|
}
|
|
754
706
|
|
|
755
|
-
export { CommonTypesPlugin, PLACEHOLDER, createMaskedNumericFormatter,
|
|
707
|
+
export { CommonTypesPlugin, PLACEHOLDER, createMaskedNumericFormatter, dataTypes, formatAsEnum, formatAsMasked, formats, removeFormatCharactersFromMaskedString, validators };
|
|
756
708
|
//# sourceMappingURL=index.esm.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"source": "/home/circleci/.cache/bazel/_bazel_circleci/e8362d362e14c7d23506d1dfa3aea8b8/sandbox/processwrapper-sandbox/
|
|
2
|
+
"source": "/home/circleci/.cache/bazel/_bazel_circleci/e8362d362e14c7d23506d1dfa3aea8b8/sandbox/processwrapper-sandbox/258/execroot/player/plugins/common-types/core/src/data-types/types.ts",
|
|
3
3
|
"name": "BooleanType",
|
|
4
4
|
"type": "object",
|
|
5
5
|
"properties": {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"source": "/home/circleci/.cache/bazel/_bazel_circleci/e8362d362e14c7d23506d1dfa3aea8b8/sandbox/processwrapper-sandbox/
|
|
2
|
+
"source": "/home/circleci/.cache/bazel/_bazel_circleci/e8362d362e14c7d23506d1dfa3aea8b8/sandbox/processwrapper-sandbox/258/execroot/player/plugins/common-types/core/src/data-types/types.ts",
|
|
3
3
|
"name": "CollectionType",
|
|
4
4
|
"type": "object",
|
|
5
5
|
"properties": {
|
package/dist/xlr/DateType.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"source": "/home/circleci/.cache/bazel/_bazel_circleci/e8362d362e14c7d23506d1dfa3aea8b8/sandbox/processwrapper-sandbox/
|
|
2
|
+
"source": "/home/circleci/.cache/bazel/_bazel_circleci/e8362d362e14c7d23506d1dfa3aea8b8/sandbox/processwrapper-sandbox/258/execroot/player/plugins/common-types/core/src/data-types/types.ts",
|
|
3
3
|
"name": "DateType",
|
|
4
4
|
"type": "object",
|
|
5
5
|
"properties": {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"source": "/home/circleci/.cache/bazel/_bazel_circleci/e8362d362e14c7d23506d1dfa3aea8b8/sandbox/processwrapper-sandbox/
|
|
2
|
+
"source": "/home/circleci/.cache/bazel/_bazel_circleci/e8362d362e14c7d23506d1dfa3aea8b8/sandbox/processwrapper-sandbox/258/execroot/player/plugins/common-types/core/src/data-types/types.ts",
|
|
3
3
|
"name": "IntegerNNType",
|
|
4
4
|
"type": "object",
|
|
5
5
|
"properties": {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"source": "/home/circleci/.cache/bazel/_bazel_circleci/e8362d362e14c7d23506d1dfa3aea8b8/sandbox/processwrapper-sandbox/
|
|
2
|
+
"source": "/home/circleci/.cache/bazel/_bazel_circleci/e8362d362e14c7d23506d1dfa3aea8b8/sandbox/processwrapper-sandbox/258/execroot/player/plugins/common-types/core/src/data-types/types.ts",
|
|
3
3
|
"name": "IntegerPosType",
|
|
4
4
|
"type": "object",
|
|
5
5
|
"properties": {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"source": "/home/circleci/.cache/bazel/_bazel_circleci/e8362d362e14c7d23506d1dfa3aea8b8/sandbox/processwrapper-sandbox/
|
|
2
|
+
"source": "/home/circleci/.cache/bazel/_bazel_circleci/e8362d362e14c7d23506d1dfa3aea8b8/sandbox/processwrapper-sandbox/258/execroot/player/plugins/common-types/core/src/data-types/types.ts",
|
|
3
3
|
"name": "IntegerType",
|
|
4
4
|
"type": "object",
|
|
5
5
|
"properties": {
|
package/dist/xlr/PhoneType.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"source": "/home/circleci/.cache/bazel/_bazel_circleci/e8362d362e14c7d23506d1dfa3aea8b8/sandbox/processwrapper-sandbox/
|
|
2
|
+
"source": "/home/circleci/.cache/bazel/_bazel_circleci/e8362d362e14c7d23506d1dfa3aea8b8/sandbox/processwrapper-sandbox/258/execroot/player/plugins/common-types/core/src/data-types/types.ts",
|
|
3
3
|
"name": "PhoneType",
|
|
4
4
|
"type": "object",
|
|
5
5
|
"properties": {
|
package/dist/xlr/StringType.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"source": "/home/circleci/.cache/bazel/_bazel_circleci/e8362d362e14c7d23506d1dfa3aea8b8/sandbox/processwrapper-sandbox/
|
|
2
|
+
"source": "/home/circleci/.cache/bazel/_bazel_circleci/e8362d362e14c7d23506d1dfa3aea8b8/sandbox/processwrapper-sandbox/258/execroot/player/plugins/common-types/core/src/data-types/types.ts",
|
|
3
3
|
"name": "StringType",
|
|
4
4
|
"type": "object",
|
|
5
5
|
"properties": {
|
package/package.json
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@player-ui/common-types-plugin",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.2--canary.314.10088",
|
|
4
4
|
"private": false,
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org"
|
|
7
7
|
},
|
|
8
8
|
"peerDependencies": {
|
|
9
|
-
"@player-ui/player": "0.7.
|
|
9
|
+
"@player-ui/player": "0.7.2--canary.314.10088"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
|
-
"@player-ui/types-provider-plugin": "0.7.
|
|
12
|
+
"@player-ui/types-provider-plugin": "0.7.2--canary.314.10088",
|
|
13
13
|
"@babel/runtime": "7.15.4"
|
|
14
14
|
},
|
|
15
15
|
"main": "dist/index.cjs.js",
|
package/src/data-types/types.ts
CHANGED
|
@@ -1,17 +1,7 @@
|
|
|
1
1
|
import type { Schema } from '@player-ui/types';
|
|
2
|
-
import {
|
|
3
|
-
BooleanTypeRef,
|
|
4
|
-
CollectionTypeRef,
|
|
5
|
-
DateTypeRef,
|
|
6
|
-
IntegerPosTypeRef,
|
|
7
|
-
IntegerTypeRef,
|
|
8
|
-
PhoneTypeRef,
|
|
9
|
-
StringTypeRef,
|
|
10
|
-
IntegerNNTypeRef,
|
|
11
|
-
} from './refs';
|
|
12
2
|
|
|
13
3
|
export const BooleanType: Schema.DataType<boolean> = {
|
|
14
|
-
|
|
4
|
+
type: 'BooleanType',
|
|
15
5
|
default: false,
|
|
16
6
|
validation: [
|
|
17
7
|
{
|
|
@@ -23,7 +13,7 @@ export const BooleanType: Schema.DataType<boolean> = {
|
|
|
23
13
|
};
|
|
24
14
|
|
|
25
15
|
export const IntegerType: Schema.DataType<number> = {
|
|
26
|
-
|
|
16
|
+
type: 'IntegerType',
|
|
27
17
|
validation: [
|
|
28
18
|
{
|
|
29
19
|
type: 'integer',
|
|
@@ -35,7 +25,7 @@ export const IntegerType: Schema.DataType<number> = {
|
|
|
35
25
|
};
|
|
36
26
|
|
|
37
27
|
export const IntegerPosType: Schema.DataType<number> = {
|
|
38
|
-
|
|
28
|
+
type: 'IntegerPosType',
|
|
39
29
|
validation: [
|
|
40
30
|
{
|
|
41
31
|
type: 'integer',
|
|
@@ -51,7 +41,7 @@ export const IntegerPosType: Schema.DataType<number> = {
|
|
|
51
41
|
};
|
|
52
42
|
|
|
53
43
|
export const IntegerNNType: Schema.DataType<number> = {
|
|
54
|
-
|
|
44
|
+
type: 'IntegerNNType',
|
|
55
45
|
validation: [
|
|
56
46
|
{
|
|
57
47
|
type: 'integer',
|
|
@@ -67,7 +57,7 @@ export const IntegerNNType: Schema.DataType<number> = {
|
|
|
67
57
|
};
|
|
68
58
|
|
|
69
59
|
export const StringType: Schema.DataType<string> = {
|
|
70
|
-
|
|
60
|
+
type: 'StringType',
|
|
71
61
|
default: '',
|
|
72
62
|
validation: [
|
|
73
63
|
{
|
|
@@ -80,7 +70,7 @@ export const StringType: Schema.DataType<string> = {
|
|
|
80
70
|
};
|
|
81
71
|
|
|
82
72
|
export const CollectionType: Schema.DataType<Array<unknown>> = {
|
|
83
|
-
|
|
73
|
+
type: 'CollectionType',
|
|
84
74
|
validation: [
|
|
85
75
|
{
|
|
86
76
|
type: 'collection',
|
|
@@ -89,7 +79,7 @@ export const CollectionType: Schema.DataType<Array<unknown>> = {
|
|
|
89
79
|
};
|
|
90
80
|
|
|
91
81
|
export const DateType: Schema.DataType<string> = {
|
|
92
|
-
|
|
82
|
+
type: 'DateType',
|
|
93
83
|
validation: [
|
|
94
84
|
{
|
|
95
85
|
type: 'string',
|
|
@@ -101,7 +91,7 @@ export const DateType: Schema.DataType<string> = {
|
|
|
101
91
|
};
|
|
102
92
|
|
|
103
93
|
export const PhoneType: Schema.DataType<string> = {
|
|
104
|
-
|
|
94
|
+
type: 'PhoneType',
|
|
105
95
|
validation: [
|
|
106
96
|
{
|
|
107
97
|
type: 'phone',
|
package/src/index.ts
CHANGED
|
@@ -3,7 +3,6 @@ import { TypesProviderPlugin } from '@player-ui/types-provider-plugin';
|
|
|
3
3
|
|
|
4
4
|
import * as validators from './validators';
|
|
5
5
|
import * as dataTypes from './data-types/types';
|
|
6
|
-
import * as dataRefs from './data-types/refs';
|
|
7
6
|
import * as formats from './formats';
|
|
8
7
|
import type {
|
|
9
8
|
BooleanType,
|
|
@@ -16,7 +15,8 @@ import type {
|
|
|
16
15
|
PhoneType,
|
|
17
16
|
} from './data-types/types';
|
|
18
17
|
|
|
19
|
-
export { validators, dataTypes,
|
|
18
|
+
export { validators, dataTypes, formats };
|
|
19
|
+
|
|
20
20
|
export * from './formats/utils';
|
|
21
21
|
|
|
22
22
|
/**
|
package/src/data-types/refs.ts
DELETED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import type { Language } from '@player-ui/types';
|
|
2
|
-
|
|
3
|
-
export const BooleanTypeRef: Language.DataTypeRef = {
|
|
4
|
-
type: 'BooleanType',
|
|
5
|
-
};
|
|
6
|
-
|
|
7
|
-
export const IntegerTypeRef: Language.DataTypeRef = {
|
|
8
|
-
type: 'IntegerType',
|
|
9
|
-
};
|
|
10
|
-
|
|
11
|
-
export const IntegerPosTypeRef: Language.DataTypeRef = {
|
|
12
|
-
type: 'IntegerPosType',
|
|
13
|
-
};
|
|
14
|
-
|
|
15
|
-
export const IntegerNNTypeRef: Language.DataTypeRef = {
|
|
16
|
-
type: 'IntegerNNType',
|
|
17
|
-
};
|
|
18
|
-
|
|
19
|
-
export const StringTypeRef: Language.DataTypeRef = {
|
|
20
|
-
type: 'StringType',
|
|
21
|
-
};
|
|
22
|
-
|
|
23
|
-
export const CollectionTypeRef: Language.DataTypeRef = {
|
|
24
|
-
type: 'CollectionType',
|
|
25
|
-
};
|
|
26
|
-
|
|
27
|
-
export const DateTypeRef: Language.DataTypeRef = {
|
|
28
|
-
type: 'DateType',
|
|
29
|
-
};
|
|
30
|
-
|
|
31
|
-
export const PhoneTypeRef: Language.DataTypeRef = {
|
|
32
|
-
type: 'PhoneType',
|
|
33
|
-
};
|