@hhgtech/hhg-components 1.21.0-beta-2 → 1.21.0-beta-3

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 (58) hide show
  1. package/build/ageGenerate-42a9fa31.js +1 -0
  2. package/build/babyGrowth.js +1 -1
  3. package/build/care.js +1 -1
  4. package/build/components/atoms/button/index.d.ts +2 -2
  5. package/build/components/molecules/shareDrawer/index.d.ts +2 -0
  6. package/build/components.js +1 -1
  7. package/build/{constants-8ac16070.js → constants-09e9835b.js} +1 -1
  8. package/build/core.js +1 -1
  9. package/build/ecom.js +1 -1
  10. package/build/esm/ageGenerate-84a7d02d.js +1 -0
  11. package/build/esm/babyGrowth.js +1 -1
  12. package/build/esm/care.js +1 -1
  13. package/build/esm/components.js +1 -1
  14. package/build/esm/{constants-5a0ff506.js → constants-325931b0.js} +1 -1
  15. package/build/esm/core.js +1 -1
  16. package/build/esm/ecom.js +1 -1
  17. package/build/esm/{index-8e1fb1fc.js → index-c6634612.js} +1 -1
  18. package/build/esm/{index-cf4ee2db.js → index-d7d7f669.js} +1 -1
  19. package/build/esm/index-efabec6a.js +1 -0
  20. package/build/esm/index.js +1 -1
  21. package/build/esm/index.styled-024f1086.js +1 -0
  22. package/build/esm/{index.styled-a3b87ca2.js → index.styled-37bb1149.js} +1 -1
  23. package/build/esm/{index.styled-c6a1db76.js → index.styled-5d38058b.js} +1 -1
  24. package/build/esm/{index.styled-c0d89d62.js → index.styled-8db76cfc.js} +1 -1
  25. package/build/esm/navigation.js +1 -1
  26. package/build/esm/routing-b810ade9.js +1 -0
  27. package/build/esm/{theme-ef9af424.js → theme-82709ce4.js} +1 -1
  28. package/build/esm/together.js +1 -1
  29. package/build/esm/{types-27e81c4b.js → types-665730ca.js} +1 -1
  30. package/build/esm/{types-a9eb4ece.js → types-77d959fd.js} +1 -1
  31. package/build/esm/{types-fad36194.js → types-ec2bbf0d.js} +1 -1
  32. package/build/{index-8f29245b.js → index-4cc48be3.js} +1 -1
  33. package/build/{index-83f3c810.js → index-94e18d27.js} +1 -1
  34. package/build/index-ebd28771.js +1 -0
  35. package/build/index.js +1 -1
  36. package/build/{index.styled-1c6ada23.js → index.styled-23a73550.js} +1 -1
  37. package/build/{index.styled-acc54c0d.js → index.styled-a8e10ab3.js} +1 -1
  38. package/build/{index.styled-ed322716.js → index.styled-dceea1ed.js} +1 -1
  39. package/build/index.styled-ea01bb74.js +1 -0
  40. package/build/misc/getSocialList.d.ts +2 -0
  41. package/build/misc/theme.d.ts +1 -0
  42. package/build/navigation.js +1 -1
  43. package/build/{routing-3a530c5c.js → routing-fc123777.js} +1 -1
  44. package/build/{theme-3d7aa563.js → theme-fe7c279c.js} +1 -1
  45. package/build/together/components/atoms/sensitiveMask/index.d.ts +6 -2
  46. package/build/together/components/atoms/sensitiveMask/index.styled.d.ts +1 -1
  47. package/build/together.js +1 -1
  48. package/build/{types-79925175.js → types-3c3e0e3c.js} +1 -1
  49. package/build/{types-a48c65e7.js → types-dc5c360a.js} +1 -1
  50. package/build/{types-26cc2c8c.js → types-ed0013bc.js} +1 -1
  51. package/package.json +1 -1
  52. package/build/ageGenerate-b636a650.js +0 -1
  53. package/build/esm/ageGenerate-2a2c1e14.js +0 -1
  54. package/build/esm/index-da82f760.js +0 -1
  55. package/build/esm/index.styled-80da5548.js +0 -1
  56. package/build/esm/routing-a1e072b4.js +0 -1
  57. package/build/index-9cd57ed6.js +0 -1
  58. package/build/index.styled-2b801580.js +0 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hhgtech/hhg-components",
3
- "version": "1.21.0-beta-2",
3
+ "version": "1.21.0-beta-3",
4
4
  "main": "build/index.js",
5
5
  "module": "build/esm/index.js",
