@seatsio/seatsio-vue 3.0.0 → 3.2.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/README.md +8 -5
- package/dist/lib-components/seatsioDesigner.vue.d.ts +1 -1
- package/dist/lib-components/seatsioEmbeddable.vue.d.ts +1 -1
- package/dist/lib-components/seatsioEventManager.vue.d.ts +1 -1
- package/dist/lib-components/seatsioSeatingChart.vue.d.ts +1 -1
- package/dist/types.d.ts +0 -1
- package/package.json +7 -7
package/README.md
CHANGED
|
@@ -44,17 +44,20 @@ The chart uses 100 % of the width and height of the DOM element (e.g. a div) in
|
|
|
44
44
|
|
|
45
45
|
```vue
|
|
46
46
|
import { SeatsioSeatingChart } from '@seatsio/seatsio-vue';
|
|
47
|
+
import { Pricing } from "@seatsio/seatsio-types";
|
|
48
|
+
|
|
49
|
+
const pricing: Pricing = [
|
|
50
|
+
{ category: 1, price: 30 },
|
|
51
|
+
{ category: 2, price: 40 },
|
|
52
|
+
{ category: 3, price: 50 }
|
|
53
|
+
]
|
|
47
54
|
|
|
48
55
|
<div style="height: 500px">
|
|
49
56
|
<SeatsioSeatingChart
|
|
50
57
|
workspaceKey="<yourPublicWorkspaceKey>"
|
|
51
58
|
event="<yourEventKey>"
|
|
52
59
|
region="eu"
|
|
53
|
-
:pricing="
|
|
54
|
-
{'category': 1, 'price': 30},
|
|
55
|
-
{'category': 2, 'price': 40},
|
|
56
|
-
{'category': 3, 'price': 50}
|
|
57
|
-
]"
|
|
60
|
+
:pricing="pricing"
|
|
58
61
|
/>
|
|
59
62
|
</div>
|
|
60
63
|
```
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { SeatsioChartDesignerProps } from '../types';
|
|
2
|
-
declare const _default: import("vue").DefineComponent<SeatsioChartDesignerProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").
|
|
2
|
+
declare const _default: import("vue").DefineComponent<SeatsioChartDesignerProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<SeatsioChartDesignerProps>, {}, {}>;
|
|
3
3
|
export default _default;
|
|
@@ -20,7 +20,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
20
20
|
loadSeatsio: () => Promise<unknown>;
|
|
21
21
|
destroyChart: () => void;
|
|
22
22
|
getRegion: () => Region;
|
|
23
|
-
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").
|
|
23
|
+
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
24
24
|
chartJsUrl: {
|
|
25
25
|
type: StringConstructor;
|
|
26
26
|
default: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { SeatsioEventManagerProps } from '../types';
|
|
2
|
-
declare const _default: import("vue").DefineComponent<SeatsioEventManagerProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").
|
|
2
|
+
declare const _default: import("vue").DefineComponent<SeatsioEventManagerProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<SeatsioEventManagerProps>, {
|
|
3
3
|
themeColors?: any;
|
|
4
4
|
}, {}>;
|
|
5
5
|
export default _default;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { SeatsioSeatingChartProps } from '../types';
|
|
2
|
-
declare const _default: import("vue").DefineComponent<SeatsioSeatingChartProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").
|
|
2
|
+
declare const _default: import("vue").DefineComponent<SeatsioSeatingChartProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<SeatsioSeatingChartProps>, {
|
|
3
3
|
themeColors?: any;
|
|
4
4
|
}, {}>;
|
|
5
5
|
export default _default;
|
package/dist/types.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import type { ChartDesigner, ChartDesignerConfigOptions, ChartRendererConfigOptions, EventManager, EventManagerConfigOptions, Region, SeatingChart } from '@seatsio/seatsio-types';
|
|
2
|
-
export type * from '@seatsio/seatsio-types';
|
|
3
2
|
export type SeatsioConfig = ChartRendererConfigOptions | EventManagerConfigOptions | ChartDesignerConfigOptions;
|
|
4
3
|
export interface SeatsioEmbeddableProps {
|
|
5
4
|
chartJsUrl?: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@seatsio/seatsio-vue",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.2.0",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"serve": "vue-cli-service serve dev/serve.ts",
|
|
6
6
|
"build": "cross-env NODE_ENV=production && rollup --config build/rollup.config.js --format es",
|
|
@@ -13,10 +13,10 @@
|
|
|
13
13
|
"@seatsio/seatsio-types": "^2.0.0"
|
|
14
14
|
},
|
|
15
15
|
"devDependencies": {
|
|
16
|
-
"@babel/core": "^7.23.
|
|
17
|
-
"@babel/preset-env": "^7.
|
|
18
|
-
"@rollup/plugin-alias": "^5.0
|
|
19
|
-
"@rollup/plugin-babel": "^6.0.
|
|
16
|
+
"@babel/core": "^7.23.7",
|
|
17
|
+
"@babel/preset-env": "^7.23.7",
|
|
18
|
+
"@rollup/plugin-alias": "^5.1.0",
|
|
19
|
+
"@rollup/plugin-babel": "^6.0.4",
|
|
20
20
|
"@rollup/plugin-commonjs": "^25.0.7",
|
|
21
21
|
"@rollup/plugin-node-resolve": "^15.2.3",
|
|
22
22
|
"@rollup/plugin-replace": "^5.0.5",
|
|
@@ -31,8 +31,8 @@
|
|
|
31
31
|
"rollup-plugin-terser": "^7.0.2",
|
|
32
32
|
"rollup-plugin-typescript2": "^0.36.0",
|
|
33
33
|
"rollup-plugin-vue": "^6.0.0",
|
|
34
|
-
"typescript": "~5.
|
|
35
|
-
"vue": "3.3
|
|
34
|
+
"typescript": "~5.3.3",
|
|
35
|
+
"vue": "3.4.3"
|
|
36
36
|
},
|
|
37
37
|
"peerDependencies": {
|
|
38
38
|
"vue": "^3.2.47"
|