@ienlab/react-library 0.9.0 → 0.10.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/constant/auth.d.ts +1 -1
- package/dist/constant/auth.d.ts.map +1 -1
- package/dist/locales/en/libs.json.d.ts +29 -0
- package/dist/locales/ko/libs.json.d.ts +29 -0
- package/dist/my-library.cjs.js +1 -1
- package/dist/my-library.es.js +76 -21
- package/package.json +1 -1
- package/dist/locales/en/strings.json.d.ts +0 -13
- package/dist/locales/ko/strings.json.d.ts +0 -13
package/dist/constant/auth.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare
|
|
1
|
+
export declare function getAuthErrorKey(errorCode?: string): string;
|
|
2
2
|
//# sourceMappingURL=auth.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auth.d.ts","sourceRoot":"","sources":["../../src/constant/auth.ts"],"names":[],"mappings":"AAAA,
|
|
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"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
"auth": {
|
|
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.",
|
|
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.",
|
|
23
|
+
"default": "We couldn’t complete the sign-in. Please try again later."
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
"unknown_error_occurred": "Unknown error occurred."
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
export default _default;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
"auth": {
|
|
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": "인터넷 연결을 확인한 뒤 다시 시도해 주세요.",
|
|
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": "문제가 발생했어요. 잠시 후 다시 시도해 주세요.",
|
|
23
|
+
"default": "로그인 중 문제가 발생했어요. 잠시 후 다시 시도해 주세요."
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
"unknown_error_occurred": "알 수 없는 오류가 발생했습니다."
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
export default _default;
|
package/dist/my-library.cjs.js
CHANGED
|
@@ -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})
|
|
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;
|
package/dist/my-library.es.js
CHANGED
|
@@ -122,29 +122,84 @@ var T = () => ({
|
|
|
122
122
|
}), E = () => ({
|
|
123
123
|
updateAt: f(),
|
|
124
124
|
delete: !1
|
|
125
|
-
})
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
125
|
+
});
|
|
126
|
+
//#endregion
|
|
127
|
+
//#region src/constant/auth.ts
|
|
128
|
+
function D(e) {
|
|
129
|
+
switch (e) {
|
|
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
|
+
case "auth/invalid-email": return "libs:auth.errors.invalid_email";
|
|
134
|
+
case "auth/user-disabled": return "libs:auth.errors.user_disabled";
|
|
135
|
+
case "auth/too-many-requests": return "libs:auth.errors.too_many_requests";
|
|
136
|
+
case "auth/network-request-failed": return "libs:auth.errors.network_request_failed";
|
|
137
|
+
case "auth/timeout": return "libs:auth.errors.timeout";
|
|
138
|
+
case "auth/email-already-in-use": return "libs:auth.errors.email_already_in_use";
|
|
139
|
+
case "auth/weak-password": return "libs:auth.errors.weak_password";
|
|
140
|
+
case "auth/requires-recent-login": return "libs:auth.errors.requires_recent_login";
|
|
141
|
+
case "auth/user-token-expired": return "libs:auth.errors.user_token_expired";
|
|
142
|
+
case "auth/popup-blocked": return "libs:auth.errors.popup_blocked";
|
|
143
|
+
case "auth/popup-closed-by-user": return "libs:auth.errors.popup_closed_by_user";
|
|
144
|
+
case "auth/operation-not-allowed": return "libs:auth.errors.operation_not_allowed";
|
|
145
|
+
case "auth/web-storage-unsupported": return "libs:auth.errors.web_storage_unsupported";
|
|
146
|
+
case "auth/unauthorized-domain": return "libs:auth.errors.unauthorized_domain";
|
|
147
|
+
default: return "libs:auth.errors.default";
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
var O = {
|
|
151
|
+
auth: { errors: {
|
|
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: "인터넷 연결을 확인한 뒤 다시 시도해 주세요.",
|
|
161
|
+
timeout: "응답이 지연되고 있어요. 잠시 후 다시 시도해 주세요.",
|
|
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: "문제가 발생했어요. 잠시 후 다시 시도해 주세요.",
|
|
171
|
+
default: "로그인 중 문제가 발생했어요. 잠시 후 다시 시도해 주세요."
|
|
172
|
+
} },
|
|
173
|
+
unknown_error_occurred: "알 수 없는 오류가 발생했습니다."
|
|
174
|
+
}, k = {
|
|
175
|
+
auth: { errors: {
|
|
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.",
|
|
185
|
+
timeout: "The request is taking too long. Please try again.",
|
|
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.",
|
|
195
|
+
default: "We couldn’t complete the sign-in. Please try again later."
|
|
196
|
+
} },
|
|
197
|
+
unknown_error_occurred: "Unknown error occurred."
|
|
198
|
+
};
|
|
144
199
|
//#endregion
|
|
145
200
|
//#region src/locales/i18n.ts
|
|
146
201
|
function A(e) {
|
|
147
|
-
e.hasResourceBundle("ko", "
|
|
202
|
+
e.hasResourceBundle("ko", "libs") || e.addResourceBundle("ko", "libs", O, !0, !1), e.hasResourceBundle("en", "libs") || e.addResourceBundle("en", "libs", k, !0, !1);
|
|
148
203
|
}
|
|
149
204
|
//#endregion
|
|
150
|
-
export { h as CrossfadeImage, g as SUPPORTED_LOCALES,
|
|
205
|
+
export { h as CrossfadeImage, g as SUPPORTED_LOCALES, w as createZustandContext, T as deleteItem, v as fetchItems, y as fetchItemsByOne, D as getAuthErrorKey, C as getPlatformType, S as getSnapshots, A as initIenlabI18n, _ as snapshotToData, E as undeleteItem };
|
package/package.json
CHANGED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
declare const _default: {
|
|
2
|
-
"auth": {
|
|
3
|
-
"errors": {
|
|
4
|
-
"invalid_credential": "Invalid credentials.",
|
|
5
|
-
"invalid_email": "The email address is invalid.",
|
|
6
|
-
"user_disabled": "The user account has been disabled.",
|
|
7
|
-
"too_many_requests": "Too many requests. Please try again later.",
|
|
8
|
-
"network_failed": "Failed to connect to the network."
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
};
|
|
12
|
-
|
|
13
|
-
export default _default;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
declare const _default: {
|
|
2
|
-
"auth": {
|
|
3
|
-
"errors": {
|
|
4
|
-
"invalid_credential": "잘못된 인증 정보입니다.",
|
|
5
|
-
"invalid_email": "이메일 주소가 유효하지 않습니다.",
|
|
6
|
-
"user_disabled": "사용자가 비활성화되었습니다.",
|
|
7
|
-
"too_many_requests": "요청이 너무 많습니다. 잠시 후 다시 시도해주세요.",
|
|
8
|
-
"network_failed": "네트워크 연결에 실패했습니다."
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
};
|
|
12
|
-
|
|
13
|
-
export default _default;
|