@hhgtech/hhg-components 1.21.95 → 1.21.97
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/build/babyGrowth.js +1 -1
- package/build/cache.js +1 -1
- package/build/components/molecules/babyGrowthForm/index.d.ts +2 -8
- package/build/components/molecules/embeddedHeathToolCards/baby-growth/index.d.ts +4 -7
- package/build/components/molecules/embeddedHeathToolCards/baby-growth/index.styled.d.ts +1 -12
- package/build/components.js +1 -1
- package/build/core-27ea44f3.js +1 -0
- package/build/esm/babyGrowth.js +1 -1
- package/build/esm/cache.js +1 -1
- package/build/esm/components.js +1 -1
- package/build/esm/core-1fde1dd9.js +1 -0
- package/build/esm/{getDynamicHealthTool-896e1eee.js → getDynamicHealthTool-e6a9e58e.js} +1 -1
- package/build/esm/hooks.js +1 -1
- package/build/esm/index-99b6b6e7.js +1 -0
- package/build/esm/index-b38b4414.js +1 -0
- package/build/esm/{index-87e38c6b.js → index-b6596b44.js} +1 -1
- package/build/esm/{index-8c26a26e.js → index-daa27462.js} +1 -1
- package/build/esm/index.js +1 -1
- package/build/esm/misc.js +1 -1
- package/build/esm/navigation.js +1 -1
- package/build/esm/together.js +1 -1
- package/build/esm/{types-66a3e835.js → types-b2cab8d0.js} +1 -1
- package/build/esm/{useHealthToolCache-9718433c.js → useHealthToolCache-2988152d.js} +1 -1
- package/build/{getDynamicHealthTool-13ad1a92.js → getDynamicHealthTool-4685189a.js} +1 -1
- package/build/hooks.js +1 -1
- package/build/{index-7fdfde3d.js → index-172132d9.js} +1 -1
- package/build/index-1e746189.js +1 -0
- package/build/index-36bf1435.js +1 -0
- package/build/index-61a4c652.js +1 -0
- package/build/index.js +1 -1
- package/build/misc.js +1 -1
- package/build/navigation.js +1 -1
- package/build/together.js +1 -1
- package/build/{types-363e7431.js → types-8ec2c991.js} +1 -1
- package/build/{useHealthToolCache-8b136374.js → useHealthToolCache-9f85e97a.js} +1 -1
- package/package.json +1 -1
- package/build/core-97cd306c.js +0 -1
- package/build/esm/core-341c626a.js +0 -1
- package/build/esm/index-b410592e.js +0 -1
- package/build/esm/index-b584877c.js +0 -1
- package/build/index-01e64289.js +0 -1
- package/build/index-1520bb07.js +0 -1
- package/build/index-dd5749ba.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var e=require("./tslib.es6-e6f346c4.js"),t=require("react"),a=require("./getDynamicHealthTool-
|
|
1
|
+
"use strict";var e=require("./tslib.es6-e6f346c4.js"),t=require("react"),a=require("./getDynamicHealthTool-4685189a.js");exports.useHealthToolsCache=function(r){var i=t.useState([]),n=i[0],o=i[1];t.useEffect((function(){e.__awaiter(void 0,void 0,void 0,(function(){var t;return e.__generator(this,(function(e){switch(e.label){case 0:return[4,a.getDynamicHealthToolWithCache(r)];case 1:return t=e.sent(),o(t),[2]}}))}))}),[a.getDynamicHealthToolWithCache,r]);var l=t.useCallback((function(e){var t;return(null===(t=n.find((function(t){return t.template===e})))||void 0===t?void 0:t.link)||""}),[n]);return{allTools:n,getHealthToolLink:l}};
|
package/package.json
CHANGED
package/build/core-97cd306c.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var e=require("./tslib.es6-e6f346c4.js"),t=require("./isProduction-32e6a55a.js"),a={},r=function(e){if("undefined"!=typeof window){var r=void 0;try{r=JSON.parse(localStorage.getItem((t.isProduction?"":"staging_")+"hhg-cache-"+e)||"{}")}catch(e){}return r||{}}return a[e]},i=function(e,t){try{"undefined"!=typeof window?localStorage.setItem("hhg-cache-"+e,JSON.stringify({data:t,time:Date.now()})):a[e]={data:t,time:Date.now()}}catch(e){}};exports.getCachedItem=r,exports.getDataWithCache=function(t,a,n,o){return void 0===o&&(o=9e5),e.__awaiter(void 0,void 0,void 0,(function(){var c,s;return e.__generator(this,(function(e){switch(e.label){case 0:return(c=r(t))&&c.data&&c.time&&Date.now()-c.time<o?[2,c.data]:[3,1];case 1:return a?[4,a()]:[3,3];case 2:return s=e.sent(),n&&!n(s)||i(t,s),[2,s];case 3:return[2,null]}}))}))},exports.setCachedItem=i;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{d as t,e}from"./tslib.es6-44f7e5ec.js";import{i as a}from"./isProduction-6fc0946c.js";var n={},r=function(t){if("undefined"!=typeof window){var e=void 0;try{e=JSON.parse(localStorage.getItem((a?"":"staging_")+"hhg-cache-"+t)||"{}")}catch(t){}return e||{}}return n[t]},i=function(t,e){try{"undefined"!=typeof window?localStorage.setItem("hhg-cache-"+t,JSON.stringify({data:e,time:Date.now()})):n[t]={data:e,time:Date.now()}}catch(t){}},o=function(a,n,o,c){return void 0===c&&(c=9e5),t(void 0,void 0,void 0,(function(){var t,s;return e(this,(function(e){switch(e.label){case 0:return(t=r(a))&&t.data&&t.time&&Date.now()-t.time<c?[2,t.data]:[3,1];case 1:return n?[4,n()]:[3,3];case 2:return s=e.sent(),o&&!o(s)||i(a,s),[2,s];case 3:return[2,null]}}))}))};export{r as a,o as g,i as s};
|