propro-common-components 0.3.27 → 0.3.29
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api/useGet.d.ts +1 -1
- package/dist/api/useMutate.d.ts +2 -2
- package/dist/api/useMutateWithKeepAlive.d.ts +4 -3
- package/dist/components/Auth/AuthCallback.d.ts +0 -1
- package/dist/components/Auth/AuthLandingPage.d.ts +0 -1
- package/dist/components/AvatarMenu/index.d.ts +2 -1
- package/dist/components/theme-provider.d.ts +0 -1
- package/dist/components/ui/dropdown-menu.d.ts +3 -3
- package/dist/components/ui/menubar.d.ts +6 -4
- package/dist/hoc/PrivateRoute.d.ts +0 -1
- package/dist/hooks/useAuth.d.ts +1 -2
- package/dist/index-BcDn1QyQ.js +25 -0
- package/dist/main-BphtKou-.js +58317 -0
- package/dist/main.css +1 -1
- package/dist/plasmicComponents/AccountActivationConformation.d.ts +6 -0
- package/dist/plasmicComponents/ProProLandingContent.d.ts +6 -0
- package/dist/plasmicComponents/ProductCards.d.ts +6 -0
- package/dist/plasmicComponents/SignupConfirmation.d.ts +6 -0
- package/dist/plasmicComponents/plasmic/antd/PlasmicStyleTokensProvider.d.ts +1 -0
- package/dist/plasmicComponents/plasmic/antd/plasmic.d.ts +1 -0
- package/dist/plasmicComponents/plasmic/antd_5_hostless/PlasmicStyleTokensProvider.d.ts +1 -0
- package/dist/plasmicComponents/plasmic/antd_5_hostless/plasmic.d.ts +1 -0
- package/dist/plasmicComponents/plasmic/loading_boundary/PlasmicStyleTokensProvider.d.ts +1 -0
- package/dist/plasmicComponents/plasmic/loading_boundary/plasmic.d.ts +1 -0
- package/dist/plasmicComponents/plasmic/lottie_react/PlasmicStyleTokensProvider.d.ts +1 -0
- package/dist/plasmicComponents/plasmic/lottie_react/plasmic.d.ts +1 -0
- package/dist/plasmicComponents/plasmic/plasmic_basic_components/PlasmicStyleTokensProvider.d.ts +1 -0
- package/dist/plasmicComponents/plasmic/plasmic_basic_components/plasmic.d.ts +1 -0
- package/dist/plasmicComponents/plasmic/plasmic_embed_css/PlasmicStyleTokensProvider.d.ts +1 -0
- package/dist/plasmicComponents/plasmic/plasmic_embed_css/plasmic.d.ts +1 -0
- package/dist/plasmicComponents/plasmic/plasmic_rich_components/PlasmicStyleTokensProvider.d.ts +1 -0
- package/dist/plasmicComponents/plasmic/plasmic_rich_components/plasmic.d.ts +1 -0
- package/dist/plasmicComponents/plasmic/plasmic_tabs/PlasmicButton.d.ts +30 -30
- package/dist/plasmicComponents/plasmic/plasmic_tabs/icons/PlasmicIcon__CheckMark.d.ts +7 -0
- package/dist/plasmicComponents/plasmic/pro_pro/PlasmicAccountActivationConformation.d.ts +176 -0
- package/dist/plasmicComponents/plasmic/pro_pro/PlasmicButtonFromProPro.d.ts +58 -55
- package/dist/plasmicComponents/plasmic/pro_pro/PlasmicDescription.d.ts +14 -14
- package/dist/plasmicComponents/plasmic/pro_pro/PlasmicErrorMessageContainer.d.ts +130 -0
- package/dist/plasmicComponents/plasmic/pro_pro/PlasmicFooter.d.ts +170 -0
- package/dist/plasmicComponents/plasmic/pro_pro/PlasmicFooter2.d.ts +135 -0
- package/dist/plasmicComponents/plasmic/pro_pro/PlasmicFooterLink.d.ts +72 -72
- package/dist/plasmicComponents/plasmic/pro_pro/PlasmicFooterprev.d.ts +227 -0
- package/dist/plasmicComponents/plasmic/pro_pro/PlasmicGlobalVariant__Screen.d.ts +3 -0
- package/dist/plasmicComponents/plasmic/pro_pro/PlasmicGlobalVariant__Theme.d.ts +3 -0
- package/dist/plasmicComponents/plasmic/pro_pro/PlasmicGlobalVariant__Theme2.d.ts +3 -0
- package/dist/plasmicComponents/plasmic/pro_pro/PlasmicIconImports.d.ts +96 -0
- package/dist/plasmicComponents/plasmic/pro_pro/PlasmicLabel.d.ts +22 -22
- package/dist/plasmicComponents/plasmic/pro_pro/PlasmicLoginSigupButton.d.ts +90 -0
- package/dist/plasmicComponents/plasmic/pro_pro/PlasmicLogo.d.ts +138 -63
- package/dist/plasmicComponents/plasmic/pro_pro/PlasmicNewsletterConfirmation.d.ts +14 -14
- package/dist/plasmicComponents/plasmic/pro_pro/PlasmicNewsletterConfirmationError.d.ts +113 -0
- package/dist/plasmicComponents/plasmic/pro_pro/PlasmicNewsletterForm.d.ts +179 -0
- package/dist/plasmicComponents/plasmic/pro_pro/PlasmicProProLabel.d.ts +43 -40
- package/dist/plasmicComponents/plasmic/pro_pro/PlasmicProProLandingContent.d.ts +117 -0
- package/dist/plasmicComponents/plasmic/pro_pro/PlasmicProductCards.d.ts +121 -0
- package/dist/plasmicComponents/plasmic/pro_pro/PlasmicSignInSignUpForm.d.ts +593 -577
- package/dist/plasmicComponents/plasmic/pro_pro/PlasmicSignInSignUpFormLayout.d.ts +88 -88
- package/dist/plasmicComponents/plasmic/pro_pro/PlasmicSignupConfirmation.d.ts +61 -0
- package/dist/plasmicComponents/plasmic/pro_pro/PlasmicSlider.d.ts +64 -64
- package/dist/plasmicComponents/plasmic/pro_pro/PlasmicSliderThumb.d.ts +6 -6
- package/dist/plasmicComponents/plasmic/pro_pro/PlasmicStyleTokensProvider.d.ts +1 -0
- package/dist/plasmicComponents/plasmic/pro_pro/PlasmicTextInputFromProPro.d.ts +58 -58
- package/dist/plasmicComponents/plasmic/pro_pro/icons/PlasmicIcon__Icon4.d.ts +7 -0
- package/dist/plasmicComponents/plasmic/pro_pro/icons/PlasmicIcon__Icon5.d.ts +7 -0
- package/dist/plasmicComponents/plasmic/pro_pro/icons/PlasmicIcon__Icon7.d.ts +7 -0
- package/dist/plasmicComponents/plasmic/pro_pro/icons/PlasmicIcon__Icon8.d.ts +7 -0
- package/dist/plasmicComponents/plasmic/pro_pro/icons/PlasmicIcon__Icon9.d.ts +7 -0
- package/dist/plasmicComponents/plasmic/pro_pro/plasmic.d.ts +1 -0
- package/dist/plasmicComponents/plasmic/react_aria/PlasmicStyleTokensProvider.d.ts +1 -0
- package/dist/plasmicComponents/plasmic/react_aria/plasmic.d.ts +1 -0
- package/dist/plasmicComponents/plasmic/react_awesome_reveal/PlasmicStyleTokensProvider.d.ts +1 -0
- package/dist/plasmicComponents/plasmic/react_awesome_reveal/plasmic.d.ts +1 -0
- package/dist/propro-common-components.js +50 -54613
- package/dist/utils/configureAuth.d.ts +8 -0
- package/dist/utils/createAuthRouteLoader.d.ts +1 -1
- package/dist/utils/iconUtils.d.ts +1 -1
- package/package.json +4 -3
- package/.env.vault +0 -25
- package/dist/index-DFR9A_Yf.js +0 -49
- package/dist/plasmicComponents/plasmic/plasmic_tabs/icons/PlasmicIcon__Checksvg.d.ts +0 -7
- /package/dist/plasmicComponents/plasmic/pro_pro/icons/{PlasmicIcon__Filledsvg.d.ts → PlasmicIcon__FilledSvg.d.ts} +0 -0
- /package/dist/plasmicComponents/plasmic/pro_pro/icons/{PlasmicIcon__Searchsvg.d.ts → PlasmicIcon__SearchSvg.d.ts} +0 -0
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
export type AuthSessionClearReason = 'explicit_logout' | 'not_logged_in' | 'refresh_token_expired' | 'refresh_failed';
|
|
1
2
|
export interface AuthConfig {
|
|
2
3
|
/**
|
|
3
4
|
* Client ID for web authentication
|
|
@@ -43,6 +44,12 @@ export interface AuthConfig {
|
|
|
43
44
|
* Defaults to '/desktop-entry'
|
|
44
45
|
*/
|
|
45
46
|
entryPath?: string;
|
|
47
|
+
/**
|
|
48
|
+
* Optional host-app cleanup hook called before PRC clears auth state or redirects
|
|
49
|
+
* after logout/session expiry. Host apps should use this to purge app-local
|
|
50
|
+
* user data that PRC cannot know about.
|
|
51
|
+
*/
|
|
52
|
+
onAuthSessionClearing?: (reason: AuthSessionClearReason) => void | Promise<void>;
|
|
46
53
|
}
|
|
47
54
|
/**
|
|
48
55
|
* Configure authentication settings for the application
|
|
@@ -71,3 +78,4 @@ export declare function getAuthConfig(): AuthConfig;
|
|
|
71
78
|
* Reset auth configuration to defaults
|
|
72
79
|
*/
|
|
73
80
|
export declare function resetAuthConfig(): void;
|
|
81
|
+
export declare function runAuthSessionClearing(reason: AuthSessionClearReason): Promise<void>;
|
|
@@ -39,5 +39,5 @@ interface AuthRouteLoaderOptions {
|
|
|
39
39
|
* ];
|
|
40
40
|
* ```
|
|
41
41
|
*/
|
|
42
|
-
export declare function createAuthRouteLoader(options?: AuthRouteLoaderOptions): (args: LoaderFunctionArgs) => Promise<
|
|
42
|
+
export declare function createAuthRouteLoader(options?: AuthRouteLoaderOptions): (args: LoaderFunctionArgs) => Promise<Request | Response>;
|
|
43
43
|
export {};
|
|
@@ -13,4 +13,4 @@ export declare const searchIcon: (name?: string, importType?: ImportMethodTypes)
|
|
|
13
13
|
component: FC;
|
|
14
14
|
}[] | undefined>;
|
|
15
15
|
export declare function loadIcon(name: string, style?: StyleType | '', path?: string, importMethod?: ImportMethodTypes): Promise<(() => null) | ((props: SVGProps<any>) => import("react/jsx-runtime").JSX.Element)>;
|
|
16
|
-
export declare const getAvailableStyles: (iconName: string, path?: string) => Promise<(
|
|
16
|
+
export declare const getAvailableStyles: (iconName: string, path?: string) => Promise<("line" | "solid" | "duotone")[]>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "propro-common-components",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.29",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "dist/propro-common-components.js",
|
|
6
6
|
"types": "dist/main.d.ts",
|
|
@@ -24,7 +24,8 @@
|
|
|
24
24
|
"@fortawesome/react-fontawesome": "^0.2.0",
|
|
25
25
|
"@mantine/hooks": "^7.9.0",
|
|
26
26
|
"@plasmicapp/cli": "^0.1.327",
|
|
27
|
-
"@plasmicapp/
|
|
27
|
+
"@plasmicapp/host": "^1.0.227",
|
|
28
|
+
"@plasmicapp/react-web": "^0.2.408",
|
|
28
29
|
"@plasmicpkgs/antd": "^2.0.130",
|
|
29
30
|
"@plasmicpkgs/antd5": "^0.0.265",
|
|
30
31
|
"@plasmicpkgs/lottie-react": "^0.0.200",
|
|
@@ -45,7 +46,7 @@
|
|
|
45
46
|
"@radix-ui/react-tabs": "^1.0.4",
|
|
46
47
|
"@radix-ui/react-tooltip": "^1.1.2",
|
|
47
48
|
"@tauri-apps/api": "^2.0.2",
|
|
48
|
-
"@tauri-apps/plugin-deep-link": "^2.4.
|
|
49
|
+
"@tauri-apps/plugin-deep-link": "^2.4.9",
|
|
49
50
|
"@tauri-apps/plugin-fs": "^2.2.0",
|
|
50
51
|
"@tauri-apps/plugin-http": "^2.0.0",
|
|
51
52
|
"@tauri-apps/plugin-shell": "^2.3.1",
|
package/.env.vault
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
#/-------------------.env.vault---------------------/
|
|
2
|
-
#/ cloud-agnostic vaulting standard /
|
|
3
|
-
#/ [how it works](https://dotenv.org/env-vault) /
|
|
4
|
-
#/--------------------------------------------------/
|
|
5
|
-
|
|
6
|
-
# development
|
|
7
|
-
DOTENV_VAULT_DEVELOPMENT="vad9nAoDmLw8HmCnpNREkgxJ0MsN089eAn/qEHhJd0hxreozq/gSR88hpj63T74sH4Jph9hkeXOaZ9K+HmwPRWor"
|
|
8
|
-
DOTENV_VAULT_DEVELOPMENT_VERSION=3
|
|
9
|
-
|
|
10
|
-
# ci
|
|
11
|
-
DOTENV_VAULT_CI="aCETxhx/sEUmNFekVFOKPwBqPcvLP3IZBiTqbrGrEq3r/DMzPSzjRmVYGQIrtHTJiwymAWqgnxHwbHEeO9G9EYDzoQ=="
|
|
12
|
-
DOTENV_VAULT_CI_VERSION=3
|
|
13
|
-
|
|
14
|
-
# staging
|
|
15
|
-
DOTENV_VAULT_STAGING="+j8qjt2SzbI9xaY8z52qdoh+1pehnCJfsH7xlOgIOvydkXl7HN4sMCNdnYWc96XWQ5ByD6sNG51LhtuocwJsgvytgw=="
|
|
16
|
-
DOTENV_VAULT_STAGING_VERSION=3
|
|
17
|
-
|
|
18
|
-
# production
|
|
19
|
-
DOTENV_VAULT_PRODUCTION="vEu2Jyl+x+9z8oA94zDge0lEUdNiGL7+y+mAHhFqIzrAdmN39gQuIG9i1BcdPbEpTr609HW1LRx+QSxi66d5ewC2aQ=="
|
|
20
|
-
DOTENV_VAULT_PRODUCTION_VERSION=3
|
|
21
|
-
|
|
22
|
-
#/----------------settings/metadata-----------------/
|
|
23
|
-
DOTENV_VAULT="vlt_66b96d3d5ab78f2618e9a55c459381ab5b2e4d261a263a8256c1596470adf54f"
|
|
24
|
-
DOTENV_API_URL="https://vault.dotenv.org"
|
|
25
|
-
DOTENV_CLI="npx dotenv-vault@latest"
|
package/dist/index-DFR9A_Yf.js
DELETED
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
function o(r, e = !1) {
|
|
2
|
-
return window.__TAURI_INTERNALS__.transformCallback(r, e);
|
|
3
|
-
}
|
|
4
|
-
async function n(r, e = {}, i) {
|
|
5
|
-
return window.__TAURI_INTERNALS__.invoke(r, e, i);
|
|
6
|
-
}
|
|
7
|
-
var a;
|
|
8
|
-
(function(r) {
|
|
9
|
-
r.WINDOW_RESIZED = "tauri://resize", r.WINDOW_MOVED = "tauri://move", r.WINDOW_CLOSE_REQUESTED = "tauri://close-requested", r.WINDOW_DESTROYED = "tauri://destroyed", r.WINDOW_FOCUS = "tauri://focus", r.WINDOW_BLUR = "tauri://blur", r.WINDOW_SCALE_FACTOR_CHANGED = "tauri://scale-change", r.WINDOW_THEME_CHANGED = "tauri://theme-changed", r.WINDOW_CREATED = "tauri://window-created", r.WEBVIEW_CREATED = "tauri://webview-created", r.DRAG_ENTER = "tauri://drag-enter", r.DRAG_OVER = "tauri://drag-over", r.DRAG_DROP = "tauri://drag-drop", r.DRAG_LEAVE = "tauri://drag-leave";
|
|
10
|
-
})(a || (a = {}));
|
|
11
|
-
async function _(r, e) {
|
|
12
|
-
window.__TAURI_EVENT_PLUGIN_INTERNALS__.unregisterListener(r, e), await n("plugin:event|unlisten", {
|
|
13
|
-
event: r,
|
|
14
|
-
eventId: e
|
|
15
|
-
});
|
|
16
|
-
}
|
|
17
|
-
async function c(r, e, i) {
|
|
18
|
-
var t;
|
|
19
|
-
const u = (t = void 0) !== null && t !== void 0 ? t : { kind: "Any" };
|
|
20
|
-
return n("plugin:event|listen", {
|
|
21
|
-
event: r,
|
|
22
|
-
target: u,
|
|
23
|
-
handler: o(e)
|
|
24
|
-
}).then((s) => async () => _(r, s));
|
|
25
|
-
}
|
|
26
|
-
async function d() {
|
|
27
|
-
return await n("plugin:deep-link|get_current");
|
|
28
|
-
}
|
|
29
|
-
async function l(r) {
|
|
30
|
-
return await n("plugin:deep-link|register", { protocol: r });
|
|
31
|
-
}
|
|
32
|
-
async function p(r) {
|
|
33
|
-
return await n("plugin:deep-link|unregister", { protocol: r });
|
|
34
|
-
}
|
|
35
|
-
async function D(r) {
|
|
36
|
-
return await n("plugin:deep-link|is_registered", { protocol: r });
|
|
37
|
-
}
|
|
38
|
-
async function g(r) {
|
|
39
|
-
return await c("deep-link://new-url", (e) => {
|
|
40
|
-
r(e.payload);
|
|
41
|
-
});
|
|
42
|
-
}
|
|
43
|
-
export {
|
|
44
|
-
d as getCurrent,
|
|
45
|
-
D as isRegistered,
|
|
46
|
-
g as onOpenUrl,
|
|
47
|
-
l as register,
|
|
48
|
-
p as unregister
|
|
49
|
-
};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
|
|
3
|
-
export type CheckSvgIconProps = React.ComponentProps<"svg"> & {
|
|
4
|
-
title?: string;
|
|
5
|
-
};
|
|
6
|
-
export declare function CheckSvgIcon(props: CheckSvgIconProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
-
export default CheckSvgIcon;
|
|
File without changes
|
|
File without changes
|