@asgard-js/react 0.3.13 → 0.3.14
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/dist/components/chatbot/chatbot.d.ts +16 -0
- package/dist/components/chatbot/chatbot.d.ts.map +1 -1
- package/dist/components/chatbot/file-explorer/chatbot-file-explorer.d.ts +24 -0
- package/dist/components/chatbot/file-explorer/chatbot-file-explorer.d.ts.map +1 -0
- package/dist/components/chatbot/file-explorer/context-menu.d.ts +26 -0
- package/dist/components/chatbot/file-explorer/context-menu.d.ts.map +1 -0
- package/dist/components/chatbot/file-explorer/create-sandbox-fs-providers.d.ts +30 -0
- package/dist/components/chatbot/file-explorer/create-sandbox-fs-providers.d.ts.map +1 -0
- package/dist/components/chatbot/file-explorer/file-explorer-panel.d.ts +48 -0
- package/dist/components/chatbot/file-explorer/file-explorer-panel.d.ts.map +1 -0
- package/dist/components/chatbot/file-explorer/file-view.d.ts +24 -0
- package/dist/components/chatbot/file-explorer/file-view.d.ts.map +1 -0
- package/dist/components/chatbot/file-explorer/icons.d.ts +34 -0
- package/dist/components/chatbot/file-explorer/icons.d.ts.map +1 -0
- package/dist/components/chatbot/file-explorer/icons.spec.d.ts +2 -0
- package/dist/components/chatbot/file-explorer/icons.spec.d.ts.map +1 -0
- package/dist/components/chatbot/file-explorer/index.d.ts +8 -0
- package/dist/components/chatbot/file-explorer/index.d.ts.map +1 -0
- package/dist/components/chatbot/file-explorer/types.d.ts +15 -0
- package/dist/components/chatbot/file-explorer/types.d.ts.map +1 -0
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/templates/attachment-template/chip.d.ts.map +1 -1
- package/dist/components/templates/button-template/card.d.ts.map +1 -1
- package/dist/context/asgard-service-context.d.ts +5 -1
- package/dist/context/asgard-service-context.d.ts.map +1 -1
- package/dist/context/asgard-template-context.d.ts +9 -0
- package/dist/context/asgard-template-context.d.ts.map +1 -1
- package/dist/hooks/index.d.ts +1 -0
- package/dist/hooks/index.d.ts.map +1 -1
- package/dist/hooks/use-channel.d.ts +5 -1
- package/dist/hooks/use-channel.d.ts.map +1 -1
- package/dist/hooks/use-derived-state.d.ts +16 -1
- package/dist/hooks/use-derived-state.d.ts.map +1 -1
- package/dist/hooks/use-file-explorer-controller.d.ts +42 -0
- package/dist/hooks/use-file-explorer-controller.d.ts.map +1 -0
- package/dist/index.css +1 -1
- package/dist/index.js +16901 -15757
- package/dist/utils/dispatch-uri-action.d.ts +27 -0
- package/dist/utils/dispatch-uri-action.d.ts.map +1 -0
- package/package.json +2 -2
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { AsgardServiceClient } from '@asgard-js/core';
|
|
2
|
+
|
|
3
|
+
export type LinkTarget = '_blank' | '_self' | '_parent' | '_top';
|
|
4
|
+
export interface DispatchUriActionOptions {
|
|
5
|
+
/** The SDK client — needed for the sandbox browser open-url call and channel-home downloads. */
|
|
6
|
+
client?: AsgardServiceClient | null;
|
|
7
|
+
/** Current channel id — needed for channel-home downloads. */
|
|
8
|
+
customChannelId?: string | null;
|
|
9
|
+
/** The action's own target, if any (takes precedence over `defaultLinkTarget` for plain links). */
|
|
10
|
+
target?: string;
|
|
11
|
+
/** Fallback link target for plain (non-sandbox) uris. */
|
|
12
|
+
defaultLinkTarget?: LinkTarget;
|
|
13
|
+
/** Host override for `sandbox://<name>/open-browser` — if set, the SDK defers entirely to it. */
|
|
14
|
+
onSandboxOpenBrowser?: (sandboxName: string) => void;
|
|
15
|
+
/** Host handler for `sandbox://<name>/open-file` — the File Explorer preview destination (F-021). */
|
|
16
|
+
onSandboxOpenFile?: (sandboxName: string, absolutePath: string) => void;
|
|
17
|
+
/** Where the default open-browser handler opens the one-time URL. Defaults to `_blank`. */
|
|
18
|
+
sandboxBrowserOpenTarget?: LinkTarget;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Single shared dispatcher for a uri action, reused by the attachment chip and the button / carousel card
|
|
22
|
+
* (F-020 / UC-036). Custom `sandbox://` schemes are intercepted **before** the `safeWindowOpen` fallback and
|
|
23
|
+
* routed to a typed side effect (they are client-side commands, not browsable URLs); `channel-home://`
|
|
24
|
+
* downloads next; everything else falls through to the existing uri-validation whitelist + `safeWindowOpen`.
|
|
25
|
+
*/
|
|
26
|
+
export declare function dispatchUriAction(uri: string, options: DispatchUriActionOptions): void;
|
|
27
|
+
//# sourceMappingURL=dispatch-uri-action.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dispatch-uri-action.d.ts","sourceRoot":"","sources":["../../src/utils/dispatch-uri-action.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAqB,MAAM,iBAAiB,CAAC;AAIzE,MAAM,MAAM,UAAU,GAAG,QAAQ,GAAG,OAAO,GAAG,SAAS,GAAG,MAAM,CAAC;AAEjE,MAAM,WAAW,wBAAwB;IACvC,gGAAgG;IAChG,MAAM,CAAC,EAAE,mBAAmB,GAAG,IAAI,CAAC;IACpC,8DAA8D;IAC9D,eAAe,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAChC,mGAAmG;IACnG,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,yDAAyD;IACzD,iBAAiB,CAAC,EAAE,UAAU,CAAC;IAC/B,iGAAiG;IACjG,oBAAoB,CAAC,EAAE,CAAC,WAAW,EAAE,MAAM,KAAK,IAAI,CAAC;IACrD,qGAAqG;IACrG,iBAAiB,CAAC,EAAE,CAAC,WAAW,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,KAAK,IAAI,CAAC;IACxE,2FAA2F;IAC3F,wBAAwB,CAAC,EAAE,UAAU,CAAC;CACvC;AAgBD;;;;;GAKG;AACH,wBAAgB,iBAAiB,CAAC,GAAG,EAAE,MAAM,EAAE,OAAO,EAAE,wBAAwB,GAAG,IAAI,CA6BtF"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@asgard-js/react",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.14",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"vite-plugin-svgr": "^4.3.0"
|
|
48
48
|
},
|
|
49
49
|
"peerDependencies": {
|
|
50
|
-
"@asgard-js/core": "^0.3.
|
|
50
|
+
"@asgard-js/core": "^0.3.14",
|
|
51
51
|
"react": "^18.0.0 || ^19.0.0",
|
|
52
52
|
"react-dom": "^18.0.0 || ^19.0.0"
|
|
53
53
|
}
|