@aperture-browser/session-element 0.0.0-nightly.99.75d2f316d627 → 1.0.0-beta.1

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.ts CHANGED
@@ -1,21 +1,22 @@
1
- import type { SessionAccess } from "@aperture-browser/session-react/headless";
2
- export interface ApertureSessionFeatures {
3
- readonly tabs?: boolean;
4
- readonly navigation?: boolean;
5
- readonly addressBar?: boolean;
6
- readonly presence?: boolean;
7
- readonly drawing?: boolean;
8
- readonly menus?: boolean;
9
- readonly statusBadge?: boolean;
10
- readonly toaster?: boolean;
11
- }
1
+ import { type ApertureSessionFeatures, type Session, type WorkbenchContributions } from "@aperture-browser/session-react";
2
+ /**
3
+ * `<aperture-session url="…" token="…" name="…">`: the workbench of one session, apart from
4
+ * the page's own styles in a shadow tree. `hide` names the parts to leave out, separated by
5
+ * spaces; the `features` property does the same from script and wins over it.
6
+ */
12
7
  export declare class ApertureSessionElement extends HTMLElement {
13
8
  #private;
14
9
  static readonly observedAttributes: string[];
15
- get access(): SessionAccess | null;
16
- set access(access: SessionAccess | null);
17
10
  get features(): ApertureSessionFeatures;
18
11
  set features(features: ApertureSessionFeatures);
12
+ /**
13
+ * What is added to the workbench's slots, or put in place of its own; see
14
+ * `WorkbenchContribution` of `@aperture-browser/session-react`. From script only.
15
+ */
16
+ get contributions(): WorkbenchContributions | undefined;
17
+ set contributions(contributions: WorkbenchContributions | undefined);
18
+ /** The session's client, while the element is connected to its session. */
19
+ get session(): Session | null;
19
20
  connectedCallback(): void;
20
21
  disconnectedCallback(): void;
21
22
  attributeChangedCallback(): void;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aperture-browser/session-element",
3
- "version": "0.0.0-nightly.99.75d2f316d627",
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>.",
3
+ "version": "1.0.0-beta.1",
4
+ "description": "A custom element that puts one Aperture session into any page: <aperture-session> with the workbench's tab strip, toolbar and menus.",
5
5
  "homepage": "https://github.com/tarik02/aperture#readme",
6
6
  "bugs": "https://github.com/tarik02/aperture/issues",
7
7
  "license": "MIT",
@@ -19,23 +19,21 @@
19
19
  ".": {
20
20
  "types": "./dist/index.d.ts",
21
21
  "default": "./dist/aperture-session.js"
22
- },
23
- "./headless": {
24
- "types": "./dist/headless.d.ts",
25
- "default": "./dist/aperture-session-view.js"
26
22
  }
27
23
  },
28
24
  "publishConfig": {
29
25
  "access": "public"
30
26
  },
31
27
  "devDependencies": {
32
- "@aperture-browser/session-react": "0.0.0-nightly.99.75d2f316d627",
28
+ "@aperture-browser/session-react": "1.0.0-beta.1",
33
29
  "@tailwindcss/vite": "^4.3.2",
34
30
  "@types/react": "^19.2.17",
35
31
  "@types/react-dom": "^19.2.3",
36
32
  "effect": "4.0.0",
33
+ "publint": "0.3.24",
37
34
  "react": "^19.2.7",
38
35
  "react-dom": "^19.2.7",
36
+ "sonner": "^2.0.7",
39
37
  "tailwindcss": "^4.3.2",
40
38
  "vite": "npm:@voidzero-dev/vite-plus-core@0.2.4",
41
39
  "vite-plus": "0.2.4"
@@ -43,5 +41,7 @@
43
41
  "scripts": {
44
42
  "build": "vp build && tsgo -p tsconfig.build.json && publint",
45
43
  "typecheck": "tsgo --noEmit"
46
- }
44
+ },
45
+ "main": "./dist/aperture-session.js",
46
+ "types": "./dist/index.d.ts"
47
47
  }