@inkandswitch/patchwork-bootloader 0.2.0 → 0.2.2

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.
@@ -16,6 +16,7 @@ import { resolvePath } from "@inkandswitch/patchwork-filesystem";
16
16
  // Small adapters — bundled directly into the SW
17
17
  import { IndexedDBStorageAdapter } from "@automerge/automerge-repo-storage-indexeddb";
18
18
  import { MessageChannelNetworkAdapter } from "@automerge/automerge-repo-network-messagechannel";
19
+ import { WebSocketClientAdapter } from "@automerge/automerge-repo-network-websocket";
19
20
  // TEMPORARY: enable debug npm module in SW context (no localStorage available)
20
21
  let cachename = "default";
21
22
  let debugging = false;
@@ -93,7 +94,7 @@ function getRepo() {
93
94
  },
94
95
  enableRemoteHeadsGossiping: true,
95
96
  subductionWebsocketEndpoints: SUBDUCTION_ENDPOINTS,
96
- //network: [new WebSocketClientAdapter("wss://sync3.automerge.org")],
97
+ network: [new WebSocketClientAdapter("wss://sync3.automerge.org")],
97
98
  });
98
99
  self.repo = repo;
99
100
  logger.info("repo constructed, waiting for network subsystem");
package/dist/site.d.ts CHANGED
@@ -63,8 +63,8 @@ export interface SiteConfig {
63
63
  */
64
64
  titleSuffix: string;
65
65
  /**
66
- * DOM id of the `<patchwork-view>` element that will host the root
67
- * tool. Defaults to `"root"`.
66
+ * DOM id of the `<patchwork-view>` element that will host the root tool.
67
+ * Defaults to `"root"`.
68
68
  */
69
69
  rootElementId?: string;
70
70
  /**
package/dist/site.js CHANGED
@@ -82,6 +82,8 @@ export async function bootPatchworkSite(config) {
82
82
  rootElement.parentElement.insertBefore(fallbackProvider, rootElement);
83
83
  fallbackProvider.appendChild(repoProvider);
84
84
  repoProvider.appendChild(rootElement);
85
+ // Registers `<patchwork-view>` and the `<patchwork-view-legacy>` it
86
+ // delegates to in one go.
85
87
  registerPatchworkViewElement();
86
88
  // The watcher is started with the site's default-tools bundle alone so that
87
89
  // `resolveAccountHandle` below has something to await on (the `account`
@@ -163,7 +165,7 @@ function wireModuleSettingsWhenReady(accountDocHandle, moduleWatcher) {
163
165
  }
164
166
  /**
165
167
  * Set initial `tool-id` / `doc-url` attributes on the root
166
- * `<patchwork-view-legacy>` based on the URL hash (if it specifies a frame
168
+ * `<patchwork-view>` based on the URL hash (if it specifies a frame
167
169
  * override) or the account doc's configured frame tool + the account doc
168
170
  * itself.
169
171
  */
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@inkandswitch/patchwork-bootloader",
3
- "version": "0.2.0",
3
+ "version": "0.2.2",
4
4
  "author": "chee",
5
5
  "type": "module",
6
6
  "license": "MIT",
7
7
  "devDependencies": {
8
- "@automerge/automerge-repo-keyhive": "catalog:",
8
+ "@automerge/automerge-repo-keyhive": "0.2.0-alpha.1d",
9
9
  "esbuild": "^0.23.1",
10
10
  "rollup": "^4.53.3"
11
11
  },
@@ -40,31 +40,31 @@
40
40
  }
41
41
  },
42
42
  "dependencies": {
43
- "@automerge/automerge": "catalog:",
44
- "@automerge/automerge-repo": "catalog:",
45
- "@automerge/automerge-subduction": "catalog:",
46
- "@automerge/automerge-repo-network-messagechannel": "catalog:",
47
- "@automerge/automerge-repo-network-websocket": "catalog:",
48
- "@automerge/automerge-repo-storage-indexeddb": "catalog:",
49
- "@automerge/vanillajs": "catalog:",
50
- "@inkandswitch/patchwork-elements": "workspace:^",
51
- "@inkandswitch/patchwork-filesystem": "workspace:^",
52
- "@inkandswitch/patchwork-plugins": "workspace:^",
53
- "@inkandswitch/patchwork-providers": "workspace:^",
43
+ "@automerge/automerge": "3.3.0-fragments.1",
44
+ "@automerge/automerge-repo": "2.6.0-subduction.23",
45
+ "@automerge/automerge-subduction": "0.12.1",
46
+ "@automerge/automerge-repo-network-messagechannel": "2.6.0-subduction.23",
47
+ "@automerge/automerge-repo-network-websocket": "2.6.0-subduction.23",
48
+ "@automerge/automerge-repo-storage-indexeddb": "2.6.0-subduction.23",
49
+ "@automerge/vanillajs": "2.6.0-subduction.23",
54
50
  "@types/debug": "^4.1.12",
55
51
  "debug": "^4.4.3",
56
52
  "resolve.exports": "^2.0.3",
57
53
  "service-worker-types": "npm:@types/serviceworker@^0.0.153",
58
- "tinyargs": "^0.1.4"
54
+ "tinyargs": "^0.1.4",
55
+ "@inkandswitch/patchwork-elements": "^1.0.1",
56
+ "@inkandswitch/patchwork-providers": "^0.1.1",
57
+ "@inkandswitch/patchwork-filesystem": "^0.0.7",
58
+ "@inkandswitch/patchwork-plugins": "^0.0.9"
59
59
  },
60
60
  "peerDependencies": {
61
- "@automerge/automerge": "catalog:",
62
- "@automerge/automerge-repo": "catalog:",
63
- "@automerge/automerge-repo-keyhive": "catalog:",
64
- "@automerge/vanillajs": "catalog:"
61
+ "@automerge/automerge": "3.3.0-fragments.1",
62
+ "@automerge/automerge-repo": "2.6.0-subduction.23",
63
+ "@automerge/automerge-repo-keyhive": "0.2.0-alpha.1d",
64
+ "@automerge/vanillajs": "2.6.0-subduction.23"
65
65
  },
66
66
  "scripts": {
67
67
  "build": "tsc",
68
68
  "dev": "tsc -w --preserveWatchOutput"
69
69
  }
70
- }
70
+ }