@vidispine/vdt-materialui 0.15.0-pre.23 → 0.15.0-pre.24

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/dist/index.es.js CHANGED
@@ -29968,7 +29968,7 @@ var StyleSheet = /*#__PURE__*/function () {
29968
29968
  _proto.flush = function flush() {
29969
29969
  // $FlowFixMe
29970
29970
  this.tags.forEach(function (tag) {
29971
- return tag.parentNode.removeChild(tag);
29971
+ return tag.parentNode && tag.parentNode.removeChild(tag);
29972
29972
  });
29973
29973
  this.tags = [];
29974
29974
  this.ctr = 0;
@@ -30571,6 +30571,29 @@ function memoize$1(fn) {
30571
30571
 
30572
30572
  var last = function last(arr) {
30573
30573
  return arr.length ? arr[arr.length - 1] : null;
30574
+ }; // based on https://github.com/thysultan/stylis.js/blob/e6843c373ebcbbfade25ebcc23f540ed8508da0a/src/Tokenizer.js#L239-L244
30575
+
30576
+
30577
+ var identifierWithPointTracking = function identifierWithPointTracking(begin, points, index) {
30578
+ var previous = 0;
30579
+ var character = 0;
30580
+
30581
+ while (true) {
30582
+ previous = character;
30583
+ character = N(); // &\f
30584
+
30585
+ if (previous === 38 && character === 12) {
30586
+ points[index] = 1;
30587
+ }
30588
+
30589
+ if (R(character)) {
30590
+ break;
30591
+ }
30592
+
30593
+ L();
30594
+ }
30595
+
30596
+ return Q(begin, E);
30574
30597
  };
30575
30598
 
30576
30599
  var toRules = function toRules(parsed, points) {
@@ -30590,7 +30613,7 @@ var toRules = function toRules(parsed, points) {
30590
30613
  points[index] = 1;
30591
30614
  }
30592
30615
 
30593
- parsed[index] += re(E - 1);
30616
+ parsed[index] += identifierWithPointTracking(E - 1, points, index);
30594
30617
  break;
30595
30618
 
30596
30619
  case 2:
@@ -31617,7 +31640,7 @@ unwrapExports(_extends_1);
31617
31640
 
31618
31641
  var pkg = {
31619
31642
  name: "@emotion/react",
31620
- version: "11.4.1",
31643
+ version: "11.5.0",
31621
31644
  main: "dist/emotion-react.cjs.js",
31622
31645
  module: "dist/emotion-react.esm.js",
31623
31646
  browser: {
@@ -31634,9 +31657,9 @@ var pkg = {
31634
31657
  },
31635
31658
  dependencies: {
31636
31659
  "@babel/runtime": "^7.13.10",
31637
- "@emotion/cache": "^11.4.0",
31660
+ "@emotion/cache": "^11.5.0",
31638
31661
  "@emotion/serialize": "^1.0.2",
31639
- "@emotion/sheet": "^1.0.2",
31662
+ "@emotion/sheet": "^1.0.3",
31640
31663
  "@emotion/utils": "^1.0.0",
31641
31664
  "@emotion/weak-memoize": "^0.2.5",
31642
31665
  "hoist-non-react-statics": "^3.3.1"
@@ -31655,7 +31678,7 @@ var pkg = {
31655
31678
  },
31656
31679
  devDependencies: {
31657
31680
  "@babel/core": "^7.13.10",
31658
- "@emotion/css": "11.1.3",
31681
+ "@emotion/css": "11.5.0",
31659
31682
  "@emotion/css-prettifier": "1.0.0",
31660
31683
  "@emotion/server": "11.4.0",
31661
31684
  "@emotion/styled": "11.3.0",
@@ -31964,7 +31987,10 @@ if (process.env.NODE_ENV !== 'production') {
31964
31987
  var isJest = typeof jest !== 'undefined';
31965
31988
 
31966
31989
  if (isBrowser$3 && !isJest) {
31967
- var globalContext = isBrowser$3 ? window : global;
31990
+ // globalThis has wide browser support - https://caniuse.com/?search=globalThis, Node.js 12 and later
31991
+ var globalContext = // $FlowIgnore
31992
+ typeof globalThis !== 'undefined' ? globalThis // eslint-disable-line no-undef
31993
+ : isBrowser$3 ? window : global;
31968
31994
  var globalKey = "__EMOTION_REACT_" + pkg.version.split('.')[0] + "__";
31969
31995
 
31970
31996
  if (globalContext[globalKey]) {
package/dist/index.js CHANGED
@@ -29976,7 +29976,7 @@ var StyleSheet = /*#__PURE__*/function () {
29976
29976
  _proto.flush = function flush() {
29977
29977
  // $FlowFixMe
29978
29978
  this.tags.forEach(function (tag) {
29979
- return tag.parentNode.removeChild(tag);
29979
+ return tag.parentNode && tag.parentNode.removeChild(tag);
29980
29980
  });
29981
29981
  this.tags = [];
29982
29982
  this.ctr = 0;
@@ -30579,6 +30579,29 @@ function memoize$1(fn) {
30579
30579
 
30580
30580
  var last = function last(arr) {
30581
30581
  return arr.length ? arr[arr.length - 1] : null;
30582
+ }; // based on https://github.com/thysultan/stylis.js/blob/e6843c373ebcbbfade25ebcc23f540ed8508da0a/src/Tokenizer.js#L239-L244
30583
+
30584
+
30585
+ var identifierWithPointTracking = function identifierWithPointTracking(begin, points, index) {
30586
+ var previous = 0;
30587
+ var character = 0;
30588
+
30589
+ while (true) {
30590
+ previous = character;
30591
+ character = N(); // &\f
30592
+
30593
+ if (previous === 38 && character === 12) {
30594
+ points[index] = 1;
30595
+ }
30596
+
30597
+ if (R(character)) {
30598
+ break;
30599
+ }
30600
+
30601
+ L();
30602
+ }
30603
+
30604
+ return Q(begin, E);
30582
30605
  };
30583
30606
 
30584
30607
  var toRules = function toRules(parsed, points) {
@@ -30598,7 +30621,7 @@ var toRules = function toRules(parsed, points) {
30598
30621
  points[index] = 1;
30599
30622
  }
30600
30623
 
30601
- parsed[index] += re(E - 1);
30624
+ parsed[index] += identifierWithPointTracking(E - 1, points, index);
30602
30625
  break;
30603
30626
 
30604
30627
  case 2:
@@ -31625,7 +31648,7 @@ unwrapExports(_extends_1);
31625
31648
 
31626
31649
  var pkg = {
31627
31650
  name: "@emotion/react",
31628
- version: "11.4.1",
31651
+ version: "11.5.0",
31629
31652
  main: "dist/emotion-react.cjs.js",
31630
31653
  module: "dist/emotion-react.esm.js",
31631
31654
  browser: {
@@ -31642,9 +31665,9 @@ var pkg = {
31642
31665
  },
31643
31666
  dependencies: {
31644
31667
  "@babel/runtime": "^7.13.10",
31645
- "@emotion/cache": "^11.4.0",
31668
+ "@emotion/cache": "^11.5.0",
31646
31669
  "@emotion/serialize": "^1.0.2",
31647
- "@emotion/sheet": "^1.0.2",
31670
+ "@emotion/sheet": "^1.0.3",
31648
31671
  "@emotion/utils": "^1.0.0",
31649
31672
  "@emotion/weak-memoize": "^0.2.5",
31650
31673
  "hoist-non-react-statics": "^3.3.1"
@@ -31663,7 +31686,7 @@ var pkg = {
31663
31686
  },
31664
31687
  devDependencies: {
31665
31688
  "@babel/core": "^7.13.10",
31666
- "@emotion/css": "11.1.3",
31689
+ "@emotion/css": "11.5.0",
31667
31690
  "@emotion/css-prettifier": "1.0.0",
31668
31691
  "@emotion/server": "11.4.0",
31669
31692
  "@emotion/styled": "11.3.0",
@@ -31972,7 +31995,10 @@ if (process.env.NODE_ENV !== 'production') {
31972
31995
  var isJest = typeof jest !== 'undefined';
31973
31996
 
31974
31997
  if (isBrowser$3 && !isJest) {
31975
- var globalContext = isBrowser$3 ? window : global;
31998
+ // globalThis has wide browser support - https://caniuse.com/?search=globalThis, Node.js 12 and later
31999
+ var globalContext = // $FlowIgnore
32000
+ typeof globalThis !== 'undefined' ? globalThis // eslint-disable-line no-undef
32001
+ : isBrowser$3 ? window : global;
31976
32002
  var globalKey = "__EMOTION_REACT_" + pkg.version.split('.')[0] + "__";
31977
32003
 
31978
32004
  if (globalContext[globalKey]) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vidispine/vdt-materialui",
3
- "version": "0.15.0-pre.23",
3
+ "version": "0.15.0-pre.24",
4
4
  "license": "UNLICENSED",
5
5
  "private": false,
6
6
  "main": "dist/index.js",
@@ -16,10 +16,10 @@
16
16
  "new:component": "hygen new component"
17
17
  },
18
18
  "dependencies": {
19
- "@vidispine/vdt-api": "^0.15.0-pre.23",
20
- "@vidispine/vdt-js": "^0.15.0-pre.23",
21
- "@vidispine/vdt-react": "^0.15.0-pre.23",
22
- "@vidispine/vdt-videojs-react": "^0.15.0-pre.23",
19
+ "@vidispine/vdt-api": "^0.15.0-pre.24",
20
+ "@vidispine/vdt-js": "^0.15.0-pre.24",
21
+ "@vidispine/vdt-react": "^0.15.0-pre.24",
22
+ "@vidispine/vdt-videojs-react": "^0.15.0-pre.24",
23
23
  "clsx": "^1.1.1",
24
24
  "core-js": "^3.8.3",
25
25
  "filesize": "^6.1.0",
@@ -32,16 +32,16 @@
32
32
  "lodash.truncate": "^4.4.2",
33
33
  "lodash.updatewith": "^4.10.2",
34
34
  "moment": "2.28.0",
35
+ "pdfjs-dist": "2.9.359",
35
36
  "react-beautiful-dnd": "12.2.0",
36
37
  "react-dnd": "^11.1.3",
37
38
  "react-dnd-html5-backend": "^11.1.3",
38
39
  "react-dropzone": "^11.2.4",
39
40
  "react-final-form": "^6.5.2",
40
- "typeface-roboto": "^0.0.75",
41
- "react-select": "^4.3.1",
42
41
  "react-pdf": "^5.4.0",
43
- "pdfjs-dist": "2.9.359",
44
- "react-sizeme": "^3.0.2"
42
+ "react-select": "^4.3.1",
43
+ "react-sizeme": "^3.0.2",
44
+ "typeface-roboto": "^0.0.75"
45
45
  },
46
46
  "peerDependencies": {
47
47
  "@material-ui/core": "^4.11.1",
@@ -57,9 +57,9 @@
57
57
  "@storybook/addon-actions": "^6.0.0-alpha.27",
58
58
  "@storybook/addon-knobs": "^6.0.0-alpha.27",
59
59
  "@svgr/rollup": "^5.5.0",
60
- "@vidispine/eslint-config": "^0.15.0-pre.23",
61
- "@vidispine/prettier-config": "^0.15.0-pre.23",
62
- "@vidispine/proptypes": "^0.15.0-pre.23",
60
+ "@vidispine/eslint-config": "^0.15.0-pre.24",
61
+ "@vidispine/prettier-config": "^0.15.0-pre.24",
62
+ "@vidispine/proptypes": "^0.15.0-pre.24",
63
63
  "axios-mock-adapter": "^1.19.0",
64
64
  "enzyme": "3.8",
65
65
  "enzyme-adapter-react-16": "^1.15.5",
@@ -87,4 +87,4 @@
87
87
  ]
88
88
  },
89
89
  "prettier": "@vidispine/prettier-config"
90
- }
90
+ }