@seatsio/seatsio-react 11.0.0 → 12.0.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
@@ -15,48 +15,18 @@ npm install --save @seatsio/seatsio-react
15
15
  ### Minimal
16
16
 
17
17
  ```jsx
18
- import { SeatsioSeatingChart } from '@seatsio/seatsio-react'
19
-
20
- <SeatsioSeatingChart
21
- workspaceKey="<yourPublicWorkspaceKey>"
22
- event="<yourEventKey>"
23
- region="eu"
24
- />
25
- ```
26
-
27
- ### Setting the height of the chart
28
-
29
- By default, `<SeatsioSeatingChart>` is as wide as its parent div, and as high as the drawing that's rendered.
30
-
31
- To set an explicit height, use CSS on the div that gets created by `<SeatsioSeatingChart>`:
32
-
33
- ```css
34
- #chart {
35
- height: 800px; // or height: 100%, or height: 100vh, depending on your requirements
36
- }
18
+ import { SeatsioSeatingChart } from '@seatsio/seatsio-react';
19
+
20
+ <div style={{ 'height': '500px' }}>
21
+ <SeatsioSeatingChart
22
+ workspaceKey="<yourPublicWorkspaceKey>"
23
+ event="<yourEventKey>"
24
+ region="eu"
25
+ />
26
+ </div>
37
27
  ```
38
28
 
39
- ### Custom chart div ID
40
-
41
- ```jsx
42
- <SeatsioSeatingChart
43
- workspaceKey="<yourPublicWorkspaceKey>"
44
- event="<yourEventKey>"
45
- id="<theChartDivID>"
46
- region="eu"
47
- />
48
- ```
49
-
50
- ### Custom chart div class
51
-
52
- ```jsx
53
- <SeatsioSeatingChart
54
- workspaceKey="<yourPublicWorkspaceKey>"
55
- event="<yourEventKey>"
56
- className="<theChartDivClassName>"
57
- region="eu"
58
- />
59
- ```
29
+ The chart uses 100% of the width and height of the DOM element (e.g. a div) in which you render it. Play with the size of that element to change the chart size.
60
30
 
61
31
  ### onRenderStarted()
62
32
 
@@ -103,7 +73,7 @@ console.log(chart.selectedObjects);
103
73
 
104
74
  ### Supported properties
105
75
 
106
- Other parameters are supported as well. For a full list, check https://docs.seats.io/docs/renderer-configure-your-floor-plan
76
+ Other parameters are supported as well. For a full list, check https://docs.seats.io/docs/renderer/embed-a-floor-plan
107
77
 
108
78
  ```jsx
109
79
  <SeatsioSeatingChart
@@ -124,14 +94,16 @@ Whenever one of the properties passed on to `<SeatsioSeatingChart />` changes, t
124
94
  ## Event manager
125
95
 
126
96
  ```jsx
127
- import { SeatsioEventManager } from '@seatsio/seatsio-react'
128
-
129
- <SeatsioEventManager
130
- secretKey="<yourWorkspaceSecretKey>"
131
- event="<yourEventKey>"
132
- mode="<manageObjectStatuses or another mode>"
133
- region="eu"
134
- />
97
+ import { SeatsioEventManager } from '@seatsio/seatsio-react';
98
+
99
+ <div style={{ 'height': '500px' }}>
100
+ <SeatsioEventManager
101
+ secretKey="<yourWorkspaceSecretKey>"
102
+ event="<yourEventKey>"
103
+ mode="<manageObjectStatuses or another mode>"
104
+ region="eu"
105
+ />
106
+ </div>
135
107
  ```
136
108
 
137
109
  Other parameters are supported as well. For a full list, check https://docs.seats.io/docs/event-manager/configuring
@@ -139,14 +111,16 @@ Other parameters are supported as well. For a full list, check https://docs.seat
139
111
  ## Chart manager
140
112
 
141
113
  ```jsx
