propro-common-components 0.1.307 → 0.1.309
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/main.d.ts +3 -1
- package/dist/propro-common-components.js +174 -106
- package/dist/utils/extensionAuth.d.ts +20 -0
- package/package.json +4 -3
package/dist/main.d.ts
CHANGED
@@ -18,10 +18,12 @@ import { DefaultSignInSignUpFormProps, PlasmicSignInSignUpForm } from './plasmic
|
|
18
18
|
import { default as SignInSignUpForm } from './plasmicComponents/SignInSignUpForm';
|
19
19
|
import { default as SignInSignUpFormLayout } from './plasmicComponents/SignInSignUpFormLayout';
|
20
20
|
import { default as TextInputFromProPro } from './plasmicComponents/TextInputFromProPro';
|
21
|
+
import { default as extensionAuth } from './utils/extensionAuth';
|
21
22
|
import { handleAuth } from './utils/handleAuth';
|
22
23
|
import { RUNNING_IN_TAURI } from './constants/tauriConstants';
|
23
24
|
import { AuthProvider } from './context/AuthContext';
|
24
25
|
import { IconLoader, IconType, PlasmicEmojiAndIconSelection, StyleType, getAvailableStyles, loadIcon, searchIcon } from 'propro-icons';
|
25
26
|
|
26
|
-
export { AccountManagementComponent, AppContext, AppProvider, AuthProvider, AvatarMenu, Footer, IconLoader, ListGridSwitch, Loading, PlasmicEmojiAndIconSelection, PlasmicSignInSignUpForm, PrivateRoute, RUNNING_IN_TAURI, SignInSignUpForm, SignInSignUpFormLayout, TextInputFromProPro, axiosInstance, checkAccessToken,
|
27
|
+
export { AccountManagementComponent, AppContext, AppProvider, AuthProvider, AvatarMenu, Footer, IconLoader, ListGridSwitch, Loading, PlasmicEmojiAndIconSelection, PlasmicSignInSignUpForm, PrivateRoute, RUNNING_IN_TAURI, SignInSignUpForm, SignInSignUpFormLayout, TextInputFromProPro, axiosInstance, checkAccessToken, extensionAuth, // function suite for authentication with extensions.
|
28
|
+
getAvailableStyles, getCookie, getStorage, handleAuth, isUserLoggedIn, loadIcon, logout, removeStorage, searchIcon, setCookie, setStorage, useGet, useMutate, useMutateWithKeepAlive, };
|
27
29
|
export type { DefaultSignInSignUpFormProps, IconType, StyleType };
|
@@ -621,7 +621,7 @@ axiosInstance.interceptors.response.use(
|
|
621
621
|
if (((_ = m.response) == null ? void 0 : _.status) === 302 && typeof m.response.data == "object" && m.response.data && "url" in m.response.data)
|
622
622
|
return m.response;
|
623
623
|
if (((x = m.response) == null ? void 0 : x.status) === 401 && !(g != null && g._retry))
|
624
|
-
return await handleAuth(), Promise.reject(m);
|
624
|
+
return await handleAuth$1(), Promise.reject(m);
|
625
625
|
const b = handleError(m, "Response Interceptor", {
|
626
626
|
url: (S = m.config) == null ? void 0 : S.url,
|
627
627
|
method: (E = m.config) == null ? void 0 : E.method
|
@@ -722,15 +722,15 @@ function init(m, g) {
|
|
722
722
|
}
|
723
723
|
var api$1 = init(defaultConverter, { path: "/" });
|
724
724
|
function getStorage(m) {
|
725
|
-
return RUNNING_IN_TAURI ? localStorageGetItem(m) : getCookie(m);
|
725
|
+
return RUNNING_IN_TAURI ? localStorageGetItem(m) : getCookie$1(m);
|
726
726
|
}
|
727
727
|
function setStorage(m, g, b = {}) {
|
728
|
-
return RUNNING_IN_TAURI ? localStorageSetItem(m, g) : setCookie(m, g, b);
|
728
|
+
return RUNNING_IN_TAURI ? localStorageSetItem(m, g) : setCookie$1(m, g, b);
|
729
729
|
}
|
730
730
|
function removeStorage(m) {
|
731
731
|
return RUNNING_IN_TAURI ? localStorageRemoveItem(m) : api$1.remove(m);
|
732
732
|
}
|
733
|
-
const handleAuth = async () => {
|
733
|
+
const handleAuth$1 = async () => {
|
734
734
|
var g;
|
735
735
|
if (RUNNING_IN_TAURI) {
|
736
736
|
window.location.pathname.includes("/desktop-entry") || (window.location.href = "/desktop-entry");
|
@@ -739,41 +739,44 @@ const handleAuth = async () => {
|
|
739
739
|
const m = await axios.post("/api/auth");
|
740
740
|
(g = m == null ? void 0 : m.data) != null && g.redirectUrl && (window.location.href = m.data.redirectUrl);
|
741
741
|
};
|
742
|
-
function isUserLoggedIn() {
|
742
|
+
function isUserLoggedIn$1() {
|
743
743
|
return !!getStorage("account");
|
744
744
|
}
|
745
745
|
function isExpired(m) {
|
746
746
|
const g = new Date(m);
|
747
747
|
return isNaN(g.getTime()) ? !0 : (/* @__PURE__ */ new Date()).getTime() > g.getTime();
|
748
748
|
}
|
749
|
-
const checkAccessToken = async () => {
|
750
|
-
var x, S, E, C, A, T, M, I;
|
749
|
+
const checkAccessToken$1 = async () => {
|
750
|
+
var x, S, E, C, A, T, M, I, P, R, D;
|
751
751
|
const m = getStorage("has_account_token"), g = getStorage("accessToken"), b = getStorage("refreshToken"), _ = getStorage("accessTokenExpiry");
|
752
752
|
if (RUNNING_IN_TAURI && !isExpired(_) || !RUNNING_IN_TAURI && m)
|
753
753
|
return { accessToken: g, continueToRequest: !0 };
|
754
|
-
if (isUserLoggedIn()) {
|
754
|
+
if (isUserLoggedIn$1()) {
|
755
755
|
console.log("User is Logged in");
|
756
756
|
try {
|
757
757
|
RUNNING_IN_TAURI && (axios.defaults.headers["x-refresh-token"] = `${b}`), console.log("Before refresh token");
|
758
|
-
const
|
758
|
+
const N = await axios.post(
|
759
759
|
`/api/refreshToken${RUNNING_IN_TAURI ? "?returnTokens=true" : ""}`
|
760
760
|
);
|
761
761
|
if (console.log("After refresh token"), RUNNING_IN_TAURI && isExpired(_)) {
|
762
|
-
const
|
763
|
-
if (
|
764
|
-
const
|
765
|
-
return setStorage("account",
|
762
|
+
const V = N == null ? void 0 : N.data;
|
763
|
+
if (V) {
|
764
|
+
const L = V == null ? void 0 : V.account, O = V == null ? void 0 : V.user, F = (S = (x = V == null ? void 0 : V.tokens) == null ? void 0 : x.access) == null ? void 0 : S.token, $ = (C = (E = V == null ? void 0 : V.tokens) == null ? void 0 : E.access) == null ? void 0 : C.expires, z = (T = (A = V == null ? void 0 : V.tokens) == null ? void 0 : A.refresh) == null ? void 0 : T.token, U = (I = (M = V == null ? void 0 : V.tokens) == null ? void 0 : M.refresh) == null ? void 0 : I.expires;
|
765
|
+
return setStorage("account", L), setStorage("user", O), setStorage("accessToken", F), setStorage("accessTokenExpiry", $), setStorage("refreshToken", z), setStorage("refreshTokenExpiry", U), { accessToken: F, continueToRequest: !0 };
|
766
766
|
}
|
767
767
|
return { accessToken: void 0, continueToRequest: !1 };
|
768
768
|
}
|
769
|
-
return {
|
769
|
+
return {
|
770
|
+
accessToken: (D = (R = (P = N == null ? void 0 : N.data) == null ? void 0 : P.tokens) == null ? void 0 : R.access) == null ? void 0 : D.token,
|
771
|
+
continueToRequest: !0
|
772
|
+
};
|
770
773
|
} catch {
|
771
|
-
return console.log("~ ERROR RUNNING REFRESH TOKEN"), await handleAuth(), { accessToken: void 0, continueToRequest: !1 };
|
774
|
+
return console.log("~ ERROR RUNNING REFRESH TOKEN"), await handleAuth$1(), { accessToken: void 0, continueToRequest: !1 };
|
772
775
|
}
|
773
776
|
} else
|
774
|
-
return console.log("~ USER NOT LOGGED IN"), await handleAuth(), { accessToken: void 0, continueToRequest: !1 };
|
777
|
+
return console.log("~ USER NOT LOGGED IN"), await handleAuth$1(), { accessToken: void 0, continueToRequest: !1 };
|
775
778
|
};
|
776
|
-
function getCookie(m) {
|
779
|
+
function getCookie$1(m) {
|
777
780
|
const g = m + "=", _ = decodeURIComponent(document.cookie).split(";");
|
778
781
|
for (let x = 0; x < _.length; x++) {
|
779
782
|
let S = _[x];
|
@@ -789,7 +792,7 @@ function getCookie(m) {
|
|
789
792
|
}
|
790
793
|
}
|
791
794
|
}
|
792
|
-
async function logout() {
|
795
|
+
async function logout$1() {
|
793
796
|
let m;
|
794
797
|
RUNNING_IN_TAURI ? m = logoutTauri() : m = await logoutWeb(), window.location.href = m, toast("Redirecting back to login...");
|
795
798
|
}
|
@@ -801,7 +804,7 @@ async function logoutWeb() {
|
|
801
804
|
const m = await axios.post("/api/logout");
|
802
805
|
return (g = m == null ? void 0 : m.data) == null ? void 0 : g.redirectUrl;
|
803
806
|
}
|
804
|
-
function setCookie(m, g, b = {}) {
|
807
|
+
function setCookie$1(m, g, b = {}) {
|
805
808
|
const _ = document.cookie.split(";").reduce(
|
806
809
|
(T, M) => {
|
807
810
|
const [I, P] = M.trim().split("=");
|
@@ -822,7 +825,7 @@ function setCookie(m, g, b = {}) {
|
|
822
825
|
M !== "" ? A += `; ${T}=${M}` : A += `; ${T}`;
|
823
826
|
document.cookie = A;
|
824
827
|
}
|
825
|
-
var define_process_env_default$5 = { npm_package_devDependencies_react_dom: "^18.2.0", npm_package_devDependencies__tailwindcss_typography: "^0.5.10", npm_package_devDependencies__storybook_test: "^8.1.5", npm_package_devDependencies__storybook_addon_links: "^8.1.5", npm_package_dependencies__fortawesome_fontawesome_svg_core: "^6.5.1", npm_package_dependencies__radix_ui_react_tabs: "^1.0.4", TERM_PROGRAM: "WarpTerminal", NODE: "/usr/local/Cellar/node/21.6.2_1/bin/node", INIT_CWD: "/Users/dan/Documents/work/propro/propro-reusable-components", npm_package_peerDependencies_axios: "^1.6.7", npm_package_devDependencies_typescript: "^5.2.2", npm_package_dependencies_lucide_react: "^0.309.0", npm_package_dependencies_axios: "^1.6.7", npm_package_dependencies__tauri_apps_plugin_http: "^2.0.0", npm_config_version_git_tag: "true", SHELL: "/bin/zsh", TERM: "xterm-256color", WARP_HONOR_PS1: "0", npm_package_devDependencies_vite: "^5.0.8", npm_package_devDependencies__storybook_addon_essentials: "^8.1.5", npm_package_dependencies__radix_ui_react_dialog: "^1.0.5", npm_package_dependencies__plasmicpkgs_plasmic_tabs: "^0.0.48", TMPDIR: "/var/folders/yn/6n3p2d610s197g728jdbk2f00000gn/T/", npm_package_scripts_lint: "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0", npm_config_init_license: "MIT", TERM_PROGRAM_VERSION: "v0.2024.11.12.08.02.stable_02", npm_package_devDependencies__vitejs_plugin_react: "^4.2.1", npm_package_scripts_dev: "vite", npm_package_dependencies_react_lottie: "^1.2.4", npm_package_scripts_prepublishOnly: "yarn build", npm_package_dependencies__tauri_apps_api: "^2.0.2", npm_package_dependencies__plasmicapp_react_web: "^0.2.337", npm_package_devDependencies__storybook_blocks: "^8.1.5", npm_package_devDependencies__storybook_addon_interactions: "^8.1.5", npm_package_dependencies__plasmicpkgs_antd: "^2.0.127", npm_config_registry: "https://registry.yarnpkg.com", ZSH: "/Users/dan/.oh-my-zsh", npm_package_peerDependencies_react_dom: "^18.2.0", npm_package_peerDependencies__tanstack_react_query_devtools: "^5.
|
828
|
+
var define_process_env_default$5 = { npm_package_devDependencies_react_dom: "^18.2.0", npm_package_devDependencies__tailwindcss_typography: "^0.5.10", npm_package_devDependencies__storybook_test: "^8.1.5", npm_package_devDependencies__storybook_addon_links: "^8.1.5", npm_package_dependencies__fortawesome_fontawesome_svg_core: "^6.5.1", npm_package_dependencies__radix_ui_react_tabs: "^1.0.4", TERM_PROGRAM: "WarpTerminal", NODE: "/usr/local/Cellar/node/21.6.2_1/bin/node", INIT_CWD: "/Users/dan/Documents/work/propro/propro-reusable-components", npm_package_peerDependencies_axios: "^1.6.7", npm_package_devDependencies_typescript: "^5.2.2", npm_package_dependencies_lucide_react: "^0.309.0", npm_package_dependencies_axios: "^1.6.7", npm_package_dependencies__tauri_apps_plugin_http: "^2.0.0", npm_config_version_git_tag: "true", SHELL: "/bin/zsh", TERM: "xterm-256color", WARP_HONOR_PS1: "0", npm_package_devDependencies_vite: "^5.0.8", npm_package_devDependencies__storybook_addon_essentials: "^8.1.5", npm_package_dependencies__radix_ui_react_dialog: "^1.0.5", npm_package_dependencies__plasmicpkgs_plasmic_tabs: "^0.0.48", TMPDIR: "/var/folders/yn/6n3p2d610s197g728jdbk2f00000gn/T/", npm_package_scripts_lint: "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0", npm_config_init_license: "MIT", TERM_PROGRAM_VERSION: "v0.2024.11.12.08.02.stable_02", npm_package_devDependencies__vitejs_plugin_react: "^4.2.1", npm_package_scripts_dev: "vite", npm_package_dependencies_react_lottie: "^1.2.4", npm_package_scripts_prepublishOnly: "yarn build", npm_package_dependencies__tauri_apps_api: "^2.0.2", npm_package_dependencies__plasmicapp_react_web: "^0.2.337", npm_package_devDependencies__storybook_blocks: "^8.1.5", npm_package_devDependencies__storybook_addon_interactions: "^8.1.5", npm_package_dependencies__plasmicpkgs_antd: "^2.0.127", npm_config_registry: "https://registry.yarnpkg.com", ZSH: "/Users/dan/.oh-my-zsh", npm_package_peerDependencies_react_dom: "^18.2.0", npm_package_peerDependencies__tanstack_react_query_devtools: "^5.61.5", npm_package_devDependencies_eslint_plugin_react_refresh: "^0.4.5", npm_package_dependencies__ant_design_icons: "^5.2.6", npm_package_readmeFilename: "README.md", USER: "dan", npm_package_description: "This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.", npm_package_devDependencies_react: "^18.2.0", LS_COLORS: "di=1;36:ln=35:so=32:pi=33:ex=31:bd=34;46:cd=34;43:su=30;41:sg=30;46:tw=30;42:ow=30;43", npm_package_devDependencies__types_react: "^18.2.43", COMMAND_MODE: "unix2003", npm_package_dependencies__radix_ui_react_tooltip: "^1.1.2", npm_package_scripts_build_storybook: "storybook build", npm_package_dependencies__plasmicpkgs_react_awesome_reveal: "^3.8.209", SSH_AUTH_SOCK: "/private/tmp/com.apple.launchd.wkeLGWfnpd/Listeners", npm_package_devDependencies_eslint_plugin_storybook: "^0.8.0", npm_package_dependencies_tailwindcss_animate: "^1.0.7", npm_package_dependencies__plasmicpkgs_lottie_react: "^0.0.198", WARP_IS_LOCAL_SHELL_SESSION: "1", __CF_USER_TEXT_ENCODING: "0x1F5:0x0:0x0", npm_package_devDependencies_postcss: "^8.4.33", npm_package_devDependencies_eslint: "^8.55.0", npm_execpath: "/usr/local/lib/node_modules/yarn/bin/yarn.js", npm_package_devDependencies__typescript_eslint_eslint_plugin: "^6.14.0", WARP_USE_SSH_WRAPPER: "1", PAGER: "less", npm_package_dependencies__fortawesome_react_fontawesome: "^0.2.0", npm_package_devDependencies_glob: "^10.3.10", npm_package_dependencies_react_error_boundary: "^4.0.12", LSCOLORS: "Gxfxcxdxbxegedabagacad", npm_package_devDependencies__types_react_dom: "^18.2.17", npm_package_devDependencies__typescript_eslint_parser: "^6.14.0", npm_package_dependencies_tailwind_merge: "^2.2.0", npm_package_dependencies__plasmicpkgs_plasmic_rich_components: "^1.0.197", PATH: "/var/folders/yn/6n3p2d610s197g728jdbk2f00000gn/T/yarn--1732741745444-0.25069648107021636:/Users/dan/Documents/work/propro/propro-reusable-components/node_modules/.bin:/Users/dan/.config/yarn/link/node_modules/.bin:/usr/local/Cellar/node/21.6.2_1/libexec/lib/node_modules/npm/bin/node-gyp-bin:/usr/local/Cellar/node/21.6.2_1/lib/node_modules/npm/bin/node-gyp-bin:/usr/local/Cellar/node/21.6.2_1/bin/node_modules/npm/bin/node-gyp-bin:/var/folders/yn/6n3p2d610s197g728jdbk2f00000gn/T/yarn--1732741740312-0.733012353377603:/Users/dan/Documents/work/propro/propro-reusable-components/node_modules/.bin:/Users/dan/.config/yarn/link/node_modules/.bin:/usr/local/Cellar/node/21.6.2_1/libexec/lib/node_modules/npm/bin/node-gyp-bin:/usr/local/Cellar/node/21.6.2_1/lib/node_modules/npm/bin/node-gyp-bin:/usr/local/Cellar/node/21.6.2_1/bin/node_modules/npm/bin/node-gyp-bin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/Library/Apple/usr/bin:/usr/local/go/bin:/Users/dan/.cargo/bin", npm_config_argv: '{"remain":[],"cooked":["publish"],"original":["publish"]}', npm_package_dependencies_class_variance_authority: "^0.7.0", npm_package_dependencies__fortawesome_free_solid_svg_icons: "^6.5.1", npm_package_dependencies__radix_ui_react_switch: "^1.0.3", _: "/Users/dan/Documents/work/propro/propro-reusable-components/node_modules/.bin/vite", LaunchInstanceID: "3A7092E5-1CAC-41E8-ACB6-9B991EB09CC8", __CFBundleIdentifier: "dev.warp.Warp-Stable", npm_package_peerDependencies_react_toastify: "^10.0.5", npm_package_dependencies_react_toastify: "^10.0.5", npm_package_dependencies_propro_icons: "^0.0.32", npm_package_dependencies__types_js_cookie: "^3.0.6", npm_package_dependencies__types_chrome: "^0.0.287", PWD: "/Users/dan/Documents/work/propro/propro-reusable-components", npm_package_devDependencies_tailwindcss: "^3.4.1", npm_package_dependencies__plasmicapp_cli: "^0.1.327", npm_package_devDependencies_eslint_plugin_react_hooks: "^4.6.0", npm_package_devDependencies__storybook_addon_onboarding: "^8.1.5", npm_package_scripts_preview: "vite preview", npm_lifecycle_event: "build", npm_package_devDependencies_vite_plugin_lib_inject_css: "^1.3.0", npm_package_devDependencies_storybook: "^8.1.5", npm_package_types: "dist/main.d.ts", npm_package_name: "propro-common-components", npm_package_scripts_build: "tsc --p ./tsconfig-build.json && vite build", npm_config_version_commit_hooks: "true", XPC_FLAGS: "0x0", npm_package_peerDependencies_react_router_dom: "^6.22.3", npm_package_dependencies_react_router_dom: "^6.22.3", npm_package_devDependencies__tailwindcss_forms: "^0.5.7", npm_package_devDependencies__chromatic_com_storybook: "^1.5.0", npm_config_bin_links: "true", npm_package_devDependencies__storybook_react: "^8.1.5", npm_package_peerDependencies__tanstack_react_query: "^5.61.5", npm_package_devDependencies_vite_plugin_dts: "^3.7.1", npm_package_main: "dist/propro-common-components.js", XPC_SERVICE_NAME: "0", npm_package_version: "0.1.309", npm_package_devDependencies_autoprefixer: "^10.4.16", HOME: "/Users/dan", SHLVL: "3", npm_package_type: "module", npm_package_dependencies__radix_ui_react_menubar: "^1.0.4", npm_package_scripts_storybook: "storybook dev -p 6006", npm_package_dependencies_formik: "^2.4.5", npm_package_dependencies__mantine_hooks: "^7.9.0", npm_config_save_prefix: "^", npm_config_strict_ssl: "true", npm_package_devDependencies__types_react_lottie: "^1.2.10", npm_config_version_git_message: "v%s", npm_package_dependencies_js_cookie: "^3.0.5", npm_package_dependencies__radix_ui_react_popover: "^1.0.7", npm_package_dependencies__radix_ui_react_avatar: "^1.0.4", npm_package_dependencies__radix_ui_react_slot: "^1.0.2", npm_package_dependencies__plasmicpkgs_plasmic_embed_css: "^0.1.192", LOGNAME: "dan", LESS: "-R", YARN_WRAP_OUTPUT: "false", npm_lifecycle_script: "tsc --p ./tsconfig-build.json && vite build", LC_CTYPE: "UTF-8", npm_package_dependencies_yup: "^1.4.0", SSH_SOCKET_DIR: "~/.ssh", npm_package_peerDependencies_react: "^18.2.0", npm_package_devDependencies__storybook_react_vite: "^8.1.5", npm_package_dependencies__radix_ui_react_label: "^2.0.2", npm_config_version_git_sign: "", npm_config_ignore_scripts: "", npm_config_user_agent: "yarn/1.22.22 npm/? node/v21.6.2 darwin x64", npm_package_devDependencies__types_node: "^20.11.5", npm_package_dependencies_clsx: "^2.1.0", npm_package_dependencies__radix_ui_react_dropdown_menu: "^2.0.6", npm_package_files_0: "dist", CONDA_CHANGEPS1: "false", npm_package_dependencies_antd: "^5.21.5", npm_config_init_version: "1.0.0", npm_config_ignore_optional: "", SECURITYSESSIONID: "186b1", npm_package_dependencies__plasmicpkgs_plasmic_basic_components: "^0.0.230", COLORTERM: "truecolor", npm_node_execpath: "/usr/local/Cellar/node/21.6.2_1/bin/node", npm_package_dependencies__plasmicpkgs_antd5: "^0.0.253", npm_package_dependencies__ant_design_pro_components: "^2.6.4", npm_config_version_tag_prefix: "v", NODE_ENV: "production" };
|
826
829
|
function ownKeys$2(m, g) {
|
827
830
|
var b = Object.keys(m);
|
828
831
|
if (Object.getOwnPropertySymbols) {
|
@@ -3405,7 +3408,7 @@ function requireFactoryWithThrowingShims() {
|
|
3405
3408
|
propTypes.exports = requireFactoryWithThrowingShims()();
|
3406
3409
|
var propTypesExports = propTypes.exports;
|
3407
3410
|
const PropTypes = /* @__PURE__ */ getDefaultExportFromCjs(propTypesExports);
|
3408
|
-
var define_process_env_default$4 = { npm_package_devDependencies_react_dom: "^18.2.0", npm_package_devDependencies__tailwindcss_typography: "^0.5.10", npm_package_devDependencies__storybook_test: "^8.1.5", npm_package_devDependencies__storybook_addon_links: "^8.1.5", npm_package_dependencies__fortawesome_fontawesome_svg_core: "^6.5.1", npm_package_dependencies__radix_ui_react_tabs: "^1.0.4", TERM_PROGRAM: "WarpTerminal", NODE: "/usr/local/Cellar/node/21.6.2_1/bin/node", INIT_CWD: "/Users/dan/Documents/work/propro/propro-reusable-components", npm_package_peerDependencies_axios: "^1.6.7", npm_package_devDependencies_typescript: "^5.2.2", npm_package_dependencies_lucide_react: "^0.309.0", npm_package_dependencies_axios: "^1.6.7", npm_package_dependencies__tauri_apps_plugin_http: "^2.0.0", npm_config_version_git_tag: "true", SHELL: "/bin/zsh", TERM: "xterm-256color", WARP_HONOR_PS1: "0", npm_package_devDependencies_vite: "^5.0.8", npm_package_devDependencies__storybook_addon_essentials: "^8.1.5", npm_package_dependencies__radix_ui_react_dialog: "^1.0.5", npm_package_dependencies__plasmicpkgs_plasmic_tabs: "^0.0.48", TMPDIR: "/var/folders/yn/6n3p2d610s197g728jdbk2f00000gn/T/", npm_package_scripts_lint: "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0", npm_config_init_license: "MIT", TERM_PROGRAM_VERSION: "v0.2024.11.12.08.02.stable_02", npm_package_devDependencies__vitejs_plugin_react: "^4.2.1", npm_package_scripts_dev: "vite", npm_package_dependencies_react_lottie: "^1.2.4", npm_package_scripts_prepublishOnly: "yarn build", npm_package_dependencies__tauri_apps_api: "^2.0.2", npm_package_dependencies__plasmicapp_react_web: "^0.2.337", npm_package_devDependencies__storybook_blocks: "^8.1.5", npm_package_devDependencies__storybook_addon_interactions: "^8.1.5", npm_package_dependencies__plasmicpkgs_antd: "^2.0.127", npm_config_registry: "https://registry.yarnpkg.com", ZSH: "/Users/dan/.oh-my-zsh", npm_package_peerDependencies_react_dom: "^18.2.0", npm_package_peerDependencies__tanstack_react_query_devtools: "^5.
|
3411
|
+
var define_process_env_default$4 = { npm_package_devDependencies_react_dom: "^18.2.0", npm_package_devDependencies__tailwindcss_typography: "^0.5.10", npm_package_devDependencies__storybook_test: "^8.1.5", npm_package_devDependencies__storybook_addon_links: "^8.1.5", npm_package_dependencies__fortawesome_fontawesome_svg_core: "^6.5.1", npm_package_dependencies__radix_ui_react_tabs: "^1.0.4", TERM_PROGRAM: "WarpTerminal", NODE: "/usr/local/Cellar/node/21.6.2_1/bin/node", INIT_CWD: "/Users/dan/Documents/work/propro/propro-reusable-components", npm_package_peerDependencies_axios: "^1.6.7", npm_package_devDependencies_typescript: "^5.2.2", npm_package_dependencies_lucide_react: "^0.309.0", npm_package_dependencies_axios: "^1.6.7", npm_package_dependencies__tauri_apps_plugin_http: "^2.0.0", npm_config_version_git_tag: "true", SHELL: "/bin/zsh", TERM: "xterm-256color", WARP_HONOR_PS1: "0", npm_package_devDependencies_vite: "^5.0.8", npm_package_devDependencies__storybook_addon_essentials: "^8.1.5", npm_package_dependencies__radix_ui_react_dialog: "^1.0.5", npm_package_dependencies__plasmicpkgs_plasmic_tabs: "^0.0.48", TMPDIR: "/var/folders/yn/6n3p2d610s197g728jdbk2f00000gn/T/", npm_package_scripts_lint: "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0", npm_config_init_license: "MIT", TERM_PROGRAM_VERSION: "v0.2024.11.12.08.02.stable_02", npm_package_devDependencies__vitejs_plugin_react: "^4.2.1", npm_package_scripts_dev: "vite", npm_package_dependencies_react_lottie: "^1.2.4", npm_package_scripts_prepublishOnly: "yarn build", npm_package_dependencies__tauri_apps_api: "^2.0.2", npm_package_dependencies__plasmicapp_react_web: "^0.2.337", npm_package_devDependencies__storybook_blocks: "^8.1.5", npm_package_devDependencies__storybook_addon_interactions: "^8.1.5", npm_package_dependencies__plasmicpkgs_antd: "^2.0.127", npm_config_registry: "https://registry.yarnpkg.com", ZSH: "/Users/dan/.oh-my-zsh", npm_package_peerDependencies_react_dom: "^18.2.0", npm_package_peerDependencies__tanstack_react_query_devtools: "^5.61.5", npm_package_devDependencies_eslint_plugin_react_refresh: "^0.4.5", npm_package_dependencies__ant_design_icons: "^5.2.6", npm_package_readmeFilename: "README.md", USER: "dan", npm_package_description: "This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.", npm_package_devDependencies_react: "^18.2.0", LS_COLORS: "di=1;36:ln=35:so=32:pi=33:ex=31:bd=34;46:cd=34;43:su=30;41:sg=30;46:tw=30;42:ow=30;43", npm_package_devDependencies__types_react: "^18.2.43", COMMAND_MODE: "unix2003", npm_package_dependencies__radix_ui_react_tooltip: "^1.1.2", npm_package_scripts_build_storybook: "storybook build", npm_package_dependencies__plasmicpkgs_react_awesome_reveal: "^3.8.209", SSH_AUTH_SOCK: "/private/tmp/com.apple.launchd.wkeLGWfnpd/Listeners", npm_package_devDependencies_eslint_plugin_storybook: "^0.8.0", npm_package_dependencies_tailwindcss_animate: "^1.0.7", npm_package_dependencies__plasmicpkgs_lottie_react: "^0.0.198", WARP_IS_LOCAL_SHELL_SESSION: "1", __CF_USER_TEXT_ENCODING: "0x1F5:0x0:0x0", npm_package_devDependencies_postcss: "^8.4.33", npm_package_devDependencies_eslint: "^8.55.0", npm_execpath: "/usr/local/lib/node_modules/yarn/bin/yarn.js", npm_package_devDependencies__typescript_eslint_eslint_plugin: "^6.14.0", WARP_USE_SSH_WRAPPER: "1", PAGER: "less", npm_package_dependencies__fortawesome_react_fontawesome: "^0.2.0", npm_package_devDependencies_glob: "^10.3.10", npm_package_dependencies_react_error_boundary: "^4.0.12", LSCOLORS: "Gxfxcxdxbxegedabagacad", npm_package_devDependencies__types_react_dom: "^18.2.17", npm_package_devDependencies__typescript_eslint_parser: "^6.14.0", npm_package_dependencies_tailwind_merge: "^2.2.0", npm_package_dependencies__plasmicpkgs_plasmic_rich_components: "^1.0.197", PATH: "/var/folders/yn/6n3p2d610s197g728jdbk2f00000gn/T/yarn--1732741745444-0.25069648107021636:/Users/dan/Documents/work/propro/propro-reusable-components/node_modules/.bin:/Users/dan/.config/yarn/link/node_modules/.bin:/usr/local/Cellar/node/21.6.2_1/libexec/lib/node_modules/npm/bin/node-gyp-bin:/usr/local/Cellar/node/21.6.2_1/lib/node_modules/npm/bin/node-gyp-bin:/usr/local/Cellar/node/21.6.2_1/bin/node_modules/npm/bin/node-gyp-bin:/var/folders/yn/6n3p2d610s197g728jdbk2f00000gn/T/yarn--1732741740312-0.733012353377603:/Users/dan/Documents/work/propro/propro-reusable-components/node_modules/.bin:/Users/dan/.config/yarn/link/node_modules/.bin:/usr/local/Cellar/node/21.6.2_1/libexec/lib/node_modules/npm/bin/node-gyp-bin:/usr/local/Cellar/node/21.6.2_1/lib/node_modules/npm/bin/node-gyp-bin:/usr/local/Cellar/node/21.6.2_1/bin/node_modules/npm/bin/node-gyp-bin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/Library/Apple/usr/bin:/usr/local/go/bin:/Users/dan/.cargo/bin", npm_config_argv: '{"remain":[],"cooked":["publish"],"original":["publish"]}', npm_package_dependencies_class_variance_authority: "^0.7.0", npm_package_dependencies__fortawesome_free_solid_svg_icons: "^6.5.1", npm_package_dependencies__radix_ui_react_switch: "^1.0.3", _: "/Users/dan/Documents/work/propro/propro-reusable-components/node_modules/.bin/vite", LaunchInstanceID: "3A7092E5-1CAC-41E8-ACB6-9B991EB09CC8", __CFBundleIdentifier: "dev.warp.Warp-Stable", npm_package_peerDependencies_react_toastify: "^10.0.5", npm_package_dependencies_react_toastify: "^10.0.5", npm_package_dependencies_propro_icons: "^0.0.32", npm_package_dependencies__types_js_cookie: "^3.0.6", npm_package_dependencies__types_chrome: "^0.0.287", PWD: "/Users/dan/Documents/work/propro/propro-reusable-components", npm_package_devDependencies_tailwindcss: "^3.4.1", npm_package_dependencies__plasmicapp_cli: "^0.1.327", npm_package_devDependencies_eslint_plugin_react_hooks: "^4.6.0", npm_package_devDependencies__storybook_addon_onboarding: "^8.1.5", npm_package_scripts_preview: "vite preview", npm_lifecycle_event: "build", npm_package_devDependencies_vite_plugin_lib_inject_css: "^1.3.0", npm_package_devDependencies_storybook: "^8.1.5", npm_package_types: "dist/main.d.ts", npm_package_name: "propro-common-components", npm_package_scripts_build: "tsc --p ./tsconfig-build.json && vite build", npm_config_version_commit_hooks: "true", XPC_FLAGS: "0x0", npm_package_peerDependencies_react_router_dom: "^6.22.3", npm_package_dependencies_react_router_dom: "^6.22.3", npm_package_devDependencies__tailwindcss_forms: "^0.5.7", npm_package_devDependencies__chromatic_com_storybook: "^1.5.0", npm_config_bin_links: "true", npm_package_devDependencies__storybook_react: "^8.1.5", npm_package_peerDependencies__tanstack_react_query: "^5.61.5", npm_package_devDependencies_vite_plugin_dts: "^3.7.1", npm_package_main: "dist/propro-common-components.js", XPC_SERVICE_NAME: "0", npm_package_version: "0.1.309", npm_package_devDependencies_autoprefixer: "^10.4.16", HOME: "/Users/dan", SHLVL: "3", npm_package_type: "module", npm_package_dependencies__radix_ui_react_menubar: "^1.0.4", npm_package_scripts_storybook: "storybook dev -p 6006", npm_package_dependencies_formik: "^2.4.5", npm_package_dependencies__mantine_hooks: "^7.9.0", npm_config_save_prefix: "^", npm_config_strict_ssl: "true", npm_package_devDependencies__types_react_lottie: "^1.2.10", npm_config_version_git_message: "v%s", npm_package_dependencies_js_cookie: "^3.0.5", npm_package_dependencies__radix_ui_react_popover: "^1.0.7", npm_package_dependencies__radix_ui_react_avatar: "^1.0.4", npm_package_dependencies__radix_ui_react_slot: "^1.0.2", npm_package_dependencies__plasmicpkgs_plasmic_embed_css: "^0.1.192", LOGNAME: "dan", LESS: "-R", YARN_WRAP_OUTPUT: "false", npm_lifecycle_script: "tsc --p ./tsconfig-build.json && vite build", LC_CTYPE: "UTF-8", npm_package_dependencies_yup: "^1.4.0", SSH_SOCKET_DIR: "~/.ssh", npm_package_peerDependencies_react: "^18.2.0", npm_package_devDependencies__storybook_react_vite: "^8.1.5", npm_package_dependencies__radix_ui_react_label: "^2.0.2", npm_config_version_git_sign: "", npm_config_ignore_scripts: "", npm_config_user_agent: "yarn/1.22.22 npm/? node/v21.6.2 darwin x64", npm_package_devDependencies__types_node: "^20.11.5", npm_package_dependencies_clsx: "^2.1.0", npm_package_dependencies__radix_ui_react_dropdown_menu: "^2.0.6", npm_package_files_0: "dist", CONDA_CHANGEPS1: "false", npm_package_dependencies_antd: "^5.21.5", npm_config_init_version: "1.0.0", npm_config_ignore_optional: "", SECURITYSESSIONID: "186b1", npm_package_dependencies__plasmicpkgs_plasmic_basic_components: "^0.0.230", COLORTERM: "truecolor", npm_node_execpath: "/usr/local/Cellar/node/21.6.2_1/bin/node", npm_package_dependencies__plasmicpkgs_antd5: "^0.0.253", npm_package_dependencies__ant_design_pro_components: "^2.6.4", npm_config_version_tag_prefix: "v", NODE_ENV: "production" };
|
3409
3412
|
function ownKeys$1(m, g) {
|
3410
3413
|
var b = Object.keys(m);
|
3411
3414
|
if (Object.getOwnPropertySymbols) {
|
@@ -6276,7 +6279,7 @@ const useMutate = (m, g) => {
|
|
6276
6279
|
...P.options
|
6277
6280
|
})), !b)
|
6278
6281
|
return console.error("No internet connection."), null;
|
6279
|
-
const { continueToRequest: F, accessToken: $ } = await checkAccessToken();
|
6282
|
+
const { continueToRequest: F, accessToken: $ } = await checkAccessToken$1();
|
6280
6283
|
return N && !F ? (console.error("Access token check failed."), null) : ($ && (axiosInstance.defaults.headers.Authorization = `Bearer ${$}`), (await axiosInstance(L, {
|
6281
6284
|
method: S,
|
6282
6285
|
data: O,
|
@@ -7379,7 +7382,7 @@ var reactIsExports$1 = reactIs$2.exports, reactIs$1 = reactIsExports$1, FORWARD_
|
|
7379
7382
|
}, TYPE_STATICS = {};
|
7380
7383
|
TYPE_STATICS[reactIs$1.ForwardRef] = FORWARD_REF_STATICS;
|
7381
7384
|
TYPE_STATICS[reactIs$1.Memo] = MEMO_STATICS;
|
7382
|
-
var define_process_env_default$3 = { npm_package_devDependencies_react_dom: "^18.2.0", npm_package_devDependencies__tailwindcss_typography: "^0.5.10", npm_package_devDependencies__storybook_test: "^8.1.5", npm_package_devDependencies__storybook_addon_links: "^8.1.5", npm_package_dependencies__fortawesome_fontawesome_svg_core: "^6.5.1", npm_package_dependencies__radix_ui_react_tabs: "^1.0.4", TERM_PROGRAM: "WarpTerminal", NODE: "/usr/local/Cellar/node/21.6.2_1/bin/node", INIT_CWD: "/Users/dan/Documents/work/propro/propro-reusable-components", npm_package_peerDependencies_axios: "^1.6.7", npm_package_devDependencies_typescript: "^5.2.2", npm_package_dependencies_lucide_react: "^0.309.0", npm_package_dependencies_axios: "^1.6.7", npm_package_dependencies__tauri_apps_plugin_http: "^2.0.0", npm_config_version_git_tag: "true", SHELL: "/bin/zsh", TERM: "xterm-256color", WARP_HONOR_PS1: "0", npm_package_devDependencies_vite: "^5.0.8", npm_package_devDependencies__storybook_addon_essentials: "^8.1.5", npm_package_dependencies__radix_ui_react_dialog: "^1.0.5", npm_package_dependencies__plasmicpkgs_plasmic_tabs: "^0.0.48", TMPDIR: "/var/folders/yn/6n3p2d610s197g728jdbk2f00000gn/T/", npm_package_scripts_lint: "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0", npm_config_init_license: "MIT", TERM_PROGRAM_VERSION: "v0.2024.11.12.08.02.stable_02", npm_package_devDependencies__vitejs_plugin_react: "^4.2.1", npm_package_scripts_dev: "vite", npm_package_dependencies_react_lottie: "^1.2.4", npm_package_scripts_prepublishOnly: "yarn build", npm_package_dependencies__tauri_apps_api: "^2.0.2", npm_package_dependencies__plasmicapp_react_web: "^0.2.337", npm_package_devDependencies__storybook_blocks: "^8.1.5", npm_package_devDependencies__storybook_addon_interactions: "^8.1.5", npm_package_dependencies__plasmicpkgs_antd: "^2.0.127", npm_config_registry: "https://registry.yarnpkg.com", ZSH: "/Users/dan/.oh-my-zsh", npm_package_peerDependencies_react_dom: "^18.2.0", npm_package_peerDependencies__tanstack_react_query_devtools: "^5.
|
7385
|
+
var define_process_env_default$3 = { npm_package_devDependencies_react_dom: "^18.2.0", npm_package_devDependencies__tailwindcss_typography: "^0.5.10", npm_package_devDependencies__storybook_test: "^8.1.5", npm_package_devDependencies__storybook_addon_links: "^8.1.5", npm_package_dependencies__fortawesome_fontawesome_svg_core: "^6.5.1", npm_package_dependencies__radix_ui_react_tabs: "^1.0.4", TERM_PROGRAM: "WarpTerminal", NODE: "/usr/local/Cellar/node/21.6.2_1/bin/node", INIT_CWD: "/Users/dan/Documents/work/propro/propro-reusable-components", npm_package_peerDependencies_axios: "^1.6.7", npm_package_devDependencies_typescript: "^5.2.2", npm_package_dependencies_lucide_react: "^0.309.0", npm_package_dependencies_axios: "^1.6.7", npm_package_dependencies__tauri_apps_plugin_http: "^2.0.0", npm_config_version_git_tag: "true", SHELL: "/bin/zsh", TERM: "xterm-256color", WARP_HONOR_PS1: "0", npm_package_devDependencies_vite: "^5.0.8", npm_package_devDependencies__storybook_addon_essentials: "^8.1.5", npm_package_dependencies__radix_ui_react_dialog: "^1.0.5", npm_package_dependencies__plasmicpkgs_plasmic_tabs: "^0.0.48", TMPDIR: "/var/folders/yn/6n3p2d610s197g728jdbk2f00000gn/T/", npm_package_scripts_lint: "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0", npm_config_init_license: "MIT", TERM_PROGRAM_VERSION: "v0.2024.11.12.08.02.stable_02", npm_package_devDependencies__vitejs_plugin_react: "^4.2.1", npm_package_scripts_dev: "vite", npm_package_dependencies_react_lottie: "^1.2.4", npm_package_scripts_prepublishOnly: "yarn build", npm_package_dependencies__tauri_apps_api: "^2.0.2", npm_package_dependencies__plasmicapp_react_web: "^0.2.337", npm_package_devDependencies__storybook_blocks: "^8.1.5", npm_package_devDependencies__storybook_addon_interactions: "^8.1.5", npm_package_dependencies__plasmicpkgs_antd: "^2.0.127", npm_config_registry: "https://registry.yarnpkg.com", ZSH: "/Users/dan/.oh-my-zsh", npm_package_peerDependencies_react_dom: "^18.2.0", npm_package_peerDependencies__tanstack_react_query_devtools: "^5.61.5", npm_package_devDependencies_eslint_plugin_react_refresh: "^0.4.5", npm_package_dependencies__ant_design_icons: "^5.2.6", npm_package_readmeFilename: "README.md", USER: "dan", npm_package_description: "This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.", npm_package_devDependencies_react: "^18.2.0", LS_COLORS: "di=1;36:ln=35:so=32:pi=33:ex=31:bd=34;46:cd=34;43:su=30;41:sg=30;46:tw=30;42:ow=30;43", npm_package_devDependencies__types_react: "^18.2.43", COMMAND_MODE: "unix2003", npm_package_dependencies__radix_ui_react_tooltip: "^1.1.2", npm_package_scripts_build_storybook: "storybook build", npm_package_dependencies__plasmicpkgs_react_awesome_reveal: "^3.8.209", SSH_AUTH_SOCK: "/private/tmp/com.apple.launchd.wkeLGWfnpd/Listeners", npm_package_devDependencies_eslint_plugin_storybook: "^0.8.0", npm_package_dependencies_tailwindcss_animate: "^1.0.7", npm_package_dependencies__plasmicpkgs_lottie_react: "^0.0.198", WARP_IS_LOCAL_SHELL_SESSION: "1", __CF_USER_TEXT_ENCODING: "0x1F5:0x0:0x0", npm_package_devDependencies_postcss: "^8.4.33", npm_package_devDependencies_eslint: "^8.55.0", npm_execpath: "/usr/local/lib/node_modules/yarn/bin/yarn.js", npm_package_devDependencies__typescript_eslint_eslint_plugin: "^6.14.0", WARP_USE_SSH_WRAPPER: "1", PAGER: "less", npm_package_dependencies__fortawesome_react_fontawesome: "^0.2.0", npm_package_devDependencies_glob: "^10.3.10", npm_package_dependencies_react_error_boundary: "^4.0.12", LSCOLORS: "Gxfxcxdxbxegedabagacad", npm_package_devDependencies__types_react_dom: "^18.2.17", npm_package_devDependencies__typescript_eslint_parser: "^6.14.0", npm_package_dependencies_tailwind_merge: "^2.2.0", npm_package_dependencies__plasmicpkgs_plasmic_rich_components: "^1.0.197", PATH: "/var/folders/yn/6n3p2d610s197g728jdbk2f00000gn/T/yarn--1732741745444-0.25069648107021636:/Users/dan/Documents/work/propro/propro-reusable-components/node_modules/.bin:/Users/dan/.config/yarn/link/node_modules/.bin:/usr/local/Cellar/node/21.6.2_1/libexec/lib/node_modules/npm/bin/node-gyp-bin:/usr/local/Cellar/node/21.6.2_1/lib/node_modules/npm/bin/node-gyp-bin:/usr/local/Cellar/node/21.6.2_1/bin/node_modules/npm/bin/node-gyp-bin:/var/folders/yn/6n3p2d610s197g728jdbk2f00000gn/T/yarn--1732741740312-0.733012353377603:/Users/dan/Documents/work/propro/propro-reusable-components/node_modules/.bin:/Users/dan/.config/yarn/link/node_modules/.bin:/usr/local/Cellar/node/21.6.2_1/libexec/lib/node_modules/npm/bin/node-gyp-bin:/usr/local/Cellar/node/21.6.2_1/lib/node_modules/npm/bin/node-gyp-bin:/usr/local/Cellar/node/21.6.2_1/bin/node_modules/npm/bin/node-gyp-bin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/Library/Apple/usr/bin:/usr/local/go/bin:/Users/dan/.cargo/bin", npm_config_argv: '{"remain":[],"cooked":["publish"],"original":["publish"]}', npm_package_dependencies_class_variance_authority: "^0.7.0", npm_package_dependencies__fortawesome_free_solid_svg_icons: "^6.5.1", npm_package_dependencies__radix_ui_react_switch: "^1.0.3", _: "/Users/dan/Documents/work/propro/propro-reusable-components/node_modules/.bin/vite", LaunchInstanceID: "3A7092E5-1CAC-41E8-ACB6-9B991EB09CC8", __CFBundleIdentifier: "dev.warp.Warp-Stable", npm_package_peerDependencies_react_toastify: "^10.0.5", npm_package_dependencies_react_toastify: "^10.0.5", npm_package_dependencies_propro_icons: "^0.0.32", npm_package_dependencies__types_js_cookie: "^3.0.6", npm_package_dependencies__types_chrome: "^0.0.287", PWD: "/Users/dan/Documents/work/propro/propro-reusable-components", npm_package_devDependencies_tailwindcss: "^3.4.1", npm_package_dependencies__plasmicapp_cli: "^0.1.327", npm_package_devDependencies_eslint_plugin_react_hooks: "^4.6.0", npm_package_devDependencies__storybook_addon_onboarding: "^8.1.5", npm_package_scripts_preview: "vite preview", npm_lifecycle_event: "build", npm_package_devDependencies_vite_plugin_lib_inject_css: "^1.3.0", npm_package_devDependencies_storybook: "^8.1.5", npm_package_types: "dist/main.d.ts", npm_package_name: "propro-common-components", npm_package_scripts_build: "tsc --p ./tsconfig-build.json && vite build", npm_config_version_commit_hooks: "true", XPC_FLAGS: "0x0", npm_package_peerDependencies_react_router_dom: "^6.22.3", npm_package_dependencies_react_router_dom: "^6.22.3", npm_package_devDependencies__tailwindcss_forms: "^0.5.7", npm_package_devDependencies__chromatic_com_storybook: "^1.5.0", npm_config_bin_links: "true", npm_package_devDependencies__storybook_react: "^8.1.5", npm_package_peerDependencies__tanstack_react_query: "^5.61.5", npm_package_devDependencies_vite_plugin_dts: "^3.7.1", npm_package_main: "dist/propro-common-components.js", XPC_SERVICE_NAME: "0", npm_package_version: "0.1.309", npm_package_devDependencies_autoprefixer: "^10.4.16", HOME: "/Users/dan", SHLVL: "3", npm_package_type: "module", npm_package_dependencies__radix_ui_react_menubar: "^1.0.4", npm_package_scripts_storybook: "storybook dev -p 6006", npm_package_dependencies_formik: "^2.4.5", npm_package_dependencies__mantine_hooks: "^7.9.0", npm_config_save_prefix: "^", npm_config_strict_ssl: "true", npm_package_devDependencies__types_react_lottie: "^1.2.10", npm_config_version_git_message: "v%s", npm_package_dependencies_js_cookie: "^3.0.5", npm_package_dependencies__radix_ui_react_popover: "^1.0.7", npm_package_dependencies__radix_ui_react_avatar: "^1.0.4", npm_package_dependencies__radix_ui_react_slot: "^1.0.2", npm_package_dependencies__plasmicpkgs_plasmic_embed_css: "^0.1.192", LOGNAME: "dan", LESS: "-R", YARN_WRAP_OUTPUT: "false", npm_lifecycle_script: "tsc --p ./tsconfig-build.json && vite build", LC_CTYPE: "UTF-8", npm_package_dependencies_yup: "^1.4.0", SSH_SOCKET_DIR: "~/.ssh", npm_package_peerDependencies_react: "^18.2.0", npm_package_devDependencies__storybook_react_vite: "^8.1.5", npm_package_dependencies__radix_ui_react_label: "^2.0.2", npm_config_version_git_sign: "", npm_config_ignore_scripts: "", npm_config_user_agent: "yarn/1.22.22 npm/? node/v21.6.2 darwin x64", npm_package_devDependencies__types_node: "^20.11.5", npm_package_dependencies_clsx: "^2.1.0", npm_package_dependencies__radix_ui_react_dropdown_menu: "^2.0.6", npm_package_files_0: "dist", CONDA_CHANGEPS1: "false", npm_package_dependencies_antd: "^5.21.5", npm_config_init_version: "1.0.0", npm_config_ignore_optional: "", SECURITYSESSIONID: "186b1", npm_package_dependencies__plasmicpkgs_plasmic_basic_components: "^0.0.230", COLORTERM: "truecolor", npm_node_execpath: "/usr/local/Cellar/node/21.6.2_1/bin/node", npm_package_dependencies__plasmicpkgs_antd5: "^0.0.253", npm_package_dependencies__ant_design_pro_components: "^2.6.4", npm_config_version_tag_prefix: "v", NODE_ENV: "production" };
|
7383
7386
|
function _extends$1() {
|
7384
7387
|
return _extends$1 = Object.assign || function(m) {
|
7385
7388
|
for (var g = 1; g < arguments.length; g++) {
|
@@ -9799,7 +9802,7 @@ function useGet(m, g, b) {
|
|
9799
9802
|
queryKey: m,
|
9800
9803
|
queryFn: async () => {
|
9801
9804
|
var T;
|
9802
|
-
const { accessToken: E, continueToRequest: C } = await checkAccessToken();
|
9805
|
+
const { accessToken: E, continueToRequest: C } = await checkAccessToken$1();
|
9803
9806
|
if (!C)
|
9804
9807
|
return null;
|
9805
9808
|
E && (axiosInstance.defaults.headers.Authorization = `Bearer ${E}`);
|
@@ -9845,7 +9848,7 @@ const useMutateWithKeepAlive = ({
|
|
9845
9848
|
...C.options
|
9846
9849
|
}), !P)
|
9847
9850
|
return console.error("No internet connection."), null;
|
9848
|
-
const { continueToRequest: D, accessToken: N } = await checkAccessToken();
|
9851
|
+
const { continueToRequest: D, accessToken: N } = await checkAccessToken$1();
|
9849
9852
|
return D ? (N && (axiosInstance.defaults.headers.Authorization = `Bearer ${N}`), axiosInstance({
|
9850
9853
|
url: m,
|
9851
9854
|
method: g,
|
@@ -13138,7 +13141,7 @@ const $6cc32821e9371a1c$export$be92b6f5f03c0fe9 = $6cc32821e9371a1c$export$d9b27
|
|
13138
13141
|
}), $d08ef79370b62062$export$be92b6f5f03c0fe9 = $d08ef79370b62062$export$e44a253a59704894, $d08ef79370b62062$export$41fb9f06171c75f4 = $d08ef79370b62062$export$d2469213b3befba9, $d08ef79370b62062$export$602eac185826482c = $d08ef79370b62062$export$cd369b4d4d54efc9, $d08ef79370b62062$export$7c6e2c02157bb7d2 = $d08ef79370b62062$export$6e76d93a37c01248, $d08ef79370b62062$export$b04be29aa201d4f5 = $d08ef79370b62062$export$76e48c5b57f24495, $d08ef79370b62062$export$6d08773d2e66f8f2 = $d08ef79370b62062$export$ed97964d1871885d, AvatarMenuComponent = ({ viewItems: m = [] }) => {
|
13139
13142
|
const { account: g } = useAuth(), [b, _] = useState(!1);
|
13140
13143
|
async function x() {
|
13141
|
-
await logout();
|
13144
|
+
await logout$1();
|
13142
13145
|
}
|
13143
13146
|
const S = useCallback((C) => {
|
13144
13147
|
_(C);
|
@@ -13241,15 +13244,11 @@ var _coreExports = _core.exports, _aFunction = function(m) {
|
|
13241
13244
|
} catch {
|
13242
13245
|
return !0;
|
13243
13246
|
}
|
13244
|
-
}, _descriptors
|
13245
|
-
|
13246
|
-
|
13247
|
-
|
13248
|
-
|
13249
|
-
} }).a != 7;
|
13250
|
-
})), _descriptors;
|
13251
|
-
}
|
13252
|
-
var _domCreate, hasRequired_domCreate;
|
13247
|
+
}, _descriptors = !_fails(function() {
|
13248
|
+
return Object.defineProperty({}, "a", { get: function() {
|
13249
|
+
return 7;
|
13250
|
+
} }).a != 7;
|
13251
|
+
}), _domCreate, hasRequired_domCreate;
|
13253
13252
|
function require_domCreate() {
|
13254
13253
|
if (hasRequired_domCreate)
|
13255
13254
|
return _domCreate;
|
@@ -13259,38 +13258,28 @@ function require_domCreate() {
|
|
13259
13258
|
return b ? g.createElement(_) : {};
|
13260
13259
|
}, _domCreate;
|
13261
13260
|
}
|
13262
|
-
var _ie8DomDefine
|
13263
|
-
|
13264
|
-
|
13265
|
-
|
13266
|
-
|
13267
|
-
} }).a != 7;
|
13268
|
-
})), _ie8DomDefine;
|
13269
|
-
}
|
13270
|
-
var isObject$4 = _isObject, _toPrimitive = function(m, g) {
|
13261
|
+
var _ie8DomDefine = !_descriptors && !_fails(function() {
|
13262
|
+
return Object.defineProperty(require_domCreate()("div"), "a", { get: function() {
|
13263
|
+
return 7;
|
13264
|
+
} }).a != 7;
|
13265
|
+
}), isObject$4 = _isObject, _toPrimitive = function(m, g) {
|
13271
13266
|
if (!isObject$4(m))
|
13272
13267
|
return m;
|
13273
13268
|
var b, _;
|
13274
13269
|
if (g && typeof (b = m.toString) == "function" && !isObject$4(_ = b.call(m)) || typeof (b = m.valueOf) == "function" && !isObject$4(_ = b.call(m)) || !g && typeof (b = m.toString) == "function" && !isObject$4(_ = b.call(m)))
|
13275
13270
|
return _;
|
13276
13271
|
throw TypeError("Can't convert object to primitive value");
|
13277
|
-
},
|
13278
|
-
function
|
13279
|
-
if (
|
13280
|
-
|
13281
|
-
|
13282
|
-
|
13283
|
-
|
13284
|
-
|
13285
|
-
|
13286
|
-
|
13287
|
-
|
13288
|
-
}
|
13289
|
-
if ("get" in C || "set" in C)
|
13290
|
-
throw TypeError("Accessors not supported!");
|
13291
|
-
return "value" in C && (S[E] = C.value), S;
|
13292
|
-
}, _objectDp;
|
13293
|
-
}
|
13272
|
+
}, anObject$3 = _anObject, IE8_DOM_DEFINE$1 = _ie8DomDefine, toPrimitive$3 = _toPrimitive, dP$3 = Object.defineProperty;
|
13273
|
+
_objectDp.f = _descriptors ? Object.defineProperty : function(g, b, _) {
|
13274
|
+
if (anObject$3(g), b = toPrimitive$3(b, !0), anObject$3(_), IE8_DOM_DEFINE$1)
|
13275
|
+
try {
|
13276
|
+
return dP$3(g, b, _);
|
13277
|
+
} catch {
|
13278
|
+
}
|
13279
|
+
if ("get" in _ || "set" in _)
|
13280
|
+
throw TypeError("Accessors not supported!");
|
13281
|
+
return "value" in _ && (g[b] = _.value), g;
|
13282
|
+
};
|
13294
13283
|
var _propertyDesc = function(m, g) {
|
13295
13284
|
return {
|
13296
13285
|
enumerable: !(m & 1),
|
@@ -13298,7 +13287,7 @@ var _propertyDesc = function(m, g) {
|
|
13298
13287
|
writable: !(m & 4),
|
13299
13288
|
value: g
|
13300
13289
|
};
|
13301
|
-
}, dP$2 =
|
13290
|
+
}, dP$2 = _objectDp, createDesc$2 = _propertyDesc, _hide = _descriptors ? function(m, g, b) {
|
13302
13291
|
return dP$2.f(m, g, createDesc$2(1, b));
|
13303
13292
|
} : function(m, g, b) {
|
13304
13293
|
return m[g] = b, m;
|
@@ -13405,7 +13394,7 @@ function require_objectAssign() {
|
|
13405
13394
|
if (hasRequired_objectAssign)
|
13406
13395
|
return _objectAssign;
|
13407
13396
|
hasRequired_objectAssign = 1;
|
13408
|
-
var m =
|
13397
|
+
var m = _descriptors, g = _objectKeys, b = _objectGops, _ = require_objectPie(), x = _toObject, S = require_iobject(), E = Object.assign;
|
13409
13398
|
return _objectAssign = !E || _fails(function() {
|
13410
13399
|
var C = {}, A = {}, T = Symbol(), M = "abcdefghijklmnopqrst";
|
13411
13400
|
return C[T] = 7, M.split("").forEach(function(I) {
|
@@ -13454,7 +13443,7 @@ classCallCheck.default = function(m, g) {
|
|
13454
13443
|
throw new TypeError("Cannot call a class as a function");
|
13455
13444
|
};
|
13456
13445
|
var createClass = {}, $export$4 = _export;
|
13457
|
-
$export$4($export$4.S + $export$4.F * !
|
13446
|
+
$export$4($export$4.S + $export$4.F * !_descriptors, "Object", { defineProperty: _objectDp.f });
|
13458
13447
|
var $Object$1 = _coreExports.Object, defineProperty$2 = function(g, b, _) {
|
13459
13448
|
return $Object$1.defineProperty(g, b, _);
|
13460
13449
|
}, defineProperty$1 = { default: defineProperty$2, __esModule: !0 };
|
@@ -13479,7 +13468,7 @@ var possibleConstructorReturn = {}, _typeof$2 = {}, toInteger = _toInteger, defi
|
|
13479
13468
|
var _ = String(defined(g)), x = toInteger(b), S = _.length, E, C;
|
13480
13469
|
return x < 0 || x >= S ? m ? "" : void 0 : (E = _.charCodeAt(x), E < 55296 || E > 56319 || x + 1 === S || (C = _.charCodeAt(x + 1)) < 56320 || C > 57343 ? m ? _.charAt(x) : E : m ? _.slice(x, x + 2) : (E - 55296 << 10) + (C - 56320) + 65536);
|
13481
13470
|
};
|
13482
|
-
}, _redefine = _hide, _iterators = {}, dP$1 =
|
13471
|
+
}, _redefine = _hide, _iterators = {}, dP$1 = _objectDp, anObject$2 = _anObject, getKeys$1 = _objectKeys, _objectDps = _descriptors ? Object.defineProperties : function(g, b) {
|
13483
13472
|
anObject$2(g);
|
13484
13473
|
for (var _ = getKeys$1(b), x = _.length, S = 0, E; x > S; )
|
13485
13474
|
dP$1.f(g, E = _[S++], b[E]);
|
@@ -13505,7 +13494,7 @@ var anObject$1 = _anObject, dPs = _objectDps, enumBugKeys = _enumBugKeys, IE_PRO
|
|
13505
13494
|
return store[m] || (store[m] = USE_SYMBOL && Symbol$1[m] || (USE_SYMBOL ? Symbol$1 : uid$1)("Symbol." + m));
|
13506
13495
|
};
|
13507
13496
|
$exports.store = store;
|
13508
|
-
var _wksExports = _wks.exports, def =
|
13497
|
+
var _wksExports = _wks.exports, def = _objectDp.f, has$3 = _has, TAG = _wksExports("toStringTag"), _setToStringTag = function(m, g, b) {
|
13509
13498
|
m && !has$3(m = b ? m : m.prototype, TAG) && def(m, TAG, { configurable: !0, value: g });
|
13510
13499
|
}, create$2 = _objectCreate, descriptor = _propertyDesc, setToStringTag$2 = _setToStringTag, IteratorPrototype = {};
|
13511
13500
|
_hide(IteratorPrototype, _wksExports("iterator"), function() {
|
@@ -13571,7 +13560,7 @@ for (var i$1 = 0; i$1 < DOMIterables.length; i$1++) {
|
|
13571
13560
|
}
|
13572
13561
|
var _wksExt = {};
|
13573
13562
|
_wksExt.f = _wksExports;
|
13574
|
-
var iterator$1 = _wksExt.f("iterator"), iterator = { default: iterator$1, __esModule: !0 }, _meta = { exports: {} }, META$1 = _uid("meta"), isObject$3 = _isObject, has$2 = _has, setDesc =
|
13563
|
+
var iterator$1 = _wksExt.f("iterator"), iterator = { default: iterator$1, __esModule: !0 }, _meta = { exports: {} }, META$1 = _uid("meta"), isObject$3 = _isObject, has$2 = _has, setDesc = _objectDp.f, id = 0, isExtensible = Object.isExtensible || function() {
|
13575
13564
|
return !0;
|
13576
13565
|
}, FREEZE = !_fails(function() {
|
13577
13566
|
return isExtensible(Object.preventExtensions({}));
|
@@ -13610,7 +13599,7 @@ var iterator$1 = _wksExt.f("iterator"), iterator = { default: iterator$1, __esMo
|
|
13610
13599
|
fastKey,
|
13611
13600
|
getWeak,
|
13612
13601
|
onFreeze
|
13613
|
-
}, _metaExports = _meta.exports, core = _coreExports, wksExt$1 = _wksExt, defineProperty =
|
13602
|
+
}, _metaExports = _meta.exports, core = _coreExports, wksExt$1 = _wksExt, defineProperty = _objectDp.f, _wksDefine = function(m) {
|
13614
13603
|
var g = core.Symbol || (core.Symbol = {});
|
13615
13604
|
m.charAt(0) != "_" && !(m in g) && defineProperty(g, m, { value: wksExt$1.f(m) });
|
13616
13605
|
}, getKeys = _objectKeys, gOPS = _objectGops, pIE$1 = require_objectPie(), _enumKeys = function(m) {
|
@@ -13635,8 +13624,8 @@ var toIObject$2 = _toIobject, gOPN$1 = _objectGopn.f, toString = {}.toString, wi
|
|
13635
13624
|
_objectGopnExt.f = function(g) {
|
13636
13625
|
return windowNames && toString.call(g) == "[object Window]" ? getWindowNames(g) : gOPN$1(toIObject$2(g));
|
13637
13626
|
};
|
13638
|
-
var _objectGopd = {}, pIE = require_objectPie(), createDesc$1 = _propertyDesc, toIObject$1 = _toIobject, toPrimitive$2 = _toPrimitive, has$1 = _has, IE8_DOM_DEFINE =
|
13639
|
-
_objectGopd.f =
|
13627
|
+
var _objectGopd = {}, pIE = require_objectPie(), createDesc$1 = _propertyDesc, toIObject$1 = _toIobject, toPrimitive$2 = _toPrimitive, has$1 = _has, IE8_DOM_DEFINE = _ie8DomDefine, gOPD$1 = Object.getOwnPropertyDescriptor;
|
13628
|
+
_objectGopd.f = _descriptors ? gOPD$1 : function(g, b) {
|
13640
13629
|
if (g = toIObject$1(g), b = toPrimitive$2(b, !0), IE8_DOM_DEFINE)
|
13641
13630
|
try {
|
13642
13631
|
return gOPD$1(g, b);
|
@@ -13645,7 +13634,7 @@ _objectGopd.f = require_descriptors() ? gOPD$1 : function(g, b) {
|
|
13645
13634
|
if (has$1(g, b))
|
13646
13635
|
return createDesc$1(!pIE.f.call(g, b), g[b]);
|
13647
13636
|
};
|
13648
|
-
var global$2 = _globalExports, has = _has, DESCRIPTORS =
|
13637
|
+
var global$2 = _globalExports, has = _has, DESCRIPTORS = _descriptors, $export$2 = _export, redefine = _redefine, META = _metaExports.KEY, $fails = _fails, shared = _sharedExports, setToStringTag = _setToStringTag, uid = _uid, wks = _wksExports, wksExt = _wksExt, wksDefine = _wksDefine, enumKeys = _enumKeys, isArray = _isArray, anObject = _anObject, isObject$2 = _isObject, toObject = _toObject, toIObject = _toIobject, toPrimitive$1 = _toPrimitive, createDesc = _propertyDesc, _create$1 = _objectCreate, gOPNExt = _objectGopnExt, $GOPD = _objectGopd, $GOPS = _objectGops, $DP = _objectDp, $keys = _objectKeys, gOPD = $GOPD.f, dP = $DP.f, gOPN = gOPNExt.f, $Symbol = global$2.Symbol, $JSON = global$2.JSON, _stringify = $JSON && $JSON.stringify, PROTOTYPE = "prototype", HIDDEN = wks("_hidden"), TO_PRIMITIVE = wks("toPrimitive"), isEnum = {}.propertyIsEnumerable, SymbolRegistry = shared("symbol-registry"), AllSymbols = shared("symbols"), OPSymbols = shared("op-symbols"), ObjectProto = Object[PROTOTYPE], USE_NATIVE = typeof $Symbol == "function" && !!$GOPS.f, QObject = global$2.QObject, setter = !QObject || !QObject[PROTOTYPE] || !QObject[PROTOTYPE].findChild, setSymbolDesc = DESCRIPTORS && $fails(function() {
|
13649
13638
|
return _create$1(dP({}, "a", {
|
13650
13639
|
get: function() {
|
13651
13640
|
return dP(this, "a", { value: 7 }).a;
|
@@ -27944,7 +27933,7 @@ function PrivateRoute({
|
|
27944
27933
|
children: m
|
27945
27934
|
}) {
|
27946
27935
|
const { account: g } = useAuth();
|
27947
|
-
return useEffect(() => (g === void 0 && handleAuth(), () => {
|
27936
|
+
return useEffect(() => (g === void 0 && handleAuth$1(), () => {
|
27948
27937
|
}), []), g === void 0 ? /* @__PURE__ */ jsx$1(Fragment$2, {}) : /* @__PURE__ */ jsx$1(Fragment$2, { children: m });
|
27949
27938
|
}
|
27950
27939
|
var classnames$1 = { exports: {} };
|
@@ -29805,7 +29794,7 @@ var clone$1 = { exports: {} };
|
|
29805
29794
|
})(clone$1);
|
29806
29795
|
var cloneExports = clone$1.exports;
|
29807
29796
|
const clone = /* @__PURE__ */ getDefaultExportFromCjs(cloneExports);
|
29808
|
-
var define_process_env_default$2 = { npm_package_devDependencies_react_dom: "^18.2.0", npm_package_devDependencies__tailwindcss_typography: "^0.5.10", npm_package_devDependencies__storybook_test: "^8.1.5", npm_package_devDependencies__storybook_addon_links: "^8.1.5", npm_package_dependencies__fortawesome_fontawesome_svg_core: "^6.5.1", npm_package_dependencies__radix_ui_react_tabs: "^1.0.4", TERM_PROGRAM: "WarpTerminal", NODE: "/usr/local/Cellar/node/21.6.2_1/bin/node", INIT_CWD: "/Users/dan/Documents/work/propro/propro-reusable-components", npm_package_peerDependencies_axios: "^1.6.7", npm_package_devDependencies_typescript: "^5.2.2", npm_package_dependencies_lucide_react: "^0.309.0", npm_package_dependencies_axios: "^1.6.7", npm_package_dependencies__tauri_apps_plugin_http: "^2.0.0", npm_config_version_git_tag: "true", SHELL: "/bin/zsh", TERM: "xterm-256color", WARP_HONOR_PS1: "0", npm_package_devDependencies_vite: "^5.0.8", npm_package_devDependencies__storybook_addon_essentials: "^8.1.5", npm_package_dependencies__radix_ui_react_dialog: "^1.0.5", npm_package_dependencies__plasmicpkgs_plasmic_tabs: "^0.0.48", TMPDIR: "/var/folders/yn/6n3p2d610s197g728jdbk2f00000gn/T/", npm_package_scripts_lint: "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0", npm_config_init_license: "MIT", TERM_PROGRAM_VERSION: "v0.2024.11.12.08.02.stable_02", npm_package_devDependencies__vitejs_plugin_react: "^4.2.1", npm_package_scripts_dev: "vite", npm_package_dependencies_react_lottie: "^1.2.4", npm_package_scripts_prepublishOnly: "yarn build", npm_package_dependencies__tauri_apps_api: "^2.0.2", npm_package_dependencies__plasmicapp_react_web: "^0.2.337", npm_package_devDependencies__storybook_blocks: "^8.1.5", npm_package_devDependencies__storybook_addon_interactions: "^8.1.5", npm_package_dependencies__plasmicpkgs_antd: "^2.0.127", npm_config_registry: "https://registry.yarnpkg.com", ZSH: "/Users/dan/.oh-my-zsh", npm_package_peerDependencies_react_dom: "^18.2.0", npm_package_peerDependencies__tanstack_react_query_devtools: "^5.
|
29797
|
+
var define_process_env_default$2 = { npm_package_devDependencies_react_dom: "^18.2.0", npm_package_devDependencies__tailwindcss_typography: "^0.5.10", npm_package_devDependencies__storybook_test: "^8.1.5", npm_package_devDependencies__storybook_addon_links: "^8.1.5", npm_package_dependencies__fortawesome_fontawesome_svg_core: "^6.5.1", npm_package_dependencies__radix_ui_react_tabs: "^1.0.4", TERM_PROGRAM: "WarpTerminal", NODE: "/usr/local/Cellar/node/21.6.2_1/bin/node", INIT_CWD: "/Users/dan/Documents/work/propro/propro-reusable-components", npm_package_peerDependencies_axios: "^1.6.7", npm_package_devDependencies_typescript: "^5.2.2", npm_package_dependencies_lucide_react: "^0.309.0", npm_package_dependencies_axios: "^1.6.7", npm_package_dependencies__tauri_apps_plugin_http: "^2.0.0", npm_config_version_git_tag: "true", SHELL: "/bin/zsh", TERM: "xterm-256color", WARP_HONOR_PS1: "0", npm_package_devDependencies_vite: "^5.0.8", npm_package_devDependencies__storybook_addon_essentials: "^8.1.5", npm_package_dependencies__radix_ui_react_dialog: "^1.0.5", npm_package_dependencies__plasmicpkgs_plasmic_tabs: "^0.0.48", TMPDIR: "/var/folders/yn/6n3p2d610s197g728jdbk2f00000gn/T/", npm_package_scripts_lint: "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0", npm_config_init_license: "MIT", TERM_PROGRAM_VERSION: "v0.2024.11.12.08.02.stable_02", npm_package_devDependencies__vitejs_plugin_react: "^4.2.1", npm_package_scripts_dev: "vite", npm_package_dependencies_react_lottie: "^1.2.4", npm_package_scripts_prepublishOnly: "yarn build", npm_package_dependencies__tauri_apps_api: "^2.0.2", npm_package_dependencies__plasmicapp_react_web: "^0.2.337", npm_package_devDependencies__storybook_blocks: "^8.1.5", npm_package_devDependencies__storybook_addon_interactions: "^8.1.5", npm_package_dependencies__plasmicpkgs_antd: "^2.0.127", npm_config_registry: "https://registry.yarnpkg.com", ZSH: "/Users/dan/.oh-my-zsh", npm_package_peerDependencies_react_dom: "^18.2.0", npm_package_peerDependencies__tanstack_react_query_devtools: "^5.61.5", npm_package_devDependencies_eslint_plugin_react_refresh: "^0.4.5", npm_package_dependencies__ant_design_icons: "^5.2.6", npm_package_readmeFilename: "README.md", USER: "dan", npm_package_description: "This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.", npm_package_devDependencies_react: "^18.2.0", LS_COLORS: "di=1;36:ln=35:so=32:pi=33:ex=31:bd=34;46:cd=34;43:su=30;41:sg=30;46:tw=30;42:ow=30;43", npm_package_devDependencies__types_react: "^18.2.43", COMMAND_MODE: "unix2003", npm_package_dependencies__radix_ui_react_tooltip: "^1.1.2", npm_package_scripts_build_storybook: "storybook build", npm_package_dependencies__plasmicpkgs_react_awesome_reveal: "^3.8.209", SSH_AUTH_SOCK: "/private/tmp/com.apple.launchd.wkeLGWfnpd/Listeners", npm_package_devDependencies_eslint_plugin_storybook: "^0.8.0", npm_package_dependencies_tailwindcss_animate: "^1.0.7", npm_package_dependencies__plasmicpkgs_lottie_react: "^0.0.198", WARP_IS_LOCAL_SHELL_SESSION: "1", __CF_USER_TEXT_ENCODING: "0x1F5:0x0:0x0", npm_package_devDependencies_postcss: "^8.4.33", npm_package_devDependencies_eslint: "^8.55.0", npm_execpath: "/usr/local/lib/node_modules/yarn/bin/yarn.js", npm_package_devDependencies__typescript_eslint_eslint_plugin: "^6.14.0", WARP_USE_SSH_WRAPPER: "1", PAGER: "less", npm_package_dependencies__fortawesome_react_fontawesome: "^0.2.0", npm_package_devDependencies_glob: "^10.3.10", npm_package_dependencies_react_error_boundary: "^4.0.12", LSCOLORS: "Gxfxcxdxbxegedabagacad", npm_package_devDependencies__types_react_dom: "^18.2.17", npm_package_devDependencies__typescript_eslint_parser: "^6.14.0", npm_package_dependencies_tailwind_merge: "^2.2.0", npm_package_dependencies__plasmicpkgs_plasmic_rich_components: "^1.0.197", PATH: "/var/folders/yn/6n3p2d610s197g728jdbk2f00000gn/T/yarn--1732741745444-0.25069648107021636:/Users/dan/Documents/work/propro/propro-reusable-components/node_modules/.bin:/Users/dan/.config/yarn/link/node_modules/.bin:/usr/local/Cellar/node/21.6.2_1/libexec/lib/node_modules/npm/bin/node-gyp-bin:/usr/local/Cellar/node/21.6.2_1/lib/node_modules/npm/bin/node-gyp-bin:/usr/local/Cellar/node/21.6.2_1/bin/node_modules/npm/bin/node-gyp-bin:/var/folders/yn/6n3p2d610s197g728jdbk2f00000gn/T/yarn--1732741740312-0.733012353377603:/Users/dan/Documents/work/propro/propro-reusable-components/node_modules/.bin:/Users/dan/.config/yarn/link/node_modules/.bin:/usr/local/Cellar/node/21.6.2_1/libexec/lib/node_modules/npm/bin/node-gyp-bin:/usr/local/Cellar/node/21.6.2_1/lib/node_modules/npm/bin/node-gyp-bin:/usr/local/Cellar/node/21.6.2_1/bin/node_modules/npm/bin/node-gyp-bin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/Library/Apple/usr/bin:/usr/local/go/bin:/Users/dan/.cargo/bin", npm_config_argv: '{"remain":[],"cooked":["publish"],"original":["publish"]}', npm_package_dependencies_class_variance_authority: "^0.7.0", npm_package_dependencies__fortawesome_free_solid_svg_icons: "^6.5.1", npm_package_dependencies__radix_ui_react_switch: "^1.0.3", _: "/Users/dan/Documents/work/propro/propro-reusable-components/node_modules/.bin/vite", LaunchInstanceID: "3A7092E5-1CAC-41E8-ACB6-9B991EB09CC8", __CFBundleIdentifier: "dev.warp.Warp-Stable", npm_package_peerDependencies_react_toastify: "^10.0.5", npm_package_dependencies_react_toastify: "^10.0.5", npm_package_dependencies_propro_icons: "^0.0.32", npm_package_dependencies__types_js_cookie: "^3.0.6", npm_package_dependencies__types_chrome: "^0.0.287", PWD: "/Users/dan/Documents/work/propro/propro-reusable-components", npm_package_devDependencies_tailwindcss: "^3.4.1", npm_package_dependencies__plasmicapp_cli: "^0.1.327", npm_package_devDependencies_eslint_plugin_react_hooks: "^4.6.0", npm_package_devDependencies__storybook_addon_onboarding: "^8.1.5", npm_package_scripts_preview: "vite preview", npm_lifecycle_event: "build", npm_package_devDependencies_vite_plugin_lib_inject_css: "^1.3.0", npm_package_devDependencies_storybook: "^8.1.5", npm_package_types: "dist/main.d.ts", npm_package_name: "propro-common-components", npm_package_scripts_build: "tsc --p ./tsconfig-build.json && vite build", npm_config_version_commit_hooks: "true", XPC_FLAGS: "0x0", npm_package_peerDependencies_react_router_dom: "^6.22.3", npm_package_dependencies_react_router_dom: "^6.22.3", npm_package_devDependencies__tailwindcss_forms: "^0.5.7", npm_package_devDependencies__chromatic_com_storybook: "^1.5.0", npm_config_bin_links: "true", npm_package_devDependencies__storybook_react: "^8.1.5", npm_package_peerDependencies__tanstack_react_query: "^5.61.5", npm_package_devDependencies_vite_plugin_dts: "^3.7.1", npm_package_main: "dist/propro-common-components.js", XPC_SERVICE_NAME: "0", npm_package_version: "0.1.309", npm_package_devDependencies_autoprefixer: "^10.4.16", HOME: "/Users/dan", SHLVL: "3", npm_package_type: "module", npm_package_dependencies__radix_ui_react_menubar: "^1.0.4", npm_package_scripts_storybook: "storybook dev -p 6006", npm_package_dependencies_formik: "^2.4.5", npm_package_dependencies__mantine_hooks: "^7.9.0", npm_config_save_prefix: "^", npm_config_strict_ssl: "true", npm_package_devDependencies__types_react_lottie: "^1.2.10", npm_config_version_git_message: "v%s", npm_package_dependencies_js_cookie: "^3.0.5", npm_package_dependencies__radix_ui_react_popover: "^1.0.7", npm_package_dependencies__radix_ui_react_avatar: "^1.0.4", npm_package_dependencies__radix_ui_react_slot: "^1.0.2", npm_package_dependencies__plasmicpkgs_plasmic_embed_css: "^0.1.192", LOGNAME: "dan", LESS: "-R", YARN_WRAP_OUTPUT: "false", npm_lifecycle_script: "tsc --p ./tsconfig-build.json && vite build", LC_CTYPE: "UTF-8", npm_package_dependencies_yup: "^1.4.0", SSH_SOCKET_DIR: "~/.ssh", npm_package_peerDependencies_react: "^18.2.0", npm_package_devDependencies__storybook_react_vite: "^8.1.5", npm_package_dependencies__radix_ui_react_label: "^2.0.2", npm_config_version_git_sign: "", npm_config_ignore_scripts: "", npm_config_user_agent: "yarn/1.22.22 npm/? node/v21.6.2 darwin x64", npm_package_devDependencies__types_node: "^20.11.5", npm_package_dependencies_clsx: "^2.1.0", npm_package_dependencies__radix_ui_react_dropdown_menu: "^2.0.6", npm_package_files_0: "dist", CONDA_CHANGEPS1: "false", npm_package_dependencies_antd: "^5.21.5", npm_config_init_version: "1.0.0", npm_config_ignore_optional: "", SECURITYSESSIONID: "186b1", npm_package_dependencies__plasmicpkgs_plasmic_basic_components: "^0.0.230", COLORTERM: "truecolor", npm_node_execpath: "/usr/local/Cellar/node/21.6.2_1/bin/node", npm_package_dependencies__plasmicpkgs_antd5: "^0.0.253", npm_package_dependencies__ant_design_pro_components: "^2.6.4", npm_config_version_tag_prefix: "v", NODE_ENV: "production" }, extendStatics = function(m, g) {
|
29809
29798
|
return extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(b, _) {
|
29810
29799
|
b.__proto__ = _;
|
29811
29800
|
} || function(b, _) {
|
@@ -35949,7 +35938,7 @@ const genSubStyleComponent = (m, g, b, _) => {
|
|
35949
35938
|
}, fullClone$1 = Object.assign({}, React), {
|
35950
35939
|
useId
|
35951
35940
|
} = fullClone$1, useEmptyId = () => "", useThemeKey = typeof useId > "u" ? useEmptyId : useId;
|
35952
|
-
var define_process_env_default$1 = { npm_package_devDependencies_react_dom: "^18.2.0", npm_package_devDependencies__tailwindcss_typography: "^0.5.10", npm_package_devDependencies__storybook_test: "^8.1.5", npm_package_devDependencies__storybook_addon_links: "^8.1.5", npm_package_dependencies__fortawesome_fontawesome_svg_core: "^6.5.1", npm_package_dependencies__radix_ui_react_tabs: "^1.0.4", TERM_PROGRAM: "WarpTerminal", NODE: "/usr/local/Cellar/node/21.6.2_1/bin/node", INIT_CWD: "/Users/dan/Documents/work/propro/propro-reusable-components", npm_package_peerDependencies_axios: "^1.6.7", npm_package_devDependencies_typescript: "^5.2.2", npm_package_dependencies_lucide_react: "^0.309.0", npm_package_dependencies_axios: "^1.6.7", npm_package_dependencies__tauri_apps_plugin_http: "^2.0.0", npm_config_version_git_tag: "true", SHELL: "/bin/zsh", TERM: "xterm-256color", WARP_HONOR_PS1: "0", npm_package_devDependencies_vite: "^5.0.8", npm_package_devDependencies__storybook_addon_essentials: "^8.1.5", npm_package_dependencies__radix_ui_react_dialog: "^1.0.5", npm_package_dependencies__plasmicpkgs_plasmic_tabs: "^0.0.48", TMPDIR: "/var/folders/yn/6n3p2d610s197g728jdbk2f00000gn/T/", npm_package_scripts_lint: "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0", npm_config_init_license: "MIT", TERM_PROGRAM_VERSION: "v0.2024.11.12.08.02.stable_02", npm_package_devDependencies__vitejs_plugin_react: "^4.2.1", npm_package_scripts_dev: "vite", npm_package_dependencies_react_lottie: "^1.2.4", npm_package_scripts_prepublishOnly: "yarn build", npm_package_dependencies__tauri_apps_api: "^2.0.2", npm_package_dependencies__plasmicapp_react_web: "^0.2.337", npm_package_devDependencies__storybook_blocks: "^8.1.5", npm_package_devDependencies__storybook_addon_interactions: "^8.1.5", npm_package_dependencies__plasmicpkgs_antd: "^2.0.127", npm_config_registry: "https://registry.yarnpkg.com", ZSH: "/Users/dan/.oh-my-zsh", npm_package_peerDependencies_react_dom: "^18.2.0", npm_package_peerDependencies__tanstack_react_query_devtools: "^5.
|
35941
|
+
var define_process_env_default$1 = { npm_package_devDependencies_react_dom: "^18.2.0", npm_package_devDependencies__tailwindcss_typography: "^0.5.10", npm_package_devDependencies__storybook_test: "^8.1.5", npm_package_devDependencies__storybook_addon_links: "^8.1.5", npm_package_dependencies__fortawesome_fontawesome_svg_core: "^6.5.1", npm_package_dependencies__radix_ui_react_tabs: "^1.0.4", TERM_PROGRAM: "WarpTerminal", NODE: "/usr/local/Cellar/node/21.6.2_1/bin/node", INIT_CWD: "/Users/dan/Documents/work/propro/propro-reusable-components", npm_package_peerDependencies_axios: "^1.6.7", npm_package_devDependencies_typescript: "^5.2.2", npm_package_dependencies_lucide_react: "^0.309.0", npm_package_dependencies_axios: "^1.6.7", npm_package_dependencies__tauri_apps_plugin_http: "^2.0.0", npm_config_version_git_tag: "true", SHELL: "/bin/zsh", TERM: "xterm-256color", WARP_HONOR_PS1: "0", npm_package_devDependencies_vite: "^5.0.8", npm_package_devDependencies__storybook_addon_essentials: "^8.1.5", npm_package_dependencies__radix_ui_react_dialog: "^1.0.5", npm_package_dependencies__plasmicpkgs_plasmic_tabs: "^0.0.48", TMPDIR: "/var/folders/yn/6n3p2d610s197g728jdbk2f00000gn/T/", npm_package_scripts_lint: "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0", npm_config_init_license: "MIT", TERM_PROGRAM_VERSION: "v0.2024.11.12.08.02.stable_02", npm_package_devDependencies__vitejs_plugin_react: "^4.2.1", npm_package_scripts_dev: "vite", npm_package_dependencies_react_lottie: "^1.2.4", npm_package_scripts_prepublishOnly: "yarn build", npm_package_dependencies__tauri_apps_api: "^2.0.2", npm_package_dependencies__plasmicapp_react_web: "^0.2.337", npm_package_devDependencies__storybook_blocks: "^8.1.5", npm_package_devDependencies__storybook_addon_interactions: "^8.1.5", npm_package_dependencies__plasmicpkgs_antd: "^2.0.127", npm_config_registry: "https://registry.yarnpkg.com", ZSH: "/Users/dan/.oh-my-zsh", npm_package_peerDependencies_react_dom: "^18.2.0", npm_package_peerDependencies__tanstack_react_query_devtools: "^5.61.5", npm_package_devDependencies_eslint_plugin_react_refresh: "^0.4.5", npm_package_dependencies__ant_design_icons: "^5.2.6", npm_package_readmeFilename: "README.md", USER: "dan", npm_package_description: "This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.", npm_package_devDependencies_react: "^18.2.0", LS_COLORS: "di=1;36:ln=35:so=32:pi=33:ex=31:bd=34;46:cd=34;43:su=30;41:sg=30;46:tw=30;42:ow=30;43", npm_package_devDependencies__types_react: "^18.2.43", COMMAND_MODE: "unix2003", npm_package_dependencies__radix_ui_react_tooltip: "^1.1.2", npm_package_scripts_build_storybook: "storybook build", npm_package_dependencies__plasmicpkgs_react_awesome_reveal: "^3.8.209", SSH_AUTH_SOCK: "/private/tmp/com.apple.launchd.wkeLGWfnpd/Listeners", npm_package_devDependencies_eslint_plugin_storybook: "^0.8.0", npm_package_dependencies_tailwindcss_animate: "^1.0.7", npm_package_dependencies__plasmicpkgs_lottie_react: "^0.0.198", WARP_IS_LOCAL_SHELL_SESSION: "1", __CF_USER_TEXT_ENCODING: "0x1F5:0x0:0x0", npm_package_devDependencies_postcss: "^8.4.33", npm_package_devDependencies_eslint: "^8.55.0", npm_execpath: "/usr/local/lib/node_modules/yarn/bin/yarn.js", npm_package_devDependencies__typescript_eslint_eslint_plugin: "^6.14.0", WARP_USE_SSH_WRAPPER: "1", PAGER: "less", npm_package_dependencies__fortawesome_react_fontawesome: "^0.2.0", npm_package_devDependencies_glob: "^10.3.10", npm_package_dependencies_react_error_boundary: "^4.0.12", LSCOLORS: "Gxfxcxdxbxegedabagacad", npm_package_devDependencies__types_react_dom: "^18.2.17", npm_package_devDependencies__typescript_eslint_parser: "^6.14.0", npm_package_dependencies_tailwind_merge: "^2.2.0", npm_package_dependencies__plasmicpkgs_plasmic_rich_components: "^1.0.197", PATH: "/var/folders/yn/6n3p2d610s197g728jdbk2f00000gn/T/yarn--1732741745444-0.25069648107021636:/Users/dan/Documents/work/propro/propro-reusable-components/node_modules/.bin:/Users/dan/.config/yarn/link/node_modules/.bin:/usr/local/Cellar/node/21.6.2_1/libexec/lib/node_modules/npm/bin/node-gyp-bin:/usr/local/Cellar/node/21.6.2_1/lib/node_modules/npm/bin/node-gyp-bin:/usr/local/Cellar/node/21.6.2_1/bin/node_modules/npm/bin/node-gyp-bin:/var/folders/yn/6n3p2d610s197g728jdbk2f00000gn/T/yarn--1732741740312-0.733012353377603:/Users/dan/Documents/work/propro/propro-reusable-components/node_modules/.bin:/Users/dan/.config/yarn/link/node_modules/.bin:/usr/local/Cellar/node/21.6.2_1/libexec/lib/node_modules/npm/bin/node-gyp-bin:/usr/local/Cellar/node/21.6.2_1/lib/node_modules/npm/bin/node-gyp-bin:/usr/local/Cellar/node/21.6.2_1/bin/node_modules/npm/bin/node-gyp-bin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/Library/Apple/usr/bin:/usr/local/go/bin:/Users/dan/.cargo/bin", npm_config_argv: '{"remain":[],"cooked":["publish"],"original":["publish"]}', npm_package_dependencies_class_variance_authority: "^0.7.0", npm_package_dependencies__fortawesome_free_solid_svg_icons: "^6.5.1", npm_package_dependencies__radix_ui_react_switch: "^1.0.3", _: "/Users/dan/Documents/work/propro/propro-reusable-components/node_modules/.bin/vite", LaunchInstanceID: "3A7092E5-1CAC-41E8-ACB6-9B991EB09CC8", __CFBundleIdentifier: "dev.warp.Warp-Stable", npm_package_peerDependencies_react_toastify: "^10.0.5", npm_package_dependencies_react_toastify: "^10.0.5", npm_package_dependencies_propro_icons: "^0.0.32", npm_package_dependencies__types_js_cookie: "^3.0.6", npm_package_dependencies__types_chrome: "^0.0.287", PWD: "/Users/dan/Documents/work/propro/propro-reusable-components", npm_package_devDependencies_tailwindcss: "^3.4.1", npm_package_dependencies__plasmicapp_cli: "^0.1.327", npm_package_devDependencies_eslint_plugin_react_hooks: "^4.6.0", npm_package_devDependencies__storybook_addon_onboarding: "^8.1.5", npm_package_scripts_preview: "vite preview", npm_lifecycle_event: "build", npm_package_devDependencies_vite_plugin_lib_inject_css: "^1.3.0", npm_package_devDependencies_storybook: "^8.1.5", npm_package_types: "dist/main.d.ts", npm_package_name: "propro-common-components", npm_package_scripts_build: "tsc --p ./tsconfig-build.json && vite build", npm_config_version_commit_hooks: "true", XPC_FLAGS: "0x0", npm_package_peerDependencies_react_router_dom: "^6.22.3", npm_package_dependencies_react_router_dom: "^6.22.3", npm_package_devDependencies__tailwindcss_forms: "^0.5.7", npm_package_devDependencies__chromatic_com_storybook: "^1.5.0", npm_config_bin_links: "true", npm_package_devDependencies__storybook_react: "^8.1.5", npm_package_peerDependencies__tanstack_react_query: "^5.61.5", npm_package_devDependencies_vite_plugin_dts: "^3.7.1", npm_package_main: "dist/propro-common-components.js", XPC_SERVICE_NAME: "0", npm_package_version: "0.1.309", npm_package_devDependencies_autoprefixer: "^10.4.16", HOME: "/Users/dan", SHLVL: "3", npm_package_type: "module", npm_package_dependencies__radix_ui_react_menubar: "^1.0.4", npm_package_scripts_storybook: "storybook dev -p 6006", npm_package_dependencies_formik: "^2.4.5", npm_package_dependencies__mantine_hooks: "^7.9.0", npm_config_save_prefix: "^", npm_config_strict_ssl: "true", npm_package_devDependencies__types_react_lottie: "^1.2.10", npm_config_version_git_message: "v%s", npm_package_dependencies_js_cookie: "^3.0.5", npm_package_dependencies__radix_ui_react_popover: "^1.0.7", npm_package_dependencies__radix_ui_react_avatar: "^1.0.4", npm_package_dependencies__radix_ui_react_slot: "^1.0.2", npm_package_dependencies__plasmicpkgs_plasmic_embed_css: "^0.1.192", LOGNAME: "dan", LESS: "-R", YARN_WRAP_OUTPUT: "false", npm_lifecycle_script: "tsc --p ./tsconfig-build.json && vite build", LC_CTYPE: "UTF-8", npm_package_dependencies_yup: "^1.4.0", SSH_SOCKET_DIR: "~/.ssh", npm_package_peerDependencies_react: "^18.2.0", npm_package_devDependencies__storybook_react_vite: "^8.1.5", npm_package_dependencies__radix_ui_react_label: "^2.0.2", npm_config_version_git_sign: "", npm_config_ignore_scripts: "", npm_config_user_agent: "yarn/1.22.22 npm/? node/v21.6.2 darwin x64", npm_package_devDependencies__types_node: "^20.11.5", npm_package_dependencies_clsx: "^2.1.0", npm_package_dependencies__radix_ui_react_dropdown_menu: "^2.0.6", npm_package_files_0: "dist", CONDA_CHANGEPS1: "false", npm_package_dependencies_antd: "^5.21.5", npm_config_init_version: "1.0.0", npm_config_ignore_optional: "", SECURITYSESSIONID: "186b1", npm_package_dependencies__plasmicpkgs_plasmic_basic_components: "^0.0.230", COLORTERM: "truecolor", npm_node_execpath: "/usr/local/Cellar/node/21.6.2_1/bin/node", npm_package_dependencies__plasmicpkgs_antd5: "^0.0.253", npm_package_dependencies__ant_design_pro_components: "^2.6.4", npm_config_version_tag_prefix: "v", NODE_ENV: "production" };
|
35953
35942
|
function useTheme(m, g, b) {
|
35954
35943
|
var _, x;
|
35955
35944
|
const S = devUseWarning(), E = m || {}, C = E.inherit === !1 || !g ? Object.assign(Object.assign({}, defaultConfig), {
|
@@ -36472,12 +36461,12 @@ const setGlobalConfig = (m) => {
|
|
36472
36461
|
warning: Ze,
|
36473
36462
|
tour: Xe,
|
36474
36463
|
floatButtonGroup: nt
|
36475
|
-
} = m, qe = React.useCallback((Re,
|
36464
|
+
} = m, qe = React.useCallback((Re, je) => {
|
36476
36465
|
const {
|
36477
36466
|
prefixCls: Fe
|
36478
36467
|
} = m;
|
36479
|
-
if (
|
36480
|
-
return
|
36468
|
+
if (je)
|
36469
|
+
return je;
|
36481
36470
|
const Ve = Fe || V.getPrefixCls("");
|
36482
36471
|
return Re ? `${Ve}-${Re}` : Ve;
|
36483
36472
|
}, [V.getPrefixCls, m.prefixCls]), We = L || V.iconPrefixCls || defaultIconPrefixCls, Ge = b || V.csp;
|
@@ -36555,42 +36544,42 @@ const setGlobalConfig = (m) => {
|
|
36555
36544
|
Object.keys(Je).forEach((Re) => {
|
36556
36545
|
Je[Re] !== void 0 && (Be[Re] = Je[Re]);
|
36557
36546
|
}), PASSED_PROPS.forEach((Re) => {
|
36558
|
-
const
|
36559
|
-
|
36547
|
+
const je = m[Re];
|
36548
|
+
je && (Be[Re] = je);
|
36560
36549
|
}), typeof _ < "u" && (Be.button = Object.assign({
|
36561
36550
|
autoInsertSpace: _
|
36562
36551
|
}, Be.button));
|
36563
|
-
const Ue = useMemo(() => Be, Be, (Re,
|
36564
|
-
const Fe = Object.keys(Re), Ve = Object.keys(
|
36565
|
-
return Fe.length !== Ve.length || Fe.some((Ye) => Re[Ye] !==
|
36552
|
+
const Ue = useMemo(() => Be, Be, (Re, je) => {
|
36553
|
+
const Fe = Object.keys(Re), Ve = Object.keys(je);
|
36554
|
+
return Fe.length !== Ve.length || Fe.some((Ye) => Re[Ye] !== je[Ye]);
|
36566
36555
|
}), at = React.useMemo(() => ({
|
36567
36556
|
prefixCls: We,
|
36568
36557
|
csp: Ge
|
36569
36558
|
}), [We, Ge]);
|
36570
|
-
let
|
36559
|
+
let Le = /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(PropWarning, {
|
36571
36560
|
dropdownMatchSelectWidth: P
|
36572
36561
|
}), g);
|
36573
36562
|
const et = React.useMemo(() => {
|
36574
|
-
var Re,
|
36575
|
-
return merge$2(((Re = localeValues.Form) === null || Re === void 0 ? void 0 : Re.defaultValidateMessages) || {}, ((Fe = (
|
36563
|
+
var Re, je, Fe, Ve;
|
36564
|
+
return merge$2(((Re = localeValues.Form) === null || Re === void 0 ? void 0 : Re.defaultValidateMessages) || {}, ((Fe = (je = Ue.locale) === null || je === void 0 ? void 0 : je.Form) === null || Fe === void 0 ? void 0 : Fe.defaultValidateMessages) || {}, ((Ve = Ue.form) === null || Ve === void 0 ? void 0 : Ve.validateMessages) || {}, (E == null ? void 0 : E.validateMessages) || {});
|
36576
36565
|
}, [Ue, E == null ? void 0 : E.validateMessages]);
|
36577
|
-
Object.keys(et).length > 0 && (
|
36566
|
+
Object.keys(et).length > 0 && (Le = /* @__PURE__ */ React.createElement(ValidateMessagesContext.Provider, {
|
36578
36567
|
value: et
|
36579
|
-
},
|
36568
|
+
}, Le)), C && (Le = /* @__PURE__ */ React.createElement(LocaleProvider, {
|
36580
36569
|
locale: C,
|
36581
36570
|
_ANT_MARK__: ANT_MARK
|
36582
|
-
},
|
36571
|
+
}, Le)), (We || Ge) && (Le = /* @__PURE__ */ React.createElement(IconContext.Provider, {
|
36583
36572
|
value: at
|
36584
|
-
},
|
36573
|
+
}, Le)), A && (Le = /* @__PURE__ */ React.createElement(SizeContextProvider, {
|
36585
36574
|
size: A
|
36586
|
-
},
|
36575
|
+
}, Le)), Le = /* @__PURE__ */ React.createElement(MotionWrapper, null, Le);
|
36587
36576
|
const ot = React.useMemo(() => {
|
36588
36577
|
const Re = Qe || {}, {
|
36589
|
-
algorithm:
|
36578
|
+
algorithm: je,
|
36590
36579
|
token: Fe,
|
36591
36580
|
components: Ve,
|
36592
36581
|
cssVar: Ye
|
36593
|
-
} = Re, it = __rest$8(Re, ["algorithm", "token", "components", "cssVar"]), tt =
|
36582
|
+
} = Re, it = __rest$8(Re, ["algorithm", "token", "components", "cssVar"]), tt = je && (!Array.isArray(je) || je.length > 0) ? createTheme(je) : defaultTheme, Ke = {};
|
36594
36583
|
Object.entries(Ve || {}).forEach((st) => {
|
36595
36584
|
let [ct, lt] = st;
|
36596
36585
|
const $e = Object.assign({}, lt);
|
@@ -36607,15 +36596,15 @@ const setGlobalConfig = (m) => {
|
|
36607
36596
|
cssVar: Ye
|
36608
36597
|
});
|
36609
36598
|
}, [Qe]);
|
36610
|
-
return O && (
|
36599
|
+
return O && (Le = /* @__PURE__ */ React.createElement(DesignTokenContext.Provider, {
|
36611
36600
|
value: ot
|
36612
|
-
},
|
36601
|
+
}, Le)), Ue.warning && (Le = /* @__PURE__ */ React.createElement(WarningContext.Provider, {
|
36613
36602
|
value: Ue.warning
|
36614
|
-
},
|
36603
|
+
}, Le)), F !== void 0 && (Le = /* @__PURE__ */ React.createElement(DisabledContextProvider, {
|
36615
36604
|
disabled: F
|
36616
|
-
},
|
36605
|
+
}, Le)), /* @__PURE__ */ React.createElement(ConfigContext.Provider, {
|
36617
36606
|
value: Ue
|
36618
|
-
},
|
36607
|
+
}, Le);
|
36619
36608
|
}, ConfigProvider = (m) => {
|
36620
36609
|
const g = React.useContext(ConfigContext), b = React.useContext(LocaleContext);
|
36621
36610
|
return /* @__PURE__ */ React.createElement(ProviderChildren, Object.assign({
|
@@ -38512,7 +38501,7 @@ function _wrapNativeSuper(m) {
|
|
38512
38501
|
}), _setPrototypeOf(x, _);
|
38513
38502
|
}, _wrapNativeSuper(m);
|
38514
38503
|
}
|
38515
|
-
var define_process_env_default = { npm_package_devDependencies_react_dom: "^18.2.0", npm_package_devDependencies__tailwindcss_typography: "^0.5.10", npm_package_devDependencies__storybook_test: "^8.1.5", npm_package_devDependencies__storybook_addon_links: "^8.1.5", npm_package_dependencies__fortawesome_fontawesome_svg_core: "^6.5.1", npm_package_dependencies__radix_ui_react_tabs: "^1.0.4", TERM_PROGRAM: "WarpTerminal", NODE: "/usr/local/Cellar/node/21.6.2_1/bin/node", INIT_CWD: "/Users/dan/Documents/work/propro/propro-reusable-components", npm_package_peerDependencies_axios: "^1.6.7", npm_package_devDependencies_typescript: "^5.2.2", npm_package_dependencies_lucide_react: "^0.309.0", npm_package_dependencies_axios: "^1.6.7", npm_package_dependencies__tauri_apps_plugin_http: "^2.0.0", npm_config_version_git_tag: "true", SHELL: "/bin/zsh", TERM: "xterm-256color", WARP_HONOR_PS1: "0", npm_package_devDependencies_vite: "^5.0.8", npm_package_devDependencies__storybook_addon_essentials: "^8.1.5", npm_package_dependencies__radix_ui_react_dialog: "^1.0.5", npm_package_dependencies__plasmicpkgs_plasmic_tabs: "^0.0.48", TMPDIR: "/var/folders/yn/6n3p2d610s197g728jdbk2f00000gn/T/", npm_package_scripts_lint: "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0", npm_config_init_license: "MIT", TERM_PROGRAM_VERSION: "v0.2024.11.12.08.02.stable_02", npm_package_devDependencies__vitejs_plugin_react: "^4.2.1", npm_package_scripts_dev: "vite", npm_package_dependencies_react_lottie: "^1.2.4", npm_package_scripts_prepublishOnly: "yarn build", npm_package_dependencies__tauri_apps_api: "^2.0.2", npm_package_dependencies__plasmicapp_react_web: "^0.2.337", npm_package_devDependencies__storybook_blocks: "^8.1.5", npm_package_devDependencies__storybook_addon_interactions: "^8.1.5", npm_package_dependencies__plasmicpkgs_antd: "^2.0.127", npm_config_registry: "https://registry.yarnpkg.com", ZSH: "/Users/dan/.oh-my-zsh", npm_package_peerDependencies_react_dom: "^18.2.0", npm_package_peerDependencies__tanstack_react_query_devtools: "^5.
|
38504
|
+
var define_process_env_default = { npm_package_devDependencies_react_dom: "^18.2.0", npm_package_devDependencies__tailwindcss_typography: "^0.5.10", npm_package_devDependencies__storybook_test: "^8.1.5", npm_package_devDependencies__storybook_addon_links: "^8.1.5", npm_package_dependencies__fortawesome_fontawesome_svg_core: "^6.5.1", npm_package_dependencies__radix_ui_react_tabs: "^1.0.4", TERM_PROGRAM: "WarpTerminal", NODE: "/usr/local/Cellar/node/21.6.2_1/bin/node", INIT_CWD: "/Users/dan/Documents/work/propro/propro-reusable-components", npm_package_peerDependencies_axios: "^1.6.7", npm_package_devDependencies_typescript: "^5.2.2", npm_package_dependencies_lucide_react: "^0.309.0", npm_package_dependencies_axios: "^1.6.7", npm_package_dependencies__tauri_apps_plugin_http: "^2.0.0", npm_config_version_git_tag: "true", SHELL: "/bin/zsh", TERM: "xterm-256color", WARP_HONOR_PS1: "0", npm_package_devDependencies_vite: "^5.0.8", npm_package_devDependencies__storybook_addon_essentials: "^8.1.5", npm_package_dependencies__radix_ui_react_dialog: "^1.0.5", npm_package_dependencies__plasmicpkgs_plasmic_tabs: "^0.0.48", TMPDIR: "/var/folders/yn/6n3p2d610s197g728jdbk2f00000gn/T/", npm_package_scripts_lint: "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0", npm_config_init_license: "MIT", TERM_PROGRAM_VERSION: "v0.2024.11.12.08.02.stable_02", npm_package_devDependencies__vitejs_plugin_react: "^4.2.1", npm_package_scripts_dev: "vite", npm_package_dependencies_react_lottie: "^1.2.4", npm_package_scripts_prepublishOnly: "yarn build", npm_package_dependencies__tauri_apps_api: "^2.0.2", npm_package_dependencies__plasmicapp_react_web: "^0.2.337", npm_package_devDependencies__storybook_blocks: "^8.1.5", npm_package_devDependencies__storybook_addon_interactions: "^8.1.5", npm_package_dependencies__plasmicpkgs_antd: "^2.0.127", npm_config_registry: "https://registry.yarnpkg.com", ZSH: "/Users/dan/.oh-my-zsh", npm_package_peerDependencies_react_dom: "^18.2.0", npm_package_peerDependencies__tanstack_react_query_devtools: "^5.61.5", npm_package_devDependencies_eslint_plugin_react_refresh: "^0.4.5", npm_package_dependencies__ant_design_icons: "^5.2.6", npm_package_readmeFilename: "README.md", USER: "dan", npm_package_description: "This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.", npm_package_devDependencies_react: "^18.2.0", LS_COLORS: "di=1;36:ln=35:so=32:pi=33:ex=31:bd=34;46:cd=34;43:su=30;41:sg=30;46:tw=30;42:ow=30;43", npm_package_devDependencies__types_react: "^18.2.43", COMMAND_MODE: "unix2003", npm_package_dependencies__radix_ui_react_tooltip: "^1.1.2", npm_package_scripts_build_storybook: "storybook build", npm_package_dependencies__plasmicpkgs_react_awesome_reveal: "^3.8.209", SSH_AUTH_SOCK: "/private/tmp/com.apple.launchd.wkeLGWfnpd/Listeners", npm_package_devDependencies_eslint_plugin_storybook: "^0.8.0", npm_package_dependencies_tailwindcss_animate: "^1.0.7", npm_package_dependencies__plasmicpkgs_lottie_react: "^0.0.198", WARP_IS_LOCAL_SHELL_SESSION: "1", __CF_USER_TEXT_ENCODING: "0x1F5:0x0:0x0", npm_package_devDependencies_postcss: "^8.4.33", npm_package_devDependencies_eslint: "^8.55.0", npm_execpath: "/usr/local/lib/node_modules/yarn/bin/yarn.js", npm_package_devDependencies__typescript_eslint_eslint_plugin: "^6.14.0", WARP_USE_SSH_WRAPPER: "1", PAGER: "less", npm_package_dependencies__fortawesome_react_fontawesome: "^0.2.0", npm_package_devDependencies_glob: "^10.3.10", npm_package_dependencies_react_error_boundary: "^4.0.12", LSCOLORS: "Gxfxcxdxbxegedabagacad", npm_package_devDependencies__types_react_dom: "^18.2.17", npm_package_devDependencies__typescript_eslint_parser: "^6.14.0", npm_package_dependencies_tailwind_merge: "^2.2.0", npm_package_dependencies__plasmicpkgs_plasmic_rich_components: "^1.0.197", PATH: "/var/folders/yn/6n3p2d610s197g728jdbk2f00000gn/T/yarn--1732741745444-0.25069648107021636:/Users/dan/Documents/work/propro/propro-reusable-components/node_modules/.bin:/Users/dan/.config/yarn/link/node_modules/.bin:/usr/local/Cellar/node/21.6.2_1/libexec/lib/node_modules/npm/bin/node-gyp-bin:/usr/local/Cellar/node/21.6.2_1/lib/node_modules/npm/bin/node-gyp-bin:/usr/local/Cellar/node/21.6.2_1/bin/node_modules/npm/bin/node-gyp-bin:/var/folders/yn/6n3p2d610s197g728jdbk2f00000gn/T/yarn--1732741740312-0.733012353377603:/Users/dan/Documents/work/propro/propro-reusable-components/node_modules/.bin:/Users/dan/.config/yarn/link/node_modules/.bin:/usr/local/Cellar/node/21.6.2_1/libexec/lib/node_modules/npm/bin/node-gyp-bin:/usr/local/Cellar/node/21.6.2_1/lib/node_modules/npm/bin/node-gyp-bin:/usr/local/Cellar/node/21.6.2_1/bin/node_modules/npm/bin/node-gyp-bin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/Library/Apple/usr/bin:/usr/local/go/bin:/Users/dan/.cargo/bin", npm_config_argv: '{"remain":[],"cooked":["publish"],"original":["publish"]}', npm_package_dependencies_class_variance_authority: "^0.7.0", npm_package_dependencies__fortawesome_free_solid_svg_icons: "^6.5.1", npm_package_dependencies__radix_ui_react_switch: "^1.0.3", _: "/Users/dan/Documents/work/propro/propro-reusable-components/node_modules/.bin/vite", LaunchInstanceID: "3A7092E5-1CAC-41E8-ACB6-9B991EB09CC8", __CFBundleIdentifier: "dev.warp.Warp-Stable", npm_package_peerDependencies_react_toastify: "^10.0.5", npm_package_dependencies_react_toastify: "^10.0.5", npm_package_dependencies_propro_icons: "^0.0.32", npm_package_dependencies__types_js_cookie: "^3.0.6", npm_package_dependencies__types_chrome: "^0.0.287", PWD: "/Users/dan/Documents/work/propro/propro-reusable-components", npm_package_devDependencies_tailwindcss: "^3.4.1", npm_package_dependencies__plasmicapp_cli: "^0.1.327", npm_package_devDependencies_eslint_plugin_react_hooks: "^4.6.0", npm_package_devDependencies__storybook_addon_onboarding: "^8.1.5", npm_package_scripts_preview: "vite preview", npm_lifecycle_event: "build", npm_package_devDependencies_vite_plugin_lib_inject_css: "^1.3.0", npm_package_devDependencies_storybook: "^8.1.5", npm_package_types: "dist/main.d.ts", npm_package_name: "propro-common-components", npm_package_scripts_build: "tsc --p ./tsconfig-build.json && vite build", npm_config_version_commit_hooks: "true", XPC_FLAGS: "0x0", npm_package_peerDependencies_react_router_dom: "^6.22.3", npm_package_dependencies_react_router_dom: "^6.22.3", npm_package_devDependencies__tailwindcss_forms: "^0.5.7", npm_package_devDependencies__chromatic_com_storybook: "^1.5.0", npm_config_bin_links: "true", npm_package_devDependencies__storybook_react: "^8.1.5", npm_package_peerDependencies__tanstack_react_query: "^5.61.5", npm_package_devDependencies_vite_plugin_dts: "^3.7.1", npm_package_main: "dist/propro-common-components.js", XPC_SERVICE_NAME: "0", npm_package_version: "0.1.309", npm_package_devDependencies_autoprefixer: "^10.4.16", HOME: "/Users/dan", SHLVL: "3", npm_package_type: "module", npm_package_dependencies__radix_ui_react_menubar: "^1.0.4", npm_package_scripts_storybook: "storybook dev -p 6006", npm_package_dependencies_formik: "^2.4.5", npm_package_dependencies__mantine_hooks: "^7.9.0", npm_config_save_prefix: "^", npm_config_strict_ssl: "true", npm_package_devDependencies__types_react_lottie: "^1.2.10", npm_config_version_git_message: "v%s", npm_package_dependencies_js_cookie: "^3.0.5", npm_package_dependencies__radix_ui_react_popover: "^1.0.7", npm_package_dependencies__radix_ui_react_avatar: "^1.0.4", npm_package_dependencies__radix_ui_react_slot: "^1.0.2", npm_package_dependencies__plasmicpkgs_plasmic_embed_css: "^0.1.192", LOGNAME: "dan", LESS: "-R", YARN_WRAP_OUTPUT: "false", npm_lifecycle_script: "tsc --p ./tsconfig-build.json && vite build", LC_CTYPE: "UTF-8", npm_package_dependencies_yup: "^1.4.0", SSH_SOCKET_DIR: "~/.ssh", npm_package_peerDependencies_react: "^18.2.0", npm_package_devDependencies__storybook_react_vite: "^8.1.5", npm_package_dependencies__radix_ui_react_label: "^2.0.2", npm_config_version_git_sign: "", npm_config_ignore_scripts: "", npm_config_user_agent: "yarn/1.22.22 npm/? node/v21.6.2 darwin x64", npm_package_devDependencies__types_node: "^20.11.5", npm_package_dependencies_clsx: "^2.1.0", npm_package_dependencies__radix_ui_react_dropdown_menu: "^2.0.6", npm_package_files_0: "dist", CONDA_CHANGEPS1: "false", npm_package_dependencies_antd: "^5.21.5", npm_config_init_version: "1.0.0", npm_config_ignore_optional: "", SECURITYSESSIONID: "186b1", npm_package_dependencies__plasmicpkgs_plasmic_basic_components: "^0.0.230", COLORTERM: "truecolor", npm_node_execpath: "/usr/local/Cellar/node/21.6.2_1/bin/node", npm_package_dependencies__plasmicpkgs_antd5: "^0.0.253", npm_package_dependencies__ant_design_pro_components: "^2.6.4", npm_config_version_tag_prefix: "v", NODE_ENV: "production" }, formatRegExp = /%[sdj%]/g, warning = function m() {
|
38516
38505
|
};
|
38517
38506
|
typeof process < "u" && define_process_env_default && define_process_env_default.NODE_ENV !== "production" && typeof window < "u" && typeof document < "u" && (warning = function(g, b) {
|
38518
38507
|
typeof console < "u" && console.warn && typeof ASYNC_VALIDATOR_NO_WARNING > "u" && b.every(function(_) {
|
@@ -51656,7 +51645,12 @@ And if you need to, you can `
|
|
51656
51645
|
projectcss.all,
|
51657
51646
|
sty$1.orSignUpButtonContainer,
|
51658
51647
|
{
|
51659
|
-
[sty$1.orSignUpButtonContainerapp_mapMapDesktopAlt2]: hasVariant(M, "app", "mapMapDesktopAlt2")
|
51648
|
+
[sty$1.orSignUpButtonContainerapp_mapMapDesktopAlt2]: hasVariant(M, "app", "mapMapDesktopAlt2"),
|
51649
|
+
[sty$1.orSignUpButtonContainermode_signIn]: hasVariant(
|
51650
|
+
M,
|
51651
|
+
"mode",
|
51652
|
+
"signIn"
|
51653
|
+
)
|
51660
51654
|
}
|
51661
51655
|
)
|
51662
51656
|
},
|
@@ -52547,7 +52541,80 @@ const PlasmicSignInSignUpFormLayout = Object.assign(
|
|
52547
52541
|
function SignInSignUpFormLayout_(m, g) {
|
52548
52542
|
return /* @__PURE__ */ jsx$1(PlasmicSignInSignUpFormLayout, { root: { ref: g }, ...m });
|
52549
52543
|
}
|
52550
|
-
const SignInSignUpFormLayout = React.forwardRef(SignInSignUpFormLayout_)
|
52544
|
+
const SignInSignUpFormLayout = React.forwardRef(SignInSignUpFormLayout_), URL$1 = "https://app.mapmap.app", extensionAuth = {
|
52545
|
+
getCookie,
|
52546
|
+
setCookie,
|
52547
|
+
removeCookie,
|
52548
|
+
logout,
|
52549
|
+
isUserLoggedIn,
|
52550
|
+
checkAccessToken,
|
52551
|
+
handleAuth
|
52552
|
+
};
|
52553
|
+
async function getCookie(m) {
|
52554
|
+
const g = await chrome.cookies.get({
|
52555
|
+
url: URL$1,
|
52556
|
+
name: m
|
52557
|
+
});
|
52558
|
+
function b(_) {
|
52559
|
+
let x = _;
|
52560
|
+
try {
|
52561
|
+
x = JSON.parse(_);
|
52562
|
+
try {
|
52563
|
+
return x = typeof x == "string" ? JSON.parse(x) : x, x;
|
52564
|
+
} catch {
|
52565
|
+
return x;
|
52566
|
+
}
|
52567
|
+
} catch {
|
52568
|
+
return x;
|
52569
|
+
}
|
52570
|
+
}
|
52571
|
+
return g ? b(g.value) : void 0;
|
52572
|
+
}
|
52573
|
+
async function setCookie(m, g) {
|
52574
|
+
if (!g || !m)
|
52575
|
+
return;
|
52576
|
+
const b = JSON.stringify(g);
|
52577
|
+
await chrome.cookies.set({
|
52578
|
+
url: URL$1,
|
52579
|
+
name: m,
|
52580
|
+
value: b
|
52581
|
+
});
|
52582
|
+
}
|
52583
|
+
async function removeCookie(m) {
|
52584
|
+
m && await chrome.cookies.remove({
|
52585
|
+
url: URL$1,
|
52586
|
+
name: m
|
52587
|
+
});
|
52588
|
+
}
|
52589
|
+
async function logout() {
|
52590
|
+
await removeCookie("user"), await removeCookie("account"), await removeCookie("accessToken"), await removeCookie("accessTokenExpiry"), await removeCookie("refreshToken"), await removeCookie("refreshTokenExpiry");
|
52591
|
+
}
|
52592
|
+
async function isUserLoggedIn() {
|
52593
|
+
return !!await getCookie("account");
|
52594
|
+
}
|
52595
|
+
async function handleAuth() {
|
52596
|
+
var g;
|
52597
|
+
const m = await axios.post("/api/auth");
|
52598
|
+
(g = m == null ? void 0 : m.data) != null && g.redirectUrl && (window.location.href = m.data.redirectUrl);
|
52599
|
+
}
|
52600
|
+
async function checkAccessToken() {
|
52601
|
+
var b, _, x;
|
52602
|
+
const m = await getCookie("has_account_token"), g = await getCookie("accessToken");
|
52603
|
+
if (m)
|
52604
|
+
return { accessToken: g, continueToRequest: !0 };
|
52605
|
+
if (await isUserLoggedIn())
|
52606
|
+
try {
|
52607
|
+
const S = await axios.post("/api/refreshToken");
|
52608
|
+
return {
|
52609
|
+
accessToken: (x = (_ = (b = S == null ? void 0 : S.data) == null ? void 0 : b.tokens) == null ? void 0 : _.access) == null ? void 0 : x.token,
|
52610
|
+
continueToRequest: !0
|
52611
|
+
};
|
52612
|
+
} catch {
|
52613
|
+
return await handleAuth(), { accessToken: void 0, continueToRequest: !1 };
|
52614
|
+
}
|
52615
|
+
else
|
52616
|
+
return await handleAuth(), { accessToken: void 0, continueToRequest: !1 };
|
52617
|
+
}
|
52551
52618
|
export {
|
52552
52619
|
AccountManagementComponent,
|
52553
52620
|
AppContext,
|
@@ -52566,17 +52633,18 @@ export {
|
|
52566
52633
|
SignInSignUpFormLayout,
|
52567
52634
|
TextInputFromProPro$1 as TextInputFromProPro,
|
52568
52635
|
axiosInstance,
|
52569
|
-
checkAccessToken,
|
52636
|
+
checkAccessToken$1 as checkAccessToken,
|
52637
|
+
extensionAuth,
|
52570
52638
|
Ct as getAvailableStyles,
|
52571
|
-
getCookie,
|
52639
|
+
getCookie$1 as getCookie,
|
52572
52640
|
getStorage,
|
52573
|
-
handleAuth,
|
52574
|
-
isUserLoggedIn,
|
52641
|
+
handleAuth$1 as handleAuth,
|
52642
|
+
isUserLoggedIn$1 as isUserLoggedIn,
|
52575
52643
|
wt as loadIcon,
|
52576
|
-
logout,
|
52644
|
+
logout$1 as logout,
|
52577
52645
|
removeStorage,
|
52578
52646
|
At as searchIcon,
|
52579
|
-
setCookie,
|
52647
|
+
setCookie$1 as setCookie,
|
52580
52648
|
setStorage,
|
52581
52649
|
useGet,
|
52582
52650
|
useMutate,
|
@@ -0,0 +1,20 @@
|
|
1
|
+
declare const _default: {
|
2
|
+
getCookie: typeof getCookie;
|
3
|
+
setCookie: typeof setCookie;
|
4
|
+
removeCookie: typeof removeCookie;
|
5
|
+
logout: typeof logout;
|
6
|
+
isUserLoggedIn: typeof isUserLoggedIn;
|
7
|
+
checkAccessToken: typeof checkAccessToken;
|
8
|
+
handleAuth: typeof handleAuth;
|
9
|
+
};
|
10
|
+
export default _default;
|
11
|
+
declare function getCookie(key: string): Promise<string | object | undefined>;
|
12
|
+
declare function setCookie(key: string, value: unknown): Promise<void>;
|
13
|
+
declare function removeCookie(key: string): Promise<void>;
|
14
|
+
declare function logout(): Promise<void>;
|
15
|
+
declare function isUserLoggedIn(): Promise<boolean>;
|
16
|
+
declare function handleAuth(): Promise<void>;
|
17
|
+
declare function checkAccessToken(): Promise<{
|
18
|
+
accessToken: any;
|
19
|
+
continueToRequest: boolean;
|
20
|
+
}>;
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "propro-common-components",
|
3
|
-
"version": "0.1.
|
3
|
+
"version": "0.1.309",
|
4
4
|
"type": "module",
|
5
5
|
"main": "dist/propro-common-components.js",
|
6
6
|
"types": "dist/main.d.ts",
|
@@ -45,6 +45,7 @@
|
|
45
45
|
"@radix-ui/react-tooltip": "^1.1.2",
|
46
46
|
"@tauri-apps/api": "^2.0.2",
|
47
47
|
"@tauri-apps/plugin-http": "^2.0.0",
|
48
|
+
"@types/chrome": "^0.0.287",
|
48
49
|
"@types/js-cookie": "^3.0.6",
|
49
50
|
"antd": "^5.21.5",
|
50
51
|
"axios": "^1.6.7",
|
@@ -98,8 +99,8 @@
|
|
98
99
|
"vite-plugin-lib-inject-css": "^1.3.0"
|
99
100
|
},
|
100
101
|
"peerDependencies": {
|
101
|
-
"@tanstack/react-query": "^5.
|
102
|
-
"@tanstack/react-query-devtools": "^5.
|
102
|
+
"@tanstack/react-query": "^5.61.5",
|
103
|
+
"@tanstack/react-query-devtools": "^5.61.5",
|
103
104
|
"axios": "^1.6.7",
|
104
105
|
"react": "^18.2.0",
|
105
106
|
"react-dom": "^18.2.0",
|