@burdenoff/fe-libs 2026.1119.1 → 2026.1119.3
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/shared/assistant/sandboxRegistry.d.ts +55 -0
- package/dist/shared/assistant/sandboxRegistry.js +14 -2
- package/dist/shared-assistant.js +373 -373
- package/dist/ui/themed-select-menu.d.ts +10 -0
- package/dist/ui/themed-select-menu.js +70 -0
- package/dist/ui/themed-select-state.d.ts +43 -0
- package/dist/ui/themed-select-state.js +73 -0
- package/dist/ui/themed-select.js +135 -193
- package/package.json +1 -1
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The container registry assistant sandbox images are published to — the ONE
|
|
3
|
+
* place fe-libs names it (BOFF-15499).
|
|
4
|
+
*
|
|
5
|
+
* `images.ts` resolves sandbox images against it and the published-build guard
|
|
6
|
+
* (`scripts/published-registry-guard.ts`) refuses a release built against any
|
|
7
|
+
* other value, so the registry stays a reviewed, per-release value: a
|
|
8
|
+
* consuming shell cannot change it at runtime.
|
|
9
|
+
*
|
|
10
|
+
* Which reviewed registry a release carries is decided at BUILD time:
|
|
11
|
+
*
|
|
12
|
+
* - The fe-libs build reads `AWS_ECR_REGISTRY` (the organization variable every
|
|
13
|
+
* image build pushes to; the publish workflow passes it into the build
|
|
14
|
+
* environment). The guard plugin validates it with
|
|
15
|
+
* `resolveReleaseSandboxImageRegistry` and stamps the result into the bundle
|
|
16
|
+
* as `__BOFF_RELEASE_SANDBOX_IMAGE_REGISTRY__`.
|
|
17
|
+
* - Only registries of the reviewed accounts below are accepted; any other
|
|
18
|
+
* value fails the build. An unset or empty variable selects the default
|
|
19
|
+
* account, so a build without the variable (local, PR check, tests) is
|
|
20
|
+
* unchanged.
|
|
21
|
+
*
|
|
22
|
+
* Moving the platform to another AWS account is therefore a configuration
|
|
23
|
+
* change: the account is added to the reviewed list once (done for the
|
|
24
|
+
* BOFF-15499 target), the organization variable is switched, and the next
|
|
25
|
+
* fe-libs release carries the new registry. It reaches each shell when the
|
|
26
|
+
* shell bumps its fe-libs pin.
|
|
27
|
+
*/
|
|
28
|
+
/** The build environment variable that selects the release registry. */
|
|
29
|
+
export declare const RELEASE_SANDBOX_IMAGE_REGISTRY_ENV = "AWS_ECR_REGISTRY";
|
|
30
|
+
/** Region of every reviewed sandbox image registry. */
|
|
31
|
+
export declare const SANDBOX_IMAGE_REGISTRY_REGION = "ap-south-1";
|
|
32
|
+
/** Account used when the build names no registry (the current platform account). */
|
|
33
|
+
export declare const DEFAULT_SANDBOX_IMAGE_REGISTRY_ACCOUNT_ID = "028127330334";
|
|
34
|
+
/**
|
|
35
|
+
* AWS accounts whose ECR may serve assistant sandbox images. 028127330334 is
|
|
36
|
+
* the current platform account; 542388164236 is the BOFF-15499 migration
|
|
37
|
+
* target. Adding an account here is a reviewed code change.
|
|
38
|
+
*/
|
|
39
|
+
export declare const REVIEWED_SANDBOX_IMAGE_REGISTRY_ACCOUNT_IDS: readonly string[];
|
|
40
|
+
/** `<account>.dkr.ecr.<region>.amazonaws.com` for a reviewed account. */
|
|
41
|
+
export declare function sandboxImageRegistryForAccount(accountId: string): string;
|
|
42
|
+
/**
|
|
43
|
+
* The registry a release is built against, from the value of
|
|
44
|
+
* `AWS_ECR_REGISTRY` in the build environment.
|
|
45
|
+
*
|
|
46
|
+
* Unset, empty or whitespace selects the default account. Otherwise the value
|
|
47
|
+
* (trimmed, trailing slashes removed) must be the ECR registry of a reviewed
|
|
48
|
+
* account in `SANDBOX_IMAGE_REGISTRY_REGION`; anything else throws, so a
|
|
49
|
+
* mistyped or unexpected variable fails the build instead of shipping.
|
|
50
|
+
*/
|
|
51
|
+
export declare function resolveReleaseSandboxImageRegistry(value: string | null | undefined): string;
|
|
52
|
+
/** The registry this build of fe-libs carries. */
|
|
53
|
+
export declare const RELEASE_SANDBOX_IMAGE_REGISTRY: string;
|
|
54
|
+
/** The account of `RELEASE_SANDBOX_IMAGE_REGISTRY`. */
|
|
55
|
+
export declare const SANDBOX_IMAGE_REGISTRY_ACCOUNT_ID: string;
|
|
@@ -1,3 +1,15 @@
|
|
|
1
1
|
// src/shared/assistant/sandboxRegistry.ts
|
|
2
|
-
var e = "
|
|
3
|
-
|
|
2
|
+
var e = "AWS_ECR_REGISTRY", t = "ap-south-1", n = "028127330334", r = [n, "542388164236"];
|
|
3
|
+
function i(e) {
|
|
4
|
+
return `${e}.dkr.ecr.${t}.amazonaws.com`;
|
|
5
|
+
}
|
|
6
|
+
var a = /^(\d{12})\.dkr\.ecr\.([a-z0-9-]+)\.amazonaws\.com$/;
|
|
7
|
+
function o(o) {
|
|
8
|
+
let s = typeof o == "string" ? o.trim().replace(/\/+$/, "") : "";
|
|
9
|
+
if (!s) return i(n);
|
|
10
|
+
let [, c = "", l = ""] = a.exec(s) ?? [];
|
|
11
|
+
if (l !== "ap-south-1" || !r.includes(c)) throw Error(`${e}=${JSON.stringify(s)} is not the ECR registry of a reviewed account (${r.join(", ")}) in ${t}.`);
|
|
12
|
+
return s;
|
|
13
|
+
}
|
|
14
|
+
var s = o("028127330334.dkr.ecr.ap-south-1.amazonaws.com"), c = s.slice(0, 12);
|
|
15
|
+
export { n as DEFAULT_SANDBOX_IMAGE_REGISTRY_ACCOUNT_ID, s as RELEASE_SANDBOX_IMAGE_REGISTRY, e as RELEASE_SANDBOX_IMAGE_REGISTRY_ENV, r as REVIEWED_SANDBOX_IMAGE_REGISTRY_ACCOUNT_IDS, c as SANDBOX_IMAGE_REGISTRY_ACCOUNT_ID, t as SANDBOX_IMAGE_REGISTRY_REGION, o as resolveReleaseSandboxImageRegistry, i as sandboxImageRegistryForAccount };
|