@ienlab/react-library 0.10.0 → 0.10.2

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.
@@ -1 +1 @@
1
- {"version":3,"file":"auth.d.ts","sourceRoot":"","sources":["../../src/constant/auth.ts"],"names":[],"mappings":"AAAA,wBAAgB,eAAe,CAAC,SAAS,CAAC,EAAE,MAAM,GAAG,MAAM,CAkD1D"}
1
+ {"version":3,"file":"auth.d.ts","sourceRoot":"","sources":["../../src/constant/auth.ts"],"names":[],"mappings":"AAAA,wBAAgB,eAAe,CAAC,SAAS,CAAC,EAAE,MAAM,GAAG,MAAM,CAuD1D"}
@@ -1,29 +1,29 @@
1
1
  declare const _default: {
2
2
  "auth": {
3
3
  "errors": {
4
- "invalid-credential": "Please check your email or password.",
5
- "wrong-password": "Please check your email or password.",
6
- "user-not-found": "We couldn’t find an account matching that information.",
7
- "invalid-email": "Please check your email format.",
8
- "email-already-in-use": "This email is already registered. Sign in or use a different email.",
9
- "weak-password": "Your password must be at least 6 characters long.",
10
- "user-disabled": "This account is currently unavailable. Please contact support.",
11
- "too-many-requests": "Too many attempts. Please try again later.",
12
- "network-request-failed": "Check your internet connection and try again.",
4
+ "invalid_credential": "Please check your email or password.",
5
+ "wrong_password": "Please check your email or password.",
6
+ "user_not_found": "We couldn’t find an account matching that information.",
7
+ "invalid_email": "Please check your email format.",
8
+ "email_already_in_use": "This email is already registered. Sign in or use a different email.",
9
+ "weak_password": "Your password must be at least 6 characters long.",
10
+ "user_disabled": "This account is currently unavailable. Please contact support.",
11
+ "too_many_requests": "Too many attempts. Please try again later.",
12
+ "network_request_failed": "Check your internet connection and try again.",
13
13
  "timeout": "The request is taking too long. Please try again.",
14
- "requires-recent-login": "For security reasons, please sign in again.",
15
- "user-token-expired": "Your session has expired. Please sign in again.",
16
- "operation-not-allowed": "This sign-in method is currently unavailable.",
17
- "account-exists-with-different-credential": "This email is already linked to another sign-in method. Please use that method to sign in.",
18
- "popup-blocked": "The sign-in window was blocked. Please allow pop-ups and try again.",
19
- "popup-closed-by-user": "The sign-in window was closed before completion.",
20
- "web-storage-unsupported": "Sign-in is not available with your current browser settings.",
21
- "unauthorized-domain": "Sign-in is not available on this domain.",
22
- "internal-error": "Something went wrong. Please try again later.",
14
+ "requires_recent_login": "For security reasons, please sign in again.",
15
+ "user_token_expired": "Your session has expired. Please sign in again.",
16
+ "operation_not_allowed": "This sign-in method is currently unavailable.",
17
+ "account_exists_with_different_credential": "This email is already linked to another sign-in method. Please use that method to sign in.",
18
+ "popup_blocked": "The sign-in window was blocked. Please allow pop-ups and try again.",
19
+ "popup_closed_by_user": "The sign-in window was closed before completion.",
20
+ "web_storage_unsupported": "Sign-in is not available with your current browser settings.",
21
+ "unauthorized_domain": "Sign-in is not available on this domain.",
22
+ "internal_error": "Something went wrong. Please try again later.",
23
23
  "default": "We couldn’t complete the sign-in. Please try again later."
24
24
  }
25
25
  },
26
- "unknown_error_occured": "Unknown error occured."
26
+ "unknown_error_occurred": "Unknown error occurred."
27
27
  };
28
28
 
29
29
  export default _default;
