@wayke-se/components-react 3.0.0-beta.6 → 3.0.0-beta.7

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/esbuild/common.js CHANGED
@@ -1,7 +1,7 @@
1
1
  const { sassPlugin } = require('esbuild-sass-plugin');
2
2
 
3
3
  module.exports = {
4
- entryPoints: ['src/index.ts', 'src/style.js'],
4
+ entryPoints: ['src/index.ts'],
5
5
  bundle: true,
6
6
  outdir: 'build',
7
7
  loader: {
package/esbuild/lib.js CHANGED
@@ -9,7 +9,6 @@ const shared = {
9
9
  bundle: true,
10
10
  minify: false,
11
11
  sourcemap: true,
12
- splitting: false,
13
12
  logLevel: 'info',
14
13
  external: Object.keys(dependencies).concat(Object.keys(peerDependencies || {})),
15
14
  loader: {
package/esbuild/start.js CHANGED
@@ -7,6 +7,7 @@ require('esbuild').serve(
7
7
  },
8
8
  {
9
9
  ...config,
10
+ format: 'esm',
10
11
  define: {
11
12
  'process.env.WAYKE_SEARCH_URL': '"https://test-ext-api.wayketech.se/vehicles"',
12
13
  'process.env.WAYKE_SEARCH_MLT_URL': '"https://test-ext-api.wayketech.se/vehicles-mlt-ext"',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wayke-se/components-react",
3
- "version": "3.0.0-beta.6",
3
+ "version": "3.0.0-beta.7",
4
4
  "description": "Wayke Components React",
5
5
  "module": "dist/index.mjs",
6
6
  "main": "dist/index.js",
@@ -1,7 +1,7 @@
1
1
  import React, { useState, useCallback, useRef, useMemo } from 'react';
2
2
  import Slider from 'react-slick';
3
3
  import scrollIntoView from 'scroll-into-view-if-needed';
4
- /*
4
+
5
5
  import {
6
6
  Wrapper,
7
7
  SliderWrapper,
@@ -24,7 +24,7 @@ import EmbededVideo from '../Video/EmbededVideo';
24
24
  import QuickNavEmbeded from '../Video/QuickNavEmbeded';
25
25
  import { notEmpty } from '../../utils/formats';
26
26
  import ThreeSixty from '../ThreeSixty/ThreeSixty';
27
- */
27
+
28
28
  import { Media } from '../../@types/codegen';
29
29
  import PubSub from '../../utils/pubsub/pubsub';
30
30
  import { DEFAULT_PLACEHOLDER_IMAGE } from '../../utils/constants';
@@ -118,9 +118,6 @@ const Gallery = ({ media, placeholderImage }: GalleryProps) => {
118
118
  [placeholderImage]
119
119
  );
120
120
 
121
- return <p>heheh</p>;
122
-
123
- /*
124
121
  return (
125
122
  <>
126
123
  <Wrapper>
@@ -219,7 +216,6 @@ const Gallery = ({ media, placeholderImage }: GalleryProps) => {
219
216
  )}
220
217
  </>
221
218
  );
222
- */
223
219
  };
224
220
 
225
221
  export default Gallery;
@@ -1,5 +1,5 @@
1
1
  import { format as formatFns } from 'date-fns';
2
- import { sv } from 'date-fns/locale';
2
+ import sv from 'date-fns/locale/sv';
3
3
 
4
4
  // Filter function to remove any null/undefined values.
5
5
  export const notEmpty = <TValue>(value: TValue | null | undefined): value is TValue =>
package/www/index.html CHANGED
@@ -27,6 +27,6 @@
27
27
  </head>
28
28
  <body>
29
29
  <div id="root"></div>
30
- <script src="index-dev.js"></script>
30
+ <script type="module" src="index-dev.js"></script>
31
31
  </body>
32
32
  </html>