@everymatrix/casino-challenges-container 0.0.3 → 0.0.4
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/casino-challenges-container/casino-challenge-card_4.entry.js +1 -0
- package/dist/casino-challenges-container/casino-challenges-container-f5759898.js +1 -0
- package/dist/casino-challenges-container/casino-challenges-container.esm.js +1 -1
- package/dist/casino-challenges-container/index-7720ad93.js +2 -0
- package/dist/casino-challenges-container/index.esm.js +1 -1
- package/dist/cjs/casino-challenge-card_4.cjs.entry.js +726 -0
- package/dist/cjs/{casino-challenges-container-f2c3603f.js → casino-challenges-container-9b65b281.js} +4 -2
- package/dist/cjs/casino-challenges-container.cjs.js +2 -2
- package/dist/cjs/{index-cf89b5da.js → index-d5f8d1ee.js} +60 -5
- package/dist/cjs/index.cjs.js +2 -3
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/collection/collection-manifest.json +20 -1
- package/dist/collection/components/casino-challenges-container/casino-challenges-container.js +1 -1
- package/dist/esm/casino-challenge-card_4.entry.js +720 -0
- package/dist/esm/{casino-challenges-container-c6332600.js → casino-challenges-container-f5759898.js} +2 -3
- package/dist/esm/casino-challenges-container.js +3 -3
- package/dist/esm/{index-9c823353.js → index-7720ad93.js} +58 -6
- package/dist/esm/index.js +2 -3
- package/dist/esm/loader.js +3 -3
- package/dist/types/components/casino-challenges-container/casino-challenges-container.d.ts +1 -1
- package/package.json +1 -1
- package/dist/casino-challenges-container/casino-challenges-container-c6332600.js +0 -1
- package/dist/casino-challenges-container/casino-challenges-container.entry.js +0 -1
- package/dist/casino-challenges-container/index-9c823353.js +0 -2
- package/dist/cjs/casino-challenges-container.cjs.entry.js +0 -11
- package/dist/esm/casino-challenges-container.entry.js +0 -3
package/dist/cjs/{casino-challenges-container-f2c3603f.js → casino-challenges-container-9b65b281.js}
RENAMED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const index = require('./index-
|
|
4
|
-
require('@everymatrix/casino-challenges-list');
|
|
3
|
+
const index = require('./index-d5f8d1ee.js');
|
|
5
4
|
|
|
6
5
|
/**
|
|
7
6
|
* @name setClientStyling
|
|
@@ -227,3 +226,6 @@ const CasinoChallengesContainer = class {
|
|
|
227
226
|
CasinoChallengesContainer.style = CasinoChallengesContainerStyle0;
|
|
228
227
|
|
|
229
228
|
exports.CasinoChallengesContainer = CasinoChallengesContainer;
|
|
229
|
+
exports.setClientStyling = setClientStyling;
|
|
230
|
+
exports.setClientStylingURL = setClientStylingURL;
|
|
231
|
+
exports.setStreamStyling = setStreamStyling;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-d5f8d1ee.js');
|
|
6
6
|
const appGlobals = require('./app-globals-3a1e7e63.js');
|
|
7
7
|
|
|
8
8
|
/*
|
|
@@ -19,7 +19,7 @@ var patchBrowser = () => {
|
|
|
19
19
|
|
|
20
20
|
patchBrowser().then(async (options) => {
|
|
21
21
|
await appGlobals.globalScripts();
|
|
22
|
-
return index.bootstrapLazy([["casino-
|
|
22
|
+
return index.bootstrapLazy([["casino-challenge-card_4.cjs",[[1,"casino-challenges-container",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"language":[513],"endpoint":[513],"domain":[513],"session":[513],"userId":[513,"user-id"],"activeTabIndex":[32],"error":[32],"hasError":[32],"challenges":[32],"loading":[32],"pageNumber":[32],"total":[32],"pageSize":[32]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}],[1,"casino-challenges-list",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"language":[513],"translationUrl":[513,"translation-url"],"challenges":[16],"loading":[516],"hasMore":[516,"has-more"]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}],[1,"casino-challenge-card",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"language":[513],"endpoint":[513],"domain":[513],"session":[513],"challenge":[16],"isUserAuthorized":[516,"is-user-authorized"],"tooltipIndex":[32],"timeLeft":[32],"error":[32],"hasError":[32],"actionLoading":[32]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}],[0,"ui-skeleton",{"structure":[1],"width":[1],"height":[1],"borderRadius":[8,"border-radius"],"marginBottom":[8,"margin-bottom"],"marginTop":[8,"margin-top"],"marginLeft":[8,"margin-left"],"marginRight":[8,"margin-right"],"animation":[4],"rows":[2],"size":[1]},null,{"structure":["handleStructureChange"]}]]]], options);
|
|
23
23
|
});
|
|
24
24
|
|
|
25
25
|
exports.setNonce = index.setNonce;
|
|
@@ -21,7 +21,7 @@ function _interopNamespace(e) {
|
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
const NAMESPACE = 'casino-challenges-container';
|
|
24
|
-
const BUILD = /* casino-challenges-container */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: true, cmpDidRender:
|
|
24
|
+
const BUILD = /* casino-challenges-container */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: true, cmpDidRender: true, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: true, cmpWillRender: false, cmpWillUpdate: false, connectedCallback: true, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: true, element: false, event: true, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: false, hostListenerTarget: false, hostListenerTargetBody: false, hostListenerTargetDocument: false, hostListenerTargetParent: false, hostListenerTargetWindow: false, hotModuleReplacement: false, hydrateClientSide: false, hydrateServerSide: false, hydratedAttribute: false, hydratedClass: true, hydratedSelectorName: "hydrated", initializeNextTick: false, invisiblePrehydration: true, isDebug: false, isDev: false, isTesting: false, lazyLoad: true, lifecycle: true, lifecycleDOMEvents: false, member: true, method: false, mode: false, observeAttribute: true, profile: false, prop: true, propBoolean: true, propMutable: false, propNumber: true, propString: true, reflect: true, scoped: false, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: true, slot: false, slotChildNodesFix: false, slotRelocation: false, state: true, style: true, svg: false, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: false, vdomKey: true, vdomListener: true, vdomPropOrAttr: true, vdomRef: true, vdomRender: true, vdomStyle: true, vdomText: true, vdomXlink: false, watchCallback: true };
|
|
25
25
|
|
|
26
26
|
/*
|
|
27
27
|
Stencil Client Platform v4.19.2 | MIT Licensed | https://stenciljs.com
|
|
@@ -71,10 +71,10 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
|
71
71
|
}
|
|
72
72
|
switch(bundleId) {
|
|
73
73
|
|
|
74
|
-
case 'casino-
|
|
74
|
+
case 'casino-challenge-card_4.cjs':
|
|
75
75
|
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
76
76
|
/* webpackMode: "lazy" */
|
|
77
|
-
'./casino-
|
|
77
|
+
'./casino-challenge-card_4.cjs.entry.js')); }).then(processMod, consoleError);
|
|
78
78
|
}
|
|
79
79
|
}
|
|
80
80
|
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
|
|
@@ -295,6 +295,12 @@ var Host = {};
|
|
|
295
295
|
var isHost = (node) => node && node.$tag$ === Host;
|
|
296
296
|
var parsePropertyValue = (propValue, propType) => {
|
|
297
297
|
if (propValue != null && !isComplexType(propValue)) {
|
|
298
|
+
if (propType & 4 /* Boolean */) {
|
|
299
|
+
return propValue === "false" ? false : propValue === "" || !!propValue;
|
|
300
|
+
}
|
|
301
|
+
if (propType & 2 /* Number */) {
|
|
302
|
+
return parseFloat(propValue);
|
|
303
|
+
}
|
|
298
304
|
if (propType & 1 /* String */) {
|
|
299
305
|
return String(propValue);
|
|
300
306
|
}
|
|
@@ -302,6 +308,22 @@ var parsePropertyValue = (propValue, propType) => {
|
|
|
302
308
|
}
|
|
303
309
|
return propValue;
|
|
304
310
|
};
|
|
311
|
+
var getElement = (ref) => getHostRef(ref).$hostElement$ ;
|
|
312
|
+
|
|
313
|
+
// src/runtime/event-emitter.ts
|
|
314
|
+
var createEvent = (ref, name, flags) => {
|
|
315
|
+
const elm = getElement(ref);
|
|
316
|
+
return {
|
|
317
|
+
emit: (detail) => {
|
|
318
|
+
return emitEvent(elm, name, {
|
|
319
|
+
bubbles: !!(flags & 4 /* Bubbles */),
|
|
320
|
+
composed: !!(flags & 2 /* Composed */),
|
|
321
|
+
cancelable: !!(flags & 1 /* Cancellable */),
|
|
322
|
+
detail
|
|
323
|
+
});
|
|
324
|
+
}
|
|
325
|
+
};
|
|
326
|
+
};
|
|
305
327
|
var emitEvent = (elm, name, opts) => {
|
|
306
328
|
const ev = plt.ce(name, opts);
|
|
307
329
|
elm.dispatchEvent(ev);
|
|
@@ -383,6 +405,27 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
|
383
405
|
const newClasses = parseClassList(newValue);
|
|
384
406
|
classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
|
|
385
407
|
classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
|
|
408
|
+
} else if (memberName === "style") {
|
|
409
|
+
{
|
|
410
|
+
for (const prop in oldValue) {
|
|
411
|
+
if (!newValue || newValue[prop] == null) {
|
|
412
|
+
if (prop.includes("-")) {
|
|
413
|
+
elm.style.removeProperty(prop);
|
|
414
|
+
} else {
|
|
415
|
+
elm.style[prop] = "";
|
|
416
|
+
}
|
|
417
|
+
}
|
|
418
|
+
}
|
|
419
|
+
}
|
|
420
|
+
for (const prop in newValue) {
|
|
421
|
+
if (!oldValue || newValue[prop] !== oldValue[prop]) {
|
|
422
|
+
if (prop.includes("-")) {
|
|
423
|
+
elm.style.setProperty(prop, newValue[prop]);
|
|
424
|
+
} else {
|
|
425
|
+
elm.style[prop] = newValue[prop];
|
|
426
|
+
}
|
|
427
|
+
}
|
|
428
|
+
}
|
|
386
429
|
} else if (memberName === "key") ; else if (memberName === "ref") {
|
|
387
430
|
if (newValue) {
|
|
388
431
|
newValue(elm);
|
|
@@ -786,6 +829,9 @@ var postUpdateComponent = (hostRef) => {
|
|
|
786
829
|
const endPostUpdate = createTime("postUpdate", tagName);
|
|
787
830
|
const instance = hostRef.$lazyInstance$ ;
|
|
788
831
|
const ancestorComponent = hostRef.$ancestorComponent$;
|
|
832
|
+
{
|
|
833
|
+
safeCall(instance, "componentDidRender");
|
|
834
|
+
}
|
|
789
835
|
if (!(hostRef.$flags$ & 64 /* hasLoadedComponent */)) {
|
|
790
836
|
hostRef.$flags$ |= 64 /* hasLoadedComponent */;
|
|
791
837
|
{
|
|
@@ -985,6 +1031,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
985
1031
|
hostRef.$flags$ |= 128 /* isWatchReady */;
|
|
986
1032
|
}
|
|
987
1033
|
endNewInstance();
|
|
1034
|
+
fireConnectedCallback(hostRef.$lazyInstance$);
|
|
988
1035
|
} else {
|
|
989
1036
|
Cstr = elm.constructor;
|
|
990
1037
|
const cmpTag = elm.localName;
|
|
@@ -1012,6 +1059,9 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
|
|
|
1012
1059
|
}
|
|
1013
1060
|
};
|
|
1014
1061
|
var fireConnectedCallback = (instance) => {
|
|
1062
|
+
{
|
|
1063
|
+
safeCall(instance, "connectedCallback");
|
|
1064
|
+
}
|
|
1015
1065
|
};
|
|
1016
1066
|
|
|
1017
1067
|
// src/runtime/connected-callback.ts
|
|
@@ -1044,8 +1094,10 @@ var connectedCallback = (elm) => {
|
|
|
1044
1094
|
initializeComponent(elm, hostRef, cmpMeta);
|
|
1045
1095
|
}
|
|
1046
1096
|
} else {
|
|
1047
|
-
if (hostRef == null ? void 0 : hostRef.$lazyInstance$)
|
|
1048
|
-
hostRef.$
|
|
1097
|
+
if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
|
|
1098
|
+
fireConnectedCallback(hostRef.$lazyInstance$);
|
|
1099
|
+
} else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
|
|
1100
|
+
hostRef.$onReadyPromise$.then(() => fireConnectedCallback(hostRef.$lazyInstance$));
|
|
1049
1101
|
}
|
|
1050
1102
|
}
|
|
1051
1103
|
endConnected();
|
|
@@ -1190,7 +1242,10 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
1190
1242
|
// src/runtime/nonce.ts
|
|
1191
1243
|
var setNonce = (nonce) => plt.$nonce$ = nonce;
|
|
1192
1244
|
|
|
1245
|
+
exports.Host = Host;
|
|
1193
1246
|
exports.bootstrapLazy = bootstrapLazy;
|
|
1247
|
+
exports.createEvent = createEvent;
|
|
1248
|
+
exports.getElement = getElement;
|
|
1194
1249
|
exports.h = h;
|
|
1195
1250
|
exports.promiseResolve = promiseResolve;
|
|
1196
1251
|
exports.registerInstance = registerInstance;
|
package/dist/cjs/index.cjs.js
CHANGED
|
@@ -2,9 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const casinoChallengesContainer = require('./casino-challenges-container-
|
|
6
|
-
require('./index-
|
|
7
|
-
require('@everymatrix/casino-challenges-list');
|
|
5
|
+
const casinoChallengesContainer = require('./casino-challenges-container-9b65b281.js');
|
|
6
|
+
require('./index-d5f8d1ee.js');
|
|
8
7
|
|
|
9
8
|
|
|
10
9
|
|
package/dist/cjs/loader.cjs.js
CHANGED
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-d5f8d1ee.js');
|
|
6
6
|
const appGlobals = require('./app-globals-3a1e7e63.js');
|
|
7
7
|
|
|
8
8
|
const defineCustomElements = async (win, options) => {
|
|
9
9
|
if (typeof window === 'undefined') return undefined;
|
|
10
10
|
await appGlobals.globalScripts();
|
|
11
|
-
return index.bootstrapLazy([["casino-
|
|
11
|
+
return index.bootstrapLazy([["casino-challenge-card_4.cjs",[[1,"casino-challenges-container",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"language":[513],"endpoint":[513],"domain":[513],"session":[513],"userId":[513,"user-id"],"activeTabIndex":[32],"error":[32],"hasError":[32],"challenges":[32],"loading":[32],"pageNumber":[32],"total":[32],"pageSize":[32]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}],[1,"casino-challenges-list",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"language":[513],"translationUrl":[513,"translation-url"],"challenges":[16],"loading":[516],"hasMore":[516,"has-more"]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}],[1,"casino-challenge-card",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"language":[513],"endpoint":[513],"domain":[513],"session":[513],"challenge":[16],"isUserAuthorized":[516,"is-user-authorized"],"tooltipIndex":[32],"timeLeft":[32],"error":[32],"hasError":[32],"actionLoading":[32]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"],"mbSource":["handleMbSourceChange"]}],[0,"ui-skeleton",{"structure":[1],"width":[1],"height":[1],"borderRadius":[8,"border-radius"],"marginBottom":[8,"margin-bottom"],"marginTop":[8,"margin-top"],"marginLeft":[8,"margin-left"],"marginRight":[8,"margin-right"],"animation":[4],"rows":[2],"size":[1]},null,{"structure":["handleStructureChange"]}]]]], options);
|
|
12
12
|
};
|
|
13
13
|
|
|
14
14
|
exports.setNonce = index.setNonce;
|
|
@@ -7,6 +7,25 @@
|
|
|
7
7
|
"version": "4.19.2",
|
|
8
8
|
"typescriptVersion": "5.4.5"
|
|
9
9
|
},
|
|
10
|
-
"collections": [
|
|
10
|
+
"collections": [
|
|
11
|
+
{
|
|
12
|
+
"name": "@everymatrix/casino-challenge-card",
|
|
13
|
+
"tags": [
|
|
14
|
+
"casino-challenge-card"
|
|
15
|
+
]
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
"name": "@everymatrix/casino-challenges-list",
|
|
19
|
+
"tags": [
|
|
20
|
+
"casino-challenges-list"
|
|
21
|
+
]
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"name": "@everymatrix/ui-skeleton",
|
|
25
|
+
"tags": [
|
|
26
|
+
"ui-skeleton"
|
|
27
|
+
]
|
|
28
|
+
}
|
|
29
|
+
],
|
|
11
30
|
"bundles": []
|
|
12
31
|
}
|
package/dist/collection/components/casino-challenges-container/casino-challenges-container.js
CHANGED
|
@@ -3,7 +3,7 @@ import { setClientStyling, setClientStylingURL, setStreamStyling } from "../../.
|
|
|
3
3
|
import { resolveTranslationUrl, translate } from "../../utils/locale.utils";
|
|
4
4
|
import titleIcon from "../../assets/title-icon.svg";
|
|
5
5
|
import notificationIcon from "../../assets/notification.svg";
|
|
6
|
-
import "
|
|
6
|
+
import "../../../../../casino-challenges-list/dist/types/index";
|
|
7
7
|
export class CasinoChallengesContainer {
|
|
8
8
|
constructor() {
|
|
9
9
|
this.tabs = ['Active', 'Pending', 'Finished', 'Code'];
|