@@ -1,29 +1,29 @@
1
1
  declare const _default: {
2
2
  "auth": {
3
3
  "errors": {
4
- "invalid-credential": "이메일 또는 비밀번호를 다시 확인해 주세요.",
5
- "wrong-password": "이메일 또는 비밀번호를 다시 확인해 주세요.",
6
- "user-not-found": "입력한 정보와 일치하는 계정을 찾을 수 없어요.",
7
- "invalid-email": "이메일 형식을 확인해 주세요.",
8
- "email-already-in-use": "이미 가입된 이메일이에요. 로그인하거나 다른 이메일을 사용해 주세요.",
9
- "weak-password": "비밀번호는 6자 이상으로 입력해 주세요.",
10
- "user-disabled": "이 계정은 현재 사용할 수 없어요. 관리자에게 문의해 주세요.",
11
- "too-many-requests": "시도가 너무 많아요. 잠시 후 다시 시도해 주세요.",
12
- "network-request-failed": "인터넷 연결을 확인한 뒤 다시 시도해 주세요.",
4
+ "invalid_credential": "이메일 또는 비밀번호를 다시 확인해 주세요.",
5
+ "wrong_password": "이메일 또는 비밀번호를 다시 확인해 주세요.",
6
+ "user_not_found": "입력한 정보와 일치하는 계정을 찾을 수 없어요.",
7
+ "invalid_email": "이메일 형식을 확인해 주세요.",
8
+ "email_already_in_use": "이미 가입된 이메일이에요. 로그인하거나 다른 이메일을 사용해 주세요.",
9
+ "weak_password": "비밀번호는 6자 이상으로 입력해 주세요.",
10
+ "user_disabled": "이 계정은 현재 사용할 수 없어요. 관리자에게 문의해 주세요.",
11
+ "too_many_requests": "시도가 너무 많아요. 잠시 후 다시 시도해 주세요.",
12
+ "network_request_failed": "인터넷 연결을 확인한 뒤 다시 시도해 주세요.",
13
13
  "timeout": "응답이 지연되고 있어요. 잠시 후 다시 시도해 주세요.",
14
- "requires-recent-login": "보안을 위해 다시 로그인해 주세요.",
15
- "user-token-expired": "로그인 시간이 만료되었어요. 다시 로그인해 주세요.",
16
- "operation-not-allowed": "현재 사용할 수 없는 로그인 방식이에요.",
17
- "account-exists-with-different-credential": "이미 다른 로그인 방식으로 가입된 이메일이에요. 기존 방식으로 로그인해 주세요.",
18
- "popup-blocked": "로그인 창이 차단되었어요. 팝업 허용 후 다시 시도해 주세요.",
19
- "popup-closed-by-user": "로그인 창이 닫혀서 로그인이 완료되지 않았어요.",
20
- "web-storage-unsupported": "현재 브라우저 설정에서는 로그인을 진행할 수 없어요.",
21
- "unauthorized-domain": "현재 접속한 도메인에서는 로그인을 사용할 수 없어요.",
22
- "internal-error": "문제가 발생했어요. 잠시 후 다시 시도해 주세요.",
14
+ "requires_recent_login": "보안을 위해 다시 로그인해 주세요.",
15
+ "user_token_expired": "로그인 시간이 만료되었어요. 다시 로그인해 주세요.",
16
+ "operation_not_allowed": "현재 사용할 수 없는 로그인 방식이에요.",
17
+ "account_exists_with_different_credential": "이미 다른 로그인 방식으로 가입된 이메일이에요. 기존 방식으로 로그인해 주세요.",
18
+ "popup_blocked": "로그인 창이 차단되었어요. 팝업 허용 후 다시 시도해 주세요.",
19
+ "popup_closed_by_user": "로그인 창이 닫혀서 로그인이 완료되지 않았어요.",
20
+ "web_storage_unsupported": "현재 브라우저 설정에서는 로그인을 진행할 수 없어요.",
21
+ "unauthorized_domain": "현재 접속한 도메인에서는 로그인을 사용할 수 없어요.",
22
+ "internal_error": "문제가 발생했어요. 잠시 후 다시 시도해 주세요.",
23
23
  "default": "로그인 중 문제가 발생했어요. 잠시 후 다시 시도해 주세요."
24
24
  }
25
25
  },
26
- "unknown_error_occured": "알 수 없는 오류가 발생했습니다."
26
+ "unknown_error_occurred": "알 수 없는 오류가 발생했습니다."
27
27
  };
28
28
 
29
29
  export default _default;
