@hitachivantara/app-shell-vite-plugin 0.12.1 → 0.14.0

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.
Files changed (51) hide show
  1. package/README.md +0 -15
  2. package/dist/automatic-utils.d.ts +6 -0
  3. package/dist/automatic-utils.d.ts.map +1 -0
  4. package/dist/automatic-utils.js +105 -0
  5. package/dist/automatic-utils.js.map +1 -0
  6. package/dist/config-utils.d.ts +34 -0
  7. package/dist/config-utils.d.ts.map +1 -0
  8. package/dist/config-utils.js +126 -0
  9. package/dist/config-utils.js.map +1 -0
  10. package/dist/esm-externals/react-dom.production.min.js +1 -1
  11. package/dist/esm-externals/react-dom.production.min.js.map +1 -1
  12. package/dist/esm-externals/react.production.min.js +1 -1
  13. package/dist/esm-externals/react.production.min.js.map +1 -1
  14. package/dist/index.d.ts +0 -8
  15. package/dist/index.d.ts.map +1 -1
  16. package/dist/index.js.map +1 -1
  17. package/dist/shared-dependencies.d.ts +8 -0
  18. package/dist/shared-dependencies.d.ts.map +1 -0
  19. package/dist/shared-dependencies.js +87 -0
  20. package/dist/shared-dependencies.js.map +1 -0
  21. package/dist/virtual-entrypoints.d.ts +5 -0
  22. package/dist/virtual-entrypoints.d.ts.map +1 -0
  23. package/dist/virtual-entrypoints.js +37 -0
  24. package/dist/virtual-entrypoints.js.map +1 -0
  25. package/dist/vite-configuration-processor-plugin.d.ts +14 -0
  26. package/dist/vite-configuration-processor-plugin.d.ts.map +1 -0
  27. package/dist/vite-configuration-processor-plugin.js +161 -0
  28. package/dist/vite-configuration-processor-plugin.js.map +1 -0
  29. package/dist/vite-generate-base-plugin.d.ts +8 -0
  30. package/dist/vite-generate-base-plugin.d.ts.map +1 -0
  31. package/dist/vite-generate-base-plugin.js +32 -0
  32. package/dist/vite-generate-base-plugin.js.map +1 -0
  33. package/dist/vite-generate-bash-script-plugin.d.ts +3 -0
  34. package/dist/vite-generate-bash-script-plugin.d.ts.map +1 -0
  35. package/dist/vite-generate-bash-script-plugin.js +122 -0
  36. package/dist/vite-generate-bash-script-plugin.js.map +1 -0
  37. package/dist/vite-importmap-plugin.d.ts +2 -2
  38. package/dist/vite-importmap-plugin.d.ts.map +1 -1
  39. package/dist/vite-importmap-plugin.js +15 -4
  40. package/dist/vite-importmap-plugin.js.map +1 -1
  41. package/dist/vite-metadata-plugin.d.ts.map +1 -1
  42. package/dist/vite-metadata-plugin.js.map +1 -1
  43. package/dist/vite-plugin.d.ts +36 -13
  44. package/dist/vite-plugin.d.ts.map +1 -1
  45. package/dist/vite-plugin.js +49 -525
  46. package/dist/vite-plugin.js.map +1 -1
  47. package/dist/vite-watch-config-plugin.d.ts +4 -0
  48. package/dist/vite-watch-config-plugin.d.ts.map +1 -0
  49. package/dist/vite-watch-config-plugin.js +41 -0
  50. package/dist/vite-watch-config-plugin.js.map +1 -0
  51. package/package.json +2 -2
@@ -1,3 +1,3 @@
1
1
  /* @preserve react@18.2.0 esm bundle generated by Hitachi Vantara - Boba Fett team */
