@jspreadsheet/react 12.0.0-beta.23 → 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.
Files changed (2) hide show
  1. package/dist/index.js +6 -2
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -3,10 +3,12 @@ import React, { useRef, useEffect } from "react";
3
3
  import jspreadsheet from 'jspreadsheet';
4
4
 
5
5
  const extractWorksheetProperties = function(props) {
6
- this.worksheets.push({
6
+ let options = {
7
7
  minDimensions: [10, 10],
8
8
  ...props
9
- });
9
+ }
10
+ delete options.children;
11
+ this.worksheets.push(options);
10
12
  }
11
13
 
12
14
  if (typeof(window) !== 'undefined') {
@@ -28,6 +30,8 @@ const Spreadsheet = React.forwardRef((props, mainReference) => {
28
30
 
29
31
  // Get the properties for the spreadsheet
30
32
  let options = { ...props };
33
+ delete options.ref;
34
+ delete options.children;
31
35
 
32
36
  if (! options.worksheets) {
33
37
  // Create the worksheets
package/package.json CHANGED
@@ -20,9 +20,9 @@
20
20
  "react"
21
21
  ],
22
22
  "dependencies": {
23
- "jspreadsheet": "^12.0.0-beta.23"
23
+ "jspreadsheet": "^12.0.0"
24
24
  },
25
25
  "main": "dist/index.js",
26
26
  "types": "dist/index.d.ts",
27
- "version": "12.0.0-beta.23"
27
+ "version": "12.0.0"
28
28
  }