142
- import { SeatsioChartManager } from '@seatsio/seatsio-react'
143
-
144
- <SeatsioChartManager
145
- secretKey="<yourWorkspaceSecretKey>"
146
- chart="<yourChartKey>"
147
- mode="<manageRulesets or another mode>"
148
- region="eu"
149
- />
114
+ import { SeatsioChartManager } from '@seatsio/seatsio-react';
115
+
116
+ <div style={{ 'height': '500px' }}>
117
+ <SeatsioChartManager
118
+ secretKey="<yourWorkspaceSecretKey>"
119
+ chart="<yourChartKey>"
120
+ mode="<manageRulesets or another mode>"
121
+ region="eu"
122
+ />
123
+ </div>
150
124
  ```
151
125
 
152
126
  ## Seating Chart Designer
@@ -154,12 +128,14 @@ import { SeatsioChartManager } from '@seatsio/seatsio-react'
154
128
  To embed the seating chart designer for the purpose of creating a new chart, do this:
155
129
 
156
130
  ```jsx
157
- import { SeatsioDesigner } from '@seatsio/seatsio-react'
158
-
159
- <SeatsioDesigner
160
- secretKey="<yourWorkspaceSecretKey>"
161
- region="eu"
162
- />
131
+ import { SeatsioDesigner } from '@seatsio/seatsio-react';
132
+
133
+ <div style={{ 'height': '500px' }}>
134
+ <SeatsioDesigner
135
+ secretKey="<yourWorkspaceSecretKey>"
136
+ region="eu"
137
+ />
138
+ </div>
163
139
  ```
164
140
 
165
141
  To be able to edit a chart from an embedded designer, you need to specify the chart to load:
@@ -172,14 +148,4 @@ To be able to edit a chart from an embedded designer, you need to specify the ch
172
148
  />
173
149
  ```
174
150
 
