propro-common-components 0.1.307 → 0.1.308
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 +153 -68
- 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--1732724491735-0.7338295610476759:/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--1732724490530-0.5220663915375185:/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.308", 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--1732724491735-0.7338295610476759:/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--1732724490530-0.5220663915375185:/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.308", 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--1732724491735-0.7338295610476759:/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--1732724490530-0.5220663915375185:/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.308", 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);
|
@@ -13298,14 +13301,14 @@ var _propertyDesc = function(m, g) {
|
|
13298
13301
|
writable: !(m & 4),
|
13299
13302
|
value: g
|
13300
13303
|
};
|
13301
|
-
}, dP$
|
13302
|
-
return dP$
|
13304
|
+
}, dP$1 = require_objectDp(), createDesc$2 = _propertyDesc, _hide = require_descriptors() ? function(m, g, b) {
|
13305
|
+
return dP$1.f(m, g, createDesc$2(1, b));
|
13303
13306
|
} : function(m, g, b) {
|
13304
13307
|
return m[g] = b, m;
|
13305
13308
|
}, hasOwnProperty = {}.hasOwnProperty, _has = function(m, g) {
|
13306
13309
|
return hasOwnProperty.call(m, g);
|
13307
|
-
}, global$5 = _globalExports, core$3 = _coreExports, ctx = _ctx, hide$2 = _hide, has$6 = _has, PROTOTYPE$
|
13308
|
-
var _ = m & $export$7.F, x = m & $export$7.G, S = m & $export$7.S, E = m & $export$7.P, C = m & $export$7.B, A = m & $export$7.W, T = x ? core$3 : core$3[g] || (core$3[g] = {}), M = T[PROTOTYPE$
|
13310
|
+
}, global$5 = _globalExports, core$3 = _coreExports, ctx = _ctx, hide$2 = _hide, has$6 = _has, PROTOTYPE$1 = "prototype", $export$7 = function(m, g, b) {
|
13311
|
+
var _ = m & $export$7.F, x = m & $export$7.G, S = m & $export$7.S, E = m & $export$7.P, C = m & $export$7.B, A = m & $export$7.W, T = x ? core$3 : core$3[g] || (core$3[g] = {}), M = T[PROTOTYPE$1], I = x ? global$5 : S ? global$5[g] : (global$5[g] || {})[PROTOTYPE$1], P, R, D;
|
13309
13312
|
x && (b = g);
|
13310
13313
|
for (P in b)
|
13311
13314
|
R = !_ && I && I[P] !== void 0, !(R && has$6(T, P)) && (D = R ? I[P] : b[P], T[P] = x && typeof I[P] != "function" ? b[P] : C && R ? ctx(D, global$5) : A && I[P] == D ? function(N) {
|
@@ -13323,7 +13326,7 @@ var _propertyDesc = function(m, g) {
|
|
13323
13326
|
}
|
13324
13327
|
return N.apply(this, arguments);
|
13325
13328
|
};
|
13326
|
-
return V[PROTOTYPE$
|
13329
|
+
return V[PROTOTYPE$1] = N[PROTOTYPE$1], V;
|
13327
13330
|
}(D) : E && typeof D == "function" ? ctx(Function.call, D) : D, E && ((T.virtual || (T.virtual = {}))[P] = D, m & $export$7.R && M && !M[P] && hide$2(M, P, D)));
|
13328
13331
|
};
|
13329
13332
|
$export$7.F = 1;
|
@@ -13383,15 +13386,15 @@ var _sharedExports = _shared.exports, id$1 = 0, px = Math.random(), _uid = funct
|
|
13383
13386
|
return "Symbol(".concat(m === void 0 ? "" : m, ")_", (++id$1 + px).toString(36));
|
13384
13387
|
}, shared$1 = _sharedExports("keys"), uid$2 = _uid, _sharedKey = function(m) {
|
13385
13388
|
return shared$1[m] || (shared$1[m] = uid$2(m));
|
13386
|
-
}, has$5 = _has, toIObject$4 = _toIobject, arrayIndexOf = _arrayIncludes(!1), IE_PROTO$
|
13389
|
+
}, has$5 = _has, toIObject$4 = _toIobject, arrayIndexOf = _arrayIncludes(!1), IE_PROTO$1 = _sharedKey("IE_PROTO"), _objectKeysInternal = function(m, g) {
|
13387
13390
|
var b = toIObject$4(m), _ = 0, x = [], S;
|
13388
13391
|
for (S in b)
|
13389
|
-
S != IE_PROTO$
|
13392
|
+
S != IE_PROTO$1 && has$5(b, S) && x.push(S);
|
13390
13393
|
for (; g.length > _; )
|
13391
13394
|
has$5(b, S = g[_++]) && (~arrayIndexOf(x, S) || x.push(S));
|
13392
13395
|
return x;
|
13393
|
-
}, _enumBugKeys = "constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(","), $keys$2 = _objectKeysInternal, enumBugKeys
|
13394
|
-
return $keys$2(g, enumBugKeys
|
13396
|
+
}, _enumBugKeys = "constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(","), $keys$2 = _objectKeysInternal, enumBugKeys = _enumBugKeys, _objectKeys = Object.keys || function(g) {
|
13397
|
+
return $keys$2(g, enumBugKeys);
|
13395
13398
|
}, _objectGops = {};
|
13396
13399
|
_objectGops.f = Object.getOwnPropertySymbols;
|
13397
13400
|
var _objectPie = {}, hasRequired_objectPie;
|
@@ -13434,8 +13437,8 @@ _extends.default = _assign2.default || function(m) {
|
|
13434
13437
|
}
|
13435
13438
|
return m;
|
13436
13439
|
};
|
13437
|
-
var has$4 = _has, toObject$2 = _toObject, IE_PROTO
|
13438
|
-
return m = toObject$2(m), has$4(m, IE_PROTO
|
13440
|
+
var has$4 = _has, toObject$2 = _toObject, IE_PROTO = _sharedKey("IE_PROTO"), ObjectProto$1 = Object.prototype, _objectGpo = Object.getPrototypeOf || function(m) {
|
13441
|
+
return m = toObject$2(m), has$4(m, IE_PROTO) ? m[IE_PROTO] : typeof m.constructor == "function" && m instanceof m.constructor ? m.constructor.prototype : m instanceof Object ? ObjectProto$1 : null;
|
13439
13442
|
}, $export$5 = _export, core$1 = _coreExports, fails = _fails, _objectSap = function(m, g) {
|
13440
13443
|
var b = (core$1.Object || {})[m] || Object[m], _ = {};
|
13441
13444
|
_[m] = g(b), $export$5($export$5.S + $export$5.F * fails(function() {
|
@@ -13479,12 +13482,20 @@ var possibleConstructorReturn = {}, _typeof$2 = {}, toInteger = _toInteger, defi
|
|
13479
13482
|
var _ = String(defined(g)), x = toInteger(b), S = _.length, E, C;
|
13480
13483
|
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
13484
|
};
|
13482
|
-
}, _redefine = _hide, _iterators = {},
|
13483
|
-
|
13484
|
-
|
13485
|
-
|
13486
|
-
|
13487
|
-
|
13485
|
+
}, _redefine = _hide, _iterators = {}, _objectDps, hasRequired_objectDps;
|
13486
|
+
function require_objectDps() {
|
13487
|
+
if (hasRequired_objectDps)
|
13488
|
+
return _objectDps;
|
13489
|
+
hasRequired_objectDps = 1;
|
13490
|
+
var m = require_objectDp(), g = _anObject, b = _objectKeys;
|
13491
|
+
return _objectDps = require_descriptors() ? Object.defineProperties : function(x, S) {
|
13492
|
+
g(x);
|
13493
|
+
for (var E = b(S), C = E.length, A = 0, T; C > A; )
|
13494
|
+
m.f(x, T = E[A++], S[T]);
|
13495
|
+
return x;
|
13496
|
+
}, _objectDps;
|
13497
|
+
}
|
13498
|
+
var _html, hasRequired_html;
|
13488
13499
|
function require_html() {
|
13489
13500
|
if (hasRequired_html)
|
13490
13501
|
return _html;
|
@@ -13492,22 +13503,30 @@ function require_html() {
|
|
13492
13503
|
var m = _globalExports.document;
|
13493
13504
|
return _html = m && m.documentElement, _html;
|
13494
13505
|
}
|
13495
|
-
var
|
13496
|
-
|
13497
|
-
|
13498
|
-
|
13499
|
-
|
13500
|
-
|
13501
|
-
},
|
13502
|
-
|
13503
|
-
|
13504
|
-
|
13506
|
+
var _objectCreate, hasRequired_objectCreate;
|
13507
|
+
function require_objectCreate() {
|
13508
|
+
if (hasRequired_objectCreate)
|
13509
|
+
return _objectCreate;
|
13510
|
+
hasRequired_objectCreate = 1;
|
13511
|
+
var m = _anObject, g = require_objectDps(), b = _enumBugKeys, _ = _sharedKey("IE_PROTO"), x = function() {
|
13512
|
+
}, S = "prototype", E = function() {
|
13513
|
+
var C = require_domCreate()("iframe"), A = b.length, T = "<", M = ">", I;
|
13514
|
+
for (C.style.display = "none", require_html().appendChild(C), C.src = "javascript:", I = C.contentWindow.document, I.open(), I.write(T + "script" + M + "document.F=Object" + T + "/script" + M), I.close(), E = I.F; A--; )
|
13515
|
+
delete E[S][b[A]];
|
13516
|
+
return E();
|
13517
|
+
};
|
13518
|
+
return _objectCreate = Object.create || function(A, T) {
|
13519
|
+
var M;
|
13520
|
+
return A !== null ? (x[S] = m(A), M = new x(), x[S] = null, M[_] = A) : M = E(), T === void 0 ? M : g(M, T);
|
13521
|
+
}, _objectCreate;
|
13522
|
+
}
|
13523
|
+
var _wks = { exports: {} }, store = _sharedExports("wks"), uid$1 = _uid, Symbol$1 = _globalExports.Symbol, USE_SYMBOL = typeof Symbol$1 == "function", $exports = _wks.exports = function(m) {
|
13505
13524
|
return store[m] || (store[m] = USE_SYMBOL && Symbol$1[m] || (USE_SYMBOL ? Symbol$1 : uid$1)("Symbol." + m));
|
13506
13525
|
};
|
13507
13526
|
$exports.store = store;
|
13508
13527
|
var _wksExports = _wks.exports, def = require_objectDp().f, has$3 = _has, TAG = _wksExports("toStringTag"), _setToStringTag = function(m, g, b) {
|
13509
13528
|
m && !has$3(m = b ? m : m.prototype, TAG) && def(m, TAG, { configurable: !0, value: g });
|
13510
|
-
}, create$2 =
|
13529
|
+
}, create$2 = require_objectCreate(), descriptor = _propertyDesc, setToStringTag$2 = _setToStringTag, IteratorPrototype = {};
|
13511
13530
|
_hide(IteratorPrototype, _wksExports("iterator"), function() {
|
13512
13531
|
return this;
|
13513
13532
|
});
|
@@ -13645,7 +13664,7 @@ _objectGopd.f = require_descriptors() ? gOPD$1 : function(g, b) {
|
|
13645
13664
|
if (has$1(g, b))
|
13646
13665
|
return createDesc$1(!pIE.f.call(g, b), g[b]);
|
13647
13666
|
};
|
13648
|
-
var global$2 = _globalExports, has = _has, DESCRIPTORS = require_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 =
|
13667
|
+
var global$2 = _globalExports, has = _has, DESCRIPTORS = require_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 = require_objectCreate(), gOPNExt = _objectGopnExt, $GOPD = _objectGopd, $GOPS = _objectGops, $DP = require_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
13668
|
return _create$1(dP({}, "a", {
|
13650
13669
|
get: function() {
|
13651
13670
|
return dP(this, "a", { value: 7 }).a;
|
@@ -13823,7 +13842,7 @@ function require_setProto() {
|
|
13823
13842
|
var $export$1 = _export;
|
13824
13843
|
$export$1($export$1.S, "Object", { setPrototypeOf: require_setProto().set });
|
13825
13844
|
var setPrototypeOf$1 = _coreExports.Object.setPrototypeOf, setPrototypeOf = { default: setPrototypeOf$1, __esModule: !0 }, $export = _export;
|
13826
|
-
$export($export.S, "Object", { create:
|
13845
|
+
$export($export.S, "Object", { create: require_objectCreate() });
|
13827
13846
|
var $Object = _coreExports.Object, create$1 = function(g, b) {
|
13828
13847
|
return $Object.create(g, b);
|
13829
13848
|
}, create = { default: create$1, __esModule: !0 };
|
@@ -27944,7 +27963,7 @@ function PrivateRoute({
|
|
27944
27963
|
children: m
|
27945
27964
|
}) {
|
27946
27965
|
const { account: g } = useAuth();
|
27947
|
-
return useEffect(() => (g === void 0 && handleAuth(), () => {
|
27966
|
+
return useEffect(() => (g === void 0 && handleAuth$1(), () => {
|
27948
27967
|
}), []), g === void 0 ? /* @__PURE__ */ jsx$1(Fragment$2, {}) : /* @__PURE__ */ jsx$1(Fragment$2, { children: m });
|
27949
27968
|
}
|
27950
27969
|
var classnames$1 = { exports: {} };
|
@@ -29805,7 +29824,7 @@ var clone$1 = { exports: {} };
|
|
29805
29824
|
})(clone$1);
|
29806
29825
|
var cloneExports = clone$1.exports;
|
29807
29826
|
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.
|
29827
|
+
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--1732724491735-0.7338295610476759:/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--1732724490530-0.5220663915375185:/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.308", 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
29828
|
return extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(b, _) {
|
29810
29829
|
b.__proto__ = _;
|
29811
29830
|
} || function(b, _) {
|
@@ -35949,7 +35968,7 @@ const genSubStyleComponent = (m, g, b, _) => {
|
|
35949
35968
|
}, fullClone$1 = Object.assign({}, React), {
|
35950
35969
|
useId
|
35951
35970
|
} = 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.
|
35971
|
+
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--1732724491735-0.7338295610476759:/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--1732724490530-0.5220663915375185:/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.308", 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
35972
|
function useTheme(m, g, b) {
|
35954
35973
|
var _, x;
|
35955
35974
|
const S = devUseWarning(), E = m || {}, C = E.inherit === !1 || !g ? Object.assign(Object.assign({}, defaultConfig), {
|
@@ -38512,7 +38531,7 @@ function _wrapNativeSuper(m) {
|
|
38512
38531
|
}), _setPrototypeOf(x, _);
|
38513
38532
|
}, _wrapNativeSuper(m);
|
38514
38533
|
}
|
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.
|
38534
|
+
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--1732724491735-0.7338295610476759:/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--1732724490530-0.5220663915375185:/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.308", 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
38535
|
};
|
38517
38536
|
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
38537
|
typeof console < "u" && console.warn && typeof ASYNC_VALIDATOR_NO_WARNING > "u" && b.every(function(_) {
|
@@ -51656,7 +51675,12 @@ And if you need to, you can `
|
|
51656
51675
|
projectcss.all,
|
51657
51676
|
sty$1.orSignUpButtonContainer,
|
51658
51677
|
{
|
51659
|
-
[sty$1.orSignUpButtonContainerapp_mapMapDesktopAlt2]: hasVariant(M, "app", "mapMapDesktopAlt2")
|
51678
|
+
[sty$1.orSignUpButtonContainerapp_mapMapDesktopAlt2]: hasVariant(M, "app", "mapMapDesktopAlt2"),
|
51679
|
+
[sty$1.orSignUpButtonContainermode_signIn]: hasVariant(
|
51680
|
+
M,
|
51681
|
+
"mode",
|
51682
|
+
"signIn"
|
51683
|
+
)
|
51660
51684
|
}
|
51661
51685
|
)
|
51662
51686
|
},
|
@@ -52547,7 +52571,67 @@ const PlasmicSignInSignUpFormLayout = Object.assign(
|
|
52547
52571
|
function SignInSignUpFormLayout_(m, g) {
|
52548
52572
|
return /* @__PURE__ */ jsx$1(PlasmicSignInSignUpFormLayout, { root: { ref: g }, ...m });
|
52549
52573
|
}
|
52550
|
-
const SignInSignUpFormLayout = React.forwardRef(SignInSignUpFormLayout_)
|
52574
|
+
const SignInSignUpFormLayout = React.forwardRef(SignInSignUpFormLayout_), URL$1 = "https://app.mapmap.app", extensionAuth = {
|
52575
|
+
getCookie,
|
52576
|
+
setCookie,
|
52577
|
+
removeCookie,
|
52578
|
+
logout,
|
52579
|
+
isUserLoggedIn,
|
52580
|
+
checkAccessToken,
|
52581
|
+
handleAuth
|
52582
|
+
};
|
52583
|
+
async function getCookie(m) {
|
52584
|
+
const g = await chrome.cookies.get({
|
52585
|
+
url: URL$1,
|
52586
|
+
name: m
|
52587
|
+
});
|
52588
|
+
return g ? JSON.parse(g.value) : void 0;
|
52589
|
+
}
|
52590
|
+
async function setCookie(m, g) {
|
52591
|
+
if (!g || !m)
|
52592
|
+
return;
|
52593
|
+
const b = JSON.stringify(g);
|
52594
|
+
await chrome.cookies.set({
|
52595
|
+
url: URL$1,
|
52596
|
+
name: m,
|
52597
|
+
value: b
|
52598
|
+
});
|
52599
|
+
}
|
52600
|
+
async function removeCookie(m) {
|
52601
|
+
m && await chrome.cookies.remove({
|
52602
|
+
url: URL$1,
|
52603
|
+
name: m
|
52604
|
+
});
|
52605
|
+
}
|
52606
|
+
async function logout() {
|
52607
|
+
await removeCookie("user"), await removeCookie("account"), await removeCookie("accessToken"), await removeCookie("accessTokenExpiry"), await removeCookie("refreshToken"), await removeCookie("refreshTokenExpiry");
|
52608
|
+
}
|
52609
|
+
async function isUserLoggedIn() {
|
52610
|
+
return !!await getCookie("account");
|
52611
|
+
}
|
52612
|
+
async function handleAuth() {
|
52613
|
+
var g;
|
52614
|
+
const m = await axios.post("/api/auth");
|
52615
|
+
(g = m == null ? void 0 : m.data) != null && g.redirectUrl && (window.location.href = m.data.redirectUrl);
|
52616
|
+
}
|
52617
|
+
async function checkAccessToken() {
|
52618
|
+
var b, _, x;
|
52619
|
+
const m = await getCookie("has_account_token"), g = await getCookie("accessToken");
|
52620
|
+
if (m)
|
52621
|
+
return { accessToken: g, continueToRequest: !0 };
|
52622
|
+
if (await isUserLoggedIn())
|
52623
|
+
try {
|
52624
|
+
const S = await axios.post("/api/refreshToken");
|
52625
|
+
return {
|
52626
|
+
accessToken: (x = (_ = (b = S == null ? void 0 : S.data) == null ? void 0 : b.tokens) == null ? void 0 : _.access) == null ? void 0 : x.token,
|
52627
|
+
continueToRequest: !0
|
52628
|
+
};
|
52629
|
+
} catch {
|
52630
|
+
return await handleAuth(), { accessToken: void 0, continueToRequest: !1 };
|
52631
|
+
}
|
52632
|
+
else
|
52633
|
+
return await handleAuth(), { accessToken: void 0, continueToRequest: !1 };
|
52634
|
+
}
|
52551
52635
|
export {
|
52552
52636
|
AccountManagementComponent,
|
52553
52637
|
AppContext,
|
@@ -52566,17 +52650,18 @@ export {
|
|
52566
52650
|
SignInSignUpFormLayout,
|
52567
52651
|
TextInputFromProPro$1 as TextInputFromProPro,
|
52568
52652
|
axiosInstance,
|
52569
|
-
checkAccessToken,
|
52653
|
+
checkAccessToken$1 as checkAccessToken,
|
52654
|
+
extensionAuth,
|
52570
52655
|
Ct as getAvailableStyles,
|
52571
|
-
getCookie,
|
52656
|
+
getCookie$1 as getCookie,
|
52572
52657
|
getStorage,
|
52573
|
-
handleAuth,
|
52574
|
-
isUserLoggedIn,
|
52658
|
+
handleAuth$1 as handleAuth,
|
52659
|
+
isUserLoggedIn$1 as isUserLoggedIn,
|
52575
52660
|
wt as loadIcon,
|
52576
|
-
logout,
|
52661
|
+
logout$1 as logout,
|
52577
52662
|
removeStorage,
|
52578
52663
|
At as searchIcon,
|
52579
|
-
setCookie,
|
52664
|
+
setCookie$1 as setCookie,
|
52580
52665
|
setStorage,
|
52581
52666
|
useGet,
|
52582
52667
|
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<any>;
|
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.308",
|
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",
|