@vibesdotdev/client 1.0.0-rc.2 → 1.0.0-rc.3
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.
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
/** Settles after every widget registration this module queued so far (none when Kit is absent). */
|
|
2
|
+
export declare function toolWidgetsRegistered(): Promise<void>;
|
|
1
3
|
export declare const clientSveltePlugin: import("@vibesdotdev/kernel").RuntimePlugin;
|
|
2
4
|
export default clientSveltePlugin;
|
|
3
5
|
//# sourceMappingURL=client-svelte.plugin.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client-svelte.plugin.d.ts","sourceRoot":"","sources":["../../src/svelte/client-svelte.plugin.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"client-svelte.plugin.d.ts","sourceRoot":"","sources":["../../src/svelte/client-svelte.plugin.ts"],"names":[],"mappings":"AAyBA,mGAAmG;AACnG,wBAAgB,qBAAqB,IAAI,OAAO,CAAC,IAAI,CAAC,CAErD;AAID,eAAO,MAAM,kBAAkB,6CAiB7B,CAAC;AAEH,eAAe,kBAAkB,CAAC"}
|
|
@@ -11,8 +11,19 @@ const apiRequestWidget = {
|
|
|
11
11
|
tags: ['api', 'network'],
|
|
12
12
|
enabled: true
|
|
13
13
|
};
|
|
14
|
-
|
|
15
|
-
|
|
14
|
+
// Kit's widget registry loads lazily: a top-level await here would suspend every importer and,
|
|
15
|
+
// inside a module cycle, let WebKit run a dependent before this module's bindings exist.
|
|
16
|
+
const kitToolWidgets = settle(() => import('@vibesdotdev/kit/components/tool-widgets'));
|
|
17
|
+
function registerKitToolWidget(...args) {
|
|
18
|
+
void kitToolWidgets.then((kit) => {
|
|
19
|
+
if (kit.ok)
|
|
20
|
+
kit.value.registerToolWidget(...args);
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
/** Settles after every widget registration this module queued so far (none when Kit is absent). */
|
|
24
|
+
export function toolWidgetsRegistered() {
|
|
25
|
+
return kitToolWidgets.then(() => undefined);
|
|
26
|
+
}
|
|
16
27
|
registerKitToolWidget?.('api-request', loadApiRequestToolCard);
|
|
17
28
|
export const clientSveltePlugin = createRuntimePlugin({
|
|
18
29
|
id: '@vibesdotdev/client/svelte',
|
package/package.json
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vibesdotdev/client",
|
|
3
|
-
"version": "1.0.0-rc.
|
|
3
|
+
"version": "1.0.0-rc.3",
|
|
4
4
|
"dependencies": {
|
|
5
|
-
"@vibesdotdev/config": "^1.0.0-rc.
|
|
5
|
+
"@vibesdotdev/config": "^1.0.0-rc.5",
|
|
6
6
|
"@vibesdotdev/docs-contracts": "^1.0.0-rc.4",
|
|
7
|
-
"@vibesdotdev/logging": "^1.0.0-rc.
|
|
8
|
-
"@vibesdotdev/kernel": "^1.0.0-rc.
|
|
7
|
+
"@vibesdotdev/logging": "^1.0.0-rc.5",
|
|
8
|
+
"@vibesdotdev/kernel": "^1.0.0-rc.8",
|
|
9
9
|
"zod": "^4.6.7",
|
|
10
10
|
"@vibesdotdev/shared": "^1.0.0-rc.4"
|
|
11
11
|
},
|
|
12
12
|
"peerDependencies": {
|
|
13
13
|
"@opentui/react": "^0.5.17",
|
|
14
14
|
"@types/react": "^19.3.0",
|
|
15
|
-
"@vibesdotdev/kit": "^1.0.0-rc.
|
|
16
|
-
"@vibesdotdev/testing": "^1.0.0-rc.
|
|
17
|
-
"@vibesdotdev/tui": "^1.0.0-rc.
|
|
15
|
+
"@vibesdotdev/kit": "^1.0.0-rc.0",
|
|
16
|
+
"@vibesdotdev/testing": "^1.0.0-rc.0",
|
|
17
|
+
"@vibesdotdev/tui": "^1.0.0-rc.0",
|
|
18
18
|
"react": "^19.3.1",
|
|
19
19
|
"svelte": "^5.57.2"
|
|
20
20
|
},
|
|
@@ -235,10 +235,10 @@
|
|
|
235
235
|
"bugs": {
|
|
236
236
|
"url": "https://docs.vibes.dev/client#support"
|
|
237
237
|
},
|
|
238
|
-
"gitHead": "
|
|
238
|
+
"gitHead": "f1ff526c235b10c970497738beb16b0651c428c8",
|
|
239
239
|
"_vibes_source": {
|
|
240
240
|
"repo": "ssh://git@git.vibes.dev/vibesdotdev/framework.git",
|
|
241
|
-
"sha": "
|
|
242
|
-
"workspaceDigest": "sha256:
|
|
241
|
+
"sha": "f1ff526c235b10c970497738beb16b0651c428c8",
|
|
242
|
+
"workspaceDigest": "sha256:c3282cdd9870165685d87b0046553e63405694ab7ce55e374c91651c6618ad63"
|
|
243
243
|
}
|
|
244
244
|
}
|