2
- function e(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var t,r={exports:{}},n={};r.exports=function(){if(t)return n;t=1;var e=Symbol.for("react.element"),r=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),u=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),c=Symbol.for("react.provider"),f=Symbol.for("react.context"),i=Symbol.for("react.forward_ref"),s=Symbol.for("react.suspense"),l=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),y=Symbol.iterator,d={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},m=Object.assign,_={};function h(e,t,r){this.props=e,this.context=t,this.refs=_,this.updater=r||d}function v(){}function b(e,t,r){this.props=e,this.context=t,this.refs=_,this.updater=r||d}h.prototype.isReactComponent={},h.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},h.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},v.prototype=h.prototype;var S=b.prototype=new v;S.constructor=b,m(S,h.prototype),S.isPureReactComponent=!0;var E=Array.isArray,R=Object.prototype.hasOwnProperty,C={current:null},w={key:!0,ref:!0,__self:!0,__source:!0};function $(t,r,n){var o,u={},a=null,c=null;if(null!=r)for(o in void 0!==r.ref&&(c=r.ref),void 0!==r.key&&(a=""+r.key),r)R.call(r,o)&&!w.hasOwnProperty(o)&&(u[o]=r[o]);var f=arguments.length-2;if(1===f)u.children=n;else if(1<f){for(var i=Array(f),s=0;s<f;s++)i[s]=arguments[s+2];u.children=i}if(t&&t.defaultProps)for(o in f=t.defaultProps)void 0===u[o]&&(u[o]=f[o]);return{$$typeof:e,type:t,key:a,ref:c,props:u,_owner:C.current}}function k(t){return"object"==typeof t&&null!==t&&t.$$typeof===e}var g=/\/+/g;function j(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function x(t,n,o,u,a){var c=typeof t;"undefined"!==c&&"boolean"!==c||(t=null);var f=!1;if(null===t)f=!0;else switch(c){case"string":case"number":f=!0;break;case"object":switch(t.$$typeof){case e:case r:f=!0}}if(f)return a=a(f=t),t=""===u?"."+j(f,0):u,E(a)?(o="",null!=t&&(o=t.replace(g,"$&/")+"/"),x(a,n,o,"",(function(e){return e}))):null!=a&&(k(a)&&(a=function(t,r){return{$$typeof:e,type:t.type,key:r,ref:t.ref,props:t.props,_owner:t._owner}}(a,o+(!a.key||f&&f.key===a.key?"":(""+a.key).replace(g,"$&/")+"/")+t)),n.push(a)),1;if(f=0,u=""===u?".":u+":",E(t))for(var i=0;i<t.length;i++){var s=u+j(c=t[i],i);f+=x(c,n,o,s,a)}else if(s=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=y&&e[y]||e["@@iterator"])?e:null}(t),"function"==typeof s)for(t=s.call(t),i=0;!(c=t.next()).done;)f+=x(c=c.value,n,o,s=u+j(c,i++),a);else if("object"===c)throw n=String(t),Error("Objects are not valid as a React child (found: "+("[object Object]"===n?"object with keys {"+Object.keys(t).join(", ")+"}":n)+"). If you meant to render a collection of children, use an array instead.");return f}function O(e,t,r){if(null==e)return e;var n=[],o=0;return x(e,n,"","",(function(e){return t.call(r,e,o++)})),n}function P(e){if(-1===e._status){var t=e._result;(t=t()).then((function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)}),(function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)})),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var I={current:null},V={transition:null},D={ReactCurrentDispatcher:I,ReactCurrentBatchConfig:V,ReactCurrentOwner:C};return n.Children={map:O,forEach:function(e,t,r){O(e,(function(){t.apply(this,arguments)}),r)},count:function(e){var t=0;return O(e,(function(){t++})),t},toArray:function(e){return O(e,(function(e){return e}))||[]},only:function(e){if(!k(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},n.Component=h,n.Fragment=o,n.Profiler=a,n.PureComponent=b,n.StrictMode=u,n.Suspense=s,n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=D,n.cloneElement=function(t,r,n){if(null==t)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+t+".");var o=m({},t.props),u=t.key,a=t.ref,c=t._owner;if(null!=r){if(void 0!==r.ref&&(a=r.ref,c=C.current),void 0!==r.key&&(u=""+r.key),t.type&&t.type.defaultProps)var f=t.type.defaultProps;for(i in r)R.call(r,i)&&!w.hasOwnProperty(i)&&(o[i]=void 0===r[i]&&void 0!==f?f[i]:r[i])}var i=arguments.length-2;if(1===i)o.children=n;else if(1<i){f=Array(i);for(var s=0;s<i;s++)f[s]=arguments[s+2];o.children=f}return{$$typeof:e,type:t.type,key:u,ref:a,props:o,_owner:c}},n.createContext=function(e){return(e={$$typeof:f,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:c,_context:e},e.Consumer=e},n.createElement=$,n.createFactory=function(e){var t=$.bind(null,e);return t.type=e,t},n.createRef=function(){return{current:null}},n.forwardRef=function(e){return{$$typeof:i,render:e}},n.isValidElement=k,n.lazy=function(e){return{$$typeof:p,_payload:{_status:-1,_result:e},_init:P}},n.memo=function(e,t){return{$$typeof:l,type:e,compare:void 0===t?null:t}},n.startTransition=function(e){var t=V.transition;V.transition={};try{e()}finally{V.transition=t}},n.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")},n.useCallback=function(e,t){return I.current.useCallback(e,t)},n.useContext=function(e){return I.current.useContext(e)},n.useDebugValue=function(){},n.useDeferredValue=function(e){return I.current.useDeferredValue(e)},n.useEffect=function(e,t){return I.current.useEffect(e,t)},n.useId=function(){return I.current.useId()},n.useImperativeHandle=function(e,t,r){return I.current.useImperativeHandle(e,t,r)},n.useInsertionEffect=function(e,t){return I.current.useInsertionEffect(e,t)},n.useLayoutEffect=function(e,t){return I.current.useLayoutEffect(e,t)},n.useMemo=function(e,t){return I.current.useMemo(e,t)},n.useReducer=function(e,t,r){return I.current.useReducer(e,t,r)},n.useRef=function(e){return I.current.useRef(e)},n.useState=function(e){return I.current.useState(e)},n.useSyncExternalStore=function(e,t,r){return I.current.useSyncExternalStore(e,t,r)},n.useTransition=function(){return I.current.useTransition()},n.version="18.2.0",n}();var o=e(r.exports);const u=!0,{Fragment:a,StrictMode:c,Profiler:f,Suspense:i,Children:s,Component:l,PureComponent:p,cloneElement:y,createContext:d,createElement:m,createFactory:_,createRef:h,forwardRef:v,isValidElement:b,lazy:S,memo:E,useCallback:R,useContext:C,useDebugValue:w,useEffect:$,useImperativeHandle:k,useLayoutEffect:g,useMemo:j,useReducer:x,useRef:O,useState:P,version:I}=o;export{s as Children,l as Component,a as Fragment,f as Profiler,p as PureComponent,c as StrictMode,i as Suspense,u as __esmModule,y as cloneElement,d as createContext,m as createElement,_ as createFactory,h as createRef,o as default,v as forwardRef,b as isValidElement,S as lazy,E as memo,R as useCallback,C as useContext,w as useDebugValue,$ as useEffect,k as useImperativeHandle,g as useLayoutEffect,j as useMemo,x as useReducer,O as useRef,P as useState,I as version};
2
+ function e(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var t,r={exports:{}},n={};r.exports=function(){if(t)return n;t=1;var e=Symbol.for("react.element"),r=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),u=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),c=Symbol.for("react.provider"),f=Symbol.for("react.context"),i=Symbol.for("react.forward_ref"),s=Symbol.for("react.suspense"),l=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),y=Symbol.iterator,d={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},m=Object.assign,_={};function h(e,t,r){this.props=e,this.context=t,this.refs=_,this.updater=r||d}function v(){}function b(e,t,r){this.props=e,this.context=t,this.refs=_,this.updater=r||d}h.prototype.isReactComponent={},h.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},h.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},v.prototype=h.prototype;var S=b.prototype=new v;S.constructor=b,m(S,h.prototype),S.isPureReactComponent=!0;var E=Array.isArray,R=Object.prototype.hasOwnProperty,C={current:null},w={key:!0,ref:!0,__self:!0,__source:!0};function $(t,r,n){var o,u={},a=null,c=null;if(null!=r)for(o in void 0!==r.ref&&(c=r.ref),void 0!==r.key&&(a=""+r.key),r)R.call(r,o)&&!w.hasOwnProperty(o)&&(u[o]=r[o]);var f=arguments.length-2;if(1===f)u.children=n;else if(1<f){for(var i=Array(f),s=0;s<f;s++)i[s]=arguments[s+2];u.children=i}if(t&&t.defaultProps)for(o in f=t.defaultProps)void 0===u[o]&&(u[o]=f[o]);return{$$typeof:e,type:t,key:a,ref:c,props:u,_owner:C.current}}function k(t){return"object"==typeof t&&null!==t&&t.$$typeof===e}var g=/\/+/g;function x(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function j(t,n,o,u,a){var c=typeof t;"undefined"!==c&&"boolean"!==c||(t=null);var f=!1;if(null===t)f=!0;else switch(c){case"string":case"number":f=!0;break;case"object":switch(t.$$typeof){case e:case r:f=!0}}if(f)return a=a(f=t),t=""===u?"."+x(f,0):u,E(a)?(o="",null!=t&&(o=t.replace(g,"$&/")+"/"),j(a,n,o,"",(function(e){return e}))):null!=a&&(k(a)&&(a=function(t,r){return{$$typeof:e,type:t.type,key:r,ref:t.ref,props:t.props,_owner:t._owner}}(a,o+(!a.key||f&&f.key===a.key?"":(""+a.key).replace(g,"$&/")+"/")+t)),n.push(a)),1;if(f=0,u=""===u?".":u+":",E(t))for(var i=0;i<t.length;i++){var s=u+x(c=t[i],i);f+=j(c,n,o,s,a)}else if(s=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=y&&e[y]||e["@@iterator"])?e:null}(t),"function"==typeof s)for(t=s.call(t),i=0;!(c=t.next()).done;)f+=j(c=c.value,n,o,s=u+x(c,i++),a);else if("object"===c)throw n=String(t),Error("Objects are not valid as a React child (found: "+("[object Object]"===n?"object with keys {"+Object.keys(t).join(", ")+"}":n)+"). If you meant to render a collection of children, use an array instead.");return f}function O(e,t,r){if(null==e)return e;var n=[],o=0;return j(e,n,"","",(function(e){return t.call(r,e,o++)})),n}function P(e){if(-1===e._status){var t=e._result;(t=t()).then((function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)}),(function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)})),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var I={current:null},V={transition:null},T={ReactCurrentDispatcher:I,ReactCurrentBatchConfig:V,ReactCurrentOwner:C};return n.Children={map:O,forEach:function(e,t,r){O(e,(function(){t.apply(this,arguments)}),r)},count:function(e){var t=0;return O(e,(function(){t++})),t},toArray:function(e){return O(e,(function(e){return e}))||[]},only:function(e){if(!k(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},n.Component=h,n.Fragment=o,n.Profiler=a,n.PureComponent=b,n.StrictMode=u,n.Suspense=s,n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=T,n.cloneElement=function(t,r,n){if(null==t)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+t+".");var o=m({},t.props),u=t.key,a=t.ref,c=t._owner;if(null!=r){if(void 0!==r.ref&&(a=r.ref,c=C.current),void 0!==r.key&&(u=""+r.key),t.type&&t.type.defaultProps)var f=t.type.defaultProps;for(i in r)R.call(r,i)&&!w.hasOwnProperty(i)&&(o[i]=void 0===r[i]&&void 0!==f?f[i]:r[i])}var i=arguments.length-2;if(1===i)o.children=n;else if(1<i){f=Array(i);for(var s=0;s<i;s++)f[s]=arguments[s+2];o.children=f}return{$$typeof:e,type:t.type,key:u,ref:a,props:o,_owner:c}},n.createContext=function(e){return(e={$$typeof:f,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:c,_context:e},e.Consumer=e},n.createElement=$,n.createFactory=function(e){var t=$.bind(null,e);return t.type=e,t},n.createRef=function(){return{current:null}},n.forwardRef=function(e){return{$$typeof:i,render:e}},n.isValidElement=k,n.lazy=function(e){return{$$typeof:p,_payload:{_status:-1,_result:e},_init:P}},n.memo=function(e,t){return{$$typeof:l,type:e,compare:void 0===t?null:t}},n.startTransition=function(e){var t=V.transition;V.transition={};try{e()}finally{V.transition=t}},n.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")},n.useCallback=function(e,t){return I.current.useCallback(e,t)},n.useContext=function(e){return I.current.useContext(e)},n.useDebugValue=function(){},n.useDeferredValue=function(e){return I.current.useDeferredValue(e)},n.useEffect=function(e,t){return I.current.useEffect(e,t)},n.useId=function(){return I.current.useId()},n.useImperativeHandle=function(e,t,r){return I.current.useImperativeHandle(e,t,r)},n.useInsertionEffect=function(e,t){return I.current.useInsertionEffect(e,t)},n.useLayoutEffect=function(e,t){return I.current.useLayoutEffect(e,t)},n.useMemo=function(e,t){return I.current.useMemo(e,t)},n.useReducer=function(e,t,r){return I.current.useReducer(e,t,r)},n.useRef=function(e){return I.current.useRef(e)},n.useState=function(e){return I.current.useState(e)},n.useSyncExternalStore=function(e,t,r){return I.current.useSyncExternalStore(e,t,r)},n.useTransition=function(){return I.current.useTransition()},n.version="18.2.0",n}();var o=e(r.exports);const u=!0,{Fragment:a,StrictMode:c,Profiler:f,Suspense:i,Children:s,Component:l,PureComponent:p,cloneElement:y,createContext:d,createElement:m,createFactory:_,createRef:h,forwardRef:v,isValidElement:b,lazy:S,memo:E,startTransition:R,useCallback:C,useContext:w,useDebugValue:$,useDeferredValue:k,useEffect:g,useId:x,useImperativeHandle:j,useInsertionEffect:O,useLayoutEffect:P,useMemo:I,useReducer:V,useRef:T,useState:D,useSyncExternalStore:F,useTransition:M,version:A}=o;export{s as Children,l as Component,a as Fragment,f as Profiler,p as PureComponent,c as StrictMode,i as Suspense,u as __esmModule,y as cloneElement,d as createContext,m as createElement,_ as createFactory,h as createRef,o as default,v as forwardRef,b as isValidElement,S as lazy,E as memo,R as startTransition,C as useCallback,w as useContext,$ as useDebugValue,k as useDeferredValue,g as useEffect,x as useId,j as useImperativeHandle,O as useInsertionEffect,P as useLayoutEffect,I as useMemo,V as useReducer,T as useRef,D as useState,F as useSyncExternalStore,M as useTransition,A as version};
3
3
  //# sourceMappingURL=react.production.min.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"react.production.min.js","sources":["../../../../node_modules/react/index.js","../../../../node_modules/react/cjs/react.production.min.js","../../src/export-externals/export-react.js"],"sourcesContent":["'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/react.production.min.js');\n} else {\n module.exports = require('./cjs/react.development.js');\n}\n","/**\n * @license React\n * react.production.min.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n'use strict';var l=Symbol.for(\"react.element\"),n=Symbol.for(\"react.portal\"),p=Symbol.for(\"react.fragment\"),q=Symbol.for(\"react.strict_mode\"),r=Symbol.for(\"react.profiler\"),t=Symbol.for(\"react.provider\"),u=Symbol.for(\"react.context\"),v=Symbol.for(\"react.forward_ref\"),w=Symbol.for(\"react.suspense\"),x=Symbol.for(\"react.memo\"),y=Symbol.for(\"react.lazy\"),z=Symbol.iterator;function A(a){if(null===a||\"object\"!==typeof a)return null;a=z&&a[z]||a[\"@@iterator\"];return\"function\"===typeof a?a:null}\nvar B={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},C=Object.assign,D={};function E(a,b,e){this.props=a;this.context=b;this.refs=D;this.updater=e||B}E.prototype.isReactComponent={};\nE.prototype.setState=function(a,b){if(\"object\"!==typeof a&&\"function\"!==typeof a&&null!=a)throw Error(\"setState(...): takes an object of state variables to update or a function which returns an object of state variables.\");this.updater.enqueueSetState(this,a,b,\"setState\")};E.prototype.forceUpdate=function(a){this.updater.enqueueForceUpdate(this,a,\"forceUpdate\")};function F(){}F.prototype=E.prototype;function G(a,b,e){this.props=a;this.context=b;this.refs=D;this.updater=e||B}var H=G.prototype=new F;\nH.constructor=G;C(H,E.prototype);H.isPureReactComponent=!0;var I=Array.isArray,J=Object.prototype.hasOwnProperty,K={current:null},L={key:!0,ref:!0,__self:!0,__source:!0};\nfunction M(a,b,e){var d,c={},k=null,h=null;if(null!=b)for(d in void 0!==b.ref&&(h=b.ref),void 0!==b.key&&(k=\"\"+b.key),b)J.call(b,d)&&!L.hasOwnProperty(d)&&(c[d]=b[d]);var g=arguments.length-2;if(1===g)c.children=e;else if(1<g){for(var f=Array(g),m=0;m<g;m++)f[m]=arguments[m+2];c.children=f}if(a&&a.defaultProps)for(d in g=a.defaultProps,g)void 0===c[d]&&(c[d]=g[d]);return{$$typeof:l,type:a,key:k,ref:h,props:c,_owner:K.current}}\nfunction N(a,b){return{$$typeof:l,type:a.type,key:b,ref:a.ref,props:a.props,_owner:a._owner}}function O(a){return\"object\"===typeof a&&null!==a&&a.$$typeof===l}function escape(a){var b={\"=\":\"=0\",\":\":\"=2\"};return\"$\"+a.replace(/[=:]/g,function(a){return b[a]})}var P=/\\/+/g;function Q(a,b){return\"object\"===typeof a&&null!==a&&null!=a.key?escape(\"\"+a.key):b.toString(36)}\nfunction R(a,b,e,d,c){var k=typeof a;if(\"undefined\"===k||\"boolean\"===k)a=null;var h=!1;if(null===a)h=!0;else switch(k){case \"string\":case \"number\":h=!0;break;case \"object\":switch(a.$$typeof){case l:case n:h=!0}}if(h)return h=a,c=c(h),a=\"\"===d?\".\"+Q(h,0):d,I(c)?(e=\"\",null!=a&&(e=a.replace(P,\"$&/\")+\"/\"),R(c,b,e,\"\",function(a){return a})):null!=c&&(O(c)&&(c=N(c,e+(!c.key||h&&h.key===c.key?\"\":(\"\"+c.key).replace(P,\"$&/\")+\"/\")+a)),b.push(c)),1;h=0;d=\"\"===d?\".\":d+\":\";if(I(a))for(var g=0;g<a.length;g++){k=\na[g];var f=d+Q(k,g);h+=R(k,b,e,f,c)}else if(f=A(a),\"function\"===typeof f)for(a=f.call(a),g=0;!(k=a.next()).done;)k=k.value,f=d+Q(k,g++),h+=R(k,b,e,f,c);else if(\"object\"===k)throw b=String(a),Error(\"Objects are not valid as a React child (found: \"+(\"[object Object]\"===b?\"object with keys {\"+Object.keys(a).join(\", \")+\"}\":b)+\"). If you meant to render a collection of children, use an array instead.\");return h}\nfunction S(a,b,e){if(null==a)return a;var d=[],c=0;R(a,d,\"\",\"\",function(a){return b.call(e,a,c++)});return d}function T(a){if(-1===a._status){var b=a._result;b=b();b.then(function(b){if(0===a._status||-1===a._status)a._status=1,a._result=b},function(b){if(0===a._status||-1===a._status)a._status=2,a._result=b});-1===a._status&&(a._status=0,a._result=b)}if(1===a._status)return a._result.default;throw a._result;}\nvar U={current:null},V={transition:null},W={ReactCurrentDispatcher:U,ReactCurrentBatchConfig:V,ReactCurrentOwner:K};exports.Children={map:S,forEach:function(a,b,e){S(a,function(){b.apply(this,arguments)},e)},count:function(a){var b=0;S(a,function(){b++});return b},toArray:function(a){return S(a,function(a){return a})||[]},only:function(a){if(!O(a))throw Error(\"React.Children.only expected to receive a single React element child.\");return a}};exports.Component=E;exports.Fragment=p;\nexports.Profiler=r;exports.PureComponent=G;exports.StrictMode=q;exports.Suspense=w;exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=W;\nexports.cloneElement=function(a,b,e){if(null===a||void 0===a)throw Error(\"React.cloneElement(...): The argument must be a React element, but you passed \"+a+\".\");var d=C({},a.props),c=a.key,k=a.ref,h=a._owner;if(null!=b){void 0!==b.ref&&(k=b.ref,h=K.current);void 0!==b.key&&(c=\"\"+b.key);if(a.type&&a.type.defaultProps)var g=a.type.defaultProps;for(f in b)J.call(b,f)&&!L.hasOwnProperty(f)&&(d[f]=void 0===b[f]&&void 0!==g?g[f]:b[f])}var f=arguments.length-2;if(1===f)d.children=e;else if(1<f){g=Array(f);\nfor(var m=0;m<f;m++)g[m]=arguments[m+2];d.children=g}return{$$typeof:l,type:a.type,key:c,ref:k,props:d,_owner:h}};exports.createContext=function(a){a={$$typeof:u,_currentValue:a,_currentValue2:a,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null};a.Provider={$$typeof:t,_context:a};return a.Consumer=a};exports.createElement=M;exports.createFactory=function(a){var b=M.bind(null,a);b.type=a;return b};exports.createRef=function(){return{current:null}};\nexports.forwardRef=function(a){return{$$typeof:v,render:a}};exports.isValidElement=O;exports.lazy=function(a){return{$$typeof:y,_payload:{_status:-1,_result:a},_init:T}};exports.memo=function(a,b){return{$$typeof:x,type:a,compare:void 0===b?null:b}};exports.startTransition=function(a){var b=V.transition;V.transition={};try{a()}finally{V.transition=b}};exports.unstable_act=function(){throw Error(\"act(...) is not supported in production builds of React.\");};\nexports.useCallback=function(a,b){return U.current.useCallback(a,b)};exports.useContext=function(a){return U.current.useContext(a)};exports.useDebugValue=function(){};exports.useDeferredValue=function(a){return U.current.useDeferredValue(a)};exports.useEffect=function(a,b){return U.current.useEffect(a,b)};exports.useId=function(){return U.current.useId()};exports.useImperativeHandle=function(a,b,e){return U.current.useImperativeHandle(a,b,e)};\nexports.useInsertionEffect=function(a,b){return U.current.useInsertionEffect(a,b)};exports.useLayoutEffect=function(a,b){return U.current.useLayoutEffect(a,b)};exports.useMemo=function(a,b){return U.current.useMemo(a,b)};exports.useReducer=function(a,b,e){return U.current.useReducer(a,b,e)};exports.useRef=function(a){return U.current.useRef(a)};exports.useState=function(a){return U.current.useState(a)};exports.useSyncExternalStore=function(a,b,e){return U.current.useSyncExternalStore(a,b,e)};\nexports.useTransition=function(){return U.current.useTransition()};exports.version=\"18.2.0\";\n","import React from \"react\";\n\nexport default React;\n/* eslint no-underscore-dangle: \"off\" */\nexport const __esmModule = true;\nexport const {\n Fragment,\n StrictMode,\n Profiler,\n Suspense,\n Children,\n Component,\n PureComponent,\n cloneElement,\n createContext,\n createElement,\n createFactory,\n createRef,\n forwardRef,\n isValidElement,\n lazy,\n memo,\n useCallback,\n useContext,\n useDebugValue,\n useEffect,\n useImperativeHandle,\n useLayoutEffect,\n useMemo,\n useReducer,\n useRef,\n useState,\n version\n} = React;\n"],"names":["reactModule","exports","l","Symbol","for","n","p","q","r","t","u","v","w","x","y","z","iterator","B","isMounted","enqueueForceUpdate","enqueueReplaceState","enqueueSetState","C","Object","assign","D","E","a","b","e","this","props","context","refs","updater","F","G","prototype","isReactComponent","setState","Error","forceUpdate","H","constructor","isPureReactComponent","I","Array","isArray","J","hasOwnProperty","K","current","L","key","ref","__self","__source","M","d","c","k","h","call","g","arguments","length","children","f","m","defaultProps","$$typeof","type","_owner","O","P","Q","replace","escape","toString","R","N","push","A","next","done","value","String","keys","join","S","T","_status","_result","then","default","U","V","transition","W","ReactCurrentDispatcher","ReactCurrentBatchConfig","ReactCurrentOwner","react_production_min","Children","map","forEach","apply","count","toArray","only","Component","Fragment","Profiler","StrictMode","__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED","cloneElement","createContext","_currentValue","_currentValue2","_threadCount","Provider","Consumer","_defaultValue","_globalName","_context","createElement","bind","createRef","forwardRef","render","isValidElement","lazy","_payload","_init","memo","compare","startTransition","unstable_act","useCallback","useContext","useDebugValue","useDeferredValue","useEffect","useId","useImperativeHandle","useInsertionEffect","useLayoutEffect","useMemo","useReducer","useRef","useState","useSyncExternalStore","useTransition","version","require$$0","__esmModule","Suspense","PureComponent","createFactory","React"],"mappings":";8HAGEA,EAAAC,qCCMW,IAAIC,EAAEC,OAAOC,IAAI,iBAAiBC,EAAEF,OAAOC,IAAI,gBAAgBE,EAAEH,OAAOC,IAAI,kBAAkBG,EAAEJ,OAAOC,IAAI,qBAAqBI,EAAEL,OAAOC,IAAI,kBAAkBK,EAAEN,OAAOC,IAAI,kBAAkBM,EAAEP,OAAOC,IAAI,iBAAiBO,EAAER,OAAOC,IAAI,qBAAqBQ,EAAET,OAAOC,IAAI,kBAAkBS,EAAEV,OAAOC,IAAI,cAAcU,EAAEX,OAAOC,IAAI,cAAcW,EAAEZ,OAAOa,SACrWC,EAAE,CAACC,UAAU,WAAW,OAAM,CAAE,EAAEC,mBAAmB,aAAaC,oBAAoB,aAAaC,gBAAgB,WAAU,GAAIC,EAAEC,OAAOC,OAAOC,EAAE,CAAA,EAAG,SAASC,EAAEC,EAAEC,EAAEC,GAAGC,KAAKC,MAAMJ,EAAEG,KAAKE,QAAQJ,EAAEE,KAAKG,KAAKR,EAAEK,KAAKI,QAAQL,GAAG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AAaE,UACbA,EAASE,oBACTA,EAAmBE,gBACnBA,EAAeC,QACfA,EAAOC,WACPA,EAAUC,OACVA,EAAMC,SACNA,EAAQG,QACRA,GACEM","x_google_ignoreList":[0,1]}
1
+ {"version":3,"file":"react.production.min.js","sources":["../../../../node_modules/react/index.js","../../../../node_modules/react/cjs/react.production.min.js","../../src/export-externals/export-react.js"],"sourcesContent":["'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/react.production.min.js');\n} else {\n module.exports = require('./cjs/react.development.js');\n}\n","/**\n * @license React\n * react.production.min.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n'use strict';var l=Symbol.for(\"react.element\"),n=Symbol.for(\"react.portal\"),p=Symbol.for(\"react.fragment\"),q=Symbol.for(\"react.strict_mode\"),r=Symbol.for(\"react.profiler\"),t=Symbol.for(\"react.provider\"),u=Symbol.for(\"react.context\"),v=Symbol.for(\"react.forward_ref\"),w=Symbol.for(\"react.suspense\"),x=Symbol.for(\"react.memo\"),y=Symbol.for(\"react.lazy\"),z=Symbol.iterator;function A(a){if(null===a||\"object\"!==typeof a)return null;a=z&&a[z]||a[\"@@iterator\"];return\"function\"===typeof a?a:null}\nvar B={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},C=Object.assign,D={};function E(a,b,e){this.props=a;this.context=b;this.refs=D;this.updater=e||B}E.prototype.isReactComponent={};\nE.prototype.setState=function(a,b){if(\"object\"!==typeof a&&\"function\"!==typeof a&&null!=a)throw Error(\"setState(...): takes an object of state variables to update or a function which returns an object of state variables.\");this.updater.enqueueSetState(this,a,b,\"setState\")};E.prototype.forceUpdate=function(a){this.updater.enqueueForceUpdate(this,a,\"forceUpdate\")};function F(){}F.prototype=E.prototype;function G(a,b,e){this.props=a;this.context=b;this.refs=D;this.updater=e||B}var H=G.prototype=new F;\nH.constructor=G;C(H,E.prototype);H.isPureReactComponent=!0;var I=Array.isArray,J=Object.prototype.hasOwnProperty,K={current:null},L={key:!0,ref:!0,__self:!0,__source:!0};\nfunction M(a,b,e){var d,c={},k=null,h=null;if(null!=b)for(d in void 0!==b.ref&&(h=b.ref),void 0!==b.key&&(k=\"\"+b.key),b)J.call(b,d)&&!L.hasOwnProperty(d)&&(c[d]=b[d]);var g=arguments.length-2;if(1===g)c.children=e;else if(1<g){for(var f=Array(g),m=0;m<g;m++)f[m]=arguments[m+2];c.children=f}if(a&&a.defaultProps)for(d in g=a.defaultProps,g)void 0===c[d]&&(c[d]=g[d]);return{$$typeof:l,type:a,key:k,ref:h,props:c,_owner:K.current}}\nfunction N(a,b){return{$$typeof:l,type:a.type,key:b,ref:a.ref,props:a.props,_owner:a._owner}}function O(a){return\"object\"===typeof a&&null!==a&&a.$$typeof===l}function escape(a){var b={\"=\":\"=0\",\":\":\"=2\"};return\"$\"+a.replace(/[=:]/g,function(a){return b[a]})}var P=/\\/+/g;function Q(a,b){return\"object\"===typeof a&&null!==a&&null!=a.key?escape(\"\"+a.key):b.toString(36)}\nfunction R(a,b,e,d,c){var k=typeof a;if(\"undefined\"===k||\"boolean\"===k)a=null;var h=!1;if(null===a)h=!0;else switch(k){case \"string\":case \"number\":h=!0;break;case \"object\":switch(a.$$typeof){case l:case n:h=!0}}if(h)return h=a,c=c(h),a=\"\"===d?\".\"+Q(h,0):d,I(c)?(e=\"\",null!=a&&(e=a.replace(P,\"$&/\")+\"/\"),R(c,b,e,\"\",function(a){return a})):null!=c&&(O(c)&&(c=N(c,e+(!c.key||h&&h.key===c.key?\"\":(\"\"+c.key).replace(P,\"$&/\")+\"/\")+a)),b.push(c)),1;h=0;d=\"\"===d?\".\":d+\":\";if(I(a))for(var g=0;g<a.length;g++){k=\na[g];var f=d+Q(k,g);h+=R(k,b,e,f,c)}else if(f=A(a),\"function\"===typeof f)for(a=f.call(a),g=0;!(k=a.next()).done;)k=k.value,f=d+Q(k,g++),h+=R(k,b,e,f,c);else if(\"object\"===k)throw b=String(a),Error(\"Objects are not valid as a React child (found: \"+(\"[object Object]\"===b?\"object with keys {\"+Object.keys(a).join(\", \")+\"}\":b)+\"). If you meant to render a collection of children, use an array instead.\");return h}\nfunction S(a,b,e){if(null==a)return a;var d=[],c=0;R(a,d,\"\",\"\",function(a){return b.call(e,a,c++)});return d}function T(a){if(-1===a._status){var b=a._result;b=b();b.then(function(b){if(0===a._status||-1===a._status)a._status=1,a._result=b},function(b){if(0===a._status||-1===a._status)a._status=2,a._result=b});-1===a._status&&(a._status=0,a._result=b)}if(1===a._status)return a._result.default;throw a._result;}\nvar U={current:null},V={transition:null},W={ReactCurrentDispatcher:U,ReactCurrentBatchConfig:V,ReactCurrentOwner:K};exports.Children={map:S,forEach:function(a,b,e){S(a,function(){b.apply(this,arguments)},e)},count:function(a){var b=0;S(a,function(){b++});return b},toArray:function(a){return S(a,function(a){return a})||[]},only:function(a){if(!O(a))throw Error(\"React.Children.only expected to receive a single React element child.\");return a}};exports.Component=E;exports.Fragment=p;\nexports.Profiler=r;exports.PureComponent=G;exports.StrictMode=q;exports.Suspense=w;exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=W;\nexports.cloneElement=function(a,b,e){if(null===a||void 0===a)throw Error(\"React.cloneElement(...): The argument must be a React element, but you passed \"+a+\".\");var d=C({},a.props),c=a.key,k=a.ref,h=a._owner;if(null!=b){void 0!==b.ref&&(k=b.ref,h=K.current);void 0!==b.key&&(c=\"\"+b.key);if(a.type&&a.type.defaultProps)var g=a.type.defaultProps;for(f in b)J.call(b,f)&&!L.hasOwnProperty(f)&&(d[f]=void 0===b[f]&&void 0!==g?g[f]:b[f])}var f=arguments.length-2;if(1===f)d.children=e;else if(1<f){g=Array(f);\nfor(var m=0;m<f;m++)g[m]=arguments[m+2];d.children=g}return{$$typeof:l,type:a.type,key:c,ref:k,props:d,_owner:h}};exports.createContext=function(a){a={$$typeof:u,_currentValue:a,_currentValue2:a,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null};a.Provider={$$typeof:t,_context:a};return a.Consumer=a};exports.createElement=M;exports.createFactory=function(a){var b=M.bind(null,a);b.type=a;return b};exports.createRef=function(){return{current:null}};\nexports.forwardRef=function(a){return{$$typeof:v,render:a}};exports.isValidElement=O;exports.lazy=function(a){return{$$typeof:y,_payload:{_status:-1,_result:a},_init:T}};exports.memo=function(a,b){return{$$typeof:x,type:a,compare:void 0===b?null:b}};exports.startTransition=function(a){var b=V.transition;V.transition={};try{a()}finally{V.transition=b}};exports.unstable_act=function(){throw Error(\"act(...) is not supported in production builds of React.\");};\nexports.useCallback=function(a,b){return U.current.useCallback(a,b)};exports.useContext=function(a){return U.current.useContext(a)};exports.useDebugValue=function(){};exports.useDeferredValue=function(a){return U.current.useDeferredValue(a)};exports.useEffect=function(a,b){return U.current.useEffect(a,b)};exports.useId=function(){return U.current.useId()};exports.useImperativeHandle=function(a,b,e){return U.current.useImperativeHandle(a,b,e)};\nexports.useInsertionEffect=function(a,b){return U.current.useInsertionEffect(a,b)};exports.useLayoutEffect=function(a,b){return U.current.useLayoutEffect(a,b)};exports.useMemo=function(a,b){return U.current.useMemo(a,b)};exports.useReducer=function(a,b,e){return U.current.useReducer(a,b,e)};exports.useRef=function(a){return U.current.useRef(a)};exports.useState=function(a){return U.current.useState(a)};exports.useSyncExternalStore=function(a,b,e){return U.current.useSyncExternalStore(a,b,e)};\nexports.useTransition=function(){return U.current.useTransition()};exports.version=\"18.2.0\";\n","import React from \"react\";\n\nexport default React;\n/* eslint no-underscore-dangle: \"off\" */\nexport const __esmModule = true;\nexport const {\n Fragment,\n StrictMode,\n Profiler,\n Suspense,\n Children,\n Component,\n PureComponent,\n cloneElement,\n createContext,\n createElement,\n createFactory,\n createRef,\n forwardRef,\n isValidElement,\n lazy,\n memo,\n startTransition,\n useCallback,\n useContext,\n useDebugValue,\n useDeferredValue,\n useEffect,\n useId,\n useImperativeHandle,\n useInsertionEffect,\n useLayoutEffect,\n useMemo,\n useReducer,\n useRef,\n useState,\n useSyncExternalStore,\n useTransition,\n version\n} = React;\n"],"names":["reactModule","exports","l","Symbol","for","n","p","q","r","t","u","v","w","x","y","z","iterator","B","isMounted","enqueueForceUpdate","enqueueReplaceState","enqueueSetState","C","Object","assign","D","E","a","b","e","this","props","context","refs","updater","F","G","prototype","isReactComponent","setState","Error","forceUpdate","H","constructor","isPureReactComponent","I","Array","isArray","J","hasOwnProperty","K","current","L","key","ref","__self","__source","M","d","c","k","h","call","g","arguments","length","children","f","m","defaultProps","$$typeof","type","_owner","O","P","Q","replace","escape","toString","R","N","push","A","next","done","value","String","keys","join","S","T","_status","_result","then","default","U","V","transition","W","ReactCurrentDispatcher","ReactCurrentBatchConfig","ReactCurrentOwner","react_production_min","Children","map","forEach","apply","count","toArray","only","Component","Fragment","Profiler","StrictMode","__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED","cloneElement","createContext","_currentValue","_currentValue2","_threadCount","Provider","Consumer","_defaultValue","_globalName","_context","createElement","bind","createRef","forwardRef","render","isValidElement","lazy","_payload","_init","memo","compare","startTransition","unstable_act","useCallback","useContext","useDebugValue","useDeferredValue","useEffect","useId","useImperativeHandle","useInsertionEffect","useLayoutEffect","useMemo","useReducer","useRef","useState","useSyncExternalStore","useTransition","version","require$$0","__esmModule","Suspense","PureComponent","createFactory","React"],"mappings":";8HAGEA,EAAAC,qCCMW,IAAIC,EAAEC,OAAOC,IAAI,iBAAiBC,EAAEF,OAAOC,IAAI,gBAAgBE,EAAEH,OAAOC,IAAI,kBAAkBG,EAAEJ,OAAOC,IAAI,qBAAqBI,EAAEL,OAAOC,IAAI,kBAAkBK,EAAEN,OAAOC,IAAI,kBAAkBM,EAAEP,OAAOC,IAAI,iBAAiBO,EAAER,OAAOC,IAAI,qBAAqBQ,EAAET,OAAOC,IAAI,kBAAkBS,EAAEV,OAAOC,IAAI,cAAcU,EAAEX,OAAOC,IAAI,cAAcW,EAA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sBECP,MAACC,GAAc,GACd5C,SACXA,EAAQE,WACRA,EAAUD,SACVA,EAAQ4C,SACRA,EAAQrD,SACRA,EAAQO,UACRA,EAAS+C,cACTA,EAAa1C,aACbA,EAAYC,cACZA,EAAaS,cACbA,EAAaiC,cACbA,EAAa/B,UACbA,EAASC,WACTA,EAAUE,eACVA,EAAcC,KACdA,EAAIG,KACJA,EAAIE,gBACJA,EAAeE,YACfA,EAAWC,WACXA,EAAUC,cACVA,EAAaC,iBACbA,EAAgBC,UAChBA,EAASC,MACTA,EAAKC,oBACLA,EAAmBC,mBACnBA,EAAkBC,gBAClBA,EAAeC,QACfA,EAAOC,WACPA,EAAUC,OACVA,EAAMC,SACNA,EAAQC,qBACRA,EAAoBC,cACpBA,EAAaC,QACbA,GACEM","x_google_ignoreList":[0,1]}
package/dist/index.d.ts CHANGED
@@ -1,11 +1,3 @@
1
1
  export { default as HvAppShellVitePlugin } from "./vite-plugin.js";
2
2
  export * from "./vite-plugin.js";
3
- declare global {
4
- /**
5
- * Returns the base path to the main app (`@self`).
6
- * @see https://github.com/lumada-design/hv-app-shell/blob/main/docs/config-file.md#apps
7
- * @see https://github.com/lumada-design/hv-app-shell/blob/main/client/packages/app-shell-vite-plugin/README.md#app_base_path-variable
8
- */
9
- const APP_BASE_PATH: string;
10
- }
11
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AACnE,cAAc,kBAAkB,CAAC;AAEjC,OAAO,CAAC,MAAM,CAAC;IACb;;;;OAIG;IACH,MAAM,aAAa,EAAE,MAAM,CAAC;CAC7B"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AACnE,cAAc,kBAAkB,CAAC"}
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AACnE,cAAc,kBAAkB,CAAC","sourcesContent":["export { default as HvAppShellVitePlugin } from \"./vite-plugin.js\";\nexport * from \"./vite-plugin.js\";\n\ndeclare global {\n /**\n * Returns the base path to the main app (`@self`).\n * @see https://github.com/lumada-design/hv-app-shell/blob/main/docs/config-file.md#apps\n * @see https://github.com/lumada-design/hv-app-shell/blob/main/client/packages/app-shell-vite-plugin/README.md#app_base_path-variable\n */\n const APP_BASE_PATH: string;\n}\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AACnE,cAAc,kBAAkB,CAAC","sourcesContent":["export { default as HvAppShellVitePlugin } from \"./vite-plugin.js\";\nexport * from \"./vite-plugin.js\";\n"]}
@@ -0,0 +1,8 @@
1
+ declare const _default: {
2
+ moduleId: string;
3
+ bundle: string;
4
+ bundleSrc: string;
5
+ virtualSrc: string;
6
+ }[];
7
+ export default _default;
8
+ //# sourceMappingURL=shared-dependencies.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"shared-dependencies.d.ts","sourceRoot":"","sources":["../src/shared-dependencies.ts"],"names":[],"mappings":";;;;;;AAAA,wBAuFE"}
@@ -0,0 +1,87 @@
1
+ export default [
2
+ {
3
+ moduleId: "react",
4
+ bundle: "react.production.min.js",
5
+ bundleSrc: "./esm-externals/react.production.min.js",
6
+ virtualSrc: `import * as React from "react";
7
+ export default React;
8
+
9
+ export {
10
+ Fragment,
11
+ StrictMode,
12
+ Profiler,
13
+ Suspense,
14
+ Children,
15
+ Component,
16
+ PureComponent,
17
+ cloneElement,
18
+ createContext,
19
+ createElement,
20
+ createFactory,
21
+ createRef,
22
+ forwardRef,
23
+ isValidElement,
24
+ lazy,
25
+ memo,
26
+ useCallback,
27
+ useContext,
28
+ useDebugValue,
29
+ useEffect,
30
+ useImperativeHandle,
31
+ useLayoutEffect,
32
+ useMemo,
33
+ useReducer,
34
+ useRef,
35
+ useState,
36
+ version,
37
+ } from "react";`
38
+ },
39
+ {
40
+ moduleId: "react-dom",
41
+ bundle: "react-dom.production.min.js",
42
+ bundleSrc: "./esm-externals/react-dom.production.min.js",
43
+ virtualSrc: `export {
44
+ default,
45
+ flushSync,
46
+ createPortal,
47
+ findDOMNode,
48
+ hydrate,
49
+ render,
50
+ unmountComponentAtNode,
51
+ unstable_batchedUpdates,
52
+ unstable_renderSubtreeIntoContainer,
53
+ version,
54
+ } from "react-dom";`
55
+ },
56
+ {
57
+ moduleId: "react-router-dom",
58
+ bundle: "react-router-dom.production.min.js",
59
+ bundleSrc: "./esm-externals/react-router-dom.production.min.js",
60
+ virtualSrc: `export * from "react-router-dom";`
61
+ },
62
+ {
63
+ moduleId: "@emotion/react",
64
+ bundle: "emotion-react.production.min.js",
65
+ bundleSrc: "./esm-externals/emotion-react.production.min.js",
66
+ virtualSrc: `export * from "@emotion/react";`
67
+ },
68
+ {
69
+ moduleId: "@emotion/cache",
70
+ bundle: "emotion-cache.production.min.js",
71
+ bundleSrc: "./esm-externals/emotion-cache.production.min.js",
72
+ virtualSrc: `import createCache from "@emotion/cache"; export default createCache;`
73
+ },
74
+ {
75
+ moduleId: "@hitachivantara/app-shell-shared",
76
+ bundle: "app-shell-shared.esm.js",
77
+ bundleSrc: "@hitachivantara/app-shell-shared/bundles/app-shell-shared.esm.js",
78
+ virtualSrc: `export * from "@hitachivantara/app-shell-shared";`
79
+ },
80
+ {
81
+ moduleId: "@hitachivantara/uikit-react-shared",
82
+ bundle: "uikit-react-shared.esm.js",
83
+ bundleSrc: "@hitachivantara/uikit-react-shared/bundles/uikit-react-shared.esm.js",
84
+ virtualSrc: `export * from "@hitachivantara/uikit-react-shared";`
85
+ }
86
+ ];
87
+ //# sourceMappingURL=shared-dependencies.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"shared-dependencies.js","sourceRoot":"","sources":["../src/shared-dependencies.ts"],"names":[],"mappings":"AAAA,eAAe;IACb;QACE,QAAQ,EAAE,OAAO;QACjB,MAAM,EAAE,yBAAyB;QACjC,SAAS,EAAE,yCAAyC;QACpD,UAAU,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oBA+BI;KACjB;IACD;QACE,QAAQ,EAAE,WAAW;QACrB,MAAM,EAAE,6BAA6B;QACrC,SAAS,EAAE,6CAA6C;QACxD,UAAU,EAAE;;;;;;;;;;;wBAWQ;KACrB;IACD;QACE,QAAQ,EAAE,kBAAkB;QAC5B,MAAM,EAAE,oCAAoC;QAC5C,SAAS,EAAE,oDAAoD;QAC/D,UAAU,EAAE,mCAAmC;KAChD;IACD;QACE,QAAQ,EAAE,gBAAgB;QAC1B,MAAM,EAAE,iCAAiC;QACzC,SAAS,EAAE,iDAAiD;QAC5D,UAAU,EAAE,iCAAiC;KAC9C;IACD;QACE,QAAQ,EAAE,gBAAgB;QAC1B,MAAM,EAAE,iCAAiC;QACzC,SAAS,EAAE,iDAAiD;QAC5D,UAAU,EAAE,uEAAuE;KACpF;IACD;QACE,QAAQ,EAAE,kCAAkC;QAC5C,MAAM,EAAE,yBAAyB;QACjC,SAAS,EACP,kEAAkE;QACpE,UAAU,EAAE,mDAAmD;KAChE;IACD;QACE,QAAQ,EAAE,oCAAoC;QAC9C,MAAM,EAAE,2BAA2B;QACnC,SAAS,EACP,sEAAsE;QACxE,UAAU,EAAE,qDAAqD;KAClE;CACF,CAAC","sourcesContent":["export default [\n {\n moduleId: \"react\",\n bundle: \"react.production.min.js\",\n bundleSrc: \"./esm-externals/react.production.min.js\",\n virtualSrc: `import * as React from \"react\";\n export default React;\n\n export {\n Fragment,\n StrictMode,\n Profiler,\n Suspense,\n Children,\n Component,\n PureComponent,\n cloneElement,\n createContext,\n createElement,\n createFactory,\n createRef,\n forwardRef,\n isValidElement,\n lazy,\n memo,\n useCallback,\n useContext,\n useDebugValue,\n useEffect,\n useImperativeHandle,\n useLayoutEffect,\n useMemo,\n useReducer,\n useRef,\n useState,\n version,\n } from \"react\";`\n },\n {\n moduleId: \"react-dom\",\n bundle: \"react-dom.production.min.js\",\n bundleSrc: \"./esm-externals/react-dom.production.min.js\",\n virtualSrc: `export {\n default,\n flushSync,\n createPortal,\n findDOMNode,\n hydrate,\n render,\n unmountComponentAtNode,\n unstable_batchedUpdates,\n unstable_renderSubtreeIntoContainer,\n version,\n } from \"react-dom\";`\n },\n {\n moduleId: \"react-router-dom\",\n bundle: \"react-router-dom.production.min.js\",\n bundleSrc: \"./esm-externals/react-router-dom.production.min.js\",\n virtualSrc: `export * from \"react-router-dom\";`\n },\n {\n moduleId: \"@emotion/react\",\n bundle: \"emotion-react.production.min.js\",\n bundleSrc: \"./esm-externals/emotion-react.production.min.js\",\n virtualSrc: `export * from \"@emotion/react\";`\n },\n {\n moduleId: \"@emotion/cache\",\n bundle: \"emotion-cache.production.min.js\",\n bundleSrc: \"./esm-externals/emotion-cache.production.min.js\",\n virtualSrc: `import createCache from \"@emotion/cache\"; export default createCache;`\n },\n {\n moduleId: \"@hitachivantara/app-shell-shared\",\n bundle: \"app-shell-shared.esm.js\",\n bundleSrc:\n \"@hitachivantara/app-shell-shared/bundles/app-shell-shared.esm.js\",\n virtualSrc: `export * from \"@hitachivantara/app-shell-shared\";`\n },\n {\n moduleId: \"@hitachivantara/uikit-react-shared\",\n bundle: \"uikit-react-shared.esm.js\",\n bundleSrc:\n \"@hitachivantara/uikit-react-shared/bundles/uikit-react-shared.esm.js\",\n virtualSrc: `export * from \"@hitachivantara/uikit-react-shared\";`\n }\n];\n"]}
@@ -0,0 +1,5 @@
1
+ export default function getVirtualEntrypoints(inlineConfig: boolean): {
2
+ "/virtual/main.tsx": string;
3
+ "virtual:App.tsx": string;
4
+ };
5
+ //# sourceMappingURL=virtual-entrypoints.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"virtual-entrypoints.d.ts","sourceRoot":"","sources":["../src/virtual-entrypoints.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,OAAO,UAAU,qBAAqB,CAAC,YAAY,EAAE,OAAO;;;EAoClE"}
@@ -0,0 +1,37 @@
1
+ export default function getVirtualEntrypoints(inlineConfig) {
2
+ return {
3
+ "/virtual/main.tsx": `import React, { Suspense } from "react";
4
+ import ReactDOM from "react-dom/client";
5
+ import App from "virtual:App.tsx";
6
+
7
+ const root = ReactDOM.createRoot(document.getElementById("hv-root"));
8
+
9
+ root.render(React.createElement(
10
+ Suspense,
11
+ { fallback: true },
12
+ React.createElement(App, null)
13
+ ));`,
14
+ "virtual:App.tsx": inlineConfig
15
+ ? `import React from "react";
16
+ import { HvAppShell } from "@hitachivantara/app-shell";
17
+
18
+ const App = () => {
19
+ return React.createElement(HvAppShell, {
20
+ config: globalThis.__appshell_config__
21
+ });
22
+ };
23
+
24
+ export default App;`
25
+ : `import React from "react";
26
+ import { HvAppShell } from "@hitachivantara/app-shell";
27
+
28
+ const App = () => {
29
+ return React.createElement(HvAppShell, {
30
+ configUrl: document.baseURI + "app-shell.config.json"
31
+ });
32
+ };
33
+
34
+ export default App;`
35
+ };
36
+ }
37
+ //# sourceMappingURL=virtual-entrypoints.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"virtual-entrypoints.js","sourceRoot":"","sources":["../src/virtual-entrypoints.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,OAAO,UAAU,qBAAqB,CAAC,YAAqB;IACjE,OAAO;QACL,mBAAmB,EAAE;;;;;;;;;;IAUrB;QAEA,iBAAiB,EAAE,YAAY;YAC7B,CAAC,CAAC;;;;;;;;;oBASY;YACd,CAAC,CAAC;;;;;;;;;oBASY;KACjB,CAAC;AACJ,CAAC","sourcesContent":["export default function getVirtualEntrypoints(inlineConfig: boolean) {\n return {\n \"/virtual/main.tsx\": `import React, { Suspense } from \"react\";\nimport ReactDOM from \"react-dom/client\";\nimport App from \"virtual:App.tsx\";\n\nconst root = ReactDOM.createRoot(document.getElementById(\"hv-root\"));\n\nroot.render(React.createElement(\n Suspense,\n { fallback: true },\n React.createElement(App, null)\n));`,\n\n \"virtual:App.tsx\": inlineConfig\n ? `import React from \"react\";\nimport { HvAppShell } from \"@hitachivantara/app-shell\";\n\nconst App = () => {\n return React.createElement(HvAppShell, {\n config: globalThis.__appshell_config__\n });\n};\n\nexport default App;`\n : `import React from \"react\";\nimport { HvAppShell } from \"@hitachivantara/app-shell\";\n\nconst App = () => {\n return React.createElement(HvAppShell, {\n configUrl: document.baseURI + \"app-shell.config.json\"\n });\n};\n\nexport default App;`\n };\n}\n"]}
@@ -0,0 +1,14 @@
1
+ import type { PluginOption } from "vite";
2
+ import type { HvAppShellConfig } from "@hitachivantara/app-shell-shared";
3
+ /**
4
+ * Process configuration, executing several tasks:
5
+ * - Create rollup configuration to support module creation
6
+ * - Generates final transformed configuration json
7
+ * - "base" value is always "./" for build, and main app baseUrl for preview or dev
8
+ * @param root Project root directory.
9
+ * @param appShellConfig The original App Shell configuration json.
10
+ * @param selfAppName The name of the application bundle being built.
11
+ * @param buildEntryPoint If true, the index.html entry point will be added to the bundle.
12
+ */
13
+ export default function processConfiguration(root: string, appShellConfig: HvAppShellConfig, selfAppName: string, buildEntryPoint: boolean, inlineConfig: boolean, generateEmptyShell: boolean): PluginOption;
14
+ //# sourceMappingURL=vite-configuration-processor-plugin.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"vite-configuration-processor-plugin.d.ts","sourceRoot":"","sources":["../src/vite-configuration-processor-plugin.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,YAAY,EAAc,MAAM,MAAM,CAAC;AAGrD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,kCAAkC,CAAC;AASzE;;;;;;;;;GASG;AACH,MAAM,CAAC,OAAO,UAAU,oBAAoB,CAC1C,IAAI,EAAE,MAAM,EACZ,cAAc,EAAE,gBAAgB,EAChC,WAAW,EAAE,MAAM,EACnB,eAAe,EAAE,OAAO,EACxB,YAAY,EAAE,OAAO,EACrB,kBAAkB,EAAE,OAAO,GAC1B,YAAY,CA4Kd"}
@@ -0,0 +1,161 @@
1
+ import fs from "fs";
2
+ import path from "path";
3
+ import { getAppModules, getMainApp, getPublicPath } from "./config-utils.js";
4
+ var ViteCommand;
5
+ (function (ViteCommand) {
6
+ ViteCommand["BUILD"] = "build";
7
+ ViteCommand["SERVE"] = "serve";
8
+ })(ViteCommand || (ViteCommand = {}));
9
+ /**
10
+ * Process configuration, executing several tasks:
11
+ * - Create rollup configuration to support module creation
12
+ * - Generates final transformed configuration json
13
+ * - "base" value is always "./" for build, and main app baseUrl for preview or dev
14
+ * @param root Project root directory.
15
+ * @param appShellConfig The original App Shell configuration json.
16
+ * @param selfAppName The name of the application bundle being built.
17
+ * @param buildEntryPoint If true, the index.html entry point will be added to the bundle.
18
+ */
19
+ export default function processConfiguration(root, appShellConfig, selfAppName, buildEntryPoint, inlineConfig, generateEmptyShell) {
20
+ const selfApp = getMainApp(appShellConfig);
21
+ let finalAppShellConfig;
22
+ return {
23
+ name: "vite-plugin-appShell-configuration-processor",
24
+ config(config, { command }) {
25
+ const projectRoot = root ?? config.root;
26
+ const publicPath = getPublicPath(appShellConfig);
27
+ let appModules = {};
28
+ if (!generateEmptyShell) {
29
+ appModules = getAppModules(projectRoot, appShellConfig, selfAppName);
30
+ console.info("Modules exported by the application bundle:", appModules);
31
+ }
32
+ return {
33
+ build: {
34
+ rollupOptions: {
35
+ preserveEntrySignatures: "strict",
36
+ input: {
37
+ ...(buildEntryPoint &&
38
+ fs.existsSync(path.resolve(projectRoot, "index.html"))
39
+ ? { main: path.resolve(projectRoot, "index.html") }
40
+ : {}),
41
+ ...appModules
42
+ },
43
+ output: {
44
+ entryFileNames: "[name].js"
45
+ }
46
+ }
47
+ },
48
+ // if serve (preview/dev) it uses the baseUrl. Otherwise(build), use ./
49
+ base: command === ViteCommand.SERVE ? publicPath : "./"
50
+ };
51
+ },
52
+ /**
53
+ * Rollup hook with the info for bundle generation
54
+ * It will be used to create a new configuration with:
55
+ * - bundles replace with the final location (e.g. -> "bundle": "src/pages/Main" transformed to "bundle": "pages/Main.js",
56
+ * @param options build options
57
+ * @param bundle bundles information
58
+ */
59
+ async generateBundle(options, bundle) {
60
+ if (generateEmptyShell) {
61
+ return;
62
+ }
63
+ // obtain the directory (dist) where the new config file will be placed
64
+ let targetDir;
65
+ if (options.dir) {
66
+ targetDir = options.dir;
67
+ }
68
+ else if (options.file) {
69
+ targetDir = path.dirname(options.file);
70
+ }
71
+ if (!targetDir) {
72
+ throw new Error("Please set outputPath, so we can know where to place the json file");
73
+ }
74
+ // create the targetDir if it does not exist
75
+ if (!fs.existsSync(targetDir)) {
76
+ fs.mkdirSync(targetDir, { recursive: true });
77
+ }
78
+ /**
79
+ * Creating a map with each chunk and the final name. Only the bundles with type=chunk are important
80
+ * Filename do not include the src path at the value
81
+ */
82
+ const chunks = {};
83
+ Object.keys(bundle).forEach(key => {
84
+ const chunk = bundle[key];
85
+ if (chunk.type === "chunk") {
86
+ const outputChunk = chunk;
87
+ if (outputChunk.isEntry) {
88
+ const { fileName } = outputChunk;
89
+ const { name } = outputChunk;
90
+ chunks[name] = fileName;
91
+ }
92
+ }
93
+ });
94
+ if (selfApp) {
95
+ selfApp.views = selfApp.views?.map(view => {
96
+ const bundleName = view.bundle
97
+ .replace(/^src\//, "")
98
+ .replaceAll(/\$/g, "_");
99
+ return {
100
+ ...view,
101
+ bundle: chunks[bundleName]
102
+ };
103
+ });
104
+ selfApp.modules = selfApp.modules?.map(module => {
105
+ const bundleName = module.bundle.replace(/^src\//, "");
106
+ return {
107
+ ...module,
108
+ bundle: chunks[bundleName]
109
+ };
110
+ });
111
+ // replace references to @self with the name of this application bundle
112
+ selfApp.id = selfAppName;
113
+ // also replace implicit references to selfApp in other parts of the configuration
114
+ const { theming } = appShellConfig;
115
+ if (theming != null) {
116
+ theming.themes = theming.themes?.map(theme => {
117
+ if (theme.startsWith("@self/") ||
118
+ theme.startsWith(selfAppName) ||
119
+ theme.startsWith("/src/")) {
120
+ const bundleName = theme
121
+ .replace(/^@self\//, "")
122
+ .replace(new RegExp(`^${selfAppName}/`), "")
123
+ .replace(/^(\/?)src\//, "");
124
+ return `${selfAppName}/${chunks[bundleName]}`;
125
+ }
126
+ return theme;
127
+ });
128
+ }
129
+ }
130
+ finalAppShellConfig = buildEntryPoint
131
+ ? { ...appShellConfig }
132
+ : {
133
+ name: appShellConfig.name,
134
+ apps: selfApp != null ? [selfApp] : undefined
135
+ };
136
+ if (!inlineConfig) {
137
+ fs.writeFileSync(path.resolve(targetDir, "app-shell.config.json"), JSON.stringify(finalAppShellConfig));
138
+ }
139
+ },
140
+ transformIndexHtml: {
141
+ transform: html => {
142
+ if (!inlineConfig) {
143
+ return undefined;
144
+ }
145
+ return {
146
+ html,
147
+ tags: [
148
+ {
149
+ tag: "script",
150
+ injectTo: "head-prepend",
151
+ children: `globalThis.__appshell_config__ = ${generateEmptyShell
152
+ ? "%%APPSHELL_CONFIG%%"
153
+ : JSON.stringify(finalAppShellConfig ?? appShellConfig)};`
154
+ }
155
+ ]
156
+ };
157
+ }
158
+ }
159
+ };
160
+ }
161
+ //# sourceMappingURL=vite-configuration-processor-plugin.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"vite-configuration-processor-plugin.js","sourceRoot":"","sources":["../src/vite-configuration-processor-plugin.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,IAAI,CAAC;AACpB,OAAO,IAAI,MAAM,MAAM,CAAC;AAOxB,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAE7E,IAAK,WAGJ;AAHD,WAAK,WAAW;IACd,8BAAe,CAAA;IACf,8BAAe,CAAA;AACjB,CAAC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;aACF;YAED,mBAAmB,GAAG,eAAe;gBACnC,CAAC,CAAC,EAAE,GAAG,cAAc,EAAE;gBACvB,CAAC,CAAC;oBACE,IAAI,EAAE,cAAc,CAAC,IAAI;oBACzB,IAAI,EAAE,OAAO,IAAI,IAAI,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS;iBAC9C,CAAC;YAEN,IAAI,CAAC,YAAY,EAAE;gBACjB,EAAE,CAAC,aAAa,CACd,IAAI,CAAC,OAAO,CAAC,SAAS,EAAE,uBAAuB,CAAC,EAChD,IAAI,CAAC,SAAS,CAAC,mBAAmB,CAAC,CACpC,CAAC;aACH;QACH,CAAC;QAED,kBAAkB,EAAE;YAClB,SAAS,EAAE,IAAI,CAAC,EAAE;gBAChB,IAAI,CAAC,YAAY,EAAE;oBACjB,OAAO,SAAS,CAAC;iBAClB;gBAED,OAAO;oBACL,IAAI;oBAEJ,IAAI,EAAE;wBACJ;4BACE,GAAG,EAAE,QAAQ;4BACb,QAAQ,EAAE,cAAc;4BACxB,QAAQ,EAAE,oCACR,kBAAkB;gCAChB,CAAC,CAAC,qBAAqB;gCACvB,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,mBAAmB,IAAI,cAAc,CAC1D,GAAG;yBACJ;qBACF;iBACF,CAAC;YACJ,CAAC;SACF;KACF,CAAC;AACJ,CAAC","sourcesContent":["import fs from \"fs\";\nimport path from \"path\";\n\nimport type { PluginOption, UserConfig } from \"vite\";\nimport type { NormalizedOutputOptions, OutputBundle } from \"rollup\";\n\nimport type { HvAppShellConfig } from \"@hitachivantara/app-shell-shared\";\n\nimport { getAppModules, getMainApp, getPublicPath } from \"./config-utils.js\";\n\nenum ViteCommand {\n BUILD = \"build\",\n SERVE = \"serve\"\n}\n\n/**\n * Process configuration, executing several tasks:\n * - Create rollup configuration to support module creation\n * - Generates final transformed configuration json\n * - \"base\" value is always \"./\" for build, and main app baseUrl for preview or dev\n * @param root Project root directory.\n * @param appShellConfig The original App Shell configuration json.\n * @param selfAppName The name of the application bundle being built.\n * @param buildEntryPoint If true, the index.html entry point will be added to the bundle.\n */\nexport default function processConfiguration(\n root: string,\n appShellConfig: HvAppShellConfig,\n selfAppName: string,\n buildEntryPoint: boolean,\n inlineConfig: boolean,\n generateEmptyShell: boolean\n): PluginOption {\n const selfApp = getMainApp(appShellConfig);\n let finalAppShellConfig: HvAppShellConfig;\n\n return {\n name: \"vite-plugin-appShell-configuration-processor\",\n\n config(config: UserConfig, { command }) {\n const projectRoot = root ?? config.root;\n\n const publicPath = getPublicPath(appShellConfig);\n let appModules = {};\n if (!generateEmptyShell) {\n appModules = getAppModules(projectRoot, appShellConfig, selfAppName);\n console.info(\"Modules exported by the application bundle:\", appModules);\n }\n\n return {\n build: {\n rollupOptions: {\n preserveEntrySignatures: \"strict\",\n input: {\n ...(buildEntryPoint &&\n fs.existsSync(path.resolve(projectRoot, \"index.html\"))\n ? { main: path.resolve(projectRoot, \"index.html\") }\n : {}),\n ...appModules\n },\n output: {\n entryFileNames: \"[name].js\"\n }\n }\n },\n // if serve (preview/dev) it uses the baseUrl. Otherwise(build), use ./\n base: command === ViteCommand.SERVE ? publicPath : \"./\"\n };\n },\n\n /**\n * Rollup hook with the info for bundle generation\n * It will be used to create a new configuration with:\n * - bundles replace with the final location (e.g. -> \"bundle\": \"src/pages/Main\" transformed to \"bundle\": \"pages/Main.js\",\n * @param options build options\n * @param bundle bundles information\n */\n async generateBundle(\n options: NormalizedOutputOptions,\n bundle: OutputBundle\n ) {\n if (generateEmptyShell) {\n return;\n }\n\n // obtain the directory (dist) where the new config file will be placed\n let targetDir: string | undefined;\n if (options.dir) {\n targetDir = options.dir;\n } else if (options.file) {\n targetDir = path.dirname(options.file);\n }\n\n if (!targetDir) {\n throw new Error(\n \"Please set outputPath, so we can know where to place the json file\"\n );\n }\n\n // create the targetDir if it does not exist\n if (!fs.existsSync(targetDir)) {\n fs.mkdirSync(targetDir, { recursive: true });\n }\n\n /**\n * Creating a map with each chunk and the final name. Only the bundles with type=chunk are important\n * Filename do not include the src path at the value\n */\n const chunks: Record<string, string> = {};\n\n Object.keys(bundle).forEach(key => {\n const chunk = bundle[key];\n if (chunk.type === \"chunk\") {\n const outputChunk = chunk;\n if (outputChunk.isEntry) {\n const { fileName } = outputChunk;\n const { name } = outputChunk;\n\n chunks[name] = fileName;\n }\n }\n });\n\n if (selfApp) {\n selfApp.views = selfApp.views?.map(view => {\n const bundleName = view.bundle\n .replace(/^src\\//, \"\")\n .replaceAll(/\\$/g, \"_\");\n return {\n ...view,\n bundle: chunks[bundleName]\n };\n });\n selfApp.modules = selfApp.modules?.map(module => {\n const bundleName = module.bundle.replace(/^src\\//, \"\");\n return {\n ...module,\n bundle: chunks[bundleName]\n };\n });\n\n // replace references to @self with the name of this application bundle\n selfApp.id = selfAppName;\n\n // also replace implicit references to selfApp in other parts of the configuration\n const { theming } = appShellConfig;\n if (theming != null) {\n theming.themes = theming.themes?.map(theme => {\n if (\n theme.startsWith(\"@self/\") ||\n theme.startsWith(selfAppName) ||\n theme.startsWith(\"/src/\")\n ) {\n const bundleName = theme\n .replace(/^@self\\//, \"\")\n .replace(new RegExp(`^${selfAppName}/`), \"\")\n .replace(/^(\\/?)src\\//, \"\");\n return `${selfAppName}/${chunks[bundleName]}`;\n }\n\n return theme;\n });\n }\n }\n\n finalAppShellConfig = buildEntryPoint\n ? { ...appShellConfig }\n : {\n name: appShellConfig.name,\n apps: selfApp != null ? [selfApp] : undefined\n };\n\n if (!inlineConfig) {\n fs.writeFileSync(\n path.resolve(targetDir, \"app-shell.config.json\"),\n JSON.stringify(finalAppShellConfig)\n );\n }\n },\n\n transformIndexHtml: {\n transform: html => {\n if (!inlineConfig) {\n return undefined;\n }\n\n return {\n html,\n\n tags: [\n {\n tag: \"script\",\n injectTo: \"head-prepend\",\n children: `globalThis.__appshell_config__ = ${\n generateEmptyShell\n ? \"%%APPSHELL_CONFIG%%\"\n : JSON.stringify(finalAppShellConfig ?? appShellConfig)\n };`\n }\n ]\n };\n }\n }\n };\n}\n"]}
@@ -0,0 +1,8 @@
1
+ import type { PluginOption } from "vite";
2
+ import type { HvAppShellConfig } from "@hitachivantara/app-shell-shared";
3
+ /**
4
+ * Add the <BASE> tag at index.html file. Tag value is obtained by the main app ({@link #getMainApp}) baseUrl ({@link #getPublicPath})‘
5
+ * @param appShellConfig The app shell configuration.
6
+ */
7
+ export default function generateBaseTag(appShellConfig: HvAppShellConfig, generateEmptyShell: boolean): PluginOption;
8
+ //# sourceMappingURL=vite-generate-base-plugin.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"vite-generate-base-plugin.d.ts","sourceRoot":"","sources":["../src/vite-generate-base-plugin.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,MAAM,CAAC;AAEzC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,kCAAkC,CAAC;AAIzE;;;GAGG;AACH,MAAM,CAAC,OAAO,UAAU,eAAe,CACrC,cAAc,EAAE,gBAAgB,EAChC,kBAAkB,EAAE,OAAO,GAC1B,YAAY,CAgCd"}
@@ -0,0 +1,32 @@
1
+ import { getPublicPath } from "./config-utils.js";
2
+ /**
3
+ * Add the <BASE> tag at index.html file. Tag value is obtained by the main app ({@link #getMainApp}) baseUrl ({@link #getPublicPath})‘
4
+ * @param appShellConfig The app shell configuration.
5
+ */
6
+ export default function generateBaseTag(appShellConfig, generateEmptyShell) {
7
+ const publicPath = getPublicPath(appShellConfig);
8
+ return {
9
+ name: "vite-plugin-generate-base",
10
+ enforce: "pre",
11
+ transformIndexHtml: {
12
+ enforce: "post",
13
+ transform: (html) => ({
14
+ html: generateEmptyShell || appShellConfig.name != null
15
+ ? html.replace(/<title>(.*?)<\/title>/, `<title>${generateEmptyShell
16
+ ? "%%APPSHELL_TITLE%%"
17
+ : appShellConfig.name}</title>`)
18
+ : html,
19
+ tags: [
20
+ {
21
+ tag: "base",
22
+ attrs: {
23
+ href: generateEmptyShell ? "%%APPSHELL_BASE%%" : publicPath
24
+ },
25
+ injectTo: "head-prepend"
26
+ }
27
+ ]
28
+ })
29
+ }
30
+ };
31
+ }
32
+ //# sourceMappingURL=vite-generate-base-plugin.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"vite-generate-base-plugin.js","sourceRoot":"","sources":["../src/vite-generate-base-plugin.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAElD;;;GAGG;AACH,MAAM,CAAC,OAAO,UAAU,eAAe,CACrC,cAAgC,EAChC,kBAA2B;IAE3B,MAAM,UAAU,GAAG,aAAa,CAAC,cAAc,CAAC,CAAC;IAEjD,OAAO;QACL,IAAI,EAAE,2BAA2B;QACjC,OAAO,EAAE,KAAK;QACd,kBAAkB,EAAE;YAClB,OAAO,EAAE,MAAM;YACf,SAAS,EAAE,CAAC,IAAY,EAAE,EAAE,CAAC,CAAC;gBAC5B,IAAI,EACF,kBAAkB,IAAI,cAAc,CAAC,IAAI,IAAI,IAAI;oBAC/C,CAAC,CAAC,IAAI,CAAC,OAAO,CACV,uBAAuB,EACvB,UACE,kBAAkB;wBAChB,CAAC,CAAC,oBAAoB;wBACtB,CAAC,CAAC,cAAc,CAAC,IACrB,UAAU,CACX;oBACH,CAAC,CAAC,IAAI;gBACV,IAAI,EAAE;oBACJ;wBACE,GAAG,EAAE,MAAM;wBACX,KAAK,EAAE;4BACL,IAAI,EAAE,kBAAkB,CAAC,CAAC,CAAC,mBAAmB,CAAC,CAAC,CAAC,UAAU;yBAC5D;wBACD,QAAQ,EAAE,cAAc;qBACzB;iBACF;aACF,CAAC;SACH;KACF,CAAC;AACJ,CAAC","sourcesContent":["import type { PluginOption } from \"vite\";\n\nimport type { HvAppShellConfig } from \"@hitachivantara/app-shell-shared\";\n\nimport { getPublicPath } from \"./config-utils.js\";\n\n/**\n * Add the <BASE> tag at index.html file. Tag value is obtained by the main app ({@link #getMainApp}) baseUrl ({@link #getPublicPath})‘\n * @param appShellConfig The app shell configuration.\n */\nexport default function generateBaseTag(\n appShellConfig: HvAppShellConfig,\n generateEmptyShell: boolean\n): PluginOption {\n const publicPath = getPublicPath(appShellConfig);\n\n return {\n name: \"vite-plugin-generate-base\",\n enforce: \"pre\",\n transformIndexHtml: {\n enforce: \"post\",\n transform: (html: string) => ({\n html:\n generateEmptyShell || appShellConfig.name != null\n ? html.replace(\n /<title>(.*?)<\\/title>/,\n `<title>${\n generateEmptyShell\n ? \"%%APPSHELL_TITLE%%\"\n : appShellConfig.name\n }</title>`\n )\n : html,\n tags: [\n {\n tag: \"base\",\n attrs: {\n href: generateEmptyShell ? \"%%APPSHELL_BASE%%\" : publicPath\n },\n injectTo: \"head-prepend\"\n }\n ]\n })\n }\n };\n}\n"]}
@@ -0,0 +1,3 @@
1
+ import type { PluginOption } from "vite";
2
+ export default function generateBashScript(externalImportMap: boolean, inlineConfig: boolean): PluginOption;
3
+ //# sourceMappingURL=vite-generate-bash-script-plugin.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"vite-generate-bash-script-plugin.d.ts","sourceRoot":"","sources":["../src/vite-generate-bash-script-plugin.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,YAAY,EAAkB,MAAM,MAAM,CAAC;AAIzD,MAAM,CAAC,OAAO,UAAU,kBAAkB,CACxC,iBAAiB,EAAE,OAAO,EAC1B,YAAY,EAAE,OAAO,GACpB,YAAY,CAuId"}