@farthershore/farthershore-js 0.19.0 → 0.20.0
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/CHANGELOG.md +30 -1
- package/README.md +20 -5
- package/dist/client.d.ts +34 -19
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +52 -24
- package/dist/client.js.map +1 -1
- package/dist/components/_internal.d.ts +10 -0
- package/dist/components/_internal.d.ts.map +1 -1
- package/dist/components/_internal.js +11 -1
- package/dist/components/_internal.js.map +1 -1
- package/dist/components/keys.d.ts +1 -1
- package/dist/components/keys.d.ts.map +1 -1
- package/dist/components/keys.js +290 -44
- package/dist/components/keys.js.map +1 -1
- package/dist/config.d.ts +72 -19
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +33 -0
- package/dist/config.js.map +1 -1
- package/dist/errors/index.d.ts +39 -0
- package/dist/errors/index.d.ts.map +1 -1
- package/dist/errors/index.js +48 -0
- package/dist/errors/index.js.map +1 -1
- package/dist/generated/version.d.ts +2 -2
- package/dist/generated/version.js +2 -2
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/internal/index.d.ts +3 -0
- package/dist/internal/index.d.ts.map +1 -0
- package/dist/internal/index.js +18 -0
- package/dist/internal/index.js.map +1 -0
- package/dist/mock/fixtures.d.ts +7 -0
- package/dist/mock/fixtures.d.ts.map +1 -1
- package/dist/mock/fixtures.js +17 -3
- package/dist/mock/fixtures.js.map +1 -1
- package/dist/mock/transport.d.ts.map +1 -1
- package/dist/mock/transport.js +71 -4
- package/dist/mock/transport.js.map +1 -1
- package/dist/react/hooks.d.ts +9 -1
- package/dist/react/hooks.d.ts.map +1 -1
- package/dist/react/hooks.js.map +1 -1
- package/dist/resources/keys.d.ts +17 -2
- package/dist/resources/keys.d.ts.map +1 -1
- package/dist/resources/keys.js +9 -0
- package/dist/resources/keys.js.map +1 -1
- package/dist/types.d.ts +22 -0
- package/dist/types.d.ts.map +1 -1
- package/dist/types.js.map +1 -1
- package/package.json +5 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,7 +3,26 @@
|
|
|
3
3
|
All notable changes to `@farthershore/farthershore-js` are documented here.
|
|
4
4
|
This project adheres to Semantic Versioning (pre-1.0: minors may break).
|
|
5
5
|
|
|
6
|
-
## [0.
|
|
6
|
+
## [0.20.0] - 2026-07-20
|
|
7
|
+
|
|
8
|
+
Consumer-principal key model — audit fixes to the two-kind (PERSONAL / SERVICE)
|
|
9
|
+
API-key surface:
|
|
10
|
+
|
|
11
|
+
- `keys.create()` / `keys.rotate()` now return the subject binding + provenance
|
|
12
|
+
on the created key: `kind` (non-null, as `CreatedApiKey` already promised),
|
|
13
|
+
`memberId`, `serviceAccountId`, `serviceAccountName`, and `createdBy`. Core's
|
|
14
|
+
create/rotate responses previously omitted these, so `CreatedApiKey.kind` could
|
|
15
|
+
be `undefined` at a non-null type. No SDK type change — the platform response is
|
|
16
|
+
now honest with the existing contract.
|
|
17
|
+
- `keys.list()` ("Your keys") is CALLER-SCOPED server-side: a member receives
|
|
18
|
+
only their OWN personal keys plus, for admins (`team:assign_product_role`),
|
|
19
|
+
the org's service keys. Another member's personal-key rows are no longer
|
|
20
|
+
returned. Revoking or rotating a key is authorized at member level — a
|
|
21
|
+
personal key's bound member may manage it; anyone else needs the admin
|
|
22
|
+
provisioning permission (this closes a gap where a non-admin could revoke a
|
|
23
|
+
colleague's key).
|
|
24
|
+
- `<ApiKeysPanel>` personal ("Your keys") rows now offer a Rotate action
|
|
25
|
+
alongside Revoke (the bound member manages their own key).
|
|
7
26
|
|
|
8
27
|
Breaking — aligned with the platform's Product → Business excision and the
|
|
9
28
|
variables / gateway-API cleanup:
|
|
@@ -16,6 +35,16 @@ variables / gateway-API cleanup:
|
|
|
16
35
|
variables are backend-only encrypted secrets injected at the edge, with no
|
|
17
36
|
browser-exposure path.
|
|
18
37
|
- `product` → `business` naming across bootstrap/config/branding types.
|
|
38
|
+
- The public `createFartherShoreClient(config)` no longer accepts the
|
|
39
|
+
platform-infrastructure knobs `coreUrl`, `portalHost`, `businessId`,
|
|
40
|
+
`environmentId`, or `gatewayUrl`. They were never part of the builder-facing
|
|
41
|
+
`FartherShoreConfig` type, but a plain-JS or `as any` caller could previously
|
|
42
|
+
smuggle them through at runtime (TypeScript's excess-property check only
|
|
43
|
+
rejects object literals); the public factory now **strips them at runtime**, so
|
|
44
|
+
they are physically unreachable through this entry point. The edge supplies
|
|
45
|
+
them via `window.__FS_CONFIG__`; a platform harness that must target a non-prod
|
|
46
|
+
environment uses `createFartherShoreClientWithPlatformConfig` from
|
|
47
|
+
`@farthershore/farthershore-js/internal`.
|
|
19
48
|
|
|
20
49
|
## [0.18.2] - 2026-07-18
|
|
21
50
|
|
package/README.md
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
The **Farther Shore Frontend SDK** — the browser + React integration layer for
|
|
4
4
|
your product's subscriber portal.
|
|
5
5
|
|
|
6
|
-
> **Status: `0.
|
|
6
|
+
> **Status: `0.20.0`.** Pre-1.0 (`0.x`): a minor bump (e.g. `0.9.x` → `0.10.0`)
|
|
7
7
|
> may include breaking changes, so a caret range is unsafe — **pin this package
|
|
8
8
|
> exactly** (`0.9.0`) or use a patch-only tilde (`~0.9.0`). Changes are recorded
|
|
9
9
|
> in [`CHANGELOG.md`](./CHANGELOG.md).
|
|
@@ -104,16 +104,31 @@ import "./styles/components.css";
|
|
|
104
104
|
</FartherShoreRoot>;
|
|
105
105
|
```
|
|
106
106
|
|
|
107
|
-
|
|
108
|
-
`
|
|
109
|
-
|
|
107
|
+
The public `createFartherShoreClient(config)` accepts only builder-facing
|
|
108
|
+
options (`getToken`, `organizationId`, `apiKey`, `fetch`, `retry`, the error
|
|
109
|
+
hooks, `mock`):
|
|
110
110
|
|
|
111
111
|
```ts
|
|
112
112
|
const fs = createFartherShoreClient({
|
|
113
|
+
getToken: () => myAuthProvider.getToken(), // see "BYO auth" below
|
|
114
|
+
});
|
|
115
|
+
```
|
|
116
|
+
|
|
117
|
+
The platform-infrastructure knobs (`coreUrl`, `portalHost`, `businessId`,
|
|
118
|
+
`environmentId`, `gatewayUrl`) are **not** accepted here — the edge injects them
|
|
119
|
+
via `window.__FS_CONFIG__`, and the public factory strips them at runtime, so a
|
|
120
|
+
builder cannot point the client at the wrong place. A platform harness that must
|
|
121
|
+
target a non-prod environment (local dev without edge injection, self-hosting,
|
|
122
|
+
tests) uses the internal factory instead:
|
|
123
|
+
|
|
124
|
+
```ts
|
|
125
|
+
import { createFartherShoreClientWithPlatformConfig } from "@farthershore/farthershore-js/internal";
|
|
126
|
+
|
|
127
|
+
const fs = createFartherShoreClientWithPlatformConfig({
|
|
113
128
|
coreUrl: "http://localhost:4000", // dev/self-host only; injected on-platform
|
|
114
129
|
portalHost: "croncloud.example.com", // defaults to window.location.host
|
|
115
130
|
businessId: "biz_123", // usually omitted — bootstrap() discovers it
|
|
116
|
-
getToken: () => myAuthProvider.getToken(),
|
|
131
|
+
getToken: () => myAuthProvider.getToken(),
|
|
117
132
|
});
|
|
118
133
|
```
|
|
119
134
|
|
package/dist/client.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type FartherShoreConfig, type ClientContext } from "./config.js";
|
|
1
|
+
import { type FartherShoreConfig, type FartherShorePlatformConfig, type ClientContext } from "./config.js";
|
|
2
2
|
import { type CoreRequest } from "./http.js";
|
|
3
3
|
import { type FsFetchOptions } from "./fetch.js";
|
|
4
4
|
import { type BusinessResource } from "./resources/business.js";
|
|
@@ -166,20 +166,24 @@ export interface FartherShoreClient {
|
|
|
166
166
|
core<T>(req: CoreRequest): Promise<T>;
|
|
167
167
|
}
|
|
168
168
|
/**
|
|
169
|
-
* Create a {@link FartherShoreClient}. Zero-config
|
|
170
|
-
*
|
|
171
|
-
*
|
|
172
|
-
*
|
|
173
|
-
*
|
|
174
|
-
*
|
|
175
|
-
*
|
|
169
|
+
* Create a {@link FartherShoreClient}. Zero-config: on a platform-served portal
|
|
170
|
+
* no config is needed at all — the edge injects `window.__FS_CONFIG__` with the
|
|
171
|
+
* environment's Core URL (and Clerk connection), `portalHost` defaults to
|
|
172
|
+
* `window.location.host`, and the business is discovered at
|
|
173
|
+
* {@link FartherShoreClient.bootstrap}. Those reads are LAZY (never at
|
|
174
|
+
* construction — only when something is actually resolved, e.g. the first
|
|
175
|
+
* request), so `createFartherShoreClient()` never throws.
|
|
176
176
|
*
|
|
177
|
-
* The `
|
|
178
|
-
*
|
|
179
|
-
*
|
|
180
|
-
*
|
|
181
|
-
*
|
|
182
|
-
*
|
|
177
|
+
* The optional `config` carries only builder-facing options
|
|
178
|
+
* ({@link FartherShoreConfig}: `getToken`, `organizationId`, `mock`, `fetch`,
|
|
179
|
+
* `retry`, the error hooks). Platform-infrastructure knobs
|
|
180
|
+
* (coreUrl/portalHost/businessId/gatewayUrl/environmentId) are intentionally NOT
|
|
181
|
+
* accepted here — the platform supplies them at the edge. They are STRIPPED at
|
|
182
|
+
* runtime (not merely rejected by TypeScript, which only catches object
|
|
183
|
+
* literals), so a plain-JS or `as any` caller physically cannot set them through
|
|
184
|
+
* this entry point. A harness that must target a non-prod environment uses
|
|
185
|
+
* `createFartherShoreClientWithPlatformConfig` from
|
|
186
|
+
* `@farthershore/farthershore-js/internal`.
|
|
183
187
|
*
|
|
184
188
|
* @example
|
|
185
189
|
* ```ts
|
|
@@ -187,11 +191,22 @@ export interface FartherShoreClient {
|
|
|
187
191
|
* const { product } = await fs.bootstrap();
|
|
188
192
|
* const keys = await fs.keys.list();
|
|
189
193
|
* ```
|
|
194
|
+
*/
|
|
195
|
+
export declare function createFartherShoreClient(config?: FartherShoreConfig): FartherShoreClient;
|
|
196
|
+
/**
|
|
197
|
+
* PLATFORM-INTERNAL client factory — identical to {@link createFartherShoreClient}
|
|
198
|
+
* but also accepts the platform-infrastructure knobs in
|
|
199
|
+
* {@link FartherShorePlatformConfig} (coreUrl/portalHost/businessId/gatewayUrl/
|
|
200
|
+
* environmentId). Explicit values here win over the edge-injected
|
|
201
|
+
* `window.__FS_CONFIG__`, which is what lets our own harnesses (this repo's
|
|
202
|
+
* tests + the dev-portal-template dev bridge) steer a client at a non-production
|
|
203
|
+
* environment.
|
|
190
204
|
*
|
|
191
|
-
*
|
|
192
|
-
*
|
|
193
|
-
*
|
|
194
|
-
*
|
|
205
|
+
* Exposed ONLY through the `@farthershore/farthershore-js/internal` subpath —
|
|
206
|
+
* never re-exported from the package root — so it stays out of builder types,
|
|
207
|
+
* autocomplete, docs, and examples. If you are writing product/app code and
|
|
208
|
+
* reach for this, STOP: you want zero-config {@link createFartherShoreClient}
|
|
209
|
+
* and the edge-injected channel.
|
|
195
210
|
*/
|
|
196
|
-
export declare function
|
|
211
|
+
export declare function createFartherShoreClientWithPlatformConfig(config?: FartherShorePlatformConfig): FartherShoreClient;
|
|
197
212
|
//# sourceMappingURL=client.d.ts.map
|
package/dist/client.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":"AAaA,OAAO,EACL,KAAK,kBAAkB,EACvB,KAAK,0BAA0B,EAC/B,KAAK,aAAa,EAInB,MAAM,aAAa,CAAC;AAGrB,OAAO,EAAa,KAAK,WAAW,EAAE,MAAM,WAAW,CAAC;AACxD,OAAO,EAAW,KAAK,cAAc,EAAE,MAAM,YAAY,CAAC;AAC1D,OAAO,EAEL,KAAK,gBAAgB,EACtB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAGL,KAAK,YAAY,EAClB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAsB,KAAK,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAC5E,OAAO,EAAuB,KAAK,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAC/E,OAAO,EAEL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,GAAE,0BAA+B,GACtC,kBAAkB,CA+IpB"}
|
package/dist/client.js
CHANGED
|
@@ -1,8 +1,16 @@
|
|
|
1
|
-
// The client factory. Frontend code creates one client
|
|
2
|
-
//
|
|
3
|
-
// `fs.route.get("/forecast")`. The client owns ALL routing:
|
|
4
|
-
// vs Gateway, auth, host/env scoping.
|
|
5
|
-
|
|
1
|
+
// The client factory. Frontend code creates one client — on a platform-served
|
|
2
|
+
// portal with ZERO config — then expresses intent: `fs.usage.summary()`,
|
|
3
|
+
// `fs.keys.list()`, `fs.route.get("/forecast")`. The client owns ALL routing:
|
|
4
|
+
// Core vs Gateway, auth, host/env scoping.
|
|
5
|
+
//
|
|
6
|
+
// `createFartherShoreClient` is the public builder entrypoint and accepts only
|
|
7
|
+
// the builder-facing {@link FartherShoreConfig}. Platform-infrastructure knobs
|
|
8
|
+
// (coreUrl/portalHost/businessId/gatewayUrl/environmentId) are NOT builder
|
|
9
|
+
// config — they arrive via the edge-injected `window.__FS_CONFIG__` and
|
|
10
|
+
// bootstrap discovery. Our own harnesses that must point a client at a non-prod
|
|
11
|
+
// environment use `createFartherShoreClientWithPlatformConfig` via the
|
|
12
|
+
// `@farthershore/farthershore-js/internal` subpath.
|
|
13
|
+
import { buildContext, isMockMode, stripPlatformOverrides, } from "./config.js";
|
|
6
14
|
import { resolveBootstrap } from "./bootstrap.js";
|
|
7
15
|
import { bustReadCache, bustEntitlementCaches } from "./cache.js";
|
|
8
16
|
import { coreFetch } from "./http.js";
|
|
@@ -36,20 +44,24 @@ function installMockTransport(ctx) {
|
|
|
36
44
|
ctx.sessionToken = "fs_mock_session";
|
|
37
45
|
}
|
|
38
46
|
/**
|
|
39
|
-
* Create a {@link FartherShoreClient}. Zero-config
|
|
40
|
-
*
|
|
41
|
-
*
|
|
42
|
-
*
|
|
43
|
-
*
|
|
44
|
-
*
|
|
45
|
-
*
|
|
47
|
+
* Create a {@link FartherShoreClient}. Zero-config: on a platform-served portal
|
|
48
|
+
* no config is needed at all — the edge injects `window.__FS_CONFIG__` with the
|
|
49
|
+
* environment's Core URL (and Clerk connection), `portalHost` defaults to
|
|
50
|
+
* `window.location.host`, and the business is discovered at
|
|
51
|
+
* {@link FartherShoreClient.bootstrap}. Those reads are LAZY (never at
|
|
52
|
+
* construction — only when something is actually resolved, e.g. the first
|
|
53
|
+
* request), so `createFartherShoreClient()` never throws.
|
|
46
54
|
*
|
|
47
|
-
* The `
|
|
48
|
-
*
|
|
49
|
-
*
|
|
50
|
-
*
|
|
51
|
-
*
|
|
52
|
-
*
|
|
55
|
+
* The optional `config` carries only builder-facing options
|
|
56
|
+
* ({@link FartherShoreConfig}: `getToken`, `organizationId`, `mock`, `fetch`,
|
|
57
|
+
* `retry`, the error hooks). Platform-infrastructure knobs
|
|
58
|
+
* (coreUrl/portalHost/businessId/gatewayUrl/environmentId) are intentionally NOT
|
|
59
|
+
* accepted here — the platform supplies them at the edge. They are STRIPPED at
|
|
60
|
+
* runtime (not merely rejected by TypeScript, which only catches object
|
|
61
|
+
* literals), so a plain-JS or `as any` caller physically cannot set them through
|
|
62
|
+
* this entry point. A harness that must target a non-prod environment uses
|
|
63
|
+
* `createFartherShoreClientWithPlatformConfig` from
|
|
64
|
+
* `@farthershore/farthershore-js/internal`.
|
|
53
65
|
*
|
|
54
66
|
* @example
|
|
55
67
|
* ```ts
|
|
@@ -57,14 +69,30 @@ function installMockTransport(ctx) {
|
|
|
57
69
|
* const { product } = await fs.bootstrap();
|
|
58
70
|
* const keys = await fs.keys.list();
|
|
59
71
|
* ```
|
|
72
|
+
*/
|
|
73
|
+
export function createFartherShoreClient(config = {}) {
|
|
74
|
+
// Runtime strip: physically remove the platform-infrastructure keys so they
|
|
75
|
+
// can never reach buildContext through the public entry, regardless of how the
|
|
76
|
+
// caller typed (or didn't type) the object. The /internal factory below is the
|
|
77
|
+
// only path that honors them.
|
|
78
|
+
return createFartherShoreClientWithPlatformConfig(stripPlatformOverrides(config));
|
|
79
|
+
}
|
|
80
|
+
/**
|
|
81
|
+
* PLATFORM-INTERNAL client factory — identical to {@link createFartherShoreClient}
|
|
82
|
+
* but also accepts the platform-infrastructure knobs in
|
|
83
|
+
* {@link FartherShorePlatformConfig} (coreUrl/portalHost/businessId/gatewayUrl/
|
|
84
|
+
* environmentId). Explicit values here win over the edge-injected
|
|
85
|
+
* `window.__FS_CONFIG__`, which is what lets our own harnesses (this repo's
|
|
86
|
+
* tests + the dev-portal-template dev bridge) steer a client at a non-production
|
|
87
|
+
* environment.
|
|
60
88
|
*
|
|
61
|
-
*
|
|
62
|
-
*
|
|
63
|
-
*
|
|
64
|
-
*
|
|
89
|
+
* Exposed ONLY through the `@farthershore/farthershore-js/internal` subpath —
|
|
90
|
+
* never re-exported from the package root — so it stays out of builder types,
|
|
91
|
+
* autocomplete, docs, and examples. If you are writing product/app code and
|
|
92
|
+
* reach for this, STOP: you want zero-config {@link createFartherShoreClient}
|
|
93
|
+
* and the edge-injected channel.
|
|
65
94
|
*/
|
|
66
|
-
export function
|
|
67
|
-
const config = overrides;
|
|
95
|
+
export function createFartherShoreClientWithPlatformConfig(config = {}) {
|
|
68
96
|
// buildContext returns coreUrl/portalHost as LAZY getters — this call does
|
|
69
97
|
// no window/location/__FS_CONFIG__ reads itself, so construction can never
|
|
70
98
|
// throw for a missing coreUrl (only a later read of ctx.coreUrl can).
|
package/dist/client.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client.js","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"client.js","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":"AAAA,8EAA8E;AAC9E,yEAAyE;AACzE,8EAA8E;AAC9E,2CAA2C;AAC3C,EAAE;AACF,+EAA+E;AAC/E,+EAA+E;AAC/E,2EAA2E;AAC3E,wEAAwE;AACxE,gFAAgF;AAChF,uEAAuE;AACvE,oDAAoD;AAEpD,OAAO,EAIL,YAAY,EACZ,UAAU,EACV,sBA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QACR,KAAK,EAAE,mBAAmB,CAAC,GAAG,CAAC;QAC/B,SAAS,EAAE,CAAc,IAAY,EAAE,EAAE,CACvC,uBAAuB,CAAI,GAAG,EAAE,IAAI,CAAC;QACvC,KAAK,EAAE,CAAC,GAAG,EAAE,IAAI,EAAE,EAAE,CAAC,OAAO,CAAC,GAAG,EAAE,GAAG,EAAE,IAAI,CAAC;QAC7C,IAAI,EAAE,CAAC,GAAG,EAAE,EAAE,CAAC,SAAS,CAAC,GAAG,EAAE,GAAG,CAAC;KACnC,CAAC;AACJ,CAAC"}
|
|
@@ -5,4 +5,14 @@ export declare function ArrowIcon(): import("react/jsx-runtime").JSX.Element;
|
|
|
5
5
|
export declare function CheckIcon({ className }: {
|
|
6
6
|
className?: string;
|
|
7
7
|
}): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
/** Kind glyph for a PERSONAL key — a person, because it acts as a human. Purely
|
|
9
|
+
* decorative (`aria-hidden`); the identity is stated in adjacent text. */
|
|
10
|
+
export declare function PersonalKeyIcon({ className }: {
|
|
11
|
+
className?: string;
|
|
12
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
/** Kind glyph for a SERVICE key — a stacked machine, because it is an org-owned
|
|
14
|
+
* machine identity, never a person. Decorative (`aria-hidden`). */
|
|
15
|
+
export declare function ServiceKeyIcon({ className }: {
|
|
16
|
+
className?: string;
|
|
17
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
8
18
|
//# sourceMappingURL=_internal.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"_internal.d.ts","sourceRoot":"","sources":["../../src/components/_internal.tsx"],"names":[],"mappings":"AAIA;uEACuE;AACvE,wBAAgB,EAAE,CAAC,GAAG,KAAK,EAAE,KAAK,CAAC,MAAM,GAAG,IAAI,GAAG,SAAS,GAAG,KAAK,CAAC,GAAG,MAAM,CAE7E;AAED,wBAAgB,SAAS,4CAgBxB;AAED,wBAAgB,SAAS,CAAC,EAAE,SAAS,EAAE,EAAE;IAAE,SAAS,CAAC,EAAE,MAAM,CAAA;CAAE,2CAgB9D"}
|
|
1
|
+
{"version":3,"file":"_internal.d.ts","sourceRoot":"","sources":["../../src/components/_internal.tsx"],"names":[],"mappings":"AAIA;uEACuE;AACvE,wBAAgB,EAAE,CAAC,GAAG,KAAK,EAAE,KAAK,CAAC,MAAM,GAAG,IAAI,GAAG,SAAS,GAAG,KAAK,CAAC,GAAG,MAAM,CAE7E;AAED,wBAAgB,SAAS,4CAgBxB;AAED,wBAAgB,SAAS,CAAC,EAAE,SAAS,EAAE,EAAE;IAAE,SAAS,CAAC,EAAE,MAAM,CAAA;CAAE,2CAgB9D;AAED;2EAC2E;AAC3E,wBAAgB,eAAe,CAAC,EAAE,SAAS,EAAE,EAAE;IAAE,SAAS,CAAC,EAAE,MAAM,CAAA;CAAE,2CAcpE;AAED;oEACoE;AACpE,wBAAgB,cAAc,CAAC,EAAE,SAAS,EAAE,EAAE;IAAE,SAAS,CAAC,EAAE,MAAM,CAAA;CAAE,2CAenE"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
// Internal shared bits for the components package — NOT exported from the
|
|
3
3
|
// package. Public components live one-per-file; this holds the tiny pieces
|
|
4
4
|
// several of them share.
|
|
@@ -13,4 +13,14 @@ export function ArrowIcon() {
|
|
|
13
13
|
export function CheckIcon({ className }) {
|
|
14
14
|
return (_jsx("svg", { className: className, fill: "none", viewBox: "0 0 24 24", strokeWidth: 2.5, stroke: "currentColor", children: _jsx("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M4.5 12.75l6 6 9-13.5" }) }));
|
|
15
15
|
}
|
|
16
|
+
/** Kind glyph for a PERSONAL key — a person, because it acts as a human. Purely
|
|
17
|
+
* decorative (`aria-hidden`); the identity is stated in adjacent text. */
|
|
18
|
+
export function PersonalKeyIcon({ className }) {
|
|
19
|
+
return (_jsxs("svg", { className: className, "aria-hidden": "true", fill: "none", viewBox: "0 0 24 24", strokeWidth: 1.75, stroke: "currentColor", children: [_jsx("circle", { cx: "12", cy: "8", r: "3.25" }), _jsx("path", { strokeLinecap: "round", d: "M5.5 19a6.5 6.5 0 0 1 13 0" })] }));
|
|
20
|
+
}
|
|
21
|
+
/** Kind glyph for a SERVICE key — a stacked machine, because it is an org-owned
|
|
22
|
+
* machine identity, never a person. Decorative (`aria-hidden`). */
|
|
23
|
+
export function ServiceKeyIcon({ className }) {
|
|
24
|
+
return (_jsxs("svg", { className: className, "aria-hidden": "true", fill: "none", viewBox: "0 0 24 24", strokeWidth: 1.75, stroke: "currentColor", children: [_jsx("rect", { x: "3.75", y: "4.5", width: "16.5", height: "6", rx: "1.75" }), _jsx("rect", { x: "3.75", y: "13.5", width: "16.5", height: "6", rx: "1.75" }), _jsx("path", { strokeLinecap: "round", d: "M7 7.5h.01M7 16.5h.01" })] }));
|
|
25
|
+
}
|
|
16
26
|
//# sourceMappingURL=_internal.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"_internal.js","sourceRoot":"","sources":["../../src/components/_internal.tsx"],"names":[],"mappings":";AAAA,0EAA0E;AAC1E,2EAA2E;AAC3E,yBAAyB;AAEzB;uEACuE;AACvE,MAAM,UAAU,EAAE,CAAC,GAAG,KAA+C;IACnE,OAAO,KAAK,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AACzC,CAAC;AAED,MAAM,UAAU,SAAS;IACvB,OAAO,CACL,cACE,SAAS,EAAC,eAAe,EACzB,IAAI,EAAC,MAAM,EACX,OAAO,EAAC,WAAW,EACnB,WAAW,EAAE,GAAG,EAChB,MAAM,EAAC,cAAc,YAErB,eACE,aAAa,EAAC,OAAO,EACrB,cAAc,EAAC,OAAO,EACtB,CAAC,EAAC,sCAAsC,GACxC,GACE,CACP,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,SAAS,CAAC,EAAE,SAAS,EAA0B;IAC7D,OAAO,CACL,cACE,SAAS,EAAE,SAAS,EACpB,IAAI,EAAC,MAAM,EACX,OAAO,EAAC,WAAW,EACnB,WAAW,EAAE,GAAG,EAChB,MAAM,EAAC,cAAc,YAErB,eACE,aAAa,EAAC,OAAO,EACrB,cAAc,EAAC,OAAO,EACtB,CAAC,EAAC,uBAAuB,GACzB,GACE,CACP,CAAC;AACJ,CAAC"}
|
|
1
|
+
{"version":3,"file":"_internal.js","sourceRoot":"","sources":["../../src/components/_internal.tsx"],"names":[],"mappings":";AAAA,0EAA0E;AAC1E,2EAA2E;AAC3E,yBAAyB;AAEzB;uEACuE;AACvE,MAAM,UAAU,EAAE,CAAC,GAAG,KAA+C;IACnE,OAAO,KAAK,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AACzC,CAAC;AAED,MAAM,UAAU,SAAS;IACvB,OAAO,CACL,cACE,SAAS,EAAC,eAAe,EACzB,IAAI,EAAC,MAAM,EACX,OAAO,EAAC,WAAW,EACnB,WAAW,EAAE,GAAG,EAChB,MAAM,EAAC,cAAc,YAErB,eACE,aAAa,EAAC,OAAO,EACrB,cAAc,EAAC,OAAO,EACtB,CAAC,EAAC,sCAAsC,GACxC,GACE,CACP,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,SAAS,CAAC,EAAE,SAAS,EAA0B;IAC7D,OAAO,CACL,cACE,SAAS,EAAE,SAAS,EACpB,IAAI,EAAC,MAAM,EACX,OAAO,EAAC,WAAW,EACnB,WAAW,EAAE,GAAG,EAChB,MAAM,EAAC,cAAc,YAErB,eACE,aAAa,EAAC,OAAO,EACrB,cAAc,EAAC,OAAO,EACtB,CAAC,EAAC,uBAAuB,GACzB,GACE,CACP,CAAC;AACJ,CAAC;AAED;2EAC2E;AAC3E,MAAM,UAAU,eAAe,CAAC,EAAE,SAAS,EAA0B;IACnE,OAAO,CACL,eACE,SAAS,EAAE,SAAS,iBACR,MAAM,EAClB,IAAI,EAAC,MAAM,EACX,OAAO,EAAC,WAAW,EACnB,WAAW,EAAE,IAAI,EACjB,MAAM,EAAC,cAAc,aAErB,iBAAQ,EAAE,EAAC,IAAI,EAAC,EAAE,EAAC,GAAG,EAAC,CAAC,EAAC,MAAM,GAAG,EAClC,eAAM,aAAa,EAAC,OAAO,EAAC,CAAC,EAAC,4BAA4B,GAAG,IACzD,CACP,CAAC;AACJ,CAAC;AAED;oEACoE;AACpE,MAAM,UAAU,cAAc,CAAC,EAAE,SAAS,EAA0B;IAClE,OAAO,CACL,eACE,SAAS,EAAE,SAAS,iBACR,MAAM,EAClB,IAAI,EAAC,MAAM,EACX,OAAO,EAAC,WAAW,EACnB,WAAW,EAAE,IAAI,EACjB,MAAM,EAAC,cAAc,aAErB,eAAM,CAAC,EAAC,MAAM,EAAC,CAAC,EAAC,KAAK,EAAC,KAAK,EAAC,MAAM,EAAC,MAAM,EAAC,GAAG,EAAC,EAAE,EAAC,MAAM,GAAG,EAC3D,eAAM,CAAC,EAAC,MAAM,EAAC,CAAC,EAAC,MAAM,EAAC,KAAK,EAAC,MAAM,EAAC,MAAM,EAAC,GAAG,EAAC,EAAE,EAAC,MAAM,GAAG,EAC5D,eAAM,aAAa,EAAC,OAAO,EAAC,CAAC,EAAC,uBAAuB,GAAG,IACpD,CACP,CAAC;AACJ,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"keys.d.ts","sourceRoot":"","sources":["../../src/components/keys.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"keys.d.ts","sourceRoot":"","sources":["../../src/components/keys.tsx"],"names":[],"mappings":"AAyDA,MAAM,WAAW,iBAAiB;IAChC,oCAAoC;IACpC,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AA+ED,wBAAgB,YAAY,CAAC,EAAE,SAAS,EAAE,GAAE,iBAAsB,2CA4JjE"}
|