6
6
  "files": [
@@ -1 +0,0 @@
1
- "use strict";var e=require("./lazyLoad-0454885d.js"),t=require("./tslib.es6-f7929e76.js"),r=require("react"),n=require("./cookieHelper-612b90fa.js"),i=require("date-fns"),a=Object.freeze({__proto__:null,get Gender(){return e.Gender},get BabyGrowthChartType(){return e.BabyGrowthChartType},get BabyGrowthChartDuration(){return e.BabyGrowthChartDuration},get BabyGrowthResultTab(){return e.BabyGrowthResultTab},get LOCALE(){return e.LOCALE}});function o(e){var t=(new TextEncoder).encode(e.trim().toLowerCase());return crypto.subtle.digest("SHA-256",t).then((function(e){return Array.from(new Uint8Array(e)).map((function(e){return e.toString(16).padStart(2,"0")})).join("")}))}exports.ageGenerate=function(e,t){void 0===t&&(t=new Date);var r=i.differenceInWeeks(t,e,{roundingMethod:"ceil"}),n=i.differenceInMonths(t,e);return{year:Math.floor(n/12),month:n%12,week:r}},exports.index=a,exports.useFbDataLayer=function(e){r.useEffect((function(){var r=null;return(null==e?void 0:e.id)&&t.__awaiter(void 0,void 0,void 0,(function(){var i,a,u,s,c,l,d,f;return t.__generator(this,(function(h){switch(h.label){case 0:return[4,fetch("https://api.ipify.org").then((function(e){return e.text()}))];case 1:return(i=h.sent())?[3,3]:[4,fetch("https://icanhazip.com").then((function(e){return e.text()}))];case 2:i=h.sent(),h.label=3;case 3:return[4,Promise.all([e.email?o(e.email):null,e.phone?o(e.phone):null,e.birthday?o(e.birthday.split("-").join("")):null,e.gender?o(e.gender?"m":"f"):null,e.city_name?o(e.city_name).then((function(e){return e.replace(/\s/g,"")})):null])];case 4:return a=h.sent(),u=a[0],s=a[1],c=a[2],l=a[3],d=a[4],f={fbc:n.getCookie("_fbc")||"",fbp:n.getCookie("_fbp")||"",client_ip_address:(null==i?void 0:i.replace("\n",""))||"",client_user_agent:navigator.userAgent||""},u&&(f.em=u),s&&(f.ph=s),c&&(f.db=c),l&&(f.ge=l),d&&(f.ct=d),window.dataLayer=window.dataLayer||[],window.dataLayer.push(t.__assign(t.__assign({},f),{event:"FB Conversion"})),function e(){return t.__awaiter(this,void 0,void 0,(function(){return t.__generator(this,(function(t){return window.fbq?window.fbq("trackCustom","FB Conversion",{action_source:"website",event_source_url:window.location.href,user_data:[f]}):r=setTimeout(e,2e3),[2]}))}))}(),[2]}}))})),function(){r&&clearTimeout(r)}}),[e])};
@@ -1 +0,0 @@
1
- import{G as e,B as t,a as n,b as r,L as o}from"./lazyLoad-d80d3fd1.js";import{_ as a,a as i,b as u}from"./tslib.es6-6ae0d506.js";import{useEffect as s}from"react";import{g as c}from"./cookieHelper-0e8521c3.js";import{differenceInWeeks as l,differenceInMonths as d}from"date-fns";var f=Object.freeze({__proto__:null,get Gender(){return e},get BabyGrowthChartType(){return t},get BabyGrowthChartDuration(){return n},get BabyGrowthResultTab(){return r},get LOCALE(){return o}});function h(e){var t=(new TextEncoder).encode(e.trim().toLowerCase());return crypto.subtle.digest("SHA-256",t).then((function(e){return Array.from(new Uint8Array(e)).map((function(e){return e.toString(16).padStart(2,"0")})).join("")}))}var p=function(e){s((function(){var t=null;return(null==e?void 0:e.id)&&a(void 0,void 0,void 0,(function(){var n,r,o,s,l,d,f,p;return i(this,(function(m){switch(m.label){case 0:return[4,fetch("https://api.ipify.org").then((function(e){return e.text()}))];case 1:return(n=m.sent())?[3,3]:[4,fetch("https://icanhazip.com").then((function(e){return e.text()}))];case 2:n=m.sent(),m.label=3;case 3:return[4,Promise.all([e.email?h(e.email):null,e.phone?h(e.phone):null,e.birthday?h(e.birthday.split("-").join("")):null,e.gender?h(e.gender?"m":"f"):null,e.city_name?h(e.city_name).then((function(e){return e.replace(/\s/g,"")})):null])];case 4:return r=m.sent(),o=r[0],s=r[1],l=r[2],d=r[3],f=r[4],p={fbc:c("_fbc")||"",fbp:c("_fbp")||"",client_ip_address:(null==n?void 0:n.replace("\n",""))||"",client_user_agent:navigator.userAgent||""},o&&(p.em=o),s&&(p.ph=s),l&&(p.db=l),d&&(p.ge=d),f&&(p.ct=f),window.dataLayer=window.dataLayer||[],window.dataLayer.push(u(u({},p),{event:"FB Conversion"})),function e(){return a(this,void 0,void 0,(function(){return i(this,(function(n){return window.fbq?window.fbq("trackCustom","FB Conversion",{action_source:"website",event_source_url:window.location.href,user_data:[p]}):t=setTimeout(e,2e3),[2]}))}))}(),[2]}}))})),function(){t&&clearTimeout(t)}}),[e])},m=function(e,t){void 0===t&&(t=new Date);var n=l(t,e,{roundingMethod:"ceil"}),r=d(t,e);return{year:Math.floor(r/12),month:r%12,week:n}};export{m as a,f as i,p as u};