@everymatrix/cashier-session-expiration-modal 1.41.0 → 1.42.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@everymatrix/cashier-session-expiration-modal",
3
- "version": "1.41.0",
3
+ "version": "1.42.0",
4
4
  "main": "index.js",
5
5
  "svelte": "src/index.ts",
6
6
  "scripts": {
@@ -35,5 +35,5 @@
35
35
  "publishConfig": {
36
36
  "access": "public"
37
37
  },
38
- "gitHead": "a1aaa3db1a2ef037a353887d3c171ebe10f9403a"
38
+ "gitHead": "59f256966699eecf6d6eced70feb8c6829808414"
39
39
  }
package/rollup.config.js CHANGED
@@ -5,6 +5,7 @@ import serve from 'rollup-plugin-dev-server';
5
5
  import livereload from 'rollup-plugin-livereload';
6
6
  import { terser } from 'rollup-plugin-terser';
7
7
  import sveltePreprocess from 'svelte-preprocess';
8
+ import image from '@rollup/plugin-image';
8
9
  import typescript from '@rollup/plugin-typescript';
9
10
  const production = process.env.NODE_ENV === 'production';
10
11
  const dev = process.env.NODE_ENV === 'development';
@@ -40,6 +41,7 @@ export default {
40
41
  port: 5050,
41
42
  }),
42
43
  dev && livereload({ watch: ['', 'dist'] }),
44
+ image(),
43
45
  typescript({
44
46
  sourceMap: !production,
45
47
  inlineSources: !production,
@@ -6,7 +6,8 @@
6
6
  import { TRANSLATIONS } from './translations';
7
7
  import { onMount, onDestroy } from 'svelte';
8
8
  import DOMPurify from 'dompurify';
9
-
9
+ import sessionImage from './assets/set-timeout-icon.png';
10
+
10
11
  export let clientstyling: string = '';
11
12
  export let clientstylingurl: string = '';
12
13
  export let width: number;
@@ -171,6 +172,8 @@
171
172
  <slot name="icon" class="CashierSessionExpirationIcon">
172
173
  {#if assetsurl}
173
174
  <img src="{`${assetsurl}/set-timeout-icon.png`}" width="300px" alt="error">
175
+ {:else}
176
+ <img src="{sessionImage}" width="300px" alt="error">
174
177
  {/if}
175
178
  </slot>
176
179
  <slot name="title" class="CashierSessionExpirationTitle">
Binary file