@@ -1 +1 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});let e=require(`react`),t=require(`motion/react`),n=require(`react/jsx-runtime`),r=require(`firebase/firestore`),i=require(`zustand/react`);function a({placeholder:r,src:i,onLoadError:a,...o}){let[s,c]=(0,e.useState)(()=>{if(typeof window>`u`||!i)return!1;let e=new Image;return e.src=i,e.complete&&e.naturalWidth>0}),[l,u]=(0,e.useState)(i);return l!==i&&(u(i),c(!1)),(0,e.useEffect)(()=>{if(!i)return;let e=new Image;return e.src=i,e.onload=()=>c(!0),e.onerror=e=>{a?a(e):console.error(`CrossfadeImage: Failed to load image`,i)},e.complete&&e.naturalWidth>0&&e.onload(new Event(`load`)),()=>{e.onload=null,e.onerror=null}},[i,a]),(0,n.jsx)(t.AnimatePresence,{children:s&&i?(0,n.jsx)(t.motion.img,{src:i,...o,initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},style:{...o.style}},`loaded-image`):(0,n.jsx)(t.motion.div,{initial:{opacity:1},transition:{duration:.3},style:{...o.style},children:r??(0,n.jsx)(`div`,{className:`w-full h-full bg-sidebar`})},`placeholder`)})}var o=[`ko`,`en`];function s(e){return{...e.data(),id:e.id}}async function c(e,t,n,i){let a=i.filter(e=>!!(e&&!n.has(e.path)));for(let i=0;i<a.length;i+=30){let o=a.slice(i,i+30);(await(0,r.getDocs)((0,r.query)(e,(0,r.where)((0,r.documentId)(),`in`,o.map(e=>e.id))))).forEach(e=>{let r=t(e);n.set(e.ref.path,r)})}}async function l(e,t,n){let i=n.filter(e=>!!(e&&!t.has(e.path)));await Promise.all(i.map(async n=>{let i=e(await(0,r.getDoc)(n));t.set(n.path,i)}))}function u(e={}){let{cache:t=!0,includeMetadataChanges:n}=e;return{listenOptions:{includeMetadataChanges:n??!t},cache:t}}function d(e,t){return t!==!1||!e}function f(e,t,n={}){let{listenOptions:i,cache:a}=u(n),{onError:o}=n;return e.type,(0,r.onSnapshot)(e,i,e=>{d(e.metadata.fromCache,a)&&t(e)},o)}Array.prototype.mapNotNull=function(e){return this.flatMap((t,n)=>{let r=e(t,n);return r==null?[]:[r]})};function p(){if(typeof window>`u`)return`pc`;let e=navigator.userAgent,t=navigator.platform,n=/Android/i.test(e),r=/iPhone|iPad|iPod/i.test(e)||t===`MacIntel`&&navigator.maxTouchPoints>1;return n?`android`:r?`ios`:`pc`}function m(t){let r=(0,e.createContext)(null);function a({children:i,...a}){let[o]=(0,e.useState)(()=>t(a));return(0,n.jsx)(r.Provider,{value:o,children:i})}function o(t){let n=(0,e.useContext)(r);if(!n)throw Error(`Provider가 필요합니다.`);return(0,i.useStore)(n,t)}let s=new Map;return{Provider:a,useStore:o,use:new Proxy({},{get:(e,t)=>(s.has(t)||s.set(t,()=>o(e=>e[t])),s.get(t))})}}var h=()=>({updateAt:(0,r.serverTimestamp)(),delete:!0}),g=()=>({updateAt:(0,r.serverTimestamp)(),delete:!1});function _(e){switch(e){case`auth/user-not-found`:case`auth/wrong-password`:case`auth/invalid-credential`:return`libs:auth.errors.invalid_credentials`;case`auth/invalid-email`:return`libs:auth.errors.invalid_email`;case`auth/user-disabled`:return`libs:auth.errors.user_disabled`;case`auth/too-many-requests`:return`libs:auth.errors.too_many_requests`;case`auth/network-request-failed`:return`libs:auth.errors.network_failed`;case`auth/email-already-in-use`:return`libs:auth.errors.email_already_in_use`;case`auth/weak-password`:return`libs:auth.errors.weak_password`;case`auth/requires-recent-login`:return`libs:auth.errors.requires_recent_login`;case`auth/user-token-expired`:return`libs:auth.errors.user_token_expired`;case`auth/popup-blocked`:return`libs:auth.errors.popup_blocked`;case`auth/popup-closed-by-user`:return`libs:auth.errors.popup_closed_by_user`;case`auth/operation-not-allowed`:return`libs:auth.errors.operation_not_allowed`;case`auth/web-storage-unsupported`:return`libs:auth.errors.web_storage_unsupported`;case`auth/unauthorized-domain`:return`libs:auth.errors.unauthorized_domain`;default:return`libs:auth.errors.default`}}var v={auth:{errors:{"invalid-credential":`이메일 또는 비밀번호를 다시 확인해 주세요.`,"wrong-password":`이메일 또는 비밀번호를 다시 확인해 주세요.`,"user-not-found":`입력한 정보와 일치하는 계정을 찾을 수 없어요.`,"invalid-email":`이메일 형식을 확인해 주세요.`,"email-already-in-use":`이미 가입된 이메일이에요. 로그인하거나 다른 이메일을 사용해 주세요.`,"weak-password":`비밀번호는 6자 이상으로 입력해 주세요.`,"user-disabled":`이 계정은 현재 사용할 수 없어요. 관리자에게 문의해 주세요.`,"too-many-requests":`시도가 너무 많아요. 잠시 후 다시 시도해 주세요.`,"network-request-failed":`인터넷 연결을 확인한 뒤 다시 시도해 주세요.`,timeout:`응답이 지연되고 있어요. 잠시 후 다시 시도해 주세요.`,"requires-recent-login":`보안을 위해 다시 로그인해 주세요.`,"user-token-expired":`로그인 시간이 만료되었어요. 다시 로그인해 주세요.`,"operation-not-allowed":`현재 사용할 수 없는 로그인 방식이에요.`,"account-exists-with-different-credential":`이미 다른 로그인 방식으로 가입된 이메일이에요. 기존 방식으로 로그인해 주세요.`,"popup-blocked":`로그인 창이 차단되었어요. 팝업 허용 후 다시 시도해 주세요.`,"popup-closed-by-user":`로그인 창이 닫혀서 로그인이 완료되지 않았어요.`,"web-storage-unsupported":`현재 브라우저 설정에서는 로그인을 진행할 수 없어요.`,"unauthorized-domain":`현재 접속한 도메인에서는 로그인을 사용할 수 없어요.`,"internal-error":`문제가 발생했어요. 잠시 후 다시 시도해 주세요.`,default:`로그인 중 문제가 발생했어요. 잠시 후 다시 시도해 주세요.`}},unknown_error_occured:`알 수 없는 오류가 발생했습니다.`},y={auth:{errors:{"invalid-credential":`Please check your email or password.`,"wrong-password":`Please check your email or password.`,"user-not-found":`We couldn’t find an account matching that information.`,"invalid-email":`Please check your email format.`,"email-already-in-use":`This email is already registered. Sign in or use a different email.`,"weak-password":`Your password must be at least 6 characters long.`,"user-disabled":`This account is currently unavailable. Please contact support.`,"too-many-requests":`Too many attempts. Please try again later.`,"network-request-failed":`Check your internet connection and try again.`,timeout:`The request is taking too long. Please try again.`,"requires-recent-login":`For security reasons, please sign in again.`,"user-token-expired":`Your session has expired. Please sign in again.`,"operation-not-allowed":`This sign-in method is currently unavailable.`,"account-exists-with-different-credential":`This email is already linked to another sign-in method. Please use that method to sign in.`,"popup-blocked":`The sign-in window was blocked. Please allow pop-ups and try again.`,"popup-closed-by-user":`The sign-in window was closed before completion.`,"web-storage-unsupported":`Sign-in is not available with your current browser settings.`,"unauthorized-domain":`Sign-in is not available on this domain.`,"internal-error":`Something went wrong. Please try again later.`,default:`We couldn’t complete the sign-in. Please try again later.`}},unknown_error_occured:`Unknown error occured.`};function b(e){e.hasResourceBundle(`ko`,`libs`)||e.addResourceBundle(`ko`,`libs`,v,!0,!1),e.hasResourceBundle(`en`,`libs`)||e.addResourceBundle(`en`,`libs`,y,!0,!1)}exports.CrossfadeImage=a,exports.SUPPORTED_LOCALES=o,exports.createZustandContext=m,exports.deleteItem=h,exports.fetchItems=c,exports.fetchItemsByOne=l,exports.getAuthErrorKey=_,exports.getPlatformType=p,exports.getSnapshots=f,exports.initIenlabI18n=b,exports.snapshotToData=s,exports.undeleteItem=g;
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});let e=require(`react`),t=require(`motion/react`),n=require(`react/jsx-runtime`),r=require(`firebase/firestore`),i=require(`zustand/react`);function a({placeholder:r,src:i,onLoadError:a,...o}){let[s,c]=(0,e.useState)(()=>{if(typeof window>`u`||!i)return!1;let e=new Image;return e.src=i,e.complete&&e.naturalWidth>0}),[l,u]=(0,e.useState)(i);return l!==i&&(u(i),c(!1)),(0,e.useEffect)(()=>{if(!i)return;let e=new Image;return e.src=i,e.onload=()=>c(!0),e.onerror=e=>{a?a(e):console.error(`CrossfadeImage: Failed to load image`,i)},e.complete&&e.naturalWidth>0&&e.onload(new Event(`load`)),()=>{e.onload=null,e.onerror=null}},[i,a]),(0,n.jsx)(t.AnimatePresence,{children:s&&i?(0,n.jsx)(t.motion.img,{src:i,...o,initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},style:{...o.style}},`loaded-image`):(0,n.jsx)(t.motion.div,{initial:{opacity:1},transition:{duration:.3},style:{...o.style},children:r??(0,n.jsx)(`div`,{className:`w-full h-full bg-sidebar`})},`placeholder`)})}var o=[`ko`,`en`];function s(e){return{...e.data(),id:e.id}}async function c(e,t,n,i){let a=i.filter(e=>!!(e&&!n.has(e.path)));for(let i=0;i<a.length;i+=30){let o=a.slice(i,i+30);(await(0,r.getDocs)((0,r.query)(e,(0,r.where)((0,r.documentId)(),`in`,o.map(e=>e.id))))).forEach(e=>{let r=t(e);n.set(e.ref.path,r)})}}async function l(e,t,n){let i=n.filter(e=>!!(e&&!t.has(e.path)));await Promise.all(i.map(async n=>{let i=e(await(0,r.getDoc)(n));t.set(n.path,i)}))}function u(e={}){let{cache:t=!0,includeMetadataChanges:n}=e;return{listenOptions:{includeMetadataChanges:n??!t},cache:t}}function d(e,t){return t!==!1||!e}function f(e,t,n={}){let{listenOptions:i,cache:a}=u(n),{onError:o}=n;return e.type,(0,r.onSnapshot)(e,i,e=>{d(e.metadata.fromCache,a)&&t(e)},o)}Array.prototype.mapNotNull=function(e){return this.flatMap((t,n)=>{let r=e(t,n);return r==null?[]:[r]})};function p(){if(typeof window>`u`)return`pc`;let e=navigator.userAgent,t=navigator.platform,n=/Android/i.test(e),r=/iPhone|iPad|iPod/i.test(e)||t===`MacIntel`&&navigator.maxTouchPoints>1;return n?`android`:r?`ios`:`pc`}function m(t){let r=(0,e.createContext)(null);function a({children:i,...a}){let[o]=(0,e.useState)(()=>t(a));return(0,n.jsx)(r.Provider,{value:o,children:i})}function o(t){let n=(0,e.useContext)(r);if(!n)throw Error(`Provider가 필요합니다.`);return(0,i.useStore)(n,t)}let s=new Map;return{Provider:a,useStore:o,use:new Proxy({},{get:(e,t)=>(s.has(t)||s.set(t,()=>o(e=>e[t])),s.get(t))})}}var h=()=>({updateAt:(0,r.serverTimestamp)(),delete:!0}),g=()=>({updateAt:(0,r.serverTimestamp)(),delete:!1});function _(e){switch(e){case`auth/user-not-found`:return`libs:auth.errors.user_not_found`;case`auth/wrong-password`:return`libs:auth.errors.wrong_password`;case`auth/invalid-credential`:return`libs:auth.errors.invalid_credential`;case`auth/invalid-email`:return`libs:auth.errors.invalid_email`;case`auth/user-disabled`:return`libs:auth.errors.user_disabled`;case`auth/too-many-requests`:return`libs:auth.errors.too_many_requests`;case`auth/network-request-failed`:return`libs:auth.errors.network_request_failed`;case`auth/timeout`:return`libs:auth.errors.timeout`;case`auth/email-already-in-use`:return`libs:auth.errors.email_already_in_use`;case`auth/weak-password`:return`libs:auth.errors.weak_password`;case`auth/requires-recent-login`:return`libs:auth.errors.requires_recent_login`;case`auth/user-token-expired`:return`libs:auth.errors.user_token_expired`;case`auth/popup-blocked`:return`libs:auth.errors.popup_blocked`;case`auth/popup-closed-by-user`:return`libs:auth.errors.popup_closed_by_user`;case`auth/operation-not-allowed`:return`libs:auth.errors.operation_not_allowed`;case`auth/web-storage-unsupported`:return`libs:auth.errors.web_storage_unsupported`;case`auth/unauthorized-domain`:return`libs:auth.errors.unauthorized_domain`;default:return`libs:auth.errors.default`}}var v={auth:{errors:{invalid_credential:`이메일 또는 비밀번호를 다시 확인해 주세요.`,wrong_password:`이메일 또는 비밀번호를 다시 확인해 주세요.`,user_not_found:`입력한 정보와 일치하는 계정을 찾을 수 없어요.`,invalid_email:`이메일 형식을 확인해 주세요.`,email_already_in_use:`이미 가입된 이메일이에요. 로그인하거나 다른 이메일을 사용해 주세요.`,weak_password:`비밀번호는 6자 이상으로 입력해 주세요.`,user_disabled:`이 계정은 현재 사용할 수 없어요. 관리자에게 문의해 주세요.`,too_many_requests:`시도가 너무 많아요. 잠시 후 다시 시도해 주세요.`,network_request_failed:`인터넷 연결을 확인한 뒤 다시 시도해 주세요.`,timeout:`응답이 지연되고 있어요. 잠시 후 다시 시도해 주세요.`,requires_recent_login:`보안을 위해 다시 로그인해 주세요.`,user_token_expired:`로그인 시간이 만료되었어요. 다시 로그인해 주세요.`,operation_not_allowed:`현재 사용할 수 없는 로그인 방식이에요.`,account_exists_with_different_credential:`이미 다른 로그인 방식으로 가입된 이메일이에요. 기존 방식으로 로그인해 주세요.`,popup_blocked:`로그인 창이 차단되었어요. 팝업 허용 후 다시 시도해 주세요.`,popup_closed_by_user:`로그인 창이 닫혀서 로그인이 완료되지 않았어요.`,web_storage_unsupported:`현재 브라우저 설정에서는 로그인을 진행할 수 없어요.`,unauthorized_domain:`현재 접속한 도메인에서는 로그인을 사용할 수 없어요.`,internal_error:`문제가 발생했어요. 잠시 후 다시 시도해 주세요.`,default:`로그인 중 문제가 발생했어요. 잠시 후 다시 시도해 주세요.`}},unknown_error_occurred:`알 수 없는 오류가 발생했습니다.`},y={auth:{errors:{invalid_credential:`Please check your email or password.`,wrong_password:`Please check your email or password.`,user_not_found:`We couldn’t find an account matching that information.`,invalid_email:`Please check your email format.`,email_already_in_use:`This email is already registered. Sign in or use a different email.`,weak_password:`Your password must be at least 6 characters long.`,user_disabled:`This account is currently unavailable. Please contact support.`,too_many_requests:`Too many attempts. Please try again later.`,network_request_failed:`Check your internet connection and try again.`,timeout:`The request is taking too long. Please try again.`,requires_recent_login:`For security reasons, please sign in again.`,user_token_expired:`Your session has expired. Please sign in again.`,operation_not_allowed:`This sign-in method is currently unavailable.`,account_exists_with_different_credential:`This email is already linked to another sign-in method. Please use that method to sign in.`,popup_blocked:`The sign-in window was blocked. Please allow pop-ups and try again.`,popup_closed_by_user:`The sign-in window was closed before completion.`,web_storage_unsupported:`Sign-in is not available with your current browser settings.`,unauthorized_domain:`Sign-in is not available on this domain.`,internal_error:`Something went wrong. Please try again later.`,default:`We couldn’t complete the sign-in. Please try again later.`}},unknown_error_occurred:`Unknown error occurred.`};function b(e){e.hasResourceBundle(`ko`,`libs`)||e.addResourceBundle(`ko`,`libs`,v,!0,!1),e.hasResourceBundle(`en`,`libs`)||e.addResourceBundle(`en`,`libs`,y,!0,!1)}exports.CrossfadeImage=a,exports.SUPPORTED_LOCALES=o,exports.createZustandContext=m,exports.deleteItem=h,exports.fetchItems=c,exports.fetchItemsByOne=l,exports.getAuthErrorKey=_,exports.getPlatformType=p,exports.getSnapshots=f,exports.initIenlabI18n=b,exports.snapshotToData=s,exports.undeleteItem=g;
@@ -127,13 +127,14 @@ var T = () => ({
127
127
  //#region src/constant/auth.ts
128
128
  function D(e) {
129
129
  switch (e) {
130
- case "auth/user-not-found":
131
- case "auth/wrong-password":
132
- case "auth/invalid-credential": return "libs:auth.errors.invalid_credentials";
130
+ case "auth/user-not-found": return "libs:auth.errors.user_not_found";
131
+ case "auth/wrong-password": return "libs:auth.errors.wrong_password";
132
+ case "auth/invalid-credential": return "libs:auth.errors.invalid_credential";
133
133
  case "auth/invalid-email": return "libs:auth.errors.invalid_email";
134
134
  case "auth/user-disabled": return "libs:auth.errors.user_disabled";
135
135
  case "auth/too-many-requests": return "libs:auth.errors.too_many_requests";
136
- case "auth/network-request-failed": return "libs:auth.errors.network_failed";
136
+ case "auth/network-request-failed": return "libs:auth.errors.network_request_failed";
137
+ case "auth/timeout": return "libs:auth.errors.timeout";
137
138
  case "auth/email-already-in-use": return "libs:auth.errors.email_already_in_use";
138
139
  case "auth/weak-password": return "libs:auth.errors.weak_password";
139
140
  case "auth/requires-recent-login": return "libs:auth.errors.requires_recent_login";
@@ -148,52 +149,52 @@ function D(e) {
148
149
  }
149
150
  var O = {
150
151
  auth: { errors: {
151
- "invalid-credential": "이메일 또는 비밀번호를 다시 확인해 주세요.",
152
- "wrong-password": "이메일 또는 비밀번호를 다시 확인해 주세요.",
153
- "user-not-found": "입력한 정보와 일치하는 계정을 찾을 수 없어요.",
154
- "invalid-email": "이메일 형식을 확인해 주세요.",
155
- "email-already-in-use": "이미 가입된 이메일이에요. 로그인하거나 다른 이메일을 사용해 주세요.",
156
- "weak-password": "비밀번호는 6자 이상으로 입력해 주세요.",
157
- "user-disabled": "이 계정은 현재 사용할 수 없어요. 관리자에게 문의해 주세요.",
158
- "too-many-requests": "시도가 너무 많아요. 잠시 후 다시 시도해 주세요.",
159
- "network-request-failed": "인터넷 연결을 확인한 뒤 다시 시도해 주세요.",
152
+ invalid_credential: "이메일 또는 비밀번호를 다시 확인해 주세요.",
153
+ wrong_password: "이메일 또는 비밀번호를 다시 확인해 주세요.",
154
+ user_not_found: "입력한 정보와 일치하는 계정을 찾을 수 없어요.",
155
+ invalid_email: "이메일 형식을 확인해 주세요.",
156
+ email_already_in_use: "이미 가입된 이메일이에요. 로그인하거나 다른 이메일을 사용해 주세요.",
157
+ weak_password: "비밀번호는 6자 이상으로 입력해 주세요.",
158
+ user_disabled: "이 계정은 현재 사용할 수 없어요. 관리자에게 문의해 주세요.",
159
+ too_many_requests: "시도가 너무 많아요. 잠시 후 다시 시도해 주세요.",
160
+ network_request_failed: "인터넷 연결을 확인한 뒤 다시 시도해 주세요.",
160
161
  timeout: "응답이 지연되고 있어요. 잠시 후 다시 시도해 주세요.",
161
- "requires-recent-login": "보안을 위해 다시 로그인해 주세요.",
162
- "user-token-expired": "로그인 시간이 만료되었어요. 다시 로그인해 주세요.",
163
- "operation-not-allowed": "현재 사용할 수 없는 로그인 방식이에요.",
164
- "account-exists-with-different-credential": "이미 다른 로그인 방식으로 가입된 이메일이에요. 기존 방식으로 로그인해 주세요.",
165
- "popup-blocked": "로그인 창이 차단되었어요. 팝업 허용 후 다시 시도해 주세요.",
166
- "popup-closed-by-user": "로그인 창이 닫혀서 로그인이 완료되지 않았어요.",
167
- "web-storage-unsupported": "현재 브라우저 설정에서는 로그인을 진행할 수 없어요.",
168
- "unauthorized-domain": "현재 접속한 도메인에서는 로그인을 사용할 수 없어요.",
169
- "internal-error": "문제가 발생했어요. 잠시 후 다시 시도해 주세요.",
162
+ requires_recent_login: "보안을 위해 다시 로그인해 주세요.",
163
+ user_token_expired: "로그인 시간이 만료되었어요. 다시 로그인해 주세요.",
164
+ operation_not_allowed: "현재 사용할 수 없는 로그인 방식이에요.",
165
+ account_exists_with_different_credential: "이미 다른 로그인 방식으로 가입된 이메일이에요. 기존 방식으로 로그인해 주세요.",
166
+ popup_blocked: "로그인 창이 차단되었어요. 팝업 허용 후 다시 시도해 주세요.",
167
+ popup_closed_by_user: "로그인 창이 닫혀서 로그인이 완료되지 않았어요.",
168
+ web_storage_unsupported: "현재 브라우저 설정에서는 로그인을 진행할 수 없어요.",
169
+ unauthorized_domain: "현재 접속한 도메인에서는 로그인을 사용할 수 없어요.",
170
+ internal_error: "문제가 발생했어요. 잠시 후 다시 시도해 주세요.",
170
171
  default: "로그인 중 문제가 발생했어요. 잠시 후 다시 시도해 주세요."
171
172
  } },
172
- unknown_error_occured: "알 수 없는 오류가 발생했습니다."
173
+ unknown_error_occurred: "알 수 없는 오류가 발생했습니다."
173
174
  }, k = {
174
175
  auth: { errors: {
175
- "invalid-credential": "Please check your email or password.",
176
- "wrong-password": "Please check your email or password.",
177
- "user-not-found": "We couldn’t find an account matching that information.",
178
- "invalid-email": "Please check your email format.",
179
- "email-already-in-use": "This email is already registered. Sign in or use a different email.",
180
- "weak-password": "Your password must be at least 6 characters long.",
181
- "user-disabled": "This account is currently unavailable. Please contact support.",
182
- "too-many-requests": "Too many attempts. Please try again later.",
183
- "network-request-failed": "Check your internet connection and try again.",
176
+ invalid_credential: "Please check your email or password.",
177
+ wrong_password: "Please check your email or password.",
178
+ user_not_found: "We couldn’t find an account matching that information.",
179
+ invalid_email: "Please check your email format.",
180
+ email_already_in_use: "This email is already registered. Sign in or use a different email.",
181
+ weak_password: "Your password must be at least 6 characters long.",
182
+ user_disabled: "This account is currently unavailable. Please contact support.",
183
+ too_many_requests: "Too many attempts. Please try again later.",
184
+ network_request_failed: "Check your internet connection and try again.",
184
185
  timeout: "The request is taking too long. Please try again.",
185
- "requires-recent-login": "For security reasons, please sign in again.",
186
- "user-token-expired": "Your session has expired. Please sign in again.",
187
- "operation-not-allowed": "This sign-in method is currently unavailable.",
188
- "account-exists-with-different-credential": "This email is already linked to another sign-in method. Please use that method to sign in.",
189
- "popup-blocked": "The sign-in window was blocked. Please allow pop-ups and try again.",
190
- "popup-closed-by-user": "The sign-in window was closed before completion.",
191
- "web-storage-unsupported": "Sign-in is not available with your current browser settings.",
192
- "unauthorized-domain": "Sign-in is not available on this domain.",
193
- "internal-error": "Something went wrong. Please try again later.",
186
+ requires_recent_login: "For security reasons, please sign in again.",
187
+ user_token_expired: "Your session has expired. Please sign in again.",
188
+ operation_not_allowed: "This sign-in method is currently unavailable.",
189
+ account_exists_with_different_credential: "This email is already linked to another sign-in method. Please use that method to sign in.",
190
+ popup_blocked: "The sign-in window was blocked. Please allow pop-ups and try again.",
191
+ popup_closed_by_user: "The sign-in window was closed before completion.",
192
+ web_storage_unsupported: "Sign-in is not available with your current browser settings.",
193
+ unauthorized_domain: "Sign-in is not available on this domain.",
194
+ internal_error: "Something went wrong. Please try again later.",
194
195
  default: "We couldn’t complete the sign-in. Please try again later."
195
196
  } },
196
- unknown_error_occured: "Unknown error occured."
197
+ unknown_error_occurred: "Unknown error occurred."
197
198
  };
198
199
  //#endregion
199
200
  //#region src/locales/i18n.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ienlab/react-library",
3
- "version": "0.10.0",
3
+ "version": "0.10.2",
4
4
  "description": "My React component library",
5
5
  "main": "./dist/my-library.cjs.js",
6
6
  "module": "./dist/my-library.es.js",
@@ -13,7 +13,9 @@
13
13
  "import": "./dist/my-library.es.js",
14
14
  "require": "./dist/my-library.cjs.js",
15
15
  "types": "./dist/index.d.ts"
16
- }
16
+ },
17
+ "./locales/ko/libs.json": "./dist/locales/ko/libs.json",
18
+ "./locales/en/libs.json": "./dist/locales/en/libs.json"
17
19
  },
18
20
  "type": "module",
19
21
  "scripts": {