@everymatrix/casino-games-category-section-nd 1.37.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/index.html ADDED
@@ -0,0 +1,54 @@
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset='utf-8'>
5
+ <meta name='viewport' content='width=device-width,initial-scale=1'>
6
+
7
+ <title>
8
+ casino-games-category-section-nd
9
+ </title>
10
+ <link rel="stylesheet" href="public/reset.css">
11
+ <script src='dist/casino-games-category-section-nd.js'></script>
12
+ </head>
13
+
14
+ <body>
15
+ <style>
16
+ html,body { margin: 0; padding: 0; height: 100%; font-family: "Helvetica Neue", "Helvetica", sans-serif; }
17
+ .header { display: flex; justify-content: center; align-items: center; padding: 10px 20px; margin-bottom: 20px; background: #42a3e2; box-shadow: 3px 4px 5px 0px rgba(0,0,0, .2); }
18
+ .header__logo svg { height: 50px; width: 50px; margin-right: 5px; }
19
+ .header__name { color: #fff; }
20
+ .header__name span { margin-right: 10px; font-weight: bold; }
21
+ .webcomponent { padding: 10px 20px; }
22
+ </style>
23
+ <header class="header">
24
+ <div class="header__logo">
25
+ <svg xmlns="http://www.w3.org/2000/svg" width="161" height="132" viewBox="0 0 161 132"><defs><linearGradient x1="0%" y1="50%" y2="50%" id="a"><stop stop-color="#2A3B8F" offset="0%"/><stop stop-color="#29ABE2" offset="100%"/></linearGradient><linearGradient x1="100%" y1="50%" x2="0%" y2="50%" id="c"><stop stop-color="#B4D44E" offset="0%"/><stop stop-color="#E7F716" offset="100%"/></linearGradient></defs><g fill="none" fill-rule="evenodd"><path fill="#166DA5" d="M160.6 65.9l-17.4 29.3-24.4-29.7 24.4-28.9z"/><path fill="#8FDB69" d="M141.3 100.2l-26.5-31.7-15.9 26.6 24.7 36.1z"/><path fill="#166DA5" d="M141 31.4l-26.2 31.8-15.9-26.6L123.6.9z"/><path fill="url(#a)" opacity=".95" d="M61.1 31.4H141L123.4.7H78.7z M114.8 63.3H159l-15.9-26.8H98.8"/><path fill="url(#c)" opacity=".95" d="M141.3 100.3H61l17.6 30.5h45z M114.8 68.4H159l-15.9 26.8H98.8"/><path fill="#010101" d="M78.6 130.8L41 65.8 79.1.8H37.9L.4 65.8l37.5 65z"/></g></svg>
26
+ </div>
27
+ <h1 class="header__name">
28
+ <span>WEBCOMPONENT:</span> casino-games-category-section-nd
29
+ </h1>
30
+ </header>
31
+
32
+ <div class="webcomponent">
33
+ <casino-games-category-section-nd
34
+ endpoint="https://demo-api.stage.norway.everymatrix.com"
35
+ lang="en"
36
+ session="201d23b1-52f0-4a95-a97f-299712b613e3"
37
+ userid="3884262"
38
+ favorites="true"
39
+ fetchviaevent="false"
40
+ displayedgamecount="8"
41
+ displayedgamecount="8"
42
+ showallbuttongamescount="10"
43
+ actionevent="CategoryChange"
44
+ showallpage="casino"
45
+ datasource="RNG"
46
+ categoryid="RNG$jacpots"
47
+ gamepagemodalurl="true"
48
+ integratedgameframedesktop="true"
49
+ integratedgameframemobile="true">
50
+ </casino-games-category-section-nd>
51
+ </div>
52
+
53
+ </body>
54
+ </html>
package/index.js ADDED
@@ -0,0 +1 @@
1
+ import './dist/casino-games-category-section-nd.js';
package/package.json ADDED
@@ -0,0 +1,39 @@
1
+ {
2
+ "name": "@everymatrix/casino-games-category-section-nd",
3
+ "version": "1.37.4",
4
+ "main": "dist/casino-games-category-section-nd.js",
5
+ "svelte": "src/index.ts",
6
+ "scripts": {
7
+ "start": "sirv public",
8
+ "build": "cross-env NODE_ENV=production rollup -c",
9
+ "dev": "cross-env NODE_ENV=\"development\" rollup -c -w",
10
+ "validate": "svelte-check",
11
+ "test": "echo"
12
+ },
13
+ "devDependencies": {
14
+ "@rollup/plugin-babel": "^5.3.0",
15
+ "@rollup/plugin-commonjs": "^16.0.0",
16
+ "@rollup/plugin-node-resolve": "^10.0.0",
17
+ "@rollup/plugin-typescript": "^6.0.0",
18
+ "@tsconfig/svelte": "^1.0.0",
19
+ "rollup": "^2.3.4",
20
+ "rollup-plugin-dev-server": "^0.4.3",
21
+ "rollup-plugin-livereload": "^2.0.0",
22
+ "rollup-plugin-svelte": "^7.0.0",
23
+ "rollup-plugin-terser": "^7.0.0",
24
+ "rollup-plugin-uglify": "^6.0.4",
25
+ "svelte-check": "^1.0.0",
26
+ "svelte-preprocess": "^5.0.0",
27
+ "tslib": "^2.0.0",
28
+ "typescript": "^3.9.3"
29
+ },
30
+ "dependencies": {
31
+ "cross-env": "^7.0.3",
32
+ "sirv-cli": "^1.0.0",
33
+ "svelte": "^3.0.0"
34
+ },
35
+ "publishConfig": {
36
+ "access": "public"
37
+ },
38
+ "gitHead": "863252ebf7c846696d9b388f0d288993dbd5065c"
39
+ }
Binary file
@@ -0,0 +1,48 @@
1
+ /* http://meyerweb.com/eric/tools/css/reset/
2
+ v2.0 | 20110126
3
+ License: none (public domain)
4
+ */
5
+
6
+ html, body, div, span, applet, object, iframe,
7
+ h1, h2, h3, h4, h5, h6, p, blockquote, pre,
8
+ a, abbr, acronym, address, big, cite, code,
9
+ del, dfn, em, img, ins, kbd, q, s, samp,
10
+ small, strike, strong, sub, sup, tt, var,
11
+ b, u, i, center,
12
+ dl, dt, dd, ol, ul, li,
13
+ fieldset, form, label, legend,
14
+ table, caption, tbody, tfoot, thead, tr, th, td,
15
+ article, aside, canvas, details, embed,
16
+ figure, figcaption, footer, header, hgroup,
17
+ menu, nav, output, ruby, section, summary,
18
+ time, mark, audio, video {
19
+ margin: 0;
20
+ padding: 0;
21
+ border: 0;
22
+ font-size: 100%;
23
+ font: inherit;
24
+ vertical-align: baseline;
25
+ }
26
+ /* HTML5 display-role reset for older browsers */
27
+ article, aside, details, figcaption, figure,
28
+ footer, header, hgroup, menu, nav, section {
29
+ display: block;
30
+ }
31
+ body {
32
+ line-height: 1;
33
+ }
34
+ ol, ul {
35
+ list-style: none;
36
+ }
37
+ blockquote, q {
38
+ quotes: none;
39
+ }
40
+ blockquote:before, blockquote:after,
41
+ q:before, q:after {
42
+ content: '';
43
+ content: none;
44
+ }
45
+ table {
46
+ border-collapse: collapse;
47
+ border-spacing: 0;
48
+ }
@@ -0,0 +1,67 @@
1
+ import svelte from 'rollup-plugin-svelte';
2
+ import commonjs from '@rollup/plugin-commonjs';
3
+ import resolve from '@rollup/plugin-node-resolve';
4
+ import serve from 'rollup-plugin-dev-server';
5
+ import livereload from 'rollup-plugin-livereload';
6
+ import { terser } from 'rollup-plugin-terser';
7
+ import sveltePreprocess from 'svelte-preprocess';
8
+ import typescript from '@rollup/plugin-typescript';
9
+ import uglify from 'rollup-plugin-uglify';
10
+ import image from '@rollup/plugin-image';
11
+
12
+ const production = process.env.NODE_ENV == 'production';
13
+ const dev = process.env.NODE_ENV == 'development';
14
+
15
+ export default {
16
+ input: 'src/index.ts',
17
+ output: {
18
+ sourcemap: true,
19
+ format: 'umd',
20
+ name: 'app',
21
+ file: 'dist/casino-games-category-section-nd.js',
22
+ },
23
+ plugins: [
24
+ svelte({
25
+ preprocess: sveltePreprocess(),
26
+ compilerOptions: {
27
+ // @TODO check generate and hydratable
28
+ // generate: 'ssr',
29
+ // hydratable: true,
30
+ // enable run-time checks when not in production
31
+ customElement: true,
32
+ dev: !production
33
+ }
34
+ }),
35
+ image(),
36
+ commonjs(),
37
+ resolve({
38
+ browser: true,
39
+ dedupe: ['svelte']
40
+ }),
41
+ dev && serve({
42
+ open: true,
43
+ verbose: true,
44
+ allowCrossOrigin: true,
45
+ historyApiFallback: false,
46
+ host: 'localhost',
47
+ port: 5050,
48
+ }),
49
+ dev && livereload({ watch: ['', 'dist'] }),
50
+ typescript({
51
+ sourceMap: !production,
52
+ inlineSources: !production,
53
+ }),
54
+ // If we're building for production (npm run build
55
+ // instead of npm run dev), minify
56
+ production &&
57
+ terser({
58
+ output: {
59
+ comments: "all"
60
+ },
61
+ }),
62
+ production && uglify.uglify()
63
+ ],
64
+ watch: {
65
+ clearScreen: false
66
+ }
67
+ };
@@ -0,0 +1,125 @@
1
+ // @TODO extend widgetConfig
2
+ export interface CustomWindow extends Window {
3
+ widgetConfig: any
4
+ }
5
+
6
+ export interface CasinoData {
7
+ count: number,
8
+ items: CasinoItems[],
9
+ pages: CasinoPages,
10
+ total: number
11
+ }
12
+
13
+ export interface CategoryData {
14
+ games: Array<CasinoGames>,
15
+ id: String,
16
+ name: String
17
+ }
18
+
19
+ export interface CasinoItems {
20
+ name: string,
21
+ games: CasinoGames,
22
+ moreBtn?: boolean
23
+ }
24
+
25
+ interface CasinoGames {
26
+ count: number,
27
+ items: [{href: string}],
28
+ pages: CasinoPages,
29
+ total: number
30
+ }
31
+
32
+ interface CasinoPages {
33
+ first: string,
34
+ last: string,
35
+ next: null,
36
+ previous: null
37
+ }
38
+
39
+ export interface CasinoGameData {
40
+ backgroundImageUrl: string,
41
+ categories: CasinoBaseData,
42
+ defaultThumbnail: string,
43
+ groups: CasinoGroups,
44
+ hasAnonymousFunMode: boolean,
45
+ hasFunMode: boolean,
46
+ href: string,
47
+ id: string,
48
+ isNew: boolean,
49
+ launchURL: string,
50
+ name: string,
51
+ platform: string[],
52
+ popularity: number,
53
+ thumbnail: string,
54
+ vendor: {href: string, name:string},
55
+ cellSize?: string
56
+ }
57
+
58
+ interface CasinoBaseData {
59
+ count: number,
60
+ items: [{href: string}],
61
+ pagination: CasinoPages,
62
+ total: number
63
+ }
64
+
65
+ interface CasinoGroups {
66
+ count: number,
67
+ items: string[]
68
+ }
69
+
70
+ export interface OperatorDetail {
71
+ optionalLanguages: string[],
72
+ dataSource: string,
73
+ endpointURL: string,
74
+ language: string,
75
+ scrollOffset: number[],
76
+ loadMore: {
77
+ fontFamily: string,
78
+ fontSize: string,
79
+ fontWeight: string,
80
+ textColor: string,
81
+ decoration: string
82
+ },
83
+ thumbnailStyles: {
84
+ showVendorName: boolean,
85
+ gameNameVisible: boolean,
86
+ playButton: {
87
+ fontFamily: string,
88
+ fontSize: string,
89
+ fontWeight: string,
90
+ textColor: string,
91
+ backgroundColor: string,
92
+ },
93
+ gameTags: {
94
+ newGame: boolean,
95
+ popularGame: boolean,
96
+ backgroundColor: string,
97
+ textColor: string,
98
+ fontFamily: string,
99
+ fontSize: string,
100
+ fontWeight: string
101
+ },
102
+ gameNameStyles: {
103
+ fontFamily: string,
104
+ fontSize: string,
105
+ fontWeight: string,
106
+ textColor: string
107
+ },
108
+ vendorNameStyles: {
109
+ fontFamily: string,
110
+ fontSize: string,
111
+ fontWeight: string,
112
+ textColor: string
113
+ }
114
+ },
115
+ categoryStyles: {
116
+ numberOfVisibleGames: number,
117
+ categoryBackground: string,
118
+ categoryNameStyles: {
119
+ fontFamily: string,
120
+ fontSize: string,
121
+ fontWeight: string,
122
+ textColor: string
123
+ }
124
+ }
125
+ }