@everymatrix/casino-tournaments-page-controller 1.44.0 → 1.45.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.
Files changed (44) hide show
  1. package/components/CasinoTournamentsDetails-CTbLTCNq.js +861 -0
  2. package/components/CasinoTournamentsDetails-CdFtnk8v.cjs +1 -0
  3. package/components/CasinoTournamentsPageController-BX5_-OUG.cjs +25 -0
  4. package/components/CasinoTournamentsPageController-By8Qf6Sl.js +8516 -0
  5. package/components/CasinoTournamentsRank-BPHA2JPF.js +271 -0
  6. package/components/CasinoTournamentsRank-Ccr8Z0om.cjs +1 -0
  7. package/components/CasinoTournamentsTab-CmF1j5XE.js +281 -0
  8. package/components/CasinoTournamentsTab-DXUCFgtb.cjs +1 -0
  9. package/components/CasinoTournamentsTable-8HJDxcSe.cjs +1 -0
  10. package/components/CasinoTournamentsTable-DL6KVTDX.js +1671 -0
  11. package/components/CasinoTournamentsThumbnail--BxjqzmL.cjs +4 -0
  12. package/components/CasinoTournamentsThumbnail-NcOyz0gt.js +866 -0
  13. package/components/CasinoTournamentsThumbnailController-B3YbDJuf.cjs +1 -0
  14. package/components/CasinoTournamentsThumbnailController-pROl7BE2.js +1406 -0
  15. package/components/CasinoTournamentsThumbnailDuration-Icm0PzJz.js +496 -0
  16. package/components/CasinoTournamentsThumbnailDuration-_PXBJwAk.cjs +1 -0
  17. package/components/CasinoTournamentsThumbnailGamesSlider-C4oebmHa.js +439 -0
  18. package/components/CasinoTournamentsThumbnailGamesSlider-DOXcgDnK.cjs +1 -0
  19. package/components/CasinoTournamentsThumbnailPrizes-Dgkbf6BO.cjs +1 -0
  20. package/components/CasinoTournamentsThumbnailPrizes-Oy21zp8B.js +311 -0
  21. package/components/CasinoTournamentsThumbnailRule-BMRBfYRJ.cjs +1 -0
  22. package/components/CasinoTournamentsThumbnailRule-BqQsSnWS.js +1110 -0
  23. package/es2015/casino-tournaments-page-controller.cjs +1 -0
  24. package/es2015/casino-tournaments-page-controller.js +16 -0
  25. package/package.json +22 -32
  26. package/.eslintrc +0 -84
  27. package/CHANGELOG.md +0 -7
  28. package/README.md +0 -0
  29. package/dist/casino-tournaments-page-controller.js +0 -2
  30. package/dist/casino-tournaments-page-controller.js.map +0 -1
  31. package/documentation.md +0 -119
  32. package/index.html +0 -35
  33. package/index.js +0 -1
  34. package/public/favicon.png +0 -0
  35. package/public/reset.css +0 -48
  36. package/rollup.config.js +0 -67
  37. package/src/CasinoTournamentsPageController.svelte +0 -871
  38. package/src/i18n.js +0 -28
  39. package/src/images/game-casino.svg +0 -684
  40. package/src/images/game-sports.svg +0 -485
  41. package/src/index.ts +0 -4
  42. package/src/translations.js +0 -182
  43. package/stories/CasinoTournamentsPageController.stories.js +0 -13
  44. package/tsconfig.json +0 -6
