@learncard/network-plugin 2.2.0 → 2.2.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.
- package/dist/lcn-plugin.cjs.development.js +39 -4
- package/dist/lcn-plugin.cjs.development.js.map +3 -3
- package/dist/lcn-plugin.cjs.production.min.js +2 -2
- package/dist/lcn-plugin.cjs.production.min.js.map +3 -3
- package/dist/lcn-plugin.esm.js +39 -4
- package/dist/lcn-plugin.esm.js.map +3 -3
- package/package.json +8 -8
package/dist/lcn-plugin.esm.js
CHANGED
|
@@ -1264,6 +1264,7 @@ var require_helpers_cjs_development = __commonJS({
|
|
|
1264
1264
|
LCNNotificationTypeEnumValidator: () => LCNNotificationTypeEnumValidator2,
|
|
1265
1265
|
LCNNotificationValidator: () => LCNNotificationValidator2,
|
|
1266
1266
|
LCNProfileConnectionStatusEnum: () => LCNProfileConnectionStatusEnum2,
|
|
1267
|
+
LCNProfileDisplayValidator: () => LCNProfileDisplayValidator2,
|
|
1267
1268
|
LCNProfileQueryValidator: () => LCNProfileQueryValidator2,
|
|
1268
1269
|
LCNProfileValidator: () => LCNProfileValidator2,
|
|
1269
1270
|
LCNSigningAuthorityForUserValidator: () => LCNSigningAuthorityForUserValidator2,
|
|
@@ -5099,6 +5100,19 @@ var require_helpers_cjs_development = __commonJS({
|
|
|
5099
5100
|
})
|
|
5100
5101
|
);
|
|
5101
5102
|
var StringQuery2 = mod2.string().or(mod2.object({ $in: mod2.string().array() })).or(mod2.object({ $regex: RegExpValidator2 }));
|
|
5103
|
+
var LCNProfileDisplayValidator2 = mod2.object({
|
|
5104
|
+
backgroundColor: mod2.string().optional(),
|
|
5105
|
+
backgroundImage: mod2.string().optional(),
|
|
5106
|
+
fadeBackgroundImage: mod2.boolean().optional(),
|
|
5107
|
+
repeatBackgroundImage: mod2.boolean().optional(),
|
|
5108
|
+
fontColor: mod2.string().optional(),
|
|
5109
|
+
accentColor: mod2.string().optional(),
|
|
5110
|
+
accentFontColor: mod2.string().optional(),
|
|
5111
|
+
idBackgroundImage: mod2.string().optional(),
|
|
5112
|
+
fadeIdBackgroundImage: mod2.boolean().optional(),
|
|
5113
|
+
idBackgroundColor: mod2.string().optional(),
|
|
5114
|
+
repeatIdBackgroundImage: mod2.boolean().optional()
|
|
5115
|
+
});
|
|
5102
5116
|
var LCNProfileValidator2 = mod2.object({
|
|
5103
5117
|
profileId: mod2.string().min(3).max(40),
|
|
5104
5118
|
displayName: mod2.string().default(""),
|
|
@@ -5111,7 +5125,8 @@ var require_helpers_cjs_development = __commonJS({
|
|
|
5111
5125
|
websiteLink: mod2.string().optional(),
|
|
5112
5126
|
isServiceProfile: mod2.boolean().default(false).optional(),
|
|
5113
5127
|
type: mod2.string().optional(),
|
|
5114
|
-
notificationsWebhook: mod2.string().url().startsWith("http").optional()
|
|
5128
|
+
notificationsWebhook: mod2.string().url().startsWith("http").optional(),
|
|
5129
|
+
display: LCNProfileDisplayValidator2.optional()
|
|
5115
5130
|
});
|
|
5116
5131
|
var LCNProfileQueryValidator2 = mod2.object({
|
|
5117
5132
|
profileId: StringQuery2,
|
|
@@ -5463,7 +5478,10 @@ var callbackLink = /* @__PURE__ */ __name2((callback) => {
|
|
|
5463
5478
|
var getClient = /* @__PURE__ */ __name2(async (url, didAuthFunction) => {
|
|
5464
5479
|
let challenges = [];
|
|
5465
5480
|
const challengeRequester = createTRPCProxyClient({
|
|
5466
|
-
transformer:
|
|
5481
|
+
transformer: {
|
|
5482
|
+
input: import_helpers.RegExpTransformer,
|
|
5483
|
+
output: { serialize: (o) => o, deserialize: (o) => o }
|
|
5484
|
+
},
|
|
5467
5485
|
links: [
|
|
5468
5486
|
httpBatchLink({
|
|
5469
5487
|
url,
|
|
@@ -5477,7 +5495,10 @@ var getClient = /* @__PURE__ */ __name2(async (url, didAuthFunction) => {
|
|
|
5477
5495
|
}, "getChallenges");
|
|
5478
5496
|
challenges = await getChallenges();
|
|
5479
5497
|
const trpc = createTRPCProxyClient({
|
|
5480
|
-
transformer:
|
|
5498
|
+
transformer: {
|
|
5499
|
+
input: import_helpers.RegExpTransformer,
|
|
5500
|
+
output: { serialize: (o) => o, deserialize: (o) => o }
|
|
5501
|
+
},
|
|
5481
5502
|
links: [
|
|
5482
5503
|
callbackLink(async () => {
|
|
5483
5504
|
challenges = await getChallenges();
|
|
@@ -9253,6 +9274,19 @@ var RegExpValidator = mod.instanceof(RegExp).or(
|
|
|
9253
9274
|
})
|
|
9254
9275
|
);
|
|
9255
9276
|
var StringQuery = mod.string().or(mod.object({ $in: mod.string().array() })).or(mod.object({ $regex: RegExpValidator }));
|
|
9277
|
+
var LCNProfileDisplayValidator = mod.object({
|
|
9278
|
+
backgroundColor: mod.string().optional(),
|
|
9279
|
+
backgroundImage: mod.string().optional(),
|
|
9280
|
+
fadeBackgroundImage: mod.boolean().optional(),
|
|
9281
|
+
repeatBackgroundImage: mod.boolean().optional(),
|
|
9282
|
+
fontColor: mod.string().optional(),
|
|
9283
|
+
accentColor: mod.string().optional(),
|
|
9284
|
+
accentFontColor: mod.string().optional(),
|
|
9285
|
+
idBackgroundImage: mod.string().optional(),
|
|
9286
|
+
fadeIdBackgroundImage: mod.boolean().optional(),
|
|
9287
|
+
idBackgroundColor: mod.string().optional(),
|
|
9288
|
+
repeatIdBackgroundImage: mod.boolean().optional()
|
|
9289
|
+
});
|
|
9256
9290
|
var LCNProfileValidator = mod.object({
|
|
9257
9291
|
profileId: mod.string().min(3).max(40),
|
|
9258
9292
|
displayName: mod.string().default(""),
|
|
@@ -9265,7 +9299,8 @@ var LCNProfileValidator = mod.object({
|
|
|
9265
9299
|
websiteLink: mod.string().optional(),
|
|
9266
9300
|
isServiceProfile: mod.boolean().default(false).optional(),
|
|
9267
9301
|
type: mod.string().optional(),
|
|
9268
|
-
notificationsWebhook: mod.string().url().startsWith("http").optional()
|
|
9302
|
+
notificationsWebhook: mod.string().url().startsWith("http").optional(),
|
|
9303
|
+
display: LCNProfileDisplayValidator.optional()
|
|
9269
9304
|
});
|
|
9270
9305
|
var LCNProfileQueryValidator = mod.object({
|
|
9271
9306
|
profileId: StringQuery,
|