@hitachivantara/app-shell-vite-plugin 2.1.12 → 2.2.1
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.
- package/dist/esm-externals/emotion-cache.production.min.js +1 -1
- package/dist/esm-externals/emotion-cache.production.min.js.map +1 -1
- package/dist/esm-externals/emotion-react.production.min.js +1 -1
- package/dist/esm-externals/emotion-react.production.min.js.map +1 -1
- package/dist/esm-externals/react-dom.production.min.js +2 -2
- package/dist/esm-externals/react-dom.production.min.js.map +1 -1
- package/dist/esm-externals/react-router-dom.production.min.js +5 -5
- package/dist/esm-externals/react-router-dom.production.min.js.map +1 -1
- package/dist/esm-externals/react.production.min.js +1 -1
- package/dist/esm-externals/react.production.min.js.map +1 -1
- package/dist/locales-utils.d.ts +44 -0
- package/dist/locales-utils.js +166 -0
- package/dist/vite-locales-plugin.d.ts +12 -0
- package/dist/vite-locales-plugin.js +137 -0
- package/dist/vite-plugin.js +3 -0
- package/package.json +4 -4
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/* @preserve react@18.3.1 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,n={exports:{}},o={};function u(){if(t)return o;t=1;var e=Symbol.for("react.element"),r=Symbol.for("react.portal"),n=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;var 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,
|
|
2
|
+
function e(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var t,r,n={exports:{}},o={};function u(){if(t)return o;t=1;var e=Symbol.for("react.element"),r=Symbol.for("react.portal"),n=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;var 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};function D(){throw Error("act(...) is not supported in production builds of React.")}return o.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}},o.Component=h,o.Fragment=n,o.Profiler=a,o.PureComponent=b,o.StrictMode=u,o.Suspense=s,o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=T,o.act=D,o.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}},o.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},o.createElement=$,o.createFactory=function(e){var t=$.bind(null,e);return t.type=e,t},o.createRef=function(){return{current:null}},o.forwardRef=function(e){return{$$typeof:i,render:e}},o.isValidElement=k,o.lazy=function(e){return{$$typeof:p,_payload:{_status:-1,_result:e},_init:P}},o.memo=function(e,t){return{$$typeof:l,type:e,compare:void 0===t?null:t}},o.startTransition=function(e){var t=V.transition;V.transition={};try{e()}finally{V.transition=t}},o.unstable_act=D,o.useCallback=function(e,t){return I.current.useCallback(e,t)},o.useContext=function(e){return I.current.useContext(e)},o.useDebugValue=function(){},o.useDeferredValue=function(e){return I.current.useDeferredValue(e)},o.useEffect=function(e,t){return I.current.useEffect(e,t)},o.useId=function(){return I.current.useId()},o.useImperativeHandle=function(e,t,r){return I.current.useImperativeHandle(e,t,r)},o.useInsertionEffect=function(e,t){return I.current.useInsertionEffect(e,t)},o.useLayoutEffect=function(e,t){return I.current.useLayoutEffect(e,t)},o.useMemo=function(e,t){return I.current.useMemo(e,t)},o.useReducer=function(e,t,r){return I.current.useReducer(e,t,r)},o.useRef=function(e){return I.current.useRef(e)},o.useState=function(e){return I.current.useState(e)},o.useSyncExternalStore=function(e,t,r){return I.current.useSyncExternalStore(e,t,r)},o.useTransition=function(){return I.current.useTransition()},o.version="18.3.1",o}var a=e((r||(r=1,n.exports=u()),n.exports));const c=!0,{Fragment:f,StrictMode:i,Profiler:s,Suspense:l,Children:p,Component:y,PureComponent:d,cloneElement:m,createContext:_,createElement:h,createFactory:v,createRef:b,forwardRef:S,isValidElement:E,lazy:R,memo:C,startTransition:w,useCallback:$,useContext:k,useDebugValue:g,useDeferredValue:x,useEffect:j,useId:O,useImperativeHandle:P,useInsertionEffect:I,useLayoutEffect:V,useMemo:T,useReducer:D,useRef:F,useState:M,useSyncExternalStore:A,useTransition:L,version:U}=a;export{p as Children,y as Component,f as Fragment,s as Profiler,d as PureComponent,i as StrictMode,l as Suspense,c as __esmModule,m as cloneElement,_ as createContext,h as createElement,v as createFactory,b as createRef,a as default,S as forwardRef,E as isValidElement,R as lazy,C as memo,w as startTransition,$ as useCallback,k as useContext,g as useDebugValue,x as useDeferredValue,j as useEffect,O as useId,P as useImperativeHandle,I as useInsertionEffect,V as useLayoutEffect,T as useMemo,D as useReducer,F as useRef,M as useState,A as useSyncExternalStore,L as useTransition,U as version};
|
|
3
3
|
//# sourceMappingURL=react.production.min.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"react.production.min.js","sources":["../../../../node_modules/react/cjs/react.production.min.js","../../../../node_modules/react/index.js","../../src/export-externals/export-react.js"],"sourcesContent":["/**\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};function X(){throw Error(\"act(...) is not supported in production builds of React.\");}\nexports.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;exports.Profiler=r;exports.PureComponent=G;exports.StrictMode=q;exports.Suspense=w;\nexports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=W;exports.act=X;\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=X;exports.useCallback=function(a,b){return U.current.useCallback(a,b)};exports.useContext=function(a){return U.current.useContext(a)};\nexports.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)};exports.useInsertionEffect=function(a,b){return U.current.useInsertionEffect(a,b)};exports.useLayoutEffect=function(a,b){return U.current.useLayoutEffect(a,b)};\nexports.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)};exports.useTransition=function(){return U.current.useTransition()};exports.version=\"18.3.1\";\n","'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","// eslint-disable no-restricted-imports,no-underscore-dangle\nimport React from \"react\";\n\nexport default React;\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":["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","X","react_production_min","Children","map","forEach","apply","count","toArray","only","Component","Profiler","PureComponent","StrictMode","Suspense","__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED","act","cloneElement","createContext","_currentValue","_currentValue2","_threadCount","Provider","Consumer","_defaultValue","_globalName","_context","createElement","createFactory","bind","createRef","forwardRef","render","isValidElement","lazy","_payload","_init","memo","compare","startTransition","unstable_act","useCallback","useContext","useDebugValue","useDeferredValue","useEffect","useId","useImperativeHandle","useInsertionEffect","useLayoutEffect","useMemo","useRe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E,EAAE5C,QAAQoG,QAAQ5H,EAAEC,EAAE,EAAE2E,EAAAiD,WAAmB,SAAS7H,EAAEC,EAAEC,GAAG,OAAOkE,EAAE5C,QAAQqG,WAAW7H,EAAEC,EAAEC,EAAE,EAAE0E,EAAAkD,OAAe,SAAS9H,GAAG,OAAOoE,EAAE5C,QAAQsG,OAAO9H,EAAE,EAAE4E,EAAAmD,SAAiB,SAAS/H,GAAG,OAAOoE,EAAE5C,QAAQuG,SAAS/H,EAAE,EAAE4E,EAAAoD,qBAA6B,SAAShI,EAAEC,EAAEC,GAAG,OAAOkE,EAAE5C,QAAQwG,qBAAqBhI,EAAEC,EAAEC,EAAE,EAAE0E,EAAAqD,cAAsB,WAAW,OAAO7D,EAAE5C,QAAQyG,eAAe,EAAErD,EAAAsD,QAAgB,4BCtBlaC,EAAAC,QAAiBC,iBCCP,MAACC,GAAc,GACdC,SACXA,EAAQhD,WACRA,EAAUF,SACVA,EAAQG,SACRA,EAAQX,SACRA,EAAQO,UACRA,EAASE,cACTA,EAAaK,aACbA,EAAYC,cACZA,EAAaS,cACbA,EAAaC,cACbA,EAAaE,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]}
|
|
1
|
+
{"version":3,"file":"react.production.min.js","sources":["../../../../node_modules/react/cjs/react.production.min.js","../../../../node_modules/react/index.js","../../src/export-externals/export-react.js"],"sourcesContent":["/**\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};function X(){throw Error(\"act(...) is not supported in production builds of React.\");}\nexports.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;exports.Profiler=r;exports.PureComponent=G;exports.StrictMode=q;exports.Suspense=w;\nexports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=W;exports.act=X;\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=X;exports.useCallback=function(a,b){return U.current.useCallback(a,b)};exports.useContext=function(a){return U.current.useContext(a)};\nexports.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)};exports.useInsertionEffect=function(a,b){return U.current.useInsertionEffect(a,b)};exports.useLayoutEffect=function(a,b){return U.current.useLayoutEffect(a,b)};\nexports.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)};exports.useTransition=function(){return U.current.useTransition()};exports.version=\"18.3.1\";\n","'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","// eslint-disable no-restricted-imports,no-underscore-dangle\nimport React from \"react\";\n\nexport default React;\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":["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","X","react_production_min","Children","map","forEach","apply","count","toArray","only","Component","Profiler","PureComponent","StrictMode","Suspense","__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED","act","cloneElement","createContext","_currentValue","_currentValue2","_threadCount","Provider","Consumer","_defaultValue","_globalName","_context","createElement","createFactory","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","reactModule","exports","require$$0","__esmModule","Fragment","React"],"mappings":";+JASa,IAAIA,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,SACzW,IAAIC,EAAE,CAACC,UAAU,WAAW,OAAM,CAAE,EAAEC,mBAAmB,WAAU,EAAGC,oBAAoB,WAAU,EAAGC,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,GAAGZ,CAAC,CACwI,SAASkB,IAAG,CAA0B,S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ACJA,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]}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
export declare const SUPPORTED_LOCALES_FILE = "supported-locales.json";
|
|
2
|
+
/**
|
|
3
|
+
* Deep merge two objects. `override` keys take priority over `base`.
|
|
4
|
+
*/
|
|
5
|
+
export declare function deepMerge(base: Record<string, unknown>, override: Record<string, unknown>): Record<string, unknown>;
|
|
6
|
+
/**
|
|
7
|
+
* Reads a `supported-locales.json` file and returns its contents as an array
|
|
8
|
+
* of locale strings. Returns an empty array if the file doesn't exist or
|
|
9
|
+
* contains invalid data.
|
|
10
|
+
*/
|
|
11
|
+
export declare function readSupportedLocales(filePath: string): string[];
|
|
12
|
+
/**
|
|
13
|
+
* Returns the sorted, deduplicated list of language directory names found
|
|
14
|
+
* directly inside `localesDir`.
|
|
15
|
+
*/
|
|
16
|
+
export declare function discoverLanguageDirs(localesDir: string): string[];
|
|
17
|
+
/**
|
|
18
|
+
* Computes the merged supported-locales list respecting ordering:
|
|
19
|
+
*
|
|
20
|
+
* 1. Entries from the **app's** `supported-locales.json` (in their original order).
|
|
21
|
+
* 2. Entries from the **shell's** `supported-locales.json` not already listed
|
|
22
|
+
* (in their original order).
|
|
23
|
+
* 3. Any language directories discovered on disk that are not in either
|
|
24
|
+
* manifest (alphabetical order).
|
|
25
|
+
*
|
|
26
|
+
* @param shellLocalesDir - The app-shell-ui locales directory (lower priority).
|
|
27
|
+
* @param appLocalesDir - The app's locales directory (higher priority).
|
|
28
|
+
*/
|
|
29
|
+
export declare function computeSupportedLocales(shellLocalesDir: string | undefined, appLocalesDir: string | undefined): string[];
|
|
30
|
+
/**
|
|
31
|
+
* Parses a JSON file, wrapping parse errors with the file path for
|
|
32
|
+
* actionable diagnostics.
|
|
33
|
+
*/
|
|
34
|
+
export declare function readJsonFile(filePath: string): unknown;
|
|
35
|
+
/**
|
|
36
|
+
* Recursively merges source directory into destination.
|
|
37
|
+
* JSON files are deep-merged with destination keys taking priority.
|
|
38
|
+
* Non-JSON files are skipped (locale bundles are always JSON).
|
|
39
|
+
*
|
|
40
|
+
* `supported-locales.json` is skipped — it is handled separately after the
|
|
41
|
+
* merge so it can reflect the union of both sources plus any discovered
|
|
42
|
+
* language directories.
|
|
43
|
+
*/
|
|
44
|
+
export declare function mergeDirs(src: string, dest: string): void;
|
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
import fs from "node:fs";
|
|
2
|
+
import path from "node:path";
|
|
3
|
+
export const SUPPORTED_LOCALES_FILE = "supported-locales.json";
|
|
4
|
+
/**
|
|
5
|
+
* Deep merge two objects. `override` keys take priority over `base`.
|
|
6
|
+
*/
|
|
7
|
+
export function deepMerge(base, override) {
|
|
8
|
+
const result = { ...base };
|
|
9
|
+
for (const [key, value] of Object.entries(override)) {
|
|
10
|
+
if (value != null &&
|
|
11
|
+
typeof value === "object" &&
|
|
12
|
+
!Array.isArray(value) &&
|
|
13
|
+
result[key] != null &&
|
|
14
|
+
typeof result[key] === "object" &&
|
|
15
|
+
!Array.isArray(result[key])) {
|
|
16
|
+
result[key] = deepMerge(result[key], value);
|
|
17
|
+
}
|
|
18
|
+
else {
|
|
19
|
+
result[key] = value;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
return result;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Reads a `supported-locales.json` file and returns its contents as an array
|
|
26
|
+
* of locale strings. Returns an empty array if the file doesn't exist or
|
|
27
|
+
* contains invalid data.
|
|
28
|
+
*/
|
|
29
|
+
export function readSupportedLocales(filePath) {
|
|
30
|
+
if (!fs.existsSync(filePath))
|
|
31
|
+
return [];
|
|
32
|
+
try {
|
|
33
|
+
const data = JSON.parse(fs.readFileSync(filePath, "utf-8"));
|
|
34
|
+
if (Array.isArray(data) && data.every((item) => typeof item === "string")) {
|
|
35
|
+
return data;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
catch {
|
|
39
|
+
// malformed JSON — treat as empty
|
|
40
|
+
}
|
|
41
|
+
return [];
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Returns the sorted, deduplicated list of language directory names found
|
|
45
|
+
* directly inside `localesDir`.
|
|
46
|
+
*/
|
|
47
|
+
export function discoverLanguageDirs(localesDir) {
|
|
48
|
+
if (!fs.existsSync(localesDir))
|
|
49
|
+
return [];
|
|
50
|
+
return fs
|
|
51
|
+
.readdirSync(localesDir, { withFileTypes: true })
|
|
52
|
+
.filter((e) => e.isDirectory())
|
|
53
|
+
.map((e) => e.name)
|
|
54
|
+
.toSorted();
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* Computes the merged supported-locales list respecting ordering:
|
|
58
|
+
*
|
|
59
|
+
* 1. Entries from the **app's** `supported-locales.json` (in their original order).
|
|
60
|
+
* 2. Entries from the **shell's** `supported-locales.json` not already listed
|
|
61
|
+
* (in their original order).
|
|
62
|
+
* 3. Any language directories discovered on disk that are not in either
|
|
63
|
+
* manifest (alphabetical order).
|
|
64
|
+
*
|
|
65
|
+
* @param shellLocalesDir - The app-shell-ui locales directory (lower priority).
|
|
66
|
+
* @param appLocalesDir - The app's locales directory (higher priority).
|
|
67
|
+
*/
|
|
68
|
+
export function computeSupportedLocales(shellLocalesDir, appLocalesDir) {
|
|
69
|
+
const seen = new Set();
|
|
70
|
+
const result = [];
|
|
71
|
+
const addUnique = (lng) => {
|
|
72
|
+
if (!seen.has(lng)) {
|
|
73
|
+
seen.add(lng);
|
|
74
|
+
result.push(lng);
|
|
75
|
+
}
|
|
76
|
+
};
|
|
77
|
+
// 1. App manifest entries first (highest priority order)
|
|
78
|
+
if (appLocalesDir) {
|
|
79
|
+
for (const lng of readSupportedLocales(path.join(appLocalesDir, SUPPORTED_LOCALES_FILE))) {
|
|
80
|
+
addUnique(lng);
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
// 2. Shell manifest entries that weren't already listed
|
|
84
|
+
if (shellLocalesDir) {
|
|
85
|
+
for (const lng of readSupportedLocales(path.join(shellLocalesDir, SUPPORTED_LOCALES_FILE))) {
|
|
86
|
+
addUnique(lng);
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
// 3. Discovered language directories not in either manifest (alphabetical)
|
|
90
|
+
const discoveredDirs = [];
|
|
91
|
+
for (const dir of [shellLocalesDir, appLocalesDir]) {
|
|
92
|
+
if (dir) {
|
|
93
|
+
for (const lng of discoverLanguageDirs(dir)) {
|
|
94
|
+
if (!seen.has(lng))
|
|
95
|
+
discoveredDirs.push(lng);
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
// deduplicate and sort before appending
|
|
100
|
+
for (const lng of [...new Set(discoveredDirs)].toSorted()) {
|
|
101
|
+
addUnique(lng);
|
|
102
|
+
}
|
|
103
|
+
// Validate: warn and drop manifest entries without a matching language directory
|
|
104
|
+
const allDirs = new Set();
|
|
105
|
+
for (const dir of [shellLocalesDir, appLocalesDir]) {
|
|
106
|
+
if (dir) {
|
|
107
|
+
for (const lng of discoverLanguageDirs(dir)) {
|
|
108
|
+
allDirs.add(lng);
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
return result.filter((lng) => {
|
|
113
|
+
if (allDirs.has(lng))
|
|
114
|
+
return true;
|
|
115
|
+
console.warn(`[app-shell-locales] Locale "${lng}" is listed in ${SUPPORTED_LOCALES_FILE} but has no corresponding language directory — ignoring.`);
|
|
116
|
+
return false;
|
|
117
|
+
});
|
|
118
|
+
}
|
|
119
|
+
/**
|
|
120
|
+
* Parses a JSON file, wrapping parse errors with the file path for
|
|
121
|
+
* actionable diagnostics.
|
|
122
|
+
*/
|
|
123
|
+
export function readJsonFile(filePath) {
|
|
124
|
+
const raw = fs.readFileSync(filePath, "utf-8");
|
|
125
|
+
try {
|
|
126
|
+
return JSON.parse(raw);
|
|
127
|
+
}
|
|
128
|
+
catch (cause) {
|
|
129
|
+
throw new Error(`[app-shell-locales] Failed to parse ${filePath}: ${cause instanceof Error ? cause.message : cause}`, { cause });
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
/**
|
|
133
|
+
* Recursively merges source directory into destination.
|
|
134
|
+
* JSON files are deep-merged with destination keys taking priority.
|
|
135
|
+
* Non-JSON files are skipped (locale bundles are always JSON).
|
|
136
|
+
*
|
|
137
|
+
* `supported-locales.json` is skipped — it is handled separately after the
|
|
138
|
+
* merge so it can reflect the union of both sources plus any discovered
|
|
139
|
+
* language directories.
|
|
140
|
+
*/
|
|
141
|
+
export function mergeDirs(src, dest) {
|
|
142
|
+
fs.mkdirSync(dest, { recursive: true });
|
|
143
|
+
for (const entry of fs.readdirSync(src, { withFileTypes: true })) {
|
|
144
|
+
const srcPath = path.join(src, entry.name);
|
|
145
|
+
const destPath = path.join(dest, entry.name);
|
|
146
|
+
if (entry.isDirectory()) {
|
|
147
|
+
mergeDirs(srcPath, destPath);
|
|
148
|
+
}
|
|
149
|
+
else if (entry.name === SUPPORTED_LOCALES_FILE) {
|
|
150
|
+
// Handled after the full merge — skip here.
|
|
151
|
+
}
|
|
152
|
+
else if (!entry.name.endsWith(".json")) {
|
|
153
|
+
// Skip non-JSON files (e.g. .json.js build artifacts)
|
|
154
|
+
}
|
|
155
|
+
else if (fs.existsSync(destPath)) {
|
|
156
|
+
// Deep merge: local (dest) keys win over app-shell-ui (src) keys
|
|
157
|
+
const srcContent = readJsonFile(srcPath);
|
|
158
|
+
const destContent = readJsonFile(destPath);
|
|
159
|
+
const merged = deepMerge(srcContent, destContent);
|
|
160
|
+
fs.writeFileSync(destPath, JSON.stringify(merged, null, 2));
|
|
161
|
+
}
|
|
162
|
+
else {
|
|
163
|
+
fs.copyFileSync(srcPath, destPath);
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { PluginOption } from "vite";
|
|
2
|
+
/**
|
|
3
|
+
* Vite plugin that handles app-shell locale files:
|
|
4
|
+
* - In dev mode: serves merged locale files via middleware
|
|
5
|
+
* - In build mode: deep-merges app-shell-ui locales into the output dist/locales
|
|
6
|
+
*
|
|
7
|
+
* Local locale files (from the app's public/locales/) always take priority.
|
|
8
|
+
*
|
|
9
|
+
* `supported-locales.json` is merged by taking the union of both arrays and
|
|
10
|
+
* adding any language directories discovered during the merge.
|
|
11
|
+
*/
|
|
12
|
+
export default function copyAppShellLocales(): PluginOption;
|
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
import fs from "node:fs";
|
|
2
|
+
import { createRequire } from "node:module";
|
|
3
|
+
import path from "node:path";
|
|
4
|
+
import { computeSupportedLocales, deepMerge, mergeDirs, readJsonFile, SUPPORTED_LOCALES_FILE, } from "./locales-utils.js";
|
|
5
|
+
/**
|
|
6
|
+
* Resolves the app-shell-ui's locales directory path via its `./locales/*` export.
|
|
7
|
+
*/
|
|
8
|
+
function resolveAppShellUiLocales() {
|
|
9
|
+
const require = createRequire(import.meta.url);
|
|
10
|
+
try {
|
|
11
|
+
// Resolve a known locale file via the ./locales/* export, then derive the directory
|
|
12
|
+
const sampleFile = require.resolve("@hitachivantara/app-shell-ui/locales/en/appShell.json");
|
|
13
|
+
// Go up two levels: en/appShell.json -> en -> locales
|
|
14
|
+
const localesDir = path.resolve(sampleFile, "../..");
|
|
15
|
+
if (fs.existsSync(localesDir) && fs.statSync(localesDir).isDirectory()) {
|
|
16
|
+
return localesDir;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
catch {
|
|
20
|
+
// app-shell-ui not installed or locales not available
|
|
21
|
+
}
|
|
22
|
+
return undefined;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Vite plugin that handles app-shell locale files:
|
|
26
|
+
* - In dev mode: serves merged locale files via middleware
|
|
27
|
+
* - In build mode: deep-merges app-shell-ui locales into the output dist/locales
|
|
28
|
+
*
|
|
29
|
+
* Local locale files (from the app's public/locales/) always take priority.
|
|
30
|
+
*
|
|
31
|
+
* `supported-locales.json` is merged by taking the union of both arrays and
|
|
32
|
+
* adding any language directories discovered during the merge.
|
|
33
|
+
*/
|
|
34
|
+
export default function copyAppShellLocales() {
|
|
35
|
+
let resolvedOutDir;
|
|
36
|
+
let isBuild = false;
|
|
37
|
+
return {
|
|
38
|
+
name: "vite-plugin-appshell-copy-locales",
|
|
39
|
+
// Capture the resolved output directory from Vite's config
|
|
40
|
+
configResolved(config) {
|
|
41
|
+
resolvedOutDir = path.resolve(config.root, config.build.outDir);
|
|
42
|
+
isBuild = config.command === "build";
|
|
43
|
+
},
|
|
44
|
+
// --- DEV MODE: serve merged locales via middleware ---
|
|
45
|
+
configureServer(server) {
|
|
46
|
+
const appShellUiLocalesDir = resolveAppShellUiLocales();
|
|
47
|
+
server.middlewares.use((req, res, next) => {
|
|
48
|
+
// Parse the pathname, stripping the Vite base and any query string
|
|
49
|
+
// so locale requests work under non-root base paths (e.g. /myapp/).
|
|
50
|
+
const base = server.config.base || "/";
|
|
51
|
+
let pathname;
|
|
52
|
+
try {
|
|
53
|
+
pathname = new URL(req.url ?? "", "http://localhost").pathname;
|
|
54
|
+
}
|
|
55
|
+
catch {
|
|
56
|
+
return next();
|
|
57
|
+
}
|
|
58
|
+
if (!pathname.startsWith(base))
|
|
59
|
+
return next();
|
|
60
|
+
const relativePath = pathname.slice(base.length);
|
|
61
|
+
// Handle supported-locales.json separately — it's an array, not a
|
|
62
|
+
// key/value bundle, and must reflect the union of both sources plus
|
|
63
|
+
// any language directories that exist on disk.
|
|
64
|
+
if (relativePath === `locales/${SUPPORTED_LOCALES_FILE}`) {
|
|
65
|
+
const localLocalesDir = path.resolve(server.config.root, "public/locales");
|
|
66
|
+
const merged = computeSupportedLocales(appShellUiLocalesDir, localLocalesDir);
|
|
67
|
+
if (merged.length === 0) {
|
|
68
|
+
res.statusCode = 404;
|
|
69
|
+
res.end();
|
|
70
|
+
return;
|
|
71
|
+
}
|
|
72
|
+
res.setHeader("Content-Type", "application/json");
|
|
73
|
+
res.end(JSON.stringify(merged));
|
|
74
|
+
return;
|
|
75
|
+
}
|
|
76
|
+
const match = relativePath.match(/^locales\/([^/]+)\/([^/]+\.json)$/);
|
|
77
|
+
if (!match)
|
|
78
|
+
return next();
|
|
79
|
+
const [, lng, nsFile] = match;
|
|
80
|
+
// Guard against path traversal (e.g. `..` segments)
|
|
81
|
+
if (lng.includes("..") || nsFile.includes(".."))
|
|
82
|
+
return next();
|
|
83
|
+
const localLocalesBase = path.resolve(server.config.root, "public/locales");
|
|
84
|
+
const localPath = path.join(localLocalesBase, lng, nsFile);
|
|
85
|
+
if (!localPath.startsWith(localLocalesBase + path.sep))
|
|
86
|
+
return next();
|
|
87
|
+
const shellPath = appShellUiLocalesDir
|
|
88
|
+
? path.join(appShellUiLocalesDir, lng, nsFile)
|
|
89
|
+
: undefined;
|
|
90
|
+
if (shellPath &&
|
|
91
|
+
!shellPath.startsWith(appShellUiLocalesDir + path.sep)) {
|
|
92
|
+
return next();
|
|
93
|
+
}
|
|
94
|
+
const localContent = fs.existsSync(localPath)
|
|
95
|
+
? readJsonFile(localPath)
|
|
96
|
+
: undefined;
|
|
97
|
+
const shellContent = shellPath && fs.existsSync(shellPath)
|
|
98
|
+
? readJsonFile(shellPath)
|
|
99
|
+
: undefined;
|
|
100
|
+
if (!localContent && !shellContent) {
|
|
101
|
+
res.statusCode = 404;
|
|
102
|
+
res.end();
|
|
103
|
+
return;
|
|
104
|
+
}
|
|
105
|
+
// Deep merge: local overrides shell
|
|
106
|
+
const merged = shellContent && localContent
|
|
107
|
+
? deepMerge(shellContent, localContent)
|
|
108
|
+
: (localContent ?? shellContent);
|
|
109
|
+
res.setHeader("Content-Type", "application/json");
|
|
110
|
+
res.end(JSON.stringify(merged));
|
|
111
|
+
});
|
|
112
|
+
},
|
|
113
|
+
// --- BUILD MODE: merge app-shell-ui locales into dist ---
|
|
114
|
+
closeBundle() {
|
|
115
|
+
// Only write locale files during an actual build, not during dev/test.
|
|
116
|
+
// Vitest creates a Vite pipeline with outDir set to a dummy
|
|
117
|
+
// "dummy-non-existing-folder" that triggers closeBundle — without this
|
|
118
|
+
// guard, locale files would be written to that folder on disk.
|
|
119
|
+
if (!isBuild || !resolvedOutDir)
|
|
120
|
+
return;
|
|
121
|
+
const appShellUiLocales = resolveAppShellUiLocales();
|
|
122
|
+
if (!appShellUiLocales)
|
|
123
|
+
return;
|
|
124
|
+
const targetLocales = path.resolve(resolvedOutDir, "locales");
|
|
125
|
+
// Recursive merge: app-shell-ui files are merged into target,
|
|
126
|
+
// with existing (local) keys taking priority in JSON files.
|
|
127
|
+
// supported-locales.json is skipped during this step.
|
|
128
|
+
mergeDirs(appShellUiLocales, targetLocales);
|
|
129
|
+
// Compute the union of supported locales from both sources and from
|
|
130
|
+
// the language directories that now exist in the merged output.
|
|
131
|
+
const merged = computeSupportedLocales(appShellUiLocales, targetLocales);
|
|
132
|
+
if (merged.length > 0) {
|
|
133
|
+
fs.writeFileSync(path.join(targetLocales, SUPPORTED_LOCALES_FILE), `${JSON.stringify(merged)}\n`);
|
|
134
|
+
}
|
|
135
|
+
},
|
|
136
|
+
};
|
|
137
|
+
}
|
package/dist/vite-plugin.js
CHANGED
|
@@ -13,6 +13,7 @@ import fixCrossOrigin from "./vite-crossorigin-fix-plugin.js";
|
|
|
13
13
|
import generateBaseTag from "./vite-generate-base-plugin.js";
|
|
14
14
|
import generateBashScript from "./vite-generate-bash-script-plugin.js";
|
|
15
15
|
import generateImportmap, { extraDependencies, } from "./vite-importmap-plugin.js";
|
|
16
|
+
import copyAppShellLocales from "./vite-locales-plugin.js";
|
|
16
17
|
import injectMetadata from "./vite-metadata-plugin.js";
|
|
17
18
|
import serveAppShellConfig from "./vite-watch-config-plugin.js";
|
|
18
19
|
const ViteBuildMode = {
|
|
@@ -116,5 +117,7 @@ export async function HvAppShellVitePlugin(opts = {}, env = {}) {
|
|
|
116
117
|
serveAppShellConfig(appShellConfiguration, root, packageJson.name, appShellConfigFile, autoViewsAndRoutes ? viewsFolder : undefined),
|
|
117
118
|
// generate the shell script to replace the placeholders in the index.html
|
|
118
119
|
generateEmptyShell && generateBashScript(externalImportMap, inlineConfig),
|
|
120
|
+
// copy/merge app-shell-ui locales into dist (build) or serve via middleware (dev)
|
|
121
|
+
(buildEntryPoint || devMode) && copyAppShellLocales(),
|
|
119
122
|
];
|
|
120
123
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hitachivantara/app-shell-vite-plugin",
|
|
3
|
-
"version": "2.1
|
|
3
|
+
"version": "2.2.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"private": false,
|
|
6
6
|
"author": "Hitachi Vantara UI Kit Team",
|
|
@@ -21,8 +21,8 @@
|
|
|
21
21
|
"@emotion/cache": "^11.11.0",
|
|
22
22
|
"@emotion/react": "^11.11.1",
|
|
23
23
|
"@hitachivantara/app-shell-services": "^2.0.3",
|
|
24
|
-
"@hitachivantara/app-shell-shared": "^2.
|
|
25
|
-
"@hitachivantara/app-shell-ui": "^2.
|
|
24
|
+
"@hitachivantara/app-shell-shared": "^2.3.0",
|
|
25
|
+
"@hitachivantara/app-shell-ui": "^2.3.1",
|
|
26
26
|
"@hitachivantara/uikit-react-icons": "^6.0.4",
|
|
27
27
|
"@hitachivantara/uikit-react-shared": "^6.0.4",
|
|
28
28
|
"@rollup/plugin-commonjs": "^29.0.0",
|
|
@@ -59,5 +59,5 @@
|
|
|
59
59
|
},
|
|
60
60
|
"./package.json": "./package.json"
|
|
61
61
|
},
|
|
62
|
-
"gitHead": "
|
|
62
|
+
"gitHead": "96cf5b00b7c82a85b7ebae56e00d48c0b543bebc"
|
|
63
63
|
}
|