@timum/booking 0.4.2 → 0.6.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/build/timum-booking.mjs +52637 -230
- package/build/timum-booking.umd.js +1199 -0
- package/examples/callbacks.htm +1 -1
- package/examples/fields.htm +1 -1
- package/examples/fullExample.htm +5 -1
- package/examples/group-bookings.htm +1 -1
- package/examples/list-view.htm +2 -2
- package/examples/local-language.htm +1 -1
- package/examples/local-preset.htm +1 -1
- package/examples/local-strings.htm +1 -1
- package/examples/multiple.htm +1 -1
- package/examples/selectable-product.htm +1 -1
- package/examples/usingChannelId.htm +1 -1
- package/examples/usingChannelKeyAndResourceRef.htm +1 -1
- package/examples/usingFullCalendar.htm +1 -1
- package/index.html +568 -0
- package/package.json +16 -24
- package/vite.config.js +29 -0
- package/build/asset-manifest.json +0 -10
- package/build/index.html +0 -1
- package/build/timum-booking.js +0 -3
- package/build/timum-booking.js.LICENSE.txt +0 -110
- package/build/timum-booking.js.map +0 -1
- package/build/timum-booking.mjs.map +0 -1
- package/build.js +0 -22
- package/public/index.html +0 -59
- package/rollup.config.js +0 -44
package/build.js
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
const rewire = require('rewire');
|
|
2
|
-
const defaults = rewire('react-scripts/scripts/build.js');
|
|
3
|
-
const config = defaults.__get__('config');
|
|
4
|
-
// const MiniCssExtractPlugin = require('mini-css-extract-plugin')
|
|
5
|
-
|
|
6
|
-
// monkey patching create-react-app std webpack config
|
|
7
|
-
config.output.filename = 'timum-booking.js';
|
|
8
|
-
config.output.library = {
|
|
9
|
-
name: 'timum',
|
|
10
|
-
type: 'umd',
|
|
11
|
-
};
|
|
12
|
-
|
|
13
|
-
// config.module.rules.push({
|
|
14
|
-
// test: /\.css$/,
|
|
15
|
-
// use: [
|
|
16
|
-
// { loader: MiniCssExtractPlugin.loader },
|
|
17
|
-
// { loader: 'css-loader', options: { importLoaders: 1 } }
|
|
18
|
-
// ]
|
|
19
|
-
// })
|
|
20
|
-
|
|
21
|
-
// config.plugins[0].userOptions.minify.minifyCSS = false;
|
|
22
|
-
// config.plugins.push(new MiniCssExtractPlugin())
|
package/public/index.html
DELETED
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
<!DOCTYPE html>
|
|
2
|
-
<html lang="en">
|
|
3
|
-
<head>
|
|
4
|
-
<meta charset="utf-8" />
|
|
5
|
-
<meta
|
|
6
|
-
name="viewport"
|
|
7
|
-
content="width=1080, initial-scale=1, user-scalable=0, maximum-scale=1, minimum-scale=0.6"
|
|
8
|
-
/>
|
|
9
|
-
<meta name="theme-color" content="#000000" />
|
|
10
|
-
<meta name="description" content="Web site created using create-react-app" />
|
|
11
|
-
<link rel="apple-touch-icon" sizes="57x57" href="%PUBLIC_URL%/apple-touch-icon-57x57.png" />
|
|
12
|
-
<link rel="apple-touch-icon" sizes="60x60" href="%PUBLIC_URL%/apple-touch-icon-60x60.png" />
|
|
13
|
-
<link rel="apple-touch-icon" sizes="72x72" href="%PUBLIC_URL%/apple-touch-icon-72x72.png" />
|
|
14
|
-
<link rel="apple-touch-icon" sizes="76x76" href="%PUBLIC_URL%/apple-touch-icon-76x76.png" />
|
|
15
|
-
<link rel="apple-touch-icon" sizes="114x114" href="%PUBLIC_URL%/apple-touch-icon-114x114.png" />
|
|
16
|
-
<link rel="apple-touch-icon" sizes="120x120" href="%PUBLIC_URL%/apple-touch-icon-120x120.png" />
|
|
17
|
-
<link rel="apple-touch-icon" sizes="144x144" href="%PUBLIC_URL%/apple-touch-icon-144x144.png" />
|
|
18
|
-
<link rel="apple-touch-icon" sizes="152x152" href="%PUBLIC_URL%/apple-touch-icon-152x152.png" />
|
|
19
|
-
<link rel="apple-touch-icon" sizes="180x180" href="%PUBLIC_URL%/apple-touch-icon-180x180.png" />
|
|
20
|
-
<link rel="icon" href="%PUBLIC_URL%/favicon.ico" />
|
|
21
|
-
<link rel="icon" type="image/png" href="%PUBLIC_URL%/favicon-32x32.png" sizes="32x32" />
|
|
22
|
-
<link rel="icon" type="image/png" href="%PUBLIC_URL%/favicon-194x194.png" sizes="194x194" />
|
|
23
|
-
<link rel="icon" type="image/png" href="%PUBLIC_URL%/favicon-96x96.png" sizes="96x96" />
|
|
24
|
-
<link rel="icon" type="image/png" href="%PUBLIC_URL%/android-chrome-192x192.png" sizes="192x192" />
|
|
25
|
-
<link rel="icon" type="image/png" href="%PUBLIC_URL%/favicon-16x16.png" sizes="16x16" />
|
|
26
|
-
|
|
27
|
-
<meta name="msapplication-TileColor" content="#2b5797" />
|
|
28
|
-
<meta name="msapplication-TileImage" content="%PUBLIC_URL%/mstile-144x144.png" />
|
|
29
|
-
<meta name="theme-color" content="#ffffff" />
|
|
30
|
-
<!--
|
|
31
|
-
manifest.json provides metadata used when your web app is installed on a
|
|
32
|
-
user's mobile device or desktop. See https://developers.google.com/web/fundamentals/web-app-manifest/
|
|
33
|
-
-->
|
|
34
|
-
<link rel="manifest" href="%PUBLIC_URL%/manifest.json" />
|
|
35
|
-
<!--
|
|
36
|
-
Notice the use of %PUBLIC_URL% in the tags above.
|
|
37
|
-
It will be replaced with the URL of the `public` folder during the build.
|
|
38
|
-
Only files inside the `public` folder can be referenced from the HTML.
|
|
39
|
-
|
|
40
|
-
Unlike "/favicon.ico" or "favicon.ico", "%PUBLIC_URL%/favicon.ico" will
|
|
41
|
-
work correctly both with client-side routing and a non-root public URL.
|
|
42
|
-
Learn how to configure a non-root public URL by running `npm run build`.
|
|
43
|
-
-->
|
|
44
|
-
<title>timum für Flowfact</title>
|
|
45
|
-
</head>
|
|
46
|
-
<body>
|
|
47
|
-
<noscript>You need to enable JavaScript to run this app.</noscript>
|
|
48
|
-
<div id="root"></div>
|
|
49
|
-
<!--
|
|
50
|
-
This HTML file is a template.
|
|
51
|
-
If you open it directly in the browser, you will see an empty page.
|
|
52
|
-
|
|
53
|
-
You can add webfonts, meta tags, or analytics to this file.
|
|
54
|
-
The build step will place the bundled scripts into the <body> tag.
|
|
55
|
-
|
|
56
|
-
To begin the development, run `npm start` or `yarn start`.
|
|
57
|
-
To create a production bundle, use `npm run build` or `yarn build`.
|
|
58
|
-
--></body>
|
|
59
|
-
</html>
|
package/rollup.config.js
DELETED
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
const resolve = require('@rollup/plugin-node-resolve');
|
|
2
|
-
|
|
3
|
-
//converts commonjs modules to ES6 so that they can be included in a rollup bundle
|
|
4
|
-
const commonjs = require('@rollup/plugin-commonjs');
|
|
5
|
-
|
|
6
|
-
// minifies the resulting code to further reduce package size
|
|
7
|
-
const terser = require('@rollup/plugin-terser');
|
|
8
|
-
|
|
9
|
-
// makes it so that deps marked as peer deps in package.json aren't included in the resulting bundle.
|
|
10
|
-
const peerDepsExternal = require('rollup-plugin-peer-deps-external');
|
|
11
|
-
|
|
12
|
-
// transpiles the code so older browser can interpret this
|
|
13
|
-
// if there is jsx in the repo this transforms it into plain javascript (at least if it's configured that way in your .babelrc)
|
|
14
|
-
const babel = require('@rollup/plugin-babel');
|
|
15
|
-
|
|
16
|
-
const packageJson = require('./package.json');
|
|
17
|
-
|
|
18
|
-
module.exports = {
|
|
19
|
-
input: 'src/index.js',
|
|
20
|
-
external: [/@babel\/runtime/],
|
|
21
|
-
output: [
|
|
22
|
-
{
|
|
23
|
-
file: packageJson.module,
|
|
24
|
-
format: 'es',
|
|
25
|
-
sourcemap: true,
|
|
26
|
-
},
|
|
27
|
-
],
|
|
28
|
-
plugins: [
|
|
29
|
-
peerDepsExternal(),
|
|
30
|
-
resolve(),
|
|
31
|
-
babel({
|
|
32
|
-
exclude: 'node_modules/**',
|
|
33
|
-
babelHelpers: 'runtime',
|
|
34
|
-
presets: ['@babel/preset-env', '@babel/preset-react'],
|
|
35
|
-
plugins: ['@babel/plugin-transform-runtime'],
|
|
36
|
-
}),
|
|
37
|
-
commonjs({
|
|
38
|
-
strictRequires: true,
|
|
39
|
-
}),
|
|
40
|
-
terser({
|
|
41
|
-
sourceMap: true, // doesn't work for some reason
|
|
42
|
-
}),
|
|
43
|
-
],
|
|
44
|
-
};
|