pane-registry 3.0.2 → 3.0.3-test.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.
Files changed (2) hide show
  1. package/package.json +3 -3
  2. package/src/index.d.ts +17 -5
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pane-registry",
3
- "version": "3.0.2",
3
+ "version": "3.0.3-test.0",
4
4
  "description": "Solid-compatible Panes: Pane Registry",
5
5
  "main": "src/paneRegistry.js",
6
6
  "types": "src/index.d.ts",
@@ -16,7 +16,7 @@
16
16
  "test": "jest --no-coverage",
17
17
  "test-coverage": "jest --coverage",
18
18
  "test-watch": "jest --watch",
19
- "ignore:prepublishOnly": "npm run lint && npm test",
19
+ "prepublishOnly": "npm run lint && npm test",
20
20
  "preversion": "npm run lint && npm run test",
21
21
  "postversion": "git push origin main --follow-tags"
22
22
  },
@@ -46,7 +46,7 @@
46
46
  "homepage": "https://github.com/solidos/chat-pane",
47
47
  "peerDependencies": {
48
48
  "rdflib": "^2.3.6",
49
- "solid-logic": "^4.0.6"
49
+ "solid-logic": "^3.0.7-beta3-5cacd35c"
50
50
  },
51
51
  "devDependencies": {
52
52
  "eslint": "^9.39.2",
package/src/index.d.ts CHANGED
@@ -1,7 +1,5 @@
1
- // This is manually built for now
2
-
3
- import { LiveStore, NamedNode } from 'rdflib';
4
- import { SolidLogic } from 'solid-logic';
1
+ import { LiveStore, NamedNode } from 'rdflib'
2
+ import { SolidLogic } from 'solid-logic'
5
3
 
6
4
  declare const list: Array<PaneDefinition>
7
5
  declare const paneForIcon: { [key: string]: PaneDefinition }
@@ -28,13 +26,27 @@ export type DataBrowserSession = {
28
26
  logic: SolidLogic
29
27
  }
30
28
 
29
+ export type LayoutMode = 'desktop' | 'mobile'
30
+ export type LayoutPreference = LayoutMode | 'auto'
31
+ export type ThemeMode = 'light' | 'dark'
32
+ export type InputMode = 'touch' | 'pointer'
33
+
34
+ export interface RenderEnvironment {
35
+ layout: LayoutMode
36
+ layoutPreference: LayoutPreference
37
+ inputMode: InputMode
38
+ theme: ThemeMode
39
+ viewport: { width: number; height: number }
40
+ }
41
+
31
42
  /**
32
43
  * The current context that a view is rendered into
33
44
  */
34
45
  export type DataBrowserContext = {
35
46
  dom: HTMLDocument
36
47
  getOutliner: (dom: HTMLDocument) => unknown // @@ TODO Remove the use of getOutliner - only here as an interim until we have better solution
37
- session: DataBrowserSession
48
+ session: DataBrowserSession,
49
+ environment?: RenderEnvironment
38
50
  }
39
51
 
40
52
  /**