diff --git a/docusaurus.config.js b/docusaurus.config.js index bf287ce9d..763a13a78 100644 --- a/docusaurus.config.js +++ b/docusaurus.config.js @@ -31,7 +31,6 @@ const config = { }, plugins: [ - 'custom-loaders', '@docusaurus/theme-live-codeblock', 'docusaurus-plugin-sass', [ diff --git a/jest.config.js b/jest.config.js index 336c80f3d..0ddec36c3 100644 --- a/jest.config.js +++ b/jest.config.js @@ -17,7 +17,7 @@ module.exports = { '^.+\\.mjs$': 'babel-jest', }, transformIgnorePatterns: [ - 'node_modules/(?!(@docusaurus|swiper|ssr-window|dom7)|@theme|@deriv/quill-design)', + 'node_modules/(?!(@docusaurus|swiper|ssr-window|dom7)|@theme|@deriv-com/quill-ui)', ], moduleNameMapper: { '@theme/(.*)': '@docusaurus/theme-classic/src/theme/$1', @@ -30,7 +30,9 @@ module.exports = { '@docusaurus/plugin-content-docs/client': '@docusaurus/plugin-content-docs/src/client/index.ts', '@site/(.*)': '/$1', '\\.(css|scss|sass|less)$': 'identity-obj-proxy', + '@deriv-com/quill-ui': 'node_modules/@deriv-com/quill-ui/dist/main.js', }, + moduleFileExtensions: ['js', 'jsx', 'ts', 'tsx', 'mjs', 'json'], rootDir: '.', roots: [''], diff --git a/package-lock.json b/package-lock.json index 32ea2bf3b..85cb515cb 100644 --- a/package-lock.json +++ b/package-lock.json @@ -8,7 +8,7 @@ "name": "deriv-api-docs", "version": "0.0.0", "dependencies": { - "@deriv-com/quill-ui": "^1.9.6", + "@deriv-com/quill-ui": "^1.9.11", "@deriv/deriv-api": "^1.0.11", "@deriv/quill-design": "^1.2.18", "@deriv/quill-icons": "^1.21.3", @@ -29,7 +29,6 @@ "@use-gesture/react": "^10.3.0", "babel-plugin-jsx-remove-data-test-id": "^3.0.0", "clsx": "^1.2.1", - "custom-loaders": "file:plugins/custom-loaders", "docusaurus-plugin-sass": "^0.2.2", "identity-obj-proxy": "^3.0.0", "install": "^0.13.0", @@ -2609,9 +2608,9 @@ } }, "node_modules/@deriv-com/quill-ui": { - "version": "1.9.6", - "resolved": "https://registry.npmjs.org/@deriv-com/quill-ui/-/quill-ui-1.9.6.tgz", - "integrity": "sha512-y6+OvuEwIt57FSuRNF1Pa5qapCV6bx0WyMuA/h/rTOcWXgiaUW37RBbYFCTejCA6bWgWT16eVx6BLb2aLEwTcw==", + "version": "1.9.11", + "resolved": "https://registry.npmjs.org/@deriv-com/quill-ui/-/quill-ui-1.9.11.tgz", + "integrity": "sha512-RNnwInb+a2sswbOge04eWv/DuTSS20drBF0Ho+oApleRUKvGY7gxLUMWmtX7hZK6xJAotTejS4wGlf8NHny8hw==", "dependencies": { "@deriv/quill-icons": "^1.19.20", "@headlessui/react": "^1.7.18", @@ -10852,10 +10851,6 @@ "resolved": "https://registry.npmjs.org/csstype/-/csstype-3.1.1.tgz", "integrity": "sha512-DJR/VvkAvSZW9bTouZue2sSxDwdTN92uHjqeKVm+0dAqdfNykRzQ95tay8aXMBAAPpUiq4Qcug2L7neoRh2Egw==" }, - "node_modules/custom-loaders": { - "resolved": "plugins/custom-loaders", - "link": true - }, "node_modules/dargs": { "version": "7.0.0", "resolved": "https://registry.npmjs.org/dargs/-/dargs-7.0.0.tgz", @@ -26673,9 +26668,6 @@ "type": "github", "url": "https://github.com/sponsors/wooorm" } - }, - "plugins/custom-loaders": { - "version": "0.0.0" } } } diff --git a/package.json b/package.json index 955afa7f7..ed5ff24fc 100644 --- a/package.json +++ b/package.json @@ -21,7 +21,7 @@ "format": "prettier --write 'src/**/*.{js,jsx,ts,tsx,md,json}' --config ./.prettierrc" }, "dependencies": { - "@deriv-com/quill-ui": "^1.9.6", + "@deriv-com/quill-ui": "^1.9.11", "@deriv/deriv-api": "^1.0.11", "@deriv/quill-design": "^1.2.18", "@deriv/quill-icons": "^1.21.3", @@ -42,7 +42,6 @@ "@use-gesture/react": "^10.3.0", "babel-plugin-jsx-remove-data-test-id": "^3.0.0", "clsx": "^1.2.1", - "custom-loaders": "file:plugins/custom-loaders", "docusaurus-plugin-sass": "^0.2.2", "identity-obj-proxy": "^3.0.0", "install": "^0.13.0", diff --git a/plugins/custom-loaders/index.js b/plugins/custom-loaders/index.js deleted file mode 100644 index 78e3dfa74..000000000 --- a/plugins/custom-loaders/index.js +++ /dev/null @@ -1,19 +0,0 @@ -module.exports = function (context, options) { - return { - name: 'custom-loaders', - configureWebpack(config, isServer) { - return { - module: { - rules: [ - { - test: /\.m?js/, - resolve: { - fullySpecified: false, - }, - }, - ], - }, - }; - }, - }; -}; diff --git a/plugins/custom-loaders/package.json b/plugins/custom-loaders/package.json deleted file mode 100644 index 18ff8e627..000000000 --- a/plugins/custom-loaders/package.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "name": "custom-loaders", - "version": "0.0.0", - "private": true -}