175
- Other parameters are supported as well. For a full list, check https://docs.seats.io/docs/embedded-designer-configuration
176
-
177
- ### Setting the height of the designer
178
-
179
- By default, the chart designer gets rendered with a minimal height. To change that, use CSS on the div that gets created by `<SeatsioDesigner>`:
180
-
181
- ```css
182
- #chart {
183
- height: 800px; // or height: 100%, or height: 100vh, depending on your requirements
184
- }
185
- ```
151
+ Other parameters are supported as well. For a full list, check https://docs.seats.io/docs/embedded-designer/introduction
package/build/index.js CHANGED
@@ -1 +1 @@
1
- module.exports=function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=1)}([function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,o=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=r(4),u=(n=i)&&n.__esModule?n:{default:n},a=r(5);function c(e){return function(){var t=e.apply(this,arguments);return new Promise((function(e,r){return function n(o,i){try{var u=t[o](i),a=u.value}catch(e){return void r(e)}if(!u.done)return Promise.resolve(a).then((function(e){n("next",e)}),(function(e){n("throw",e)}));e(a)}("next")}))}}function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var l=function(e){function t(){return f(this,t),s(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}var r,n,i;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"componentDidMount",value:(i=c((function*(){this.createAndRenderChart()})),function(){return i.apply(this,arguments)})},{key:"componentDidUpdate",value:(n=c((function*(e){(0,a.didPropsChange)(this.props,e)&&this.chart&&(this.destroyChart(),this.createAndRenderChart())})),function(e){return n.apply(this,arguments)})},{key:"createAndRenderChart",value:(r=c((function*(){var e=yield this.getSeatsio(),t=this.extractConfigFromProps();t.divId=this.props.id,this.chart=this.createChart(e,t).render(),this.props.onRenderStarted&&this.props.onRenderStarted(this.chart)})),function(){return r.apply(this,arguments)})},{key:"extractConfigFromProps",value:function(){var e=this.props;e.id,e.className,e.onRenderStarted,e.chartJsUrl,e.region;return function(e,t){var r={};for(var n in e)t.indexOf(n)>=0||Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n]);return r}(e,["id","className","onRenderStarted","chartJsUrl","region"])}},{key:"componentWillUnmount",value:function(){this.destroyChart()}},{key:"destroyChart",value:function(){this.chart&&"DESTROYED"!==this.chart.state&&this.chart.destroy()}},{key:"getSeatsio",value:function(){return"undefined"==typeof seatsio?this.loadSeatsio():seatsio.region!==this.props.region?(seatsio=void 0,this.loadSeatsio()):Promise.resolve(seatsio)}},{key:"loadSeatsio",value:function(){var e=this;return new Promise((function(t,r){var n=document.createElement("script");n.onload=function(){seatsio.region=e.props.region,t(seatsio)},n.onerror=function(){return r("Could not load "+n.src)},n.src=e.props.chartJsUrl.replace("{region}",e.props.region),document.head.appendChild(n)}))}},{key:"render",value:function(){return u.default.createElement("div",{id:this.props.id,className:this.props.className})}}]),t}(u.default.Component);t.default=l,l.defaultProps={id:"chart",chartJsUrl:"https://cdn-{region}.seatsio.net/chart.js"}},function(e,t,r){e.exports=r(2)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(3);Object.defineProperty(t,"SeatsioSeatingChart",{enumerable:!0,get:function(){return a(n).default}});var o=r(6);Object.defineProperty(t,"SeatsioEventManager",{enumerable:!0,get:function(){return a(o).default}});var i=r(7);Object.defineProperty(t,"SeatsioChartManager",{enumerable:!0,get:function(){return a(i).default}});var u=r(8);function a(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"SeatsioDesigner",{enumerable:!0,get:function(){return a(u).default}})},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,o=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=r(0);function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var c=function(e){function t(){return u(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"createChart",value:function(e,t){return new e.SeatingChart(t)}}]),t}(((n=i)&&n.__esModule?n:{default:n}).default);t.default=c},function(e,t){e.exports=require("react")},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.didPropsChange=function e(t,r){return Object.keys(t).length!==Object.keys(r).length||Object.keys(r).some((function(o){var i=t[o],u=r[o];if(i&&u){if("function"==typeof i&&"function"==typeof u)return i.toString()!==u.toString();if("object"===(void 0===i?"undefined":n(i))&&"object"===(void 0===u?"undefined":n(u)))return e(i,u)}return i!==u}))}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,o=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=r(0);function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var c=function(e){function t(){return u(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"createChart",value:function(e,t){return new e.EventManager(t)}}]),t}(((n=i)&&n.__esModule?n:{default:n}).default);t.default=c},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,o=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=r(0);function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var c=function(e){function t(){return u(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"createChart",value:function(e,t){return new e.ChartManager(t)}}]),t}(((n=i)&&n.__esModule?n:{default:n}).default);t.default=c},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,o=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=r(0);function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var c=function(e){function t(){return u(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"createChart",value:function(e,t){return new e.SeatingChartDesigner(t)}}]),t}(((n=i)&&n.__esModule?n:{default:n}).default);t.default=c}]);
1
+ module.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=1)}([function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(4),u=(r=i)&&r.__esModule?r:{default:r},a=n(5);function c(e){return function(){var t=e.apply(this,arguments);return new Promise((function(e,n){return function r(o,i){try{var u=t[o](i),a=u.value}catch(e){return void n(e)}if(!u.done)return Promise.resolve(a).then((function(e){r("next",e)}),(function(e){r("throw",e)}));e(a)}("next")}))}}var f=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.container=u.default.createRef(),n}var n,r,i;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"componentDidMount",value:(i=c((function*(){this.createAndRenderChart()})),function(){return i.apply(this,arguments)})},{key:"componentDidUpdate",value:(r=c((function*(e){(0,a.didPropsChange)(this.props,e)&&this.chart&&(this.destroyChart(),this.createAndRenderChart())})),function(e){return r.apply(this,arguments)})},{key:"createAndRenderChart",value:(n=c((function*(){var e=yield this.getSeatsio(),t=this.extractConfigFromProps();t.container=this.container.current,this.chart=this.createChart(e,t).render(),this.props.onRenderStarted&&this.props.onRenderStarted(this.chart)})),function(){return n.apply(this,arguments)})},{key:"extractConfigFromProps",value:function(){var e=this.props;e.divId,e.container,e.onRenderStarted,e.chartJsUrl,e.region;return function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["divId","container","onRenderStarted","chartJsUrl","region"])}},{key:"componentWillUnmount",value:function(){this.destroyChart()}},{key:"destroyChart",value:function(){this.chart&&"DESTROYED"!==this.chart.state&&this.chart.destroy()}},{key:"getSeatsio",value:function(){return"undefined"==typeof seatsio?this.loadSeatsio():seatsio.region!==this.props.region?(seatsio=void 0,this.loadSeatsio()):Promise.resolve(seatsio)}},{key:"loadSeatsio",value:function(){var e=this;return new Promise((function(t,n){var r=document.createElement("script");r.onload=function(){seatsio.region=e.props.region,t(seatsio)},r.onerror=function(){return n("Could not load "+r.src)},r.src=e.props.chartJsUrl.replace("{region}",e.props.region),document.head.appendChild(r)}))}},{key:"render",value:function(){return u.default.createElement("div",{ref:this.container,style:{height:"100%"}})}}]),t}(u.default.Component);t.default=f,f.defaultProps={chartJsUrl:"https://cdn-{region}.seatsio.net/chart.js"}},function(e,t,n){e.exports=n(2)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(3);Object.defineProperty(t,"SeatsioSeatingChart",{enumerable:!0,get:function(){return a(r).default}});var o=n(6);Object.defineProperty(t,"SeatsioEventManager",{enumerable:!0,get:function(){return a(o).default}});var i=n(7);Object.defineProperty(t,"SeatsioChartManager",{enumerable:!0,get:function(){return a(i).default}});var u=n(8);function a(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"SeatsioDesigner",{enumerable:!0,get:function(){return a(u).default}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(0);function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var c=function(e){function t(){return u(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"createChart",value:function(e,t){return new e.SeatingChart(t)}}]),t}(((r=i)&&r.__esModule?r:{default:r}).default);t.default=c},function(e,t){e.exports=require("react")},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.didPropsChange=function e(t,n){return Object.keys(t).length!==Object.keys(n).length||Object.keys(n).some((function(o){var i=t[o],u=n[o];if(i&&u){if("function"==typeof i&&"function"==typeof u)return i.toString()!==u.toString();if("object"===(void 0===i?"undefined":r(i))&&"object"===(void 0===u?"undefined":r(u)))return e(i,u)}return i!==u}))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(0);function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var c=function(e){function t(){return u(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"createChart",value:function(e,t){return new e.EventManager(t)}}]),t}(((r=i)&&r.__esModule?r:{default:r}).default);t.default=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(0);function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var c=function(e){function t(){return u(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"createChart",value:function(e,t){return new e.ChartManager(t)}}]),t}(((r=i)&&r.__esModule?r:{default:r}).default);t.default=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(0);function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var c=function(e){function t(){return u(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"createChart",value:function(e,t){return new e.SeatingChartDesigner(t)}}]),t}(((r=i)&&r.__esModule?r:{default:r}).default);t.default=c}]);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seatsio/seatsio-react",
3
- "version": "11.0.0",
3
+ "version": "12.0.0",
4
4
  "main": "build/index.js",
5
5
  "repository": {
6
6
  "type": "git",
@@ -36,8 +36,6 @@
36
36
  "webpack-cli": "^3.0.4"
37
37
  },
38
38
  "dependencies": {
39
- "fast-deep-equal": "2.0.1",
40
- "react-fast-compare": "2.0.4"
41
39
  },
42
40
  "jest": {
43
41
  "verbose": true,