@banou/social 0.0.6 → 0.0.8

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.d.mts CHANGED
@@ -52,6 +52,13 @@ type OpenEditAnswer = {
52
52
  ok: false;
53
53
  reason: 'not-here';
54
54
  };
55
+ /** What `openPath` answers. `malformed`: not a safe manager path. `not-here`: only the site may sync routes. */
56
+ type OpenPathAnswer = {
57
+ ok: true;
58
+ } | {
59
+ ok: false;
60
+ reason: 'malformed' | 'not-here';
61
+ };
55
62
  /** A name's record as the site read it: the name, room id and owner, message text, and core `<name>` proof when `text` came from `<page>`. */
56
63
  type SiteRecord = {
57
64
  name: string;
@@ -222,6 +229,8 @@ type Hub = {
222
229
  openAdd: (fragment: string) => Promise<OpenAddAnswer>;
223
230
  /** opens Page layout in the manager, which a name's Edit (`/e`) asks for; the site's own call */
224
231
  openEdit: () => Promise<OpenEditAnswer>;
232
+ /** navigates the manager to a canonical site path; the site's own call */
233
+ openPath?: (path: string) => Promise<OpenPathAnswer>;
225
234
  /** the signed-in person's own sign key, null with none; the site's own call, answered null for any other */
226
235
  ownKey: () => Promise<Uint8Array | null>;
227
236
  /** the Friends part of a name's record, opened for its holder or one of the holder's friends; the site's own call */
package/fkn.json CHANGED
@@ -1 +1 @@
1
- {"v":0,"app":"fkn:app:1ify3klog2ns2qp2vk2xmxep3rjsimrwyxrrq33qxzamx4ctxlxja","name":"Social","version":"0.0.6","key":"7WjOgQ4Oi3PnA2+VrexddFFlAqZGQqtWQsYy8hzhZ4Q=","issuedAt":1795629490,"perSource":["npm:@banou/social"],"url":"https://social.fkn.app/","contentsDigest":"dah5cXPz//zmi+MCTAUslIJKrJXd8oqZpqhGsxphm1Q=","sig":"CCSIqdlZUMvHeEqARg2uLv1kdOri4+CPTE/dbfOOSvym5C3o3fKweFADuuLPMK/IgeszBUz+PLTZlDOIs/IbAA==","contents":{"name":"@banou/social","version":"0.0.6","alg":"sha256","files":{"LICENSE":"WJNqFQbNMx75H+XcF9dJEw5TozbnceF2KidAIbm2kPE=","README.md":"lU5AktI5qC7P+8L7p4wD/Bvaqzk2BurDspCM8vP1v58=","build/index.js":"CPol2AqKVweRrU6lMPr7wjhw5HRJHc3obSZR/MWtL/s=","dist/index.d.mts":"QfveGNQUHT59EkmSYP8uE5V2FOS01g1QdozoHh0F8UY=","dist/index.mjs":"WxU+L4dsuiCDixQZTPUSaYR6A06N895qyw+vdTI6MEs=","dist/names.d.mts":"ooNGOMmaopBmCWs5Y1Wcu/4qF0eVtZ5Wqj+1le20hkM=","dist/names.mjs":"pxVAr3JijQnW5Xc+Rq48j4xiRtUTaX7gkKZfONikm+M=","package.json":"+wGmd13KBwtY88tcIbDUmQ0Jg7SffeSlss5HzG89IZY="},"types":{"LICENSE":"application/octet-stream","README.md":"text/markdown","build/index.js":"text/javascript","dist/index.d.mts":"application/octet-stream","dist/index.mjs":"text/javascript","dist/names.d.mts":"application/octet-stream","dist/names.mjs":"text/javascript","package.json":"application/json"}},"keys":{"app":"fkn:app:1ify3klog2ns2qp2vk2xmxep3rjsimrwyxrrq33qxzamx4ctxlxja","serial":1795628272940,"issuedAt":1795628272,"founder":{"kind":"fkn","seed":"fxn8no70fzaqrzhbbcw28y88u1"},"signer":"fkn-1","name":"Social","members":[{"key":"7WjOgQ4Oi3PnA2+VrexddFFlAqZGQqtWQsYy8hzhZ4Q=","since":1795628272}],"sig":"epRewUVJrk01N/wlEbhXjVDbHtrjipt0HkzcWJ+LINKEy9YrcVgUEBFS7Iz0StjCgrGV/yessx3luUGOfhTsBg=="}}
1
+ {"v":0,"app":"fkn:app:1ify3klog2ns2qp2vk2xmxep3rjsimrwyxrrq33qxzamx4ctxlxja","name":"Social","version":"0.0.8","key":"7WjOgQ4Oi3PnA2+VrexddFFlAqZGQqtWQsYy8hzhZ4Q=","issuedAt":1795701395,"perSource":["npm:@banou/social"],"url":"https://social.fkn.app/","contentsDigest":"DQ9Lhr/ztKNTlDgKyHkn0REZiZRWeWkbbk4nDTp7omg=","sig":"94zYkO6yNFIvkckryf+z4X8YqlSubqE//GuqsRc31CyTjWh5yT7hEZUMlmCQehsl8hPNnrbxGzc0+pykhyYjCw==","contents":{"name":"@banou/social","version":"0.0.8","alg":"sha256","files":{"LICENSE":"WJNqFQbNMx75H+XcF9dJEw5TozbnceF2KidAIbm2kPE=","README.md":"4QoVX9H8P3FD2dli2XnLBWW7soz3ZMTgSAcTakajWBM=","build/index.js":"6E4PIwmC57LduQXhVPuyKgCPG4QWH/CkgKooizP7iyw=","dist/index.d.mts":"Ac9DyGQYps3W6d99jFkTa6o54JLfXHOkbh7AecPf17U=","dist/index.mjs":"WxU+L4dsuiCDixQZTPUSaYR6A06N895qyw+vdTI6MEs=","dist/names.d.mts":"ooNGOMmaopBmCWs5Y1Wcu/4qF0eVtZ5Wqj+1le20hkM=","dist/names.mjs":"pxVAr3JijQnW5Xc+Rq48j4xiRtUTaX7gkKZfONikm+M=","package.json":"As4jtxpxTV4UOnX49nx6AGtzAsVTI+1c2pwC3HMjWFc=","public/app.webmanifest":"xonyPo0xTuRpCwLvW/96mut4HSEFFn5cYYSK++rWl3I=","public/icons/icon-192.png":"736ydb6RZdKUcPIJKZIymEcV4SVHt29QULW+i/53OFw=","public/icons/icon-512.png":"VoKWT9CrADgssp8eGPmHDtaGUD/1ylFzPzdCOK7E/7c=","public/icons/icon.svg":"84CC+e45Xth9ZNo3ggLu67RmkyDoMmK+4LKYBSp96sc=","store/apps.webp":"rNrg58vtod66HKaiSfgXinJ+HlO3desuQHcSvovn4M4=","store/background.webp":"HeJu7adJIGvHav1NMHmjIAoqczwgML23dMDj5lnMv1c=","store/cover.webp":"1olNWVoM1YRQi3wMcy45FV6hgzx/r9IvU6zermiE6dM=","store/customize.webp":"gfI1qav5wXadc/cJlfAcZMZz58nvUslptNv0CJA5/vs=","store/friends.webp":"gclYD7VOMsat+5i583CK0ooCZdAYywzasljYH+M28qc=","store/messages.webp":"WTm3ZvcaXJ7dxCgqoFDymc+o+0893J9FmAasOwJBolA=","store/phone.webp":"LMMc94uR+C4d9x5s+g3gwgpShsMPESpqdjbf1jWv4MQ=","store/profile.webp":"qZAKZBsyHGpAQd2SZvzGvu7WAzdrMkmpB3ABy88Ln68="},"types":{"LICENSE":"application/octet-stream","README.md":"text/markdown","build/index.js":"text/javascript","dist/index.d.mts":"application/octet-stream","dist/index.mjs":"text/javascript","dist/names.d.mts":"application/octet-stream","dist/names.mjs":"text/javascript","package.json":"application/json","public/app.webmanifest":"application/manifest+json","public/icons/icon-192.png":"image/png","public/icons/icon-512.png":"image/png","public/icons/icon.svg":"image/svg+xml","store/apps.webp":"image/webp","store/background.webp":"image/webp","store/cover.webp":"image/webp","store/customize.webp":"image/webp","store/friends.webp":"image/webp","store/messages.webp":"image/webp","store/phone.webp":"image/webp","store/profile.webp":"image/webp"}},"keys":{"app":"fkn:app:1ify3klog2ns2qp2vk2xmxep3rjsimrwyxrrq33qxzamx4ctxlxja","serial":1795628272940,"issuedAt":1795628272,"founder":{"kind":"fkn","seed":"fxn8no70fzaqrzhbbcw28y88u1"},"signer":"fkn-1","name":"Social","members":[{"key":"7WjOgQ4Oi3PnA2+VrexddFFlAqZGQqtWQsYy8hzhZ4Q=","since":1795628272}],"sig":"epRewUVJrk01N/wlEbhXjVDbHtrjipt0HkzcWJ+LINKEy9YrcVgUEBFS7Iz0StjCgrGV/yessx3luUGOfhTsBg=="}}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@banou/social",
3
- "version": "0.0.6",
4
- "description": "Identity and friends across FKN apps. One signing key, a proven announcement inside a room, and a friend list that syncs with the account.",
3
+ "version": "0.0.8",
4
+ "description": "Identity, profile pages, friends, and encrypted chat across FKN apps.",
5
5
  "license": "MIT",
6
6
  "type": "module",
7
7
  "keywords": [
@@ -17,6 +17,16 @@
17
17
  "url": "https://social.fkn.app/",
18
18
  "embed": [
19
19
  "*"
20
+ ],
21
+ "background": "store/background.webp",
22
+ "cover": "store/cover.webp",
23
+ "screenshots": [
24
+ "store/profile.webp",
25
+ "store/messages.webp",
26
+ "store/customize.webp",
27
+ "store/friends.webp",
28
+ "store/apps.webp",
29
+ "store/phone.webp"
20
30
  ]
21
31
  },
22
32
  "sideEffects": [
@@ -36,11 +46,15 @@
36
46
  "files": [
37
47
  "build/index.js",
38
48
  "dist",
39
- "fkn.json"
49
+ "fkn.json",
50
+ "public/app.webmanifest",
51
+ "public/icons",
52
+ "store"
40
53
  ],
41
54
  "scripts": {
42
55
  "dev": "vp dev --port 4570",
43
56
  "build": "vp build",
57
+ "store-art": "node scripts/store-art.mjs",
44
58
  "typecheck": "tsc --noEmit",
45
59
  "test": "vp test run",
46
60
  "prepack": "vp build && vp pack"
@@ -0,0 +1,31 @@
1
+ {
2
+ "name": "FKN Social",
3
+ "short_name": "Social",
4
+ "description": "Identity, profile pages, friends, and encrypted chat across FKN apps.",
5
+ "id": "/",
6
+ "start_url": "/",
7
+ "scope": "/",
8
+ "display": "standalone",
9
+ "background_color": "#13161a",
10
+ "theme_color": "#13161a",
11
+ "icons": [
12
+ {
13
+ "src": "./icons/icon-192.png",
14
+ "sizes": "192x192",
15
+ "type": "image/png",
16
+ "purpose": "any"
17
+ },
18
+ {
19
+ "src": "./icons/icon-512.png",
20
+ "sizes": "512x512",
21
+ "type": "image/png",
22
+ "purpose": "any"
23
+ },
24
+ {
25
+ "src": "./icons/icon.svg",
26
+ "sizes": "any",
27
+ "type": "image/svg+xml",
28
+ "purpose": "any"
29
+ }
30
+ ]
31
+ }
Binary file
Binary file
@@ -0,0 +1,16 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512">
2
+ <defs>
3
+ <linearGradient id="bg" x1="0" y1="0" x2="0" y2="1">
4
+ <stop offset="0%" stop-color="#1b2432"/>
5
+ <stop offset="100%" stop-color="#0f141c"/>
6
+ </linearGradient>
7
+ </defs>
8
+ <rect width="512" height="512" rx="112" fill="url(#bg)"/>
9
+ <rect x="22" y="22" width="468" height="468" rx="92" fill="none" stroke="#314158" stroke-width="4" opacity="0.75"/>
10
+ <rect x="118" y="118" width="146" height="144" fill="#273549" opacity="0.8"/>
11
+ <g fill="none" stroke="#eef2f8" stroke-width="28" stroke-linecap="square" stroke-linejoin="miter">
12
+ <rect x="108" y="108" width="296" height="296"/>
13
+ <path d="M108 268h162V108" stroke-width="26"/>
14
+ </g>
15
+ <rect x="300" y="298" width="74" height="74" fill="#7c9cff"/>
16
+ </svg>
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file