@everymatrix/general-preview-social-posts 1.0.69
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/cjs/app-globals-3a1e7e63.js +5 -0
- package/dist/cjs/general-preview-social-posts.cjs.entry.js +322 -0
- package/dist/cjs/general-preview-social-posts.cjs.js +25 -0
- package/dist/cjs/index-3a1dd540.js +1200 -0
- package/dist/cjs/index.cjs.js +2 -0
- package/dist/cjs/loader.cjs.js +15 -0
- package/dist/collection/collection-manifest.json +12 -0
- package/dist/collection/components/general-preview-social-posts/general-preview-social-posts.css +112 -0
- package/dist/collection/components/general-preview-social-posts/general-preview-social-posts.js +533 -0
- package/dist/collection/components/general-preview-social-posts/index.js +1 -0
- package/dist/collection/index.js +1 -0
- package/dist/collection/utils/locale.utils.js +66 -0
- package/dist/collection/utils/utils.js +45 -0
- package/dist/esm/app-globals-0f993ce5.js +3 -0
- package/dist/esm/general-preview-social-posts.entry.js +318 -0
- package/dist/esm/general-preview-social-posts.js +20 -0
- package/dist/esm/index-16f33f52.js +1173 -0
- package/dist/esm/index.js +1 -0
- package/dist/esm/loader.js +11 -0
- package/dist/general-preview-social-posts/general-preview-social-posts.esm.js +1 -0
- package/dist/general-preview-social-posts/index.esm.js +0 -0
- package/dist/general-preview-social-posts/p-1f296318.js +2 -0
- package/dist/general-preview-social-posts/p-5434bb4a.entry.js +1 -0
- package/dist/general-preview-social-posts/p-e1255160.js +1 -0
- package/dist/index.cjs.js +1 -0
- package/dist/index.js +1 -0
- package/dist/stencil.config.dev.js +17 -0
- package/dist/stencil.config.js +17 -0
- package/dist/types/Users/raul.vasile/workspace/everymatrix/widgets-monorepo/packages/stencil/general-preview-social-posts/.stencil/packages/stencil/general-preview-social-posts/stencil.config.d.ts +2 -0
- package/dist/types/Users/raul.vasile/workspace/everymatrix/widgets-monorepo/packages/stencil/general-preview-social-posts/.stencil/packages/stencil/general-preview-social-posts/stencil.config.dev.d.ts +2 -0
- package/dist/types/components/general-preview-social-posts/general-preview-social-posts.d.ts +84 -0
- package/dist/types/components/general-preview-social-posts/index.d.ts +1 -0
- package/dist/types/components.d.ts +169 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/stencil-public-runtime.d.ts +1674 -0
- package/dist/types/utils/locale.utils.d.ts +2 -0
- package/dist/types/utils/utils.d.ts +9 -0
- package/loader/cdn.js +1 -0
- package/loader/index.cjs.js +1 -0
- package/loader/index.d.ts +24 -0
- package/loader/index.es2017.js +1 -0
- package/loader/index.js +2 -0
- package/loader/package.json +11 -0
- package/package.json +26 -0
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
const index = require('./index-3a1dd540.js');
|
|
6
|
+
const appGlobals = require('./app-globals-3a1e7e63.js');
|
|
7
|
+
|
|
8
|
+
const defineCustomElements = async (win, options) => {
|
|
9
|
+
if (typeof window === 'undefined') return undefined;
|
|
10
|
+
await appGlobals.globalScripts();
|
|
11
|
+
return index.bootstrapLazy([["general-preview-social-posts.cjs",[[1,"general-preview-social-posts",{"userId":[513,"user-id"],"session":[513],"postsTitle":[513,"posts-title"],"maxCards":[513,"max-cards"],"language":[513],"datasource":[513],"endpoint":[513],"cmsEndpoint":[513,"cms-endpoint"],"userRoles":[513,"user-roles"],"translationUrl":[513,"translation-url"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"cmsEnv":[513,"cms-env"],"pageName":[513,"page-name"],"posts":[32],"stylingAppends":[32],"isLoading":[32],"isLoggedIn":[32],"dataImages":[32],"gameIds":[32]},null,{"translationUrl":["handleNewTranslations"],"session":["watchSession"]}]]]], options);
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
exports.setNonce = index.setNonce;
|
|
15
|
+
exports.defineCustomElements = defineCustomElements;
|
package/dist/collection/components/general-preview-social-posts/general-preview-social-posts.css
ADDED
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
:host {
|
|
2
|
+
font-family: "Roboto", sans-serif;
|
|
3
|
+
display: block;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
.ModalContainer {
|
|
7
|
+
container-type: inline-size;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.sliderWidget {
|
|
11
|
+
display: block;
|
|
12
|
+
max-width: 780px;
|
|
13
|
+
margin: 0 auto;
|
|
14
|
+
padding: 16px;
|
|
15
|
+
max-height: 500px;
|
|
16
|
+
}
|
|
17
|
+
.sliderWidget h2 {
|
|
18
|
+
font-size: 20px;
|
|
19
|
+
}
|
|
20
|
+
.sliderWidget .headerHontainer {
|
|
21
|
+
display: flex;
|
|
22
|
+
justify-content: space-between;
|
|
23
|
+
align-items: center;
|
|
24
|
+
}
|
|
25
|
+
.sliderWidget .headerHontainer .viewAllButton {
|
|
26
|
+
cursor: pointer;
|
|
27
|
+
font-weight: bold;
|
|
28
|
+
color: rgb(142, 142, 142);
|
|
29
|
+
}
|
|
30
|
+
.sliderWidget .postSlider {
|
|
31
|
+
display: flex;
|
|
32
|
+
overflow-x: auto;
|
|
33
|
+
scroll-snap-type: x mandatory;
|
|
34
|
+
gap: 24px;
|
|
35
|
+
}
|
|
36
|
+
.sliderWidget .postSlider .postCard {
|
|
37
|
+
display: flex;
|
|
38
|
+
flex-direction: column;
|
|
39
|
+
justify-content: space-between;
|
|
40
|
+
scroll-snap-align: start;
|
|
41
|
+
padding: 20px;
|
|
42
|
+
border-radius: 6px;
|
|
43
|
+
min-width: 360px;
|
|
44
|
+
background-color: rgb(244, 244, 244);
|
|
45
|
+
}
|
|
46
|
+
.sliderWidget .postSlider .postCard .Description {
|
|
47
|
+
display: -webkit-box;
|
|
48
|
+
-webkit-line-clamp: 5;
|
|
49
|
+
-webkit-box-orient: vertical;
|
|
50
|
+
overflow: hidden;
|
|
51
|
+
margin-bottom: 14px;
|
|
52
|
+
}
|
|
53
|
+
.sliderWidget .postSlider .postCard .imageTitle {
|
|
54
|
+
display: flex;
|
|
55
|
+
justify-content: flex-start;
|
|
56
|
+
gap: 20px;
|
|
57
|
+
}
|
|
58
|
+
.sliderWidget .postSlider .postCard .imageTitle img {
|
|
59
|
+
height: 120px;
|
|
60
|
+
width: 120px;
|
|
61
|
+
border-radius: 6px;
|
|
62
|
+
}
|
|
63
|
+
.sliderWidget .postSlider .postCard .imageTitle .titleSubtitle {
|
|
64
|
+
display: flex;
|
|
65
|
+
flex-direction: column;
|
|
66
|
+
}
|
|
67
|
+
.sliderWidget .postSlider .postCard .buttons {
|
|
68
|
+
display: flex;
|
|
69
|
+
justify-content: center;
|
|
70
|
+
gap: 12px;
|
|
71
|
+
}
|
|
72
|
+
.sliderWidget .postSlider .postCard .buttons .moreInfoButton, .sliderWidget .postSlider .postCard .buttons .playNowButton {
|
|
73
|
+
width: 172px;
|
|
74
|
+
display: block;
|
|
75
|
+
padding: 8px 16px;
|
|
76
|
+
border: 3px solid #63B250;
|
|
77
|
+
border-radius: 6px;
|
|
78
|
+
cursor: pointer;
|
|
79
|
+
font-weight: bold;
|
|
80
|
+
}
|
|
81
|
+
.sliderWidget .postSlider .postCard .buttons .moreInfoButton {
|
|
82
|
+
background-color: rgb(244, 244, 244);
|
|
83
|
+
color: #63B250;
|
|
84
|
+
}
|
|
85
|
+
.sliderWidget .postSlider .postCard .buttons .playNowButton {
|
|
86
|
+
background-color: #63B250;
|
|
87
|
+
color: #fff;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
h3, h4 {
|
|
91
|
+
font-size: 18px;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
p {
|
|
95
|
+
font-size: 14px;
|
|
96
|
+
color: rgb(91, 91, 91);
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
@container (max-width: 480px) {
|
|
100
|
+
.sliderWidget h2 {
|
|
101
|
+
font-size: 18px;
|
|
102
|
+
}
|
|
103
|
+
.sliderWidget .postSlider .postCard {
|
|
104
|
+
min-width: 250px;
|
|
105
|
+
}
|
|
106
|
+
h3, h4 {
|
|
107
|
+
font-size: 16px;
|
|
108
|
+
}
|
|
109
|
+
p {
|
|
110
|
+
font-size: 12px;
|
|
111
|
+
}
|
|
112
|
+
}
|
package/dist/collection/components/general-preview-social-posts/general-preview-social-posts.js
ADDED
|
@@ -0,0 +1,533 @@
|
|
|
1
|
+
import { h } from "@stencil/core";
|
|
2
|
+
import { getTranslations, translate } from "../../utils/locale.utils";
|
|
3
|
+
import { getDevicePlatform } from "../../utils/utils";
|
|
4
|
+
export class GeneralPreviewSocialPosts {
|
|
5
|
+
constructor() {
|
|
6
|
+
this.platform = getDevicePlatform();
|
|
7
|
+
this.setClientStyling = () => {
|
|
8
|
+
let sheet = document.createElement('style');
|
|
9
|
+
sheet.innerHTML = this.clientStyling;
|
|
10
|
+
this.stylingContainer.prepend(sheet);
|
|
11
|
+
};
|
|
12
|
+
this.setClientStylingURL = () => {
|
|
13
|
+
let url = new URL(this.clientStylingUrl);
|
|
14
|
+
let cssFile = document.createElement('style');
|
|
15
|
+
fetch(url.href)
|
|
16
|
+
.then((res) => res.text())
|
|
17
|
+
.then((data) => {
|
|
18
|
+
cssFile.innerHTML = data;
|
|
19
|
+
setTimeout(() => { this.stylingContainer.prepend(cssFile); }, 1);
|
|
20
|
+
})
|
|
21
|
+
.catch((err) => {
|
|
22
|
+
console.log('error ', err);
|
|
23
|
+
});
|
|
24
|
+
};
|
|
25
|
+
this.userId = '';
|
|
26
|
+
this.session = '';
|
|
27
|
+
this.postsTitle = '';
|
|
28
|
+
this.maxCards = '';
|
|
29
|
+
this.language = 'en';
|
|
30
|
+
this.datasource = '';
|
|
31
|
+
this.endpoint = '';
|
|
32
|
+
this.cmsEndpoint = '';
|
|
33
|
+
this.userRoles = '';
|
|
34
|
+
this.translationUrl = '';
|
|
35
|
+
this.clientStyling = '';
|
|
36
|
+
this.clientStylingUrl = '';
|
|
37
|
+
this.cmsEnv = 'stage';
|
|
38
|
+
this.pageName = 'casino';
|
|
39
|
+
this.posts = [];
|
|
40
|
+
this.stylingAppends = false;
|
|
41
|
+
this.isLoading = false;
|
|
42
|
+
this.isLoggedIn = false;
|
|
43
|
+
this.dataImages = [];
|
|
44
|
+
this.gameIds = '';
|
|
45
|
+
}
|
|
46
|
+
handleNewTranslations() {
|
|
47
|
+
this.isLoading = true;
|
|
48
|
+
getTranslations(this.translationUrl).then(() => {
|
|
49
|
+
this.isLoading = false;
|
|
50
|
+
});
|
|
51
|
+
}
|
|
52
|
+
async componentWillLoad() {
|
|
53
|
+
if (this.translationUrl.length > 2) {
|
|
54
|
+
await getTranslations(this.translationUrl);
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
watchSession(newValue, oldValue) {
|
|
58
|
+
if (newValue !== oldValue) {
|
|
59
|
+
this.isLoggedIn = newValue !== '';
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
connectedCallback() {
|
|
63
|
+
if (this.session) {
|
|
64
|
+
this.isLoggedIn = true;
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
componentDidRender() {
|
|
68
|
+
// start custom styling area
|
|
69
|
+
if (!this.stylingAppends && this.stylingContainer) {
|
|
70
|
+
if (this.clientStyling)
|
|
71
|
+
this.setClientStyling();
|
|
72
|
+
if (this.clientStylingUrl)
|
|
73
|
+
this.setClientStylingURL();
|
|
74
|
+
this.stylingAppends = true;
|
|
75
|
+
}
|
|
76
|
+
// end custom styling area
|
|
77
|
+
}
|
|
78
|
+
getDataImage(ids) {
|
|
79
|
+
try {
|
|
80
|
+
let url = new URL(`${this.endpoint}/v2/casino/groups/${this.datasource}`);
|
|
81
|
+
url.searchParams.append("language", this.language);
|
|
82
|
+
url.searchParams.append("expand", 'games');
|
|
83
|
+
url.searchParams.append("fields", 'games(id,thumbnail,launchUrl)');
|
|
84
|
+
url.searchParams.append("filter", ids);
|
|
85
|
+
url.searchParams.append('device', this.platform);
|
|
86
|
+
const options = {
|
|
87
|
+
'method': 'GET',
|
|
88
|
+
'Content-Type': 'application/json'
|
|
89
|
+
};
|
|
90
|
+
fetch(url.href, options)
|
|
91
|
+
.then((res) => {
|
|
92
|
+
if (res.status === 200) {
|
|
93
|
+
return res.json();
|
|
94
|
+
}
|
|
95
|
+
else {
|
|
96
|
+
throw new Error("HTTP status " + res.status);
|
|
97
|
+
}
|
|
98
|
+
})
|
|
99
|
+
.then((data) => {
|
|
100
|
+
data.items.forEach((item) => {
|
|
101
|
+
item.games.items.forEach(element => {
|
|
102
|
+
let { id, launchUrl, thumbnail } = element;
|
|
103
|
+
this.dataImages = [{ id, launchUrl, thumbnail }];
|
|
104
|
+
let index = this.posts.findIndex(post => post.gameId === id);
|
|
105
|
+
if (index !== -1) {
|
|
106
|
+
this.posts[index].images = this.dataImages;
|
|
107
|
+
}
|
|
108
|
+
});
|
|
109
|
+
});
|
|
110
|
+
})
|
|
111
|
+
.catch((err) => {
|
|
112
|
+
// Handle any errors
|
|
113
|
+
console.error(err);
|
|
114
|
+
});
|
|
115
|
+
}
|
|
116
|
+
catch (error) {
|
|
117
|
+
console.error('Error fetching verification types:', error);
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
async componentDidLoad() {
|
|
121
|
+
try {
|
|
122
|
+
let url = new URL(`${this.cmsEndpoint}/${this.language}/content/social-posts`);
|
|
123
|
+
url.searchParams.append("device", this.platform);
|
|
124
|
+
url.searchParams.append("page", this.pageName);
|
|
125
|
+
url.searchParams.append("language", this.language);
|
|
126
|
+
url.searchParams.append("userRoles", this.userRoles);
|
|
127
|
+
url.searchParams.append('env', this.cmsEnv);
|
|
128
|
+
const options = {
|
|
129
|
+
'method': 'GET',
|
|
130
|
+
'Content-Type': 'application/json'
|
|
131
|
+
};
|
|
132
|
+
fetch(url.href, options)
|
|
133
|
+
.then((res) => {
|
|
134
|
+
if (res.status === 200) {
|
|
135
|
+
return res.json();
|
|
136
|
+
}
|
|
137
|
+
else {
|
|
138
|
+
throw new Error("HTTP status " + res.status);
|
|
139
|
+
}
|
|
140
|
+
})
|
|
141
|
+
.then((data) => {
|
|
142
|
+
data.forEach(element => {
|
|
143
|
+
var _a;
|
|
144
|
+
const slug = element.slug;
|
|
145
|
+
const postId = element.id;
|
|
146
|
+
const { gameId, title, description, subtitle } = (_a = element.previewCard) !== null && _a !== void 0 ? _a : {};
|
|
147
|
+
if (gameId) {
|
|
148
|
+
this.gameIds += `games(id=${gameId}),`;
|
|
149
|
+
}
|
|
150
|
+
this.posts.push({ postId, gameId, title, description, subtitle, slug });
|
|
151
|
+
});
|
|
152
|
+
if (this.gameIds.length > 0) {
|
|
153
|
+
this.gameIds = this.gameIds.slice(0, -1); // Removes the last comma
|
|
154
|
+
this.gameIds = '$or(' + this.gameIds + ')';
|
|
155
|
+
}
|
|
156
|
+
this.getDataImage(this.gameIds);
|
|
157
|
+
})
|
|
158
|
+
.catch((err) => {
|
|
159
|
+
// Handle any errors
|
|
160
|
+
console.error(err);
|
|
161
|
+
});
|
|
162
|
+
}
|
|
163
|
+
catch (error) {
|
|
164
|
+
console.error('Error fetching verification types:', error);
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
hasUndefinedValues(obj) {
|
|
168
|
+
return Object.values(obj).some((value) => value === undefined);
|
|
169
|
+
}
|
|
170
|
+
render() {
|
|
171
|
+
if (this.isLoading) {
|
|
172
|
+
return (h("div", null, h("p", null, translate('loading', this.language))));
|
|
173
|
+
}
|
|
174
|
+
else {
|
|
175
|
+
return (h("div", { class: "ModalContainer", ref: el => this.stylingContainer = el }, h("div", { class: "sliderWidget" }, h("div", { class: "headerHontainer" }, this.postsTitle && h("h2", null, this.postsTitle), h("div", { class: "viewAllButton", onClick: () => this.onViewAllClick() }, translate('viewAll', this.language))), h("div", { class: "postSlider" }, this.posts
|
|
176
|
+
.filter((post) => !this.hasUndefinedValues(post)) // Filter out posts with undefined values
|
|
177
|
+
.slice(0, +(this.maxCards || this.posts.length))
|
|
178
|
+
.map((post) => {
|
|
179
|
+
var _a, _b, _c, _d;
|
|
180
|
+
return (h("div", { class: "postCard" }, h("div", { class: "imageTitle" }, (post === null || post === void 0 ? void 0 : post.images) ? (h("a", { href: ((_b = (_a = post.images) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.launchUrl) || '', target: "_blank", rel: "noopener noreferrer" }, h("img", { src: ((_d = (_c = post.images) === null || _c === void 0 ? void 0 : _c[0]) === null || _d === void 0 ? void 0 : _d.thumbnail) || '', alt: "Game Image" })))
|
|
181
|
+
: null, h("div", { class: "titleSubtitle" }, post.title && h("h3", null, post.title), post.subtitle && h("p", { innerHTML: post.subtitle }))), post.description &&
|
|
182
|
+
h("div", { class: "Description" }, h("p", { innerHTML: post.description })), h("div", { class: "buttons" }, h("button", { class: "moreInfoButton", onClick: () => this.onMoreInfoClick(post.gameId, post.postId, post.title, post.slug) }, translate('moreInfo', this.language)), this.isLoggedIn && post.gameId && h("button", { class: "playNowButton", onClick: () => this.onPlayNowClick(post.gameId) }, translate('playNow', this.language)))));
|
|
183
|
+
})))));
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
onViewAllClick() {
|
|
187
|
+
this.viewAll.emit();
|
|
188
|
+
window.postMessage({ type: 'viewAllSocialPosts' }, window.location.href);
|
|
189
|
+
}
|
|
190
|
+
onMoreInfoClick(gameId, postId, postTitle, slug) {
|
|
191
|
+
this.moreInfo.emit();
|
|
192
|
+
window.postMessage({ type: 'moreInfoSocialPost', gameId, postId, postTitle, slug }, window.location.href);
|
|
193
|
+
}
|
|
194
|
+
onPlayNowClick(gameId) {
|
|
195
|
+
this.playNow.emit(gameId);
|
|
196
|
+
window.postMessage({ type: 'playNowSocialPost', gameId: gameId }, window.location.href);
|
|
197
|
+
}
|
|
198
|
+
static get is() { return "general-preview-social-posts"; }
|
|
199
|
+
static get encapsulation() { return "shadow"; }
|
|
200
|
+
static get originalStyleUrls() {
|
|
201
|
+
return {
|
|
202
|
+
"$": ["general-preview-social-posts.scss"]
|
|
203
|
+
};
|
|
204
|
+
}
|
|
205
|
+
static get styleUrls() {
|
|
206
|
+
return {
|
|
207
|
+
"$": ["general-preview-social-posts.css"]
|
|
208
|
+
};
|
|
209
|
+
}
|
|
210
|
+
static get properties() {
|
|
211
|
+
return {
|
|
212
|
+
"userId": {
|
|
213
|
+
"type": "string",
|
|
214
|
+
"mutable": false,
|
|
215
|
+
"complexType": {
|
|
216
|
+
"original": "string",
|
|
217
|
+
"resolved": "string",
|
|
218
|
+
"references": {}
|
|
219
|
+
},
|
|
220
|
+
"required": false,
|
|
221
|
+
"optional": false,
|
|
222
|
+
"docs": {
|
|
223
|
+
"tags": [],
|
|
224
|
+
"text": "The userId"
|
|
225
|
+
},
|
|
226
|
+
"attribute": "user-id",
|
|
227
|
+
"reflect": true,
|
|
228
|
+
"defaultValue": "''"
|
|
229
|
+
},
|
|
230
|
+
"session": {
|
|
231
|
+
"type": "string",
|
|
232
|
+
"mutable": false,
|
|
233
|
+
"complexType": {
|
|
234
|
+
"original": "string",
|
|
235
|
+
"resolved": "string",
|
|
236
|
+
"references": {}
|
|
237
|
+
},
|
|
238
|
+
"required": false,
|
|
239
|
+
"optional": false,
|
|
240
|
+
"docs": {
|
|
241
|
+
"tags": [],
|
|
242
|
+
"text": "The session"
|
|
243
|
+
},
|
|
244
|
+
"attribute": "session",
|
|
245
|
+
"reflect": true,
|
|
246
|
+
"defaultValue": "''"
|
|
247
|
+
},
|
|
248
|
+
"postsTitle": {
|
|
249
|
+
"type": "string",
|
|
250
|
+
"mutable": false,
|
|
251
|
+
"complexType": {
|
|
252
|
+
"original": "string",
|
|
253
|
+
"resolved": "string",
|
|
254
|
+
"references": {}
|
|
255
|
+
},
|
|
256
|
+
"required": false,
|
|
257
|
+
"optional": false,
|
|
258
|
+
"docs": {
|
|
259
|
+
"tags": [],
|
|
260
|
+
"text": "The Posts Title"
|
|
261
|
+
},
|
|
262
|
+
"attribute": "posts-title",
|
|
263
|
+
"reflect": true,
|
|
264
|
+
"defaultValue": "''"
|
|
265
|
+
},
|
|
266
|
+
"maxCards": {
|
|
267
|
+
"type": "string",
|
|
268
|
+
"mutable": false,
|
|
269
|
+
"complexType": {
|
|
270
|
+
"original": "string",
|
|
271
|
+
"resolved": "string",
|
|
272
|
+
"references": {}
|
|
273
|
+
},
|
|
274
|
+
"required": false,
|
|
275
|
+
"optional": false,
|
|
276
|
+
"docs": {
|
|
277
|
+
"tags": [],
|
|
278
|
+
"text": "The max cards displayed"
|
|
279
|
+
},
|
|
280
|
+
"attribute": "max-cards",
|
|
281
|
+
"reflect": true,
|
|
282
|
+
"defaultValue": "''"
|
|
283
|
+
},
|
|
284
|
+
"language": {
|
|
285
|
+
"type": "string",
|
|
286
|
+
"mutable": false,
|
|
287
|
+
"complexType": {
|
|
288
|
+
"original": "string",
|
|
289
|
+
"resolved": "string",
|
|
290
|
+
"references": {}
|
|
291
|
+
},
|
|
292
|
+
"required": false,
|
|
293
|
+
"optional": false,
|
|
294
|
+
"docs": {
|
|
295
|
+
"tags": [],
|
|
296
|
+
"text": "The language"
|
|
297
|
+
},
|
|
298
|
+
"attribute": "language",
|
|
299
|
+
"reflect": true,
|
|
300
|
+
"defaultValue": "'en'"
|
|
301
|
+
},
|
|
302
|
+
"datasource": {
|
|
303
|
+
"type": "string",
|
|
304
|
+
"mutable": false,
|
|
305
|
+
"complexType": {
|
|
306
|
+
"original": "string",
|
|
307
|
+
"resolved": "string",
|
|
308
|
+
"references": {}
|
|
309
|
+
},
|
|
310
|
+
"required": false,
|
|
311
|
+
"optional": false,
|
|
312
|
+
"docs": {
|
|
313
|
+
"tags": [],
|
|
314
|
+
"text": "The datasource"
|
|
315
|
+
},
|
|
316
|
+
"attribute": "datasource",
|
|
317
|
+
"reflect": true,
|
|
318
|
+
"defaultValue": "''"
|
|
319
|
+
},
|
|
320
|
+
"endpoint": {
|
|
321
|
+
"type": "string",
|
|
322
|
+
"mutable": false,
|
|
323
|
+
"complexType": {
|
|
324
|
+
"original": "string",
|
|
325
|
+
"resolved": "string",
|
|
326
|
+
"references": {}
|
|
327
|
+
},
|
|
328
|
+
"required": false,
|
|
329
|
+
"optional": false,
|
|
330
|
+
"docs": {
|
|
331
|
+
"tags": [],
|
|
332
|
+
"text": "The NorWAy endpoint"
|
|
333
|
+
},
|
|
334
|
+
"attribute": "endpoint",
|
|
335
|
+
"reflect": true,
|
|
336
|
+
"defaultValue": "''"
|
|
337
|
+
},
|
|
338
|
+
"cmsEndpoint": {
|
|
339
|
+
"type": "string",
|
|
340
|
+
"mutable": false,
|
|
341
|
+
"complexType": {
|
|
342
|
+
"original": "string",
|
|
343
|
+
"resolved": "string",
|
|
344
|
+
"references": {}
|
|
345
|
+
},
|
|
346
|
+
"required": false,
|
|
347
|
+
"optional": false,
|
|
348
|
+
"docs": {
|
|
349
|
+
"tags": [],
|
|
350
|
+
"text": "The NorWAy endpoint"
|
|
351
|
+
},
|
|
352
|
+
"attribute": "cms-endpoint",
|
|
353
|
+
"reflect": true,
|
|
354
|
+
"defaultValue": "''"
|
|
355
|
+
},
|
|
356
|
+
"userRoles": {
|
|
357
|
+
"type": "string",
|
|
358
|
+
"mutable": false,
|
|
359
|
+
"complexType": {
|
|
360
|
+
"original": "string",
|
|
361
|
+
"resolved": "string",
|
|
362
|
+
"references": {}
|
|
363
|
+
},
|
|
364
|
+
"required": false,
|
|
365
|
+
"optional": false,
|
|
366
|
+
"docs": {
|
|
367
|
+
"tags": [],
|
|
368
|
+
"text": "The userRoles"
|
|
369
|
+
},
|
|
370
|
+
"attribute": "user-roles",
|
|
371
|
+
"reflect": true,
|
|
372
|
+
"defaultValue": "''"
|
|
373
|
+
},
|
|
374
|
+
"translationUrl": {
|
|
375
|
+
"type": "string",
|
|
376
|
+
"mutable": false,
|
|
377
|
+
"complexType": {
|
|
378
|
+
"original": "string",
|
|
379
|
+
"resolved": "string",
|
|
380
|
+
"references": {}
|
|
381
|
+
},
|
|
382
|
+
"required": false,
|
|
383
|
+
"optional": false,
|
|
384
|
+
"docs": {
|
|
385
|
+
"tags": [],
|
|
386
|
+
"text": "The translationurl"
|
|
387
|
+
},
|
|
388
|
+
"attribute": "translation-url",
|
|
389
|
+
"reflect": true,
|
|
390
|
+
"defaultValue": "''"
|
|
391
|
+
},
|
|
392
|
+
"clientStyling": {
|
|
393
|
+
"type": "string",
|
|
394
|
+
"mutable": false,
|
|
395
|
+
"complexType": {
|
|
396
|
+
"original": "string",
|
|
397
|
+
"resolved": "string",
|
|
398
|
+
"references": {}
|
|
399
|
+
},
|
|
400
|
+
"required": false,
|
|
401
|
+
"optional": false,
|
|
402
|
+
"docs": {
|
|
403
|
+
"tags": [],
|
|
404
|
+
"text": "Client custom styling via string"
|
|
405
|
+
},
|
|
406
|
+
"attribute": "client-styling",
|
|
407
|
+
"reflect": true,
|
|
408
|
+
"defaultValue": "''"
|
|
409
|
+
},
|
|
410
|
+
"clientStylingUrl": {
|
|
411
|
+
"type": "string",
|
|
412
|
+
"mutable": false,
|
|
413
|
+
"complexType": {
|
|
414
|
+
"original": "string",
|
|
415
|
+
"resolved": "string",
|
|
416
|
+
"references": {}
|
|
417
|
+
},
|
|
418
|
+
"required": false,
|
|
419
|
+
"optional": false,
|
|
420
|
+
"docs": {
|
|
421
|
+
"tags": [],
|
|
422
|
+
"text": "Client custom styling via url content"
|
|
423
|
+
},
|
|
424
|
+
"attribute": "client-styling-url",
|
|
425
|
+
"reflect": true,
|
|
426
|
+
"defaultValue": "''"
|
|
427
|
+
},
|
|
428
|
+
"cmsEnv": {
|
|
429
|
+
"type": "string",
|
|
430
|
+
"mutable": false,
|
|
431
|
+
"complexType": {
|
|
432
|
+
"original": "string",
|
|
433
|
+
"resolved": "string",
|
|
434
|
+
"references": {}
|
|
435
|
+
},
|
|
436
|
+
"required": false,
|
|
437
|
+
"optional": false,
|
|
438
|
+
"docs": {
|
|
439
|
+
"tags": [],
|
|
440
|
+
"text": "CMS Endpoint stage"
|
|
441
|
+
},
|
|
442
|
+
"attribute": "cms-env",
|
|
443
|
+
"reflect": true,
|
|
444
|
+
"defaultValue": "'stage'"
|
|
445
|
+
},
|
|
446
|
+
"pageName": {
|
|
447
|
+
"type": "string",
|
|
448
|
+
"mutable": false,
|
|
449
|
+
"complexType": {
|
|
450
|
+
"original": "string",
|
|
451
|
+
"resolved": "string",
|
|
452
|
+
"references": {}
|
|
453
|
+
},
|
|
454
|
+
"required": false,
|
|
455
|
+
"optional": false,
|
|
456
|
+
"docs": {
|
|
457
|
+
"tags": [],
|
|
458
|
+
"text": "The page parameter for the cms call"
|
|
459
|
+
},
|
|
460
|
+
"attribute": "page-name",
|
|
461
|
+
"reflect": true,
|
|
462
|
+
"defaultValue": "'casino'"
|
|
463
|
+
}
|
|
464
|
+
};
|
|
465
|
+
}
|
|
466
|
+
static get states() {
|
|
467
|
+
return {
|
|
468
|
+
"posts": {},
|
|
469
|
+
"stylingAppends": {},
|
|
470
|
+
"isLoading": {},
|
|
471
|
+
"isLoggedIn": {},
|
|
472
|
+
"dataImages": {},
|
|
473
|
+
"gameIds": {}
|
|
474
|
+
};
|
|
475
|
+
}
|
|
476
|
+
static get events() {
|
|
477
|
+
return [{
|
|
478
|
+
"method": "moreInfo",
|
|
479
|
+
"name": "moreInfo",
|
|
480
|
+
"bubbles": true,
|
|
481
|
+
"cancelable": true,
|
|
482
|
+
"composed": true,
|
|
483
|
+
"docs": {
|
|
484
|
+
"tags": [],
|
|
485
|
+
"text": ""
|
|
486
|
+
},
|
|
487
|
+
"complexType": {
|
|
488
|
+
"original": "any",
|
|
489
|
+
"resolved": "any",
|
|
490
|
+
"references": {}
|
|
491
|
+
}
|
|
492
|
+
}, {
|
|
493
|
+
"method": "playNow",
|
|
494
|
+
"name": "playNow",
|
|
495
|
+
"bubbles": true,
|
|
496
|
+
"cancelable": true,
|
|
497
|
+
"composed": true,
|
|
498
|
+
"docs": {
|
|
499
|
+
"tags": [],
|
|
500
|
+
"text": ""
|
|
501
|
+
},
|
|
502
|
+
"complexType": {
|
|
503
|
+
"original": "any",
|
|
504
|
+
"resolved": "any",
|
|
505
|
+
"references": {}
|
|
506
|
+
}
|
|
507
|
+
}, {
|
|
508
|
+
"method": "viewAll",
|
|
509
|
+
"name": "viewAll",
|
|
510
|
+
"bubbles": true,
|
|
511
|
+
"cancelable": true,
|
|
512
|
+
"composed": true,
|
|
513
|
+
"docs": {
|
|
514
|
+
"tags": [],
|
|
515
|
+
"text": ""
|
|
516
|
+
},
|
|
517
|
+
"complexType": {
|
|
518
|
+
"original": "any",
|
|
519
|
+
"resolved": "any",
|
|
520
|
+
"references": {}
|
|
521
|
+
}
|
|
522
|
+
}];
|
|
523
|
+
}
|
|
524
|
+
static get watchers() {
|
|
525
|
+
return [{
|
|
526
|
+
"propName": "translationUrl",
|
|
527
|
+
"methodName": "handleNewTranslations"
|
|
528
|
+
}, {
|
|
529
|
+
"propName": "session",
|
|
530
|
+
"methodName": "watchSession"
|
|
531
|
+
}];
|
|
532
|
+
}
|
|
533
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { GeneralPreviewSocialPosts } from './general-preview-social-posts';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './components';
|