diff --git a/package-lock.json b/package-lock.json index c562150..b276991 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,8 +9,7 @@ "version": "1.3.1", "license": "BSD-3-Clause", "dependencies": { - "@babel/polyfill": "^7.10.4", - "@recogito/recogito-client-core": "1.3.0", + "@recogito/recogito-client-core": "1.3.1", "axios": "^0.21.1", "preact": "^10.5.13", "tiny-emitter": "^2.1.0" @@ -1781,10 +1780,11 @@ } }, "node_modules/@recogito/recogito-client-core": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/@recogito/recogito-client-core/-/recogito-client-core-1.3.0.tgz", - "integrity": "sha512-LNUREa1j2SW+LbQuxqMyNbKj9jz+zQUQGtrIGAgs+d+FhonJ+pzSoYKAZdpdYNI0+60wympG3LJncq0Lu7aghQ==", + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/@recogito/recogito-client-core/-/recogito-client-core-1.3.1.tgz", + "integrity": "sha512-c2RuHNrskp37ULQEuLxugus6HF8y5gX9wi7ZjWQJ7+Clb7+PzJhOE3/RDiYZX/vJm7M2MOlBfb1XgTfl8xOFjw==", "dependencies": { + "@babel/polyfill": "^7.10.4", "downshift": "^6.1.3", "fast-deep-equal": "^3.1.3", "node-polyglot": "^2.4.0", @@ -13256,10 +13256,11 @@ } }, "@recogito/recogito-client-core": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/@recogito/recogito-client-core/-/recogito-client-core-1.3.0.tgz", - "integrity": "sha512-LNUREa1j2SW+LbQuxqMyNbKj9jz+zQUQGtrIGAgs+d+FhonJ+pzSoYKAZdpdYNI0+60wympG3LJncq0Lu7aghQ==", + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/@recogito/recogito-client-core/-/recogito-client-core-1.3.1.tgz", + "integrity": "sha512-c2RuHNrskp37ULQEuLxugus6HF8y5gX9wi7ZjWQJ7+Clb7+PzJhOE3/RDiYZX/vJm7M2MOlBfb1XgTfl8xOFjw==", "requires": { + "@babel/polyfill": "^7.10.4", "downshift": "^6.1.3", "fast-deep-equal": "^3.1.3", "node-polyglot": "^2.4.0", diff --git a/package.json b/package.json index a7673e3..c13015a 100644 --- a/package.json +++ b/package.json @@ -51,8 +51,7 @@ "webpack-dev-server": "^3.11.2" }, "dependencies": { - "@babel/polyfill": "^7.10.4", - "@recogito/recogito-client-core": "1.3.0", + "@recogito/recogito-client-core": "1.3.1", "axios": "^0.21.1", "preact": "^10.5.13", "tiny-emitter": "^2.1.0" diff --git a/src/index.js b/src/index.js index 541beba..d29fc5b 100644 --- a/src/index.js +++ b/src/index.js @@ -2,18 +2,14 @@ import React from 'react'; import ReactDOM from 'react-dom'; import axios from 'axios'; import Emitter from 'tiny-emitter'; -import '@babel/polyfill'; import { WebAnnotation, - addPolyfills, createEnvironment, setLocale } from '@recogito/recogito-client-core'; import TextAnnotator from './TextAnnotator'; import { deflateHTML } from './utils'; -addPolyfills(); // Extra polyfills that babel doesn't include - import '@recogito/recogito-client-core/themes/default'; /** diff --git a/src/polyfills/index.js b/src/polyfills/index.js new file mode 100644 index 0000000..e69de29