diff --git a/client/dist/js/DocumentConversionField.js b/client/dist/js/DocumentConversionField.js index c620aa9..39e0239 100644 --- a/client/dist/js/DocumentConversionField.js +++ b/client/dist/js/DocumentConversionField.js @@ -1 +1 @@ -!function(){"use strict";var e={669:function(e){e.exports=jQuery}},o={};function n(t){var r=o[t];if(void 0!==r)return r.exports;var i=o[t]={exports:{}};return e[t](i,i.exports,n),i.exports}n(669).entwine("documentimport",(e=>{e("div.documentimport").entwine({onfileuploaddone(o,n){const t=n.jqXHR.responseText;if(!JSON.parse(t)[0].error){const o=e("#Form_EditForm_ID").val();e(".cms-tree").jstree("refresh",e(`#record-${o}`)),e(".cms-edit-form").removeClass("changed"),e(".cms-container").entwine(".ss").loadPanel(document.location.href,null,null,!0)}},onfileuploadsubmit(o,n){const t=this.closest("form"),r=this.closest(".documentimport");n.formData=e.extend(n.formData,{SecurityID:t.find(":input[name=SecurityID]").val(),ID:t.find(":input[name=ID]").val(),SplitHeader:r.find("[name=DocumentImportField-SplitHeader]").val(),KeepSource:r.find('[name="DocumentImportField-KeepSource"]').prop("checked")?1:0,ChosenFolderID:r.find("[name=DocumentImportField-ChosenFolderID]").val(),PublishPages:r.find('[name="DocumentImportField-PublishPages"]').prop("checked")?1:0,IncludeTOC:r.find('[name="DocumentImportField-IncludeTOC"]').prop("checked")?1:0})}})}))}(); \ No newline at end of file +!function(){"use strict";var e={669:function(e){e.exports=jQuery}},o={};var n=function n(t){var r=o[t];if(void 0!==r)return r.exports;var i=o[t]={exports:{}};return e[t](i,i.exports,n),i.exports}(669);n.entwine("documentimport",(e=>{e("div.documentimport").entwine({onfileuploaddone(o,n){const t=n.jqXHR.responseText;if(!JSON.parse(t)[0].error){const o=e("#Form_EditForm_ID").val();e(".cms-tree").jstree("refresh",e(`#record-${o}`)),e(".cms-edit-form").removeClass("changed"),e(".cms-container").entwine(".ss").loadPanel(document.location.href,null,null,!0)}},onfileuploadsubmit(o,n){const t=this.closest("form"),r=this.closest(".documentimport");n.formData=e.extend(n.formData,{SecurityID:t.find(":input[name=SecurityID]").val(),ID:t.find(":input[name=ID]").val(),SplitHeader:r.find("[name=DocumentImportField-SplitHeader]").val(),KeepSource:r.find('[name="DocumentImportField-KeepSource"]').prop("checked")?1:0,ChosenFolderID:r.find("[name=DocumentImportField-ChosenFolderID]").val(),PublishPages:r.find('[name="DocumentImportField-PublishPages"]').prop("checked")?1:0,IncludeTOC:r.find('[name="DocumentImportField-IncludeTOC"]').prop("checked")?1:0})}})}))}(); \ No newline at end of file diff --git a/package.json b/package.json index 7b0eb0c..d5eedcf 100644 --- a/package.json +++ b/package.json @@ -15,7 +15,7 @@ "devDependencies": { "@silverstripe/eslint-config": "^1.1.0", "@silverstripe/webpack-config": "^2.0.0", - "webpack": "^5.74.0", + "webpack": "^5.94.0", "webpack-cli": "^5.0.0" }, "resolutions": { diff --git a/yarn.lock b/yarn.lock index 096c4a5..841efec 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1363,15 +1363,7 @@ resolved "https://registry.yarnpkg.com/@tootallnate/once/-/once-2.0.0.tgz#f544a148d3ab35801c1f633a7441fd87c2e484bf" integrity sha512-XCuKFP5PS55gnMVu3dty8KPatLqUoy/ZYzDzAGCQ8JNFCkLXzmI7vNHCR+XpbZaMWQK/vQubr7PkYq8g470J/A== -"@types/eslint-scope@^3.7.3": - version "3.7.7" - resolved "https://registry.yarnpkg.com/@types/eslint-scope/-/eslint-scope-3.7.7.tgz#3108bd5f18b0cdb277c867b3dd449c9ed7079ac5" - integrity sha512-MzMFlSLBqNF2gcHWO0G1vP/YQyfvrxZ0bF+u7mzUdZ1/xK4A4sru+nraZz5i3iEIk1l1uyicaDVTB4QbbEkAYg== - dependencies: - "@types/eslint" "*" - "@types/estree" "*" - -"@types/eslint@*", "@types/eslint@^7.29.0 || ^8.4.1": +"@types/eslint@^7.29.0 || ^8.4.1": version "8.56.6" resolved "https://registry.yarnpkg.com/@types/eslint/-/eslint-8.56.6.tgz#d5dc16cac025d313ee101108ba5714ea10eb3ed0" integrity sha512-ymwc+qb1XkjT/gfoQwxIeHZ6ixH23A+tCT2ADSA/DPVKzAjwYkTXBMCQ/f6fe4wEa85Lhp26VPeUxI7wMhAi7A== @@ -1557,10 +1549,10 @@ abbrev@^1.0.0, abbrev@~1.1.1: resolved "https://registry.yarnpkg.com/abbrev/-/abbrev-1.1.1.tgz#f8f2c887ad10bf67f634f005b6987fed3179aac8" integrity sha512-nne9/IiQ/hzIhY6pdDnbBtz7DjPTKrY00P/zvPSm5pOFkl6xuGrGnXn/VtTNNfNtAfZ9/1RtehkszU9qcTii0Q== -acorn-import-assertions@^1.9.0: - version "1.9.0" - resolved "https://registry.yarnpkg.com/acorn-import-assertions/-/acorn-import-assertions-1.9.0.tgz#507276249d684797c84e0734ef84860334cfb1ac" - integrity sha512-cmMwop9x+8KFhxvKrKfPYmN6/pKTYYHBqLa0DfvVZcKMJWNyWLnaqND7dx/qn66R7ewM1UX5XMaDVP5wlVTaVA== +acorn-import-attributes@^1.9.5: + version "1.9.5" + resolved "https://registry.yarnpkg.com/acorn-import-attributes/-/acorn-import-attributes-1.9.5.tgz#7eb1557b1ba05ef18b5ed0ec67591bfab04688ef" + integrity sha512-n02Vykv5uA3eHGM/Z2dQrcD56kL8TyDb2p1+0P83PClMnC/nc+anbQRhIOWnSq4Ke/KvDPrY3C9hDtC/A3eHnQ== acorn-jsx@^3.0.0: version "3.0.1" @@ -2556,10 +2548,10 @@ encoding@^0.1.13: dependencies: iconv-lite "^0.6.2" -enhanced-resolve@^5.16.0: - version "5.16.0" - resolved "https://registry.yarnpkg.com/enhanced-resolve/-/enhanced-resolve-5.16.0.tgz#65ec88778083056cb32487faa9aef82ed0864787" - integrity sha512-O+QWCviPNSSLAD9Ucn8Awv+poAkqn3T1XY5/N7kR7rQO9yfSGWkYZDwpJ+iKF7B8rxaQKWngSqACpgzeapSyoA== +enhanced-resolve@^5.17.1: + version "5.17.1" + resolved "https://registry.yarnpkg.com/enhanced-resolve/-/enhanced-resolve-5.17.1.tgz#67bfbbcc2f81d511be77d686a90267ef7f898a15" + integrity sha512-LMHl3dXhTcfv8gM4kEzIUeTQ+7fpdA0l2tUf34BddXPkz2A5xJ5L/Pchd5BL6rdccM9QGvu0sWZzK1Z1t4wwyg== dependencies: graceful-fs "^4.2.4" tapable "^2.2.0" @@ -6467,21 +6459,20 @@ webpack-sources@^3.2.3: resolved "https://registry.yarnpkg.com/webpack-sources/-/webpack-sources-3.2.3.tgz#2d4daab8451fd4b240cc27055ff6a0c2ccea0cde" integrity sha512-/DyMEOrDgLKKIG0fmvtz+4dUX/3Ghozwgm6iPp8KRhvn+eQf9+Q7GWxVNMk3+uCPWfdXYC4ExGBckIXdFEfH1w== -webpack@^5.74.0: - version "5.91.0" - resolved "https://registry.yarnpkg.com/webpack/-/webpack-5.91.0.tgz#ffa92c1c618d18c878f06892bbdc3373c71a01d9" - integrity sha512-rzVwlLeBWHJbmgTC/8TvAcu5vpJNII+MelQpylD4jNERPwpBJOE2lEcko1zJX3QJeLjTTAnQxn/OJ8bjDzVQaw== +webpack@^5.74.0, webpack@^5.94.0: + version "5.94.0" + resolved "https://registry.yarnpkg.com/webpack/-/webpack-5.94.0.tgz#77a6089c716e7ab90c1c67574a28da518a20970f" + integrity sha512-KcsGn50VT+06JH/iunZJedYGUJS5FGjow8wb9c0v5n1Om8O1g4L6LjtfxwlXIATopoQu+vOXXa7gYisWxCoPyg== dependencies: - "@types/eslint-scope" "^3.7.3" "@types/estree" "^1.0.5" "@webassemblyjs/ast" "^1.12.1" "@webassemblyjs/wasm-edit" "^1.12.1" "@webassemblyjs/wasm-parser" "^1.12.1" acorn "^8.7.1" - acorn-import-assertions "^1.9.0" + acorn-import-attributes "^1.9.5" browserslist "^4.21.10" chrome-trace-event "^1.0.2" - enhanced-resolve "^5.16.0" + enhanced-resolve "^5.17.1" es-module-lexer "^1.2.1" eslint-scope "5.1.1" events "^3.2.0"