DEP Upgrade build stack (#133)

* DEP Update webpack config and deps

* DEP Update code to work with upgraded deps

* MNT Run yarn build
This commit is contained in:
Guy Sartorelli 2022-12-19 10:20:07 +13:00 committed by GitHub
parent 5eee11f4a5
commit e6b49796d8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 4746 additions and 4043 deletions

1
.nvmrc Normal file
View File

@ -0,0 +1 @@
18

View File

@ -1 +1 @@
!function(e){function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}var t={};n.m=e,n.c=t,n.i=function(e){return e},n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:r})},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},n.p="",n(n.s=1)}([function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=t(7),o=t.n(r),i=t(4),c=t.n(i),a=t(5),u=t.n(a),s=t(6),f=(t.n(s),t(3)),l=(t.n(f),t(2)),d=t.n(l),m=t.i(f.provideInjector)(d.a);o.a.entwine("ss",function(e){e(".js-injector-boot .TestReactFormBuilder").entwine({onmatch:function(){this._renderForm()},onunmatch:function(){this._clearForm()},container:function(){var n=this.find(".frameworktest-react-container");return n.length||(n=e('<div class="frameworktest-react-container panel panel--padded" style="overflow-y: auto; max-height: 100%;"></div>'),this.append(n)),n.siblings("form").hide(),n[0]},_renderForm:function(){var e=this,n=window.ss.store,t=n.getState().config.sections.find(function(e){return"TestReactFormBuilder"===e.name}),r=t.form.TestEditForm.schemaUrl;u.a.render(c.a.createElement(s.Provider,{store:n},c.a.createElement(m,{schemaUrl:r,handleSubmit:function(){return e._handleSubmit.apply(e,arguments)},identifier:"FrameworkTest.ReactSection"})),this.container())},_clearForm:function(){u.a.unmountComponentAtNode(this.container())},_handleSubmit:function(e,n,t){return e.preventDefault(),console.log(n),t()}}),e(".TestReactFormBuilder .nav-link").entwine({onclick:function(e){e.preventDefault()}})})},function(e,n,t){t(0)},function(e,n){e.exports=FormBuilderLoader},function(e,n){e.exports=Injector},function(e,n){e.exports=React},function(e,n){e.exports=ReactDom},function(e,n){e.exports=ReactRedux},function(e,n){e.exports=jQuery}]);
(()=>{var t={9285:(t,r,e)=>{"use strict";e(9826),e(1539),e(8309);var n=s(e(5311)),o=s(e(7363)),i=e(745),u=e(1624),c=e(6648),a=s(e(8238));function s(t){return t&&t.__esModule?t:{default:t}}var f=(0,c.provideInjector)(a.default);n.default.entwine("ss",(function(t){t(".js-injector-boot .TestReactFormBuilder").entwine({ReactRoot:null,onmatch:function(){this._renderForm()},onunmatch:function(){this._clearForm()},container:function(){var r=this.find(".frameworktest-react-container");return r.length||(r=t('<div class="frameworktest-react-container panel panel--padded" style="overflow-y: auto; max-height: 100%;"></div>'),this.append(r)),r.siblings("form").hide(),r[0]},_renderForm:function(){var t=this,r=window.ss.store,e=r.getState().config.sections.find((function(t){return"TestReactFormBuilder"===t.name})).form.TestEditForm.schemaUrl,n=(0,i.createRoot)(this.container());n.render(o.default.createElement(u.Provider,{store:r},o.default.createElement(f,{schemaUrl:e,handleSubmit:function(){return t._handleSubmit.apply(t,arguments)},identifier:"FrameworkTest.ReactSection"}))),this.setReactRoot(n)},_clearForm:function(){var t=this.getReactRoot();t&&(t.unmount(),this.setReactRoot(null))},_handleSubmit:function(t,r,e){return t.preventDefault(),console.log(r),e()}}),t(".TestReactFormBuilder .nav-link").entwine({onclick:function(t){t.preventDefault()}})}))},9662:(t,r,e)=>{var n=e(614),o=e(6330),i=TypeError;t.exports=function(t){if(n(t))return t;throw i(o(t)+" is not a function")}},1223:(t,r,e)=>{var n=e(5112),o=e(30),i=e(3070).f,u=n("unscopables"),c=Array.prototype;null==c[u]&&i(c,u,{configurable:!0,value:o(null)}),t.exports=function(t){c[u][t]=!0}},9670:(t,r,e)=>{var n=e(111),o=String,i=TypeError;t.exports=function(t){if(n(t))return t;throw i(o(t)+" is not an object")}},1318:(t,r,e)=>{var n=e(5656),o=e(1400),i=e(6244),u=function(t){return function(r,e,u){var c,a=n(r),s=i(a),f=o(u,s);if(t&&e!=e){for(;s>f;)if((c=a[f++])!=c)return!0}else for(;s>f;f++)if((t||f in a)&&a[f]===e)return t||f||0;return!t&&-1}};t.exports={includes:u(!0),indexOf:u(!1)}},2092:(t,r,e)=>{var n=e(9974),o=e(1702),i=e(8361),u=e(7908),c=e(6244),a=e(5417),s=o([].push),f=function(t){var r=1==t,e=2==t,o=3==t,f=4==t,p=6==t,l=7==t,v=5==t||p;return function(y,d,h,b){for(var m,g,x=u(y),w=i(x),S=n(d,h),j=c(w),O=0,R=b||a,F=r?R(y,j):e||l?R(y,0):void 0;j>O;O++)if((v||O in w)&&(g=S(m=w[O],O,x),t))if(r)F[O]=g;else if(g)switch(t){case 3:return!0;case 5:return m;case 6:return O;case 2:s(F,m)}else switch(t){case 4:return!1;case 7:s(F,m)}return p?-1:o||f?f:F}};t.exports={forEach:f(0),map:f(1),filter:f(2),some:f(3),every:f(4),find:f(5),findIndex:f(6),filterReject:f(7)}},7475:(t,r,e)=>{var n=e(3157),o=e(4411),i=e(111),u=e(5112)("species"),c=Array;t.exports=function(t){var r;return n(t)&&(r=t.constructor,(o(r)&&(r===c||n(r.prototype))||i(r)&&null===(r=r[u]))&&(r=void 0)),void 0===r?c:r}},5417:(t,r,e)=>{var n=e(7475);t.exports=function(t,r){return new(n(t))(0===r?0:r)}},4326:(t,r,e)=>{var n=e(1702),o=n({}.toString),i=n("".slice);t.exports=function(t){return i(o(t),8,-1)}},648:(t,r,e)=>{var n=e(1694),o=e(614),i=e(4326),u=e(5112)("toStringTag"),c=Object,a="Arguments"==i(function(){return arguments}());t.exports=n?i:function(t){var r,e,n;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(e=function(t,r){try{return t[r]}catch(t){}}(r=c(t),u))?e:a?i(r):"Object"==(n=i(r))&&o(r.callee)?"Arguments":n}},9920:(t,r,e)=>{var n=e(2597),o=e(3887),i=e(1236),u=e(3070);t.exports=function(t,r,e){for(var c=o(r),a=u.f,s=i.f,f=0;f<c.length;f++){var p=c[f];n(t,p)||e&&n(e,p)||a(t,p,s(r,p))}}},8880:(t,r,e)=>{var n=e(9781),o=e(3070),i=e(9114);t.exports=n?function(t,r,e){return o.f(t,r,i(1,e))}:function(t,r,e){return t[r]=e,t}},9114:t=>{t.exports=function(t,r){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:r}}},8052:(t,r,e)=>{var n=e(614),o=e(3070),i=e(6339),u=e(3072);t.exports=function(t,r,e,c){c||(c={});var a=c.enumerable,s=void 0!==c.name?c.name:r;if(n(e)&&i(e,s,c),c.global)a?t[r]=e:u(r,e);else{try{c.unsafe?t[r]&&(a=!0):delete t[r]}catch(t){}a?t[r]=e:o.f(t,r,{value:e,enumerable:!1,configurable:!c.nonConfigurable,writable:!c.nonWritable})}return t}},3072:(t,r,e)=>{var n=e(7854),o=Object.defineProperty;t.exports=function(t,r){try{o(n,t,{value:r,configurable:!0,writable:!0})}catch(e){n[t]=r}return r}},9781:(t,r,e)=>{var n=e(7293);t.exports=!n((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},4154:t=>{var r="object"==typeof document&&document.all,e=void 0===r&&void 0!==r;t.exports={all:r,IS_HTMLDDA:e}},317:(t,r,e)=>{var n=e(7854),o=e(111),i=n.document,u=o(i)&&o(i.createElement);t.exports=function(t){return u?i.createElement(t):{}}},8113:(t,r,e)=>{var n=e(5005);t.exports=n("navigator","userAgent")||""},7392:(t,r,e)=>{var n,o,i=e(7854),u=e(8113),c=i.process,a=i.Deno,s=c&&c.versions||a&&a.version,f=s&&s.v8;f&&(o=(n=f.split("."))[0]>0&&n[0]<4?1:+(n[0]+n[1])),!o&&u&&(!(n=u.match(/Edge\/(\d+)/))||n[1]>=74)&&(n=u.match(/Chrome\/(\d+)/))&&(o=+n[1]),t.exports=o},748:t=>{t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},2109:(t,r,e)=>{var n=e(7854),o=e(1236).f,i=e(8880),u=e(8052),c=e(3072),a=e(9920),s=e(4705);t.exports=function(t,r){var e,f,p,l,v,y=t.target,d=t.global,h=t.stat;if(e=d?n:h?n[y]||c(y,{}):(n[y]||{}).prototype)for(f in r){if(l=r[f],p=t.dontCallGetSet?(v=o(e,f))&&v.value:e[f],!s(d?f:y+(h?".":"#")+f,t.forced)&&void 0!==p){if(typeof l==typeof p)continue;a(l,p)}(t.sham||p&&p.sham)&&i(l,"sham",!0),u(e,f,l,t)}}},7293:t=>{t.exports=function(t){try{return!!t()}catch(t){return!0}}},9974:(t,r,e)=>{var n=e(1470),o=e(9662),i=e(4374),u=n(n.bind);t.exports=function(t,r){return o(t),void 0===r?t:i?u(t,r):function(){return t.apply(r,arguments)}}},4374:(t,r,e)=>{var n=e(7293);t.exports=!n((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")}))},6916:(t,r,e)=>{var n=e(4374),o=Function.prototype.call;t.exports=n?o.bind(o):function(){return o.apply(o,arguments)}},6530:(t,r,e)=>{var n=e(9781),o=e(2597),i=Function.prototype,u=n&&Object.getOwnPropertyDescriptor,c=o(i,"name"),a=c&&"something"===function(){}.name,s=c&&(!n||n&&u(i,"name").configurable);t.exports={EXISTS:c,PROPER:a,CONFIGURABLE:s}},1470:(t,r,e)=>{var n=e(4326),o=e(1702);t.exports=function(t){if("Function"===n(t))return o(t)}},1702:(t,r,e)=>{var n=e(4374),o=Function.prototype,i=o.call,u=n&&o.bind.bind(i,i);t.exports=n?u:function(t){return function(){return i.apply(t,arguments)}}},5005:(t,r,e)=>{var n=e(7854),o=e(614),i=function(t){return o(t)?t:void 0};t.exports=function(t,r){return arguments.length<2?i(n[t]):n[t]&&n[t][r]}},8173:(t,r,e)=>{var n=e(9662),o=e(8554);t.exports=function(t,r){var e=t[r];return o(e)?void 0:n(e)}},7854:(t,r,e)=>{var n=function(t){return t&&t.Math==Math&&t};t.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof e.g&&e.g)||function(){return this}()||Function("return this")()},2597:(t,r,e)=>{var n=e(1702),o=e(7908),i=n({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,r){return i(o(t),r)}},3501:t=>{t.exports={}},490:(t,r,e)=>{var n=e(5005);t.exports=n("document","documentElement")},4664:(t,r,e)=>{var n=e(9781),o=e(7293),i=e(317);t.exports=!n&&!o((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},8361:(t,r,e)=>{var n=e(1702),o=e(7293),i=e(4326),u=Object,c=n("".split);t.exports=o((function(){return!u("z").propertyIsEnumerable(0)}))?function(t){return"String"==i(t)?c(t,""):u(t)}:u},2788:(t,r,e)=>{var n=e(1702),o=e(614),i=e(5465),u=n(Function.toString);o(i.inspectSource)||(i.inspectSource=function(t){return u(t)}),t.exports=i.inspectSource},9909:(t,r,e)=>{var n,o,i,u=e(4811),c=e(7854),a=e(111),s=e(8880),f=e(2597),p=e(5465),l=e(6200),v=e(3501),y="Object already initialized",d=c.TypeError,h=c.WeakMap;if(u||p.state){var b=p.state||(p.state=new h);b.get=b.get,b.has=b.has,b.set=b.set,n=function(t,r){if(b.has(t))throw d(y);return r.facade=t,b.set(t,r),r},o=function(t){return b.get(t)||{}},i=function(t){return b.has(t)}}else{var m=l("state");v[m]=!0,n=function(t,r){if(f(t,m))throw d(y);return r.facade=t,s(t,m,r),r},o=function(t){return f(t,m)?t[m]:{}},i=function(t){return f(t,m)}}t.exports={set:n,get:o,has:i,enforce:function(t){return i(t)?o(t):n(t,{})},getterFor:function(t){return function(r){var e;if(!a(r)||(e=o(r)).type!==t)throw d("Incompatible receiver, "+t+" required");return e}}}},3157:(t,r,e)=>{var n=e(4326);t.exports=Array.isArray||function(t){return"Array"==n(t)}},614:(t,r,e)=>{var n=e(4154),o=n.all;t.exports=n.IS_HTMLDDA?function(t){return"function"==typeof t||t===o}:function(t){return"function"==typeof t}},4411:(t,r,e)=>{var n=e(1702),o=e(7293),i=e(614),u=e(648),c=e(5005),a=e(2788),s=function(){},f=[],p=c("Reflect","construct"),l=/^\s*(?:class|function)\b/,v=n(l.exec),y=!l.exec(s),d=function(t){if(!i(t))return!1;try{return p(s,f,t),!0}catch(t){return!1}},h=function(t){if(!i(t))return!1;switch(u(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return y||!!v(l,a(t))}catch(t){return!0}};h.sham=!0,t.exports=!p||o((function(){var t;return d(d.call)||!d(Object)||!d((function(){t=!0}))||t}))?h:d},4705:(t,r,e)=>{var n=e(7293),o=e(614),i=/#|\.prototype\./,u=function(t,r){var e=a[c(t)];return e==f||e!=s&&(o(r)?n(r):!!r)},c=u.normalize=function(t){return String(t).replace(i,".").toLowerCase()},a=u.data={},s=u.NATIVE="N",f=u.POLYFILL="P";t.exports=u},8554:t=>{t.exports=function(t){return null==t}},111:(t,r,e)=>{var n=e(614),o=e(4154),i=o.all;t.exports=o.IS_HTMLDDA?function(t){return"object"==typeof t?null!==t:n(t)||t===i}:function(t){return"object"==typeof t?null!==t:n(t)}},1913:t=>{t.exports=!1},2190:(t,r,e)=>{var n=e(5005),o=e(614),i=e(7976),u=e(3307),c=Object;t.exports=u?function(t){return"symbol"==typeof t}:function(t){var r=n("Symbol");return o(r)&&i(r.prototype,c(t))}},6244:(t,r,e)=>{var n=e(7466);t.exports=function(t){return n(t.length)}},6339:(t,r,e)=>{var n=e(7293),o=e(614),i=e(2597),u=e(9781),c=e(6530).CONFIGURABLE,a=e(2788),s=e(9909),f=s.enforce,p=s.get,l=Object.defineProperty,v=u&&!n((function(){return 8!==l((function(){}),"length",{value:8}).length})),y=String(String).split("String"),d=t.exports=function(t,r,e){"Symbol("===String(r).slice(0,7)&&(r="["+String(r).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),e&&e.getter&&(r="get "+r),e&&e.setter&&(r="set "+r),(!i(t,"name")||c&&t.name!==r)&&(u?l(t,"name",{value:r,configurable:!0}):t.name=r),v&&e&&i(e,"arity")&&t.length!==e.arity&&l(t,"length",{value:e.arity});try{e&&i(e,"constructor")&&e.constructor?u&&l(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var n=f(t);return i(n,"source")||(n.source=y.join("string"==typeof r?r:"")),t};Function.prototype.toString=d((function(){return o(this)&&p(this).source||a(this)}),"toString")},4758:t=>{var r=Math.ceil,e=Math.floor;t.exports=Math.trunc||function(t){var n=+t;return(n>0?e:r)(n)}},30:(t,r,e)=>{var n,o=e(9670),i=e(6048),u=e(748),c=e(3501),a=e(490),s=e(317),f=e(6200),p="prototype",l="script",v=f("IE_PROTO"),y=function(){},d=function(t){return"<"+l+">"+t+"</"+l+">"},h=function(t){t.write(d("")),t.close();var r=t.parentWindow.Object;return t=null,r},b=function(){try{n=new ActiveXObject("htmlfile")}catch(t){}var t,r,e;b="undefined"!=typeof document?document.domain&&n?h(n):(r=s("iframe"),e="java"+l+":",r.style.display="none",a.appendChild(r),r.src=String(e),(t=r.contentWindow.document).open(),t.write(d("document.F=Object")),t.close(),t.F):h(n);for(var o=u.length;o--;)delete b[p][u[o]];return b()};c[v]=!0,t.exports=Object.create||function(t,r){var e;return null!==t?(y[p]=o(t),e=new y,y[p]=null,e[v]=t):e=b(),void 0===r?e:i.f(e,r)}},6048:(t,r,e)=>{var n=e(9781),o=e(3353),i=e(3070),u=e(9670),c=e(5656),a=e(1956);r.f=n&&!o?Object.defineProperties:function(t,r){u(t);for(var e,n=c(r),o=a(r),s=o.length,f=0;s>f;)i.f(t,e=o[f++],n[e]);return t}},3070:(t,r,e)=>{var n=e(9781),o=e(4664),i=e(3353),u=e(9670),c=e(4948),a=TypeError,s=Object.defineProperty,f=Object.getOwnPropertyDescriptor,p="enumerable",l="configurable",v="writable";r.f=n?i?function(t,r,e){if(u(t),r=c(r),u(e),"function"==typeof t&&"prototype"===r&&"value"in e&&v in e&&!e[v]){var n=f(t,r);n&&n[v]&&(t[r]=e.value,e={configurable:l in e?e[l]:n[l],enumerable:p in e?e[p]:n[p],writable:!1})}return s(t,r,e)}:s:function(t,r,e){if(u(t),r=c(r),u(e),o)try{return s(t,r,e)}catch(t){}if("get"in e||"set"in e)throw a("Accessors not supported");return"value"in e&&(t[r]=e.value),t}},1236:(t,r,e)=>{var n=e(9781),o=e(6916),i=e(5296),u=e(9114),c=e(5656),a=e(4948),s=e(2597),f=e(4664),p=Object.getOwnPropertyDescriptor;r.f=n?p:function(t,r){if(t=c(t),r=a(r),f)try{return p(t,r)}catch(t){}if(s(t,r))return u(!o(i.f,t,r),t[r])}},8006:(t,r,e)=>{var n=e(6324),o=e(748).concat("length","prototype");r.f=Object.getOwnPropertyNames||function(t){return n(t,o)}},5181:(t,r)=>{r.f=Object.getOwnPropertySymbols},7976:(t,r,e)=>{var n=e(1702);t.exports=n({}.isPrototypeOf)},6324:(t,r,e)=>{var n=e(1702),o=e(2597),i=e(5656),u=e(1318).indexOf,c=e(3501),a=n([].push);t.exports=function(t,r){var e,n=i(t),s=0,f=[];for(e in n)!o(c,e)&&o(n,e)&&a(f,e);for(;r.length>s;)o(n,e=r[s++])&&(~u(f,e)||a(f,e));return f}},1956:(t,r,e)=>{var n=e(6324),o=e(748);t.exports=Object.keys||function(t){return n(t,o)}},5296:(t,r)=>{"use strict";var e={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor,o=n&&!e.call({1:2},1);r.f=o?function(t){var r=n(this,t);return!!r&&r.enumerable}:e},288:(t,r,e)=>{"use strict";var n=e(1694),o=e(648);t.exports=n?{}.toString:function(){return"[object "+o(this)+"]"}},2140:(t,r,e)=>{var n=e(6916),o=e(614),i=e(111),u=TypeError;t.exports=function(t,r){var e,c;if("string"===r&&o(e=t.toString)&&!i(c=n(e,t)))return c;if(o(e=t.valueOf)&&!i(c=n(e,t)))return c;if("string"!==r&&o(e=t.toString)&&!i(c=n(e,t)))return c;throw u("Can't convert object to primitive value")}},3887:(t,r,e)=>{var n=e(5005),o=e(1702),i=e(8006),u=e(5181),c=e(9670),a=o([].concat);t.exports=n("Reflect","ownKeys")||function(t){var r=i.f(c(t)),e=u.f;return e?a(r,e(t)):r}},4488:(t,r,e)=>{var n=e(8554),o=TypeError;t.exports=function(t){if(n(t))throw o("Can't call method on "+t);return t}},6200:(t,r,e)=>{var n=e(2309),o=e(9711),i=n("keys");t.exports=function(t){return i[t]||(i[t]=o(t))}},5465:(t,r,e)=>{var n=e(7854),o=e(3072),i="__core-js_shared__",u=n[i]||o(i,{});t.exports=u},2309:(t,r,e)=>{var n=e(1913),o=e(5465);(t.exports=function(t,r){return o[t]||(o[t]=void 0!==r?r:{})})("versions",[]).push({version:"3.26.1",mode:n?"pure":"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.26.1/LICENSE",source:"https://github.com/zloirock/core-js"})},6293:(t,r,e)=>{var n=e(7392),o=e(7293);t.exports=!!Object.getOwnPropertySymbols&&!o((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&n&&n<41}))},1400:(t,r,e)=>{var n=e(9303),o=Math.max,i=Math.min;t.exports=function(t,r){var e=n(t);return e<0?o(e+r,0):i(e,r)}},5656:(t,r,e)=>{var n=e(8361),o=e(4488);t.exports=function(t){return n(o(t))}},9303:(t,r,e)=>{var n=e(4758);t.exports=function(t){var r=+t;return r!=r||0===r?0:n(r)}},7466:(t,r,e)=>{var n=e(9303),o=Math.min;t.exports=function(t){return t>0?o(n(t),9007199254740991):0}},7908:(t,r,e)=>{var n=e(4488),o=Object;t.exports=function(t){return o(n(t))}},7593:(t,r,e)=>{var n=e(6916),o=e(111),i=e(2190),u=e(8173),c=e(2140),a=e(5112),s=TypeError,f=a("toPrimitive");t.exports=function(t,r){if(!o(t)||i(t))return t;var e,a=u(t,f);if(a){if(void 0===r&&(r="default"),e=n(a,t,r),!o(e)||i(e))return e;throw s("Can't convert object to primitive value")}return void 0===r&&(r="number"),c(t,r)}},4948:(t,r,e)=>{var n=e(7593),o=e(2190);t.exports=function(t){var r=n(t,"string");return o(r)?r:r+""}},1694:(t,r,e)=>{var n={};n[e(5112)("toStringTag")]="z",t.exports="[object z]"===String(n)},6330:t=>{var r=String;t.exports=function(t){try{return r(t)}catch(t){return"Object"}}},9711:(t,r,e)=>{var n=e(1702),o=0,i=Math.random(),u=n(1..toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+u(++o+i,36)}},3307:(t,r,e)=>{var n=e(6293);t.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},3353:(t,r,e)=>{var n=e(9781),o=e(7293);t.exports=n&&o((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},4811:(t,r,e)=>{var n=e(7854),o=e(614),i=n.WeakMap;t.exports=o(i)&&/native code/.test(String(i))},5112:(t,r,e)=>{var n=e(7854),o=e(2309),i=e(2597),u=e(9711),c=e(6293),a=e(3307),s=o("wks"),f=n.Symbol,p=f&&f.for,l=a?f:f&&f.withoutSetter||u;t.exports=function(t){if(!i(s,t)||!c&&"string"!=typeof s[t]){var r="Symbol."+t;c&&i(f,t)?s[t]=f[t]:s[t]=a&&p?p(r):l(r)}return s[t]}},9826:(t,r,e)=>{"use strict";var n=e(2109),o=e(2092).find,i=e(1223),u="find",c=!0;u in[]&&Array(1)[u]((function(){c=!1})),n({target:"Array",proto:!0,forced:c},{find:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}}),i(u)},8309:(t,r,e)=>{var n=e(9781),o=e(6530).EXISTS,i=e(1702),u=e(3070).f,c=Function.prototype,a=i(c.toString),s=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,f=i(s.exec);n&&!o&&u(c,"name",{configurable:!0,get:function(){try{return f(s,a(this))[1]}catch(t){return""}}})},1539:(t,r,e)=>{var n=e(1694),o=e(8052),i=e(288);n||o(Object.prototype,"toString",i,{unsafe:!0})},745:(t,r,e)=>{"use strict";var n=e(394);r.createRoot=n.createRoot,r.hydrateRoot=n.hydrateRoot},8238:t=>{"use strict";t.exports=FormBuilderLoader},6648:t=>{"use strict";t.exports=Injector},7363:t=>{"use strict";t.exports=React},394:t=>{"use strict";t.exports=ReactDom},1624:t=>{"use strict";t.exports=ReactRedux},5311:t=>{"use strict";t.exports=jQuery}},r={};function e(n){var o=r[n];if(void 0!==o)return o.exports;var i=r[n]={exports:{}};return t[n](i,i.exports,e),i.exports}e.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),(()=>{"use strict";e(9285)})()})();

15
client/dist/legacy.js vendored
View File

@ -1,15 +0,0 @@
!function(e){function t(r){if(n[r])return n[r].exports
var o=n[r]={exports:{},id:r,loaded:!1}
return e[r].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var n={}
return t.m=e,t.c=n,t.p="",t(0)}([function(e,t,n){"use strict"
n(1)},function(e,t,n){"use strict"
function r(e){return e&&e.__esModule?e:{default:e}}var o=n(2),i=r(o),u=n(3),c=r(u),s=n(4),a=r(s),f=n(5),l=n(6),d=r(l),m=n(7),p="TestReactFormBuilder",h=(0,m.provideInjector)(d.default)
i.default.entwine("ss",function(e){e(".TestReactFormBuilder").entwine({onmatch:function e(){var t=this
setTimeout(function(){return t._renderForm()},100),this[0].style.setProperty("overflow-y","scroll","important")},onunmatch:function e(){this._clearForm(),this.css("overflow-y",!1)},open:function e(){this._renderForm()
},close:function e(){this._clearForm()},_renderForm:function e(){var t=this,n=window.ss.store,r=n.getState().config.sections.find(function(e){return e.name===p}),o=r.form.TestEditForm.schemaUrl
a.default.render(c.default.createElement(f.Provider,{store:n},c.default.createElement(h,{identifier:"TestReactForm",schemaUrl:o,handleSubmit:function e(){return t._handleSubmit.apply(t,arguments)}})),this[0])
},_clearForm:function e(){a.default.unmountComponentAtNode(this[0])},_handleSubmit:function e(t,n,r){return t.preventDefault(),r()}}),e(".TestReactFormBuilder .nav-link").entwine({onclick:function e(t){
t.preventDefault()}})})},function(e,t){e.exports=jQuery},function(e,t){e.exports=React},function(e,t){e.exports=ReactDom},function(e,t){e.exports=ReactRedux},function(e,t){e.exports=FormBuilderLoader},function(e,t){
e.exports=Injector}])

View File

@ -1,7 +1,7 @@
/* global window */
import jQuery from 'jquery';
import React from 'react';
import ReactDOM from 'react-dom';
import { createRoot } from 'react-dom/client';
import { Provider } from 'react-redux';
import { provideInjector } from 'lib/Injector';
import FormBuilderLoader from 'containers/FormBuilderLoader/FormBuilderLoader';
@ -15,6 +15,8 @@ jQuery.entwine('ss', ($) => {
* Uses React to rebuild the list of fields from FrameworkTest's TestPages.
*/
$('.js-injector-boot .TestReactFormBuilder').entwine({
ReactRoot: null,
onmatch() {
this._renderForm();
},
@ -42,20 +44,25 @@ jQuery.entwine('ss', ($) => {
.config.sections.find((section) => section.name === sectionConfigKey);
const schemaUrl = sectionConfig.form.TestEditForm.schemaUrl;
ReactDOM.render(
const root = createRoot(this.container());
root.render(
<Provider store={store}>
<InjectedFormBuilderLoader
schemaUrl={schemaUrl}
handleSubmit={(...args) => this._handleSubmit(...args)}
identifier="FrameworkTest.ReactSection"
/>
</Provider>,
this.container()
</Provider>
);
this.setReactRoot(root);
},
_clearForm() {
ReactDOM.unmountComponentAtNode(this.container());
const root = this.getReactRoot();
if (root) {
root.unmount();
this.setReactRoot(null);
}
// this.empty();
},

View File

@ -2,7 +2,6 @@
"name": "silverstripe-asset-admin",
"version": "0.0.0",
"description": "Asset management for the SilverStripe CMS",
"main": "./client/src/boot/index.js",
"license": "BSD-3-Clause",
"repository": {
"type": "git",
@ -14,10 +13,11 @@
},
"author": "SilverStripe Ltd",
"engines": {
"node": "6.x"
"node": "18.x"
},
"scripts": {
"build": "yarn && NODE_ENV=production webpack -p --bail --progress",
"build": "yarn && rm -rf client/dist/* && NODE_ENV=production webpack --mode production --bail --progress",
"dev": "NODE_ENV=development webpack --progress",
"watch": "NODE_ENV=development webpack --watch --progress",
"lock": "npm-shrinkwrap --dev",
"test": "NODE_PATH=\"./client/src\" jest",
@ -38,20 +38,23 @@
"testRunner": "<rootDir>/node_modules/jest-cli/src/testRunners/jasmine/jasmine2.js"
},
"dependencies": {
"react": "^15.3.1",
"react-addons-css-transition-group": "^15.3.1",
"react-dom": "^15.3.1",
"react-redux": "^4.4.1",
"react-router": "^2.4.1",
"react-router-redux": "^4.0.5",
"redux": "https://registry.npmjs.org/redux/-/redux-3.0.5.tgz",
"redux-thunk": "^2.1.0",
"tether": "^1.3.2",
"core-js": "^3.26.1",
"react": "^18.2.0",
"react-addons-css-transition-group": "^15.6.2",
"react-dom": "^18.2.0",
"react-redux": "^8.0.5",
"react-router": "^6.4.5",
"react-router-redux": "^4.0.8",
"redux": "^4.2.0",
"redux-thunk": "^2.4.2",
"tether": "^2.0.0",
"url": "^0.11.0"
},
"devDependencies": {
"@silverstripe/webpack-config": "^0.4.0",
"@silverstripe/webpack-config": "^2.0.0-alpha1",
"babel-jest": "^20.0.3",
"jest-cli": "^19.0.2"
"jest-cli": "^19.0.2",
"webpack": "^5.74.0",
"webpack-cli": "^5.0.0"
}
}

View File

@ -1,42 +1,18 @@
const Path = require('path');
const webpackConfig = require('@silverstripe/webpack-config');
const { JavascriptWebpackConfig } = require('@silverstripe/webpack-config');
const {
resolveJS,
externalJS,
moduleJS,
pluginJS,
} = webpackConfig;
const ENV = process.env.NODE_ENV;
const PATHS = {
MODULES: 'node_modules',
FILES_PATH: '../',
ROOT: Path.resolve(),
SRC: Path.resolve('client/src'),
DIST: Path.resolve('client/dist'),
LEGACY_SRC: Path.resolve('client/src'),
};
const config = [
{
name: 'js',
entry: {
legacy: `${PATHS.LEGACY_SRC}/bundles/legacy.js`,
},
output: {
path: PATHS.DIST,
filename: 'js/[name].js',
},
devtool: (ENV !== 'production') ? 'source-map' : '',
resolve: resolveJS(ENV, PATHS),
externals: externalJS(ENV, PATHS),
module: moduleJS(ENV, PATHS),
plugins: pluginJS(ENV, PATHS),
},
// Main JS bundle
new JavascriptWebpackConfig('js', PATHS, 'silverstripe/frameworktest')
.setEntry({
legacy: `${PATHS.SRC}/bundles/legacy.js`,
})
.getConfig(),
];
// Use WEBPACK_CHILD=js or WEBPACK_CHILD=css env var to run a single config
module.exports = (process.env.WEBPACK_CHILD)
? config.find(entry => entry.name === process.env.WEBPACK_CHILD)
: module.exports = config;
module.exports = config;

8683
yarn.lock

File diff suppressed because it is too large Load Diff