sliftutils 0.11.0 → 0.13.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.
@@ -0,0 +1,11 @@
1
+ export type FileSystemPointer = string;
2
+ export declare function storeFileSystemPointer(config: {
3
+ mode: "read" | "readwrite";
4
+ handle: FileSystemFileHandle | FileSystemDirectoryHandle;
5
+ }): Promise<FileSystemPointer>;
6
+ export declare function deleteFileSystemPointer(pointer: FileSystemPointer): Promise<void>;
7
+ export declare function getFileSystemPointer(config: {
8
+ pointer: FileSystemPointer;
9
+ }): Promise<{
10
+ onUserActivation(modeOverride?: "read" | "readwrite"): Promise<FileSystemFileHandle | FileSystemDirectoryHandle>;
11
+ } | undefined>;
@@ -10,7 +10,9 @@
10
10
  "render-utils/**/*.ts",
11
11
  "render-utils/**/*.tsx",
12
12
  "misc/**/*.ts",
13
- "misc/**/*.tsx"
13
+ "misc/**/*.tsx",
14
+ "storage/**/*.ts",
15
+ "storage/**/*.tsx"
14
16
  ],
15
17
  "exclude": [
16
18
  "node_modules",
package/web/browser.tsx CHANGED
@@ -4,6 +4,9 @@ import { observer } from "../render-utils/observer";
4
4
  import { css, isNode } from "typesafecss";
5
5
  import { list } from "socket-function/src/misc";
6
6
  import { enableHotReloading } from "../builders/hotReload";
7
+ import { URLParam } from "../render-utils/URLParam";
8
+
9
+ const exampleUrlParam = new URLParam("example", "");
7
10
 
8
11
  @observer
9
12
  class App extends preact.Component {