@aperture-browser/session-element 0.0.0-init.0 → 0.0.0-nightly.100.78b4e7ef6edc

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.
@@ -0,0 +1,6 @@
1
+ import { type SessionAccess } from "@aperture-browser/session-react/headless";
2
+ /**
3
+ * Resolves the `token` and `base-url` attributes to session access. A new access object
4
+ * reconnects the session, so the previous one is reused while both attributes are unchanged.
5
+ */
6
+ export declare function attributeAccess(): (element: HTMLElement) => SessionAccess | null;
@@ -1,3 +1,4 @@
1
+ import { type SessionAccess } from "@aperture-browser/session-react/headless";
1
2
  export interface ApertureTab {
2
3
  readonly id: string;
3
4
  readonly title: string;
@@ -5,8 +6,8 @@ export interface ApertureTab {
5
6
  readonly loading: boolean;
6
7
  }
7
8
  export interface ApertureSessionSnapshot {
8
- readonly status: "invalid" | "loading" | "expired" | "unavailable" | "ready";
9
- readonly role: "editor" | "viewer" | null;
9
+ readonly status: "invalid" | "loading" | "denied" | "expired" | "unavailable" | "ready";
10
+ readonly role: "owner" | "editor" | "viewer" | null;
10
11
  readonly connection: "idle" | "connecting" | "connected" | "disconnected" | "error";
11
12
  readonly tabs: readonly ApertureTab[];
12
13
  readonly activeTabId: string | null;
@@ -18,6 +19,8 @@ export interface ApertureNotice {
18
19
  export declare class ApertureSessionViewElement extends HTMLElement {
19
20
  #private;
20
21
  static readonly observedAttributes: string[];
22
+ get access(): SessionAccess | null;
23
+ set access(access: SessionAccess | null);
21
24
  get snapshot(): ApertureSessionSnapshot;
22
25
  navigate(url: string): Promise<void>;
23
26
  back(): Promise<void>;
package/dist/index.d.ts CHANGED
@@ -1,3 +1,4 @@
1
+ import type { SessionAccess } from "@aperture-browser/session-react/headless";
1
2
  export interface ApertureSessionFeatures {
2
3
  readonly tabs?: boolean;
3
4
  readonly navigation?: boolean;
@@ -11,6 +12,8 @@ export interface ApertureSessionFeatures {
11
12
  export declare class ApertureSessionElement extends HTMLElement {
12
13
  #private;
13
14
  static readonly observedAttributes: string[];
15
+ get access(): SessionAccess | null;
16
+ set access(access: SessionAccess | null);
14
17
  get features(): ApertureSessionFeatures;
15
18
  set features(features: ApertureSessionFeatures);
16
19
  connectedCallback(): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aperture-browser/session-element",
3
- "version": "0.0.0-init.0",
3
+ "version": "0.0.0-nightly.100.78b4e7ef6edc",
4
4
  "description": "Custom elements that embed a live Aperture browser session in any page: <aperture-session> with the full session UI, and the headless <aperture-session-view>.",
5
5
  "homepage": "https://github.com/tarik02/aperture#readme",
6
6
  "bugs": "https://github.com/tarik02/aperture/issues",
@@ -29,11 +29,11 @@
29
29
  "access": "public"
30
30
  },
31
31
  "devDependencies": {
32
- "@aperture-browser/session-react": "0.0.0-init.0",
32
+ "@aperture-browser/session-react": "0.0.0-nightly.100.78b4e7ef6edc",
33
33
  "@tailwindcss/vite": "^4.3.2",
34
34
  "@types/react": "^19.2.17",
35
35
  "@types/react-dom": "^19.2.3",
36
- "effect": "4.0.0-rc.117",
36
+ "effect": "4.0.0",
37
37
  "react": "^19.2.7",
38
38
  "react-dom": "^19.2.7",
39
39
  "tailwindcss": "^4.3.2",