@xfey/tutti 0.1.4 → 0.1.6

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/web/index.html CHANGED
@@ -4,7 +4,7 @@
4
4
  <meta charset="UTF-8" />
5
5
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6
6
  <title>Tutti</title>
7
- <script type="module" crossorigin src="/assets/index-CWkBgHap.js"></script>
7
+ <script type="module" crossorigin src="/assets/index-BMMQgQjz.js"></script>
8
8
  <link rel="stylesheet" crossorigin href="/assets/index-D8xJY8Gr.css">
9
9
  </head>
10
10
  <body>
@@ -1,64 +0,0 @@
1
- export type ReadOnlyPermissionProfileOptions = {
2
- networkEnabled?: boolean;
3
- };
4
- export type WorkspaceWritePermissionProfileOptions = {
5
- networkEnabled?: boolean;
6
- };
7
- export declare function createReadOnlyPermissionProfile(readablePaths: string | string[], options?: ReadOnlyPermissionProfileOptions): {
8
- type: "managed";
9
- network: {
10
- enabled: boolean;
11
- };
12
- fileSystem: {
13
- type: "restricted";
14
- entries: ({
15
- access: "read";
16
- path: {
17
- type: "path";
18
- path: string;
19
- };
20
- } | {
21
- access: "read";
22
- path: {
23
- type: "special";
24
- value: {
25
- kind: "minimal";
26
- };
27
- };
28
- })[];
29
- };
30
- };
31
- export declare function createWorkspaceWritePermissionProfile(writableRoot: string, options?: WorkspaceWritePermissionProfileOptions): {
32
- type: "managed";
33
- network: {
34
- enabled: boolean;
35
- };
36
- fileSystem: {
37
- type: "restricted";
38
- entries: ({
39
- access: "read";
40
- path: {
41
- type: "special";
42
- value: {
43
- kind: "minimal";
44
- };
45
- path?: never;
46
- };
47
- } | {
48
- access: "read";
49
- path: {
50
- type: "path";
51
- path: string;
52
- value?: never;
53
- };
54
- } | {
55
- access: "write";
56
- path: {
57
- type: "path";
58
- path: string;
59
- value?: never;
60
- };
61
- })[];
62
- };
63
- };
64
- //# sourceMappingURL=permission-profile.d.ts.map
@@ -1,67 +0,0 @@
1
- export function createReadOnlyPermissionProfile(readablePaths, options = {}) {
2
- const paths = Array.isArray(readablePaths) ? readablePaths : [readablePaths];
3
- return {
4
- type: "managed",
5
- network: {
6
- enabled: options.networkEnabled ?? true,
7
- },
8
- fileSystem: {
9
- type: "restricted",
10
- entries: [
11
- {
12
- access: "read",
13
- path: {
14
- type: "special",
15
- value: {
16
- kind: "minimal",
17
- },
18
- },
19
- },
20
- ...[...new Set(paths)].map((path) => ({
21
- access: "read",
22
- path: {
23
- type: "path",
24
- path,
25
- },
26
- })),
27
- ],
28
- },
29
- };
30
- }
31
- export function createWorkspaceWritePermissionProfile(writableRoot, options = {}) {
32
- return {
33
- type: "managed",
34
- network: {
35
- enabled: options.networkEnabled ?? true,
36
- },
37
- fileSystem: {
38
- type: "restricted",
39
- entries: [
40
- {
41
- access: "read",
42
- path: {
43
- type: "special",
44
- value: {
45
- kind: "minimal",
46
- },
47
- },
48
- },
49
- {
50
- access: "read",
51
- path: {
52
- type: "path",
53
- path: writableRoot,
54
- },
55
- },
56
- {
57
- access: "write",
58
- path: {
59
- type: "path",
60
- path: writableRoot,
61
- },
62
- },
63
- ],
64
- },
65
- };
66
- }
67
- //# sourceMappingURL=permission-profile.js.map