package/documentation.md DELETED
@@ -1,119 +0,0 @@
1
- # Overview
2
-
3
- ## Pre-requisites needed
4
-
5
- For the Widget to be able to work, the parent website needs to integrated with the EM platform.
6
-
7
- Supported integrations:
8
- - NorWAy Integration
9
- - UBS Integration
10
-
11
- For further information on how to proceed with your current integration please contact your assigned Integration Manager.
12
-
13
- ## Setup the widget on your website.
14
- To install the latest version released for the widget, which will be automatically updated once a new release is made, add the following script tag, in the root page of your application.
15
-
16
- The script can be added either in the <head> or in the <body>. We recommend adding it in the footer of the page for better performance of the entire website.
17
- ```javascript
18
- <script src="https://unpkg.com/@everymatrix/casino-tournaments-page-controller/dist/casino-tournaments-page-controller.js"></script>
19
- ```
20
-
21
- For a specific version, the script tag looks like this:
22
- ```javascript
23
- <script src="https://unpkg.com/@everymatrix/casino-tournaments-page-controller@1.0.0/dist/casino-tournaments-page-controller.js"></script>
24
- ```
25
-
26
- ## Usage
27
-
28
- If the user is `not logged in`, inside your page you need to add the webcomponent tag for the `Casino Tournaments Widget`.
29
-
30
- ```html
31
- <casino-tournaments-page-controller
32
- endpoint="https://demo-api.stage.norway.everymatrix.com"
33
- cmsendpoint="https://wp-one-widgets.everymatrix.com/wp-json/wpone-rest/v1/tournaments"
34
- lang="en"
35
- showleaderboard="true"
36
- tourid=""
37
- />
38
- ```
39
-
40
- Once the user is `logged in`, there are 2 options to render the widget:
41
- 1. The tag can be updated as the following:
42
- ```html
43
- <casino-tournaments-page-controller
44
- session="{SESSION_ID}"
45
- userid="{USER_ID}"
46
- endpoint="https://demo-api.stage.norway.everymatrix.com"
47
- cmsendpoint="https://wp-one-widgets.everymatrix.com/wp-json/wpone-rest/v1/tournaments"
48
- lang="en"
49
- showleaderboard="true"
50
- tourid=""
51
- />
52
- ```
53
-
54
- 2. The widget can be notified via `window.postMessage()` method (more details here - https://developer.mozilla.org/en-US/docs/Web/API/Window/postMessage):
55
- ```javascript
56
- window.postMessage({
57
- type: 'UserSessionID',
58
- session: {SESSION_ID},
59
- userid: {USER_ID}
60
- });
61
- ```
62
-
63
- Full example (`not logged in user`):
64
-
65
-
66
- ```html
67
- <!doctype html>
68
- <html lang="en">
69
- <head>
70
- <meta charset="UTF-8">
71
- <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
72
- <meta http-equiv="X-UA-Compatible" content="ie=edge">
73
- <title>EM Widgets | Casino Tournaments Widget Demo</title>
74
-
75
- <script src="https://unpkg.com/@everymatrix/casino-tournaments-page-controller/dist/casino-tournaments-page-controller.js"></script>
76
-
77
- </head>
78
- <body>
79
- <div class="container">
80
- <casino-tournaments-page-controller
81
- endpoint="https://demo-api.stage.norway.everymatrix.com"
82
- cmsendpoint="https://wp-one-widgets.everymatrix.com/wp-json/wpone-rest/v1/tournaments"
83
- lang="en"
84
- showleaderboard="true"
85
- tourid=""
86
- />
87
- </div>
88
- </body>
89
- </html>
90
- ```
91
-
92
- > **_PLEASE NOTE:_** The given example is a fully working HTML page and demo credentials are used for ```endpoint``` and ```cmsendpoint``` fields. For development and productions purposes you will need to use your own provided credentials.
93
-
94
- ## API Reference
95
- |Parameter|Mandatory|Comment|
96
- |---------|---------|-------|
97
- |endpoint |yes|NorWAy endpoint|
98
- |cmsendpoint|yes||
99
- |lang|yes|Language|
100
- |showleaderboard|no|Default: true|
101
- |session|no||
102
- |userid|no||
103
- |navigationbackbutton|no|`Default`: the back button will do a `window.history.back()`, if the client wishes to handle the navigation differently, he ca pass the `Event` value which will enable the back button to emit the `RedirectBack` event which can then be used to handle the navigation|
104
-
105
- ## Widget Events
106
-
107
- The widget has the ability to send Javascript events to the parent website to extend the functionality.
108
-
109
- The Widget currently supports the following events:
110
-
111
- |EventName|Comments|
112
- |---------|--------|
113
- |||
114
-
115
- ## Releases
116
-
117
- |Release Version|Value |Scope|Status|Completed Date|
118
- |---------------|----- |-----|------|--------------|
119
- |`0.0.36` |Initial release| - |*DONE*|`20 Jul 2021` |
package/index.html DELETED
@@ -1,35 +0,0 @@
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-tournaments-page-controller
9
- </title>
10
- <link rel="stylesheet" href="public/reset.css">
11
- <script src='dist/casino-tournaments-page-controller.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-tournaments-page-controller
29
- </h1>
30
- </header>
31
-
32
- <casino-tournaments-page-controller session="d91e9d22-68e4-474c-8c5a-d1915ce9ffd8" namemask="opap" userid="3976988" showleaderboard="true" endpoint="https://demo-api.stage.norway.everymatrix.com" cmsendpoint="https://widgets.everymatrix.com/apijson/en/tournaments/" lang="en" loginevent="Login" registerevent="Register" tourid="919351011811343804"></casino-tournaments-page-controller>
33
-
34
- </body>
35
- </html>
package/index.js DELETED
@@ -1 +0,0 @@
1
- import './dist/casino-tournaments-page-controller.js';
Binary file
package/public/reset.css DELETED
@@ -1,48 +0,0 @@
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
- }
package/rollup.config.js DELETED
@@ -1,67 +0,0 @@
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-tournaments-page-controller.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
- };