@puckeditor/plugin-auth 0.9.0-canary.20622ce3
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/index.css +117 -0
- package/dist/index.d.mts +20 -0
- package/dist/index.d.ts +20 -0
- package/dist/index.js +4867 -0
- package/dist/index.mjs +4857 -0
- package/package.json +56 -0
package/dist/index.css
ADDED
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
/* css-module:/home/runner/work/platform/platform/packages/platform-client/components/Menu/styles.module.css/#css-module-data */
|
|
2
|
+
._Menu_1jr57_1 {
|
|
3
|
+
display: flex;
|
|
4
|
+
position: relative;
|
|
5
|
+
}
|
|
6
|
+
._Menu-content_1jr57_6 {
|
|
7
|
+
outline: none;
|
|
8
|
+
z-index: 1;
|
|
9
|
+
}
|
|
10
|
+
._Menu-sections_1jr57_11 {
|
|
11
|
+
background-color: white;
|
|
12
|
+
border: 1px solid var(--puck-color-grey-09);
|
|
13
|
+
border-radius: 8px;
|
|
14
|
+
box-sizing: border-box;
|
|
15
|
+
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
|
|
16
|
+
min-width: 128px;
|
|
17
|
+
padding-bottom: 4px;
|
|
18
|
+
padding-top: 4px;
|
|
19
|
+
}
|
|
20
|
+
._Menu-action_1jr57_22 {
|
|
21
|
+
background: none;
|
|
22
|
+
border: none;
|
|
23
|
+
margin-left: auto;
|
|
24
|
+
padding: 0;
|
|
25
|
+
}
|
|
26
|
+
._Menu-action_1jr57_22:hover:not(:disabled) {
|
|
27
|
+
cursor: pointer;
|
|
28
|
+
opacity: 0.8;
|
|
29
|
+
}
|
|
30
|
+
._Menu-action_1jr57_22:disabled {
|
|
31
|
+
cursor: not-allowed;
|
|
32
|
+
opacity: 0.5;
|
|
33
|
+
}
|
|
34
|
+
._Menu-action_1jr57_22:focus-visible {
|
|
35
|
+
outline: 2px solid var(--puck-color-azure-05);
|
|
36
|
+
outline-offset: 2px;
|
|
37
|
+
}
|
|
38
|
+
._Menu-list_1jr57_44 {
|
|
39
|
+
list-style: none;
|
|
40
|
+
margin: 0;
|
|
41
|
+
padding: 0;
|
|
42
|
+
}
|
|
43
|
+
._Menu-list_1jr57_44 + ._Menu-list_1jr57_44 {
|
|
44
|
+
border-top: 1px solid var(--puck-color-grey-09);
|
|
45
|
+
margin-top: 4px;
|
|
46
|
+
}
|
|
47
|
+
._Menu-item_1jr57_55 {
|
|
48
|
+
align-items: center;
|
|
49
|
+
background: none;
|
|
50
|
+
border: none;
|
|
51
|
+
box-sizing: border-box;
|
|
52
|
+
color: var(--puck-color-grey-02);
|
|
53
|
+
display: flex;
|
|
54
|
+
font-family: var(--puck-font-family);
|
|
55
|
+
font-size: var(--puck-font-size-xxs);
|
|
56
|
+
font-weight: 500;
|
|
57
|
+
gap: 8px;
|
|
58
|
+
padding: 8px 12px;
|
|
59
|
+
text-align: start;
|
|
60
|
+
text-decoration: none;
|
|
61
|
+
white-space: nowrap;
|
|
62
|
+
width: 100%;
|
|
63
|
+
}
|
|
64
|
+
a._Menu-item_1jr57_55,
|
|
65
|
+
button._Menu-item_1jr57_55 {
|
|
66
|
+
cursor: pointer;
|
|
67
|
+
}
|
|
68
|
+
a._Menu-item_1jr57_55:hover,
|
|
69
|
+
button._Menu-item_1jr57_55:hover {
|
|
70
|
+
background-color: var(--puck-color-azure-11);
|
|
71
|
+
color: var(--puck-color-azure-04);
|
|
72
|
+
}
|
|
73
|
+
._Menu-item--disabled_1jr57_84 {
|
|
74
|
+
cursor: not-allowed;
|
|
75
|
+
opacity: 0.5;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
/* css-module:/home/runner/work/platform/platform/packages/plugin-auth/src/components/SessionMenu/styles.module.css/#css-module-data */
|
|
79
|
+
._SessionMenu-avatar_j6dlr_1 {
|
|
80
|
+
display: inline-flex;
|
|
81
|
+
align-items: center;
|
|
82
|
+
justify-content: center;
|
|
83
|
+
width: 32px;
|
|
84
|
+
height: 32px;
|
|
85
|
+
border-radius: 50%;
|
|
86
|
+
overflow: hidden;
|
|
87
|
+
background: var(--puck-color-azure-11);
|
|
88
|
+
color: var(--puck-color-azure-04);
|
|
89
|
+
font-size: var(--puck-font-size-xxs);
|
|
90
|
+
font-weight: 600;
|
|
91
|
+
letter-spacing: 0.02em;
|
|
92
|
+
}
|
|
93
|
+
._SessionMenu-placeholder_j6dlr_16 {
|
|
94
|
+
display: block;
|
|
95
|
+
width: 32px;
|
|
96
|
+
height: 32px;
|
|
97
|
+
border-radius: 50%;
|
|
98
|
+
background: var(--puck-color-grey-11);
|
|
99
|
+
}
|
|
100
|
+
._SessionMenu-avatar_j6dlr_1 img {
|
|
101
|
+
width: 100%;
|
|
102
|
+
height: 100%;
|
|
103
|
+
object-fit: cover;
|
|
104
|
+
}
|
|
105
|
+
._SessionMenu-identity_j6dlr_30 {
|
|
106
|
+
display: flex;
|
|
107
|
+
flex-direction: column;
|
|
108
|
+
gap: 2px;
|
|
109
|
+
color: var(--puck-color-grey-03);
|
|
110
|
+
}
|
|
111
|
+
._SessionMenu-name_j6dlr_37 {
|
|
112
|
+
font-weight: 600;
|
|
113
|
+
}
|
|
114
|
+
._SessionMenu-email_j6dlr_41 {
|
|
115
|
+
font-size: var(--puck-font-size-xxxs);
|
|
116
|
+
color: var(--puck-color-grey-05);
|
|
117
|
+
}
|
package/dist/index.d.mts
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import { ReactNode } from 'react';
|
|
3
|
+
|
|
4
|
+
type AuthPluginOptions = {
|
|
5
|
+
/** Where the app serves Sign in with Puck's routes. Defaults to /api/puck/auth. */
|
|
6
|
+
host?: string;
|
|
7
|
+
/** Shows the branch the editor edits in the account menu. Defaults to true in development. */
|
|
8
|
+
showBranch?: boolean;
|
|
9
|
+
};
|
|
10
|
+
/** Shows the Puck account signed in to the editor in its header, with sign-out. */
|
|
11
|
+
declare function createAuthPlugin({ host, showBranch, }?: AuthPluginOptions): {
|
|
12
|
+
name: string;
|
|
13
|
+
overrides: {
|
|
14
|
+
headerActions: ({ children }: {
|
|
15
|
+
children: ReactNode;
|
|
16
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
export { type AuthPluginOptions, createAuthPlugin };
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import { ReactNode } from 'react';
|
|
3
|
+
|
|
4
|
+
type AuthPluginOptions = {
|
|
5
|
+
/** Where the app serves Sign in with Puck's routes. Defaults to /api/puck/auth. */
|
|
6
|
+
host?: string;
|
|
7
|
+
/** Shows the branch the editor edits in the account menu. Defaults to true in development. */
|
|
8
|
+
showBranch?: boolean;
|
|
9
|
+
};
|
|
10
|
+
/** Shows the Puck account signed in to the editor in its header, with sign-out. */
|
|
11
|
+
declare function createAuthPlugin({ host, showBranch, }?: AuthPluginOptions): {
|
|
12
|
+
name: string;
|
|
13
|
+
overrides: {
|
|
14
|
+
headerActions: ({ children }: {
|
|
15
|
+
children: ReactNode;
|
|
16
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
export { type AuthPluginOptions, createAuthPlugin };
|