@seatsio/seatsio-vue 3.0.0 → 3.1.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 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
  ```
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.0.0",
3
+ "version": "3.1.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.2",
16
+ "@babel/core": "^7.23.5",
17
17
  "@babel/preset-env": "^7.22.20",
18
- "@rollup/plugin-alias": "^5.0.1",
19
- "@rollup/plugin-babel": "^6.0.3",
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",
@@ -32,7 +32,7 @@
32
32
  "rollup-plugin-typescript2": "^0.36.0",
33
33
  "rollup-plugin-vue": "^6.0.0",
34
34
  "typescript": "~5.0.0",
35
- "vue": "3.3.4"
35
+ "vue": "3.3.9"
36
36
  },
37
37
  "peerDependencies": {
38
38
  "vue": "^3.2.47"