@frockbot/plugin-auth 0.3.15 → 0.3.17
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/package.json +4 -4
- package/src/client/styles.css +2 -1
- package/src/client.test.ts +10 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@frockbot/plugin-auth",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.17",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -22,14 +22,14 @@
|
|
|
22
22
|
"dependencies": {
|
|
23
23
|
"@better-auth/electron": "1.7.2",
|
|
24
24
|
"@capacitor/core": "8.5.0",
|
|
25
|
-
"@frockbot/client-core": "0.3.
|
|
26
|
-
"@frockbot/kernel-contracts": "0.3.
|
|
25
|
+
"@frockbot/client-core": "0.3.17",
|
|
26
|
+
"@frockbot/kernel-contracts": "0.3.17",
|
|
27
27
|
"better-auth": "1.7.2",
|
|
28
28
|
"cordis": "4.0.0-rc.8",
|
|
29
29
|
"vue": "3.5.41"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
|
-
"@frockbot/plugin-testkit": "0.3.
|
|
32
|
+
"@frockbot/plugin-testkit": "0.3.17",
|
|
33
33
|
"@types/bun": "1.4.0",
|
|
34
34
|
"@types/node": "26.2.0",
|
|
35
35
|
"typescript": "npm:typescript-native-bridge@6.0.3-bridge.16.tsgo.7.0.2",
|
package/src/client/styles.css
CHANGED
|
@@ -3,7 +3,8 @@
|
|
|
3
3
|
width: 100%;
|
|
4
4
|
height: 100%;
|
|
5
5
|
place-items: center;
|
|
6
|
-
padding: 32px
|
|
6
|
+
padding: calc(32px + var(--frock-safe-top)) 32px
|
|
7
|
+
calc(32px + var(--frock-safe-bottom));
|
|
7
8
|
color: var(--frock-text);
|
|
8
9
|
background: var(--frock-auth-background), var(--frock-surface-window);
|
|
9
10
|
font-family:
|
package/src/client.test.ts
CHANGED
|
@@ -4,9 +4,19 @@ import { verifyPluginPackage } from "@frockbot/plugin-testkit";
|
|
|
4
4
|
import manifest from "../frockbot.json" with { type: "json" };
|
|
5
5
|
import packageJson from "../package.json" with { type: "json" };
|
|
6
6
|
|
|
7
|
+
const styles = await Bun.file(
|
|
8
|
+
new URL("./client/styles.css", import.meta.url),
|
|
9
|
+
).text();
|
|
10
|
+
|
|
7
11
|
test("auth satisfies plugin package conventions", () => {
|
|
8
12
|
expect(verifyPluginPackage({ packageJson, manifest })).toMatchObject({
|
|
9
13
|
name: "@frockbot/plugin-auth",
|
|
10
14
|
contributionKinds: ["client", "desktop"],
|
|
11
15
|
});
|
|
12
16
|
});
|
|
17
|
+
|
|
18
|
+
test("the sign-in page clears both mobile safe areas", () => {
|
|
19
|
+
expect(styles).toMatch(
|
|
20
|
+
/padding:\s*calc\(32px \+ var\(--frock-safe-top\)\)\s+32px\s+calc\(32px \+ var\(--frock-safe-bottom\)\)/,
|
|
21
|
+
);
|
|
22
|
+
});
|