@dxos/app-framework 0.9.0 → 0.9.1-staging.ee54ba693a
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/lib/browser/{capability-BOPAKKWG.mjs → capability-S44TE2H7.mjs} +9 -9
- package/dist/lib/browser/{chunk-66IXTIVK.mjs → chunk-3NQLTQCP.mjs} +6 -7
- package/dist/lib/browser/chunk-3NQLTQCP.mjs.map +7 -0
- package/dist/lib/browser/chunk-53HJHMS5.mjs +7 -0
- package/dist/lib/browser/chunk-53HJHMS5.mjs.map +7 -0
- package/dist/lib/browser/{chunk-Y66ELD4U.mjs → chunk-KRJ4KK2W.mjs} +36 -7
- package/dist/lib/browser/chunk-KRJ4KK2W.mjs.map +7 -0
- package/dist/lib/browser/{chunk-KZUDO43J.mjs → chunk-LUH4Y5F2.mjs} +31 -23
- package/dist/lib/browser/chunk-LUH4Y5F2.mjs.map +7 -0
- package/dist/lib/browser/{chunk-CO3XLNUX.mjs → chunk-NKVRSMFN.mjs} +18 -18
- package/dist/lib/browser/chunk-NKVRSMFN.mjs.map +7 -0
- package/dist/lib/browser/{chunk-DC3WRPBV.mjs → chunk-OO53M5UK.mjs} +45 -12
- package/dist/lib/browser/chunk-OO53M5UK.mjs.map +7 -0
- package/dist/lib/browser/{chunk-IW44C7UL.mjs → chunk-OPTS3ZSN.mjs} +1 -1
- package/dist/lib/browser/chunk-OPTS3ZSN.mjs.map +7 -0
- package/dist/lib/browser/{chunk-HFLKXMT7.mjs → chunk-U5MESPM5.mjs} +61 -45
- package/dist/lib/browser/chunk-U5MESPM5.mjs.map +7 -0
- package/dist/lib/browser/{chunk-XHS5KDNX.mjs → chunk-UGYCLOXE.mjs} +25 -25
- package/dist/lib/browser/chunk-UGYCLOXE.mjs.map +7 -0
- package/dist/lib/browser/{chunk-5GY3YOEL.mjs → chunk-VF37YTXJ.mjs} +5 -5
- package/dist/lib/browser/chunk-VF37YTXJ.mjs.map +7 -0
- package/dist/lib/browser/{chunk-FO3IYSLV.mjs → chunk-YUVQIOTB.mjs} +29 -37
- package/dist/lib/browser/chunk-YUVQIOTB.mjs.map +7 -0
- package/dist/lib/browser/cli/index.mjs +9 -9
- package/dist/lib/browser/cli/index.mjs.map +2 -2
- package/dist/lib/browser/common/activation-events.mjs +7 -7
- package/dist/lib/browser/common/capabilities.mjs +7 -7
- package/dist/lib/browser/config/index.mjs +8 -0
- package/dist/lib/browser/config/index.mjs.map +7 -0
- package/dist/lib/browser/core/activation-event.mjs +1 -1
- package/dist/lib/browser/core/capability.mjs +1 -1
- package/dist/lib/browser/core/plugin-manager.mjs +4 -4
- package/dist/lib/browser/core/plugin.mjs +12 -2
- package/dist/lib/browser/core/url-loader.mjs +3 -3
- package/dist/lib/browser/index.mjs +14 -10
- package/dist/lib/browser/index.mjs.map +1 -1
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/{process-manager-capability-GXNUO7AR.mjs → process-manager-capability-QK4BMKMN.mjs} +9 -9
- package/dist/lib/browser/testing/index.mjs +15 -15
- package/dist/lib/browser/testing/index.mjs.map +3 -3
- package/dist/lib/browser/testing/react.mjs +11 -11
- package/dist/lib/browser/testing/react.mjs.map +3 -3
- package/dist/lib/browser/ui/index.mjs +18 -10
- package/dist/lib/node-esm/{capability-KZWRTX7R.mjs → capability-3YRF77LV.mjs} +9 -9
- package/dist/lib/node-esm/chunk-2UPUZXGU.mjs +9 -0
- package/dist/lib/node-esm/chunk-2UPUZXGU.mjs.map +7 -0
- package/dist/lib/node-esm/{chunk-XIGPWXCQ.mjs → chunk-4SE7SX7N.mjs} +45 -12
- package/dist/lib/node-esm/chunk-4SE7SX7N.mjs.map +7 -0
- package/dist/lib/node-esm/{chunk-XOCUANHO.mjs → chunk-BMW6P6QA.mjs} +6 -7
- package/dist/lib/node-esm/chunk-BMW6P6QA.mjs.map +7 -0
- package/dist/lib/node-esm/{chunk-A5CHGAZE.mjs → chunk-DRT75WGD.mjs} +61 -45
- package/dist/lib/node-esm/chunk-DRT75WGD.mjs.map +7 -0
- package/dist/lib/node-esm/{chunk-XGBUKRCK.mjs → chunk-FKMVORZN.mjs} +31 -23
- package/dist/lib/node-esm/chunk-FKMVORZN.mjs.map +7 -0
- package/dist/lib/node-esm/{chunk-CTKEZHKF.mjs → chunk-GLH4LGHZ.mjs} +1 -1
- package/dist/lib/node-esm/chunk-GLH4LGHZ.mjs.map +7 -0
- package/dist/lib/node-esm/{chunk-SX5NVETP.mjs → chunk-IL7O7IRX.mjs} +25 -25
- package/dist/lib/node-esm/chunk-IL7O7IRX.mjs.map +7 -0
- package/dist/lib/node-esm/{chunk-FSVGKTF6.mjs → chunk-ND2HETHD.mjs} +36 -7
- package/dist/lib/node-esm/chunk-ND2HETHD.mjs.map +7 -0
- package/dist/lib/node-esm/{chunk-KFZEB6BV.mjs → chunk-TLKYZKPW.mjs} +5 -5
- package/dist/lib/node-esm/chunk-TLKYZKPW.mjs.map +7 -0
- package/dist/lib/node-esm/{chunk-WK7OIQKI.mjs → chunk-VCPGX7WN.mjs} +29 -37
- package/dist/lib/node-esm/chunk-VCPGX7WN.mjs.map +7 -0
- package/dist/lib/node-esm/{chunk-NULBHQYS.mjs → chunk-XSZMX53L.mjs} +18 -18
- package/dist/lib/node-esm/chunk-XSZMX53L.mjs.map +7 -0
- package/dist/lib/node-esm/cli/index.mjs +9 -9
- package/dist/lib/node-esm/cli/index.mjs.map +2 -2
- package/dist/lib/node-esm/common/activation-events.mjs +7 -7
- package/dist/lib/node-esm/common/capabilities.mjs +7 -7
- package/dist/lib/node-esm/config/index.mjs +9 -0
- package/dist/lib/node-esm/config/index.mjs.map +7 -0
- package/dist/lib/node-esm/core/activation-event.mjs +1 -1
- package/dist/lib/node-esm/core/capability.mjs +1 -1
- package/dist/lib/node-esm/core/plugin-manager.mjs +4 -4
- package/dist/lib/node-esm/core/plugin.mjs +12 -2
- package/dist/lib/node-esm/core/url-loader.mjs +3 -3
- package/dist/lib/node-esm/index.mjs +14 -10
- package/dist/lib/node-esm/index.mjs.map +1 -1
- package/dist/lib/node-esm/meta.json +1 -1
- package/dist/lib/node-esm/{process-manager-capability-TX5TA6YN.mjs → process-manager-capability-5S7WZ2JR.mjs} +9 -9
- package/dist/lib/node-esm/testing/index.mjs +15 -15
- package/dist/lib/node-esm/testing/index.mjs.map +3 -3
- package/dist/lib/node-esm/testing/react.mjs +11 -11
- package/dist/lib/node-esm/testing/react.mjs.map +3 -3
- package/dist/lib/node-esm/ui/index.mjs +18 -10
- package/dist/plugin/node-esm/index.mjs +414 -81
- package/dist/plugin/node-esm/index.mjs.map +4 -4
- package/dist/plugin/node-esm/meta.json +1 -1
- package/dist/types/src/cli/cli.d.ts +1 -1
- package/dist/types/src/common/activation-events.d.ts.map +1 -1
- package/dist/types/src/common/capabilities.d.ts +2 -2
- package/dist/types/src/common/capabilities.d.ts.map +1 -1
- package/dist/types/src/config/index.d.ts +2 -0
- package/dist/types/src/config/index.d.ts.map +1 -0
- package/dist/types/src/core/activation-event.d.ts +9 -6
- package/dist/types/src/core/activation-event.d.ts.map +1 -1
- package/dist/types/src/core/capability.d.ts +9 -3
- package/dist/types/src/core/capability.d.ts.map +1 -1
- package/dist/types/src/core/edge-registry-plugin-provider.d.ts +6 -11
- package/dist/types/src/core/edge-registry-plugin-provider.d.ts.map +1 -1
- package/dist/types/src/core/plugin-manager.d.ts.map +1 -1
- package/dist/types/src/core/plugin-manifest.d.ts +25 -7
- package/dist/types/src/core/plugin-manifest.d.ts.map +1 -1
- package/dist/types/src/core/plugin.d.ts +89 -91
- package/dist/types/src/core/plugin.d.ts.map +1 -1
- package/dist/types/src/core/registry.d.ts +17 -57
- package/dist/types/src/core/registry.d.ts.map +1 -1
- package/dist/types/src/core/url-loader.d.ts +2 -2
- package/dist/types/src/core/url-loader.d.ts.map +1 -1
- package/dist/types/src/index.d.ts +1 -0
- package/dist/types/src/index.d.ts.map +1 -1
- package/dist/types/src/plugin-process-manager/history/capability.d.ts +1 -3
- package/dist/types/src/plugin-process-manager/history/capability.d.ts.map +1 -1
- package/dist/types/src/plugin-process-manager/meta.d.ts +32 -2
- package/dist/types/src/plugin-process-manager/meta.d.ts.map +1 -1
- package/dist/types/src/plugin-process-manager/process-manager-capability.d.ts +1 -4
- package/dist/types/src/plugin-process-manager/process-manager-capability.d.ts.map +1 -1
- package/dist/types/src/testing/harness.d.ts +1 -1
- package/dist/types/src/testing/harness.d.ts.map +1 -1
- package/dist/types/src/testing/react.d.ts +6 -5
- package/dist/types/src/testing/react.d.ts.map +1 -1
- package/dist/types/src/testing/withPluginManager.d.ts.map +1 -1
- package/dist/types/src/testing/withPluginManager.stories.d.ts.map +1 -1
- package/dist/types/src/ui/components/App/App.stories.d.ts +2 -2
- package/dist/types/src/ui/components/App/App.stories.d.ts.map +1 -1
- package/dist/types/src/ui/components/PluginManager/PluginManagerProvider.d.ts +6 -0
- package/dist/types/src/ui/components/PluginManager/PluginManagerProvider.d.ts.map +1 -1
- package/dist/types/src/ui/components/Surface/SurfaceComponent.d.ts +6 -10
- package/dist/types/src/ui/components/Surface/SurfaceComponent.d.ts.map +1 -1
- package/dist/types/src/ui/components/Surface/SurfaceComponent.stories.d.ts.map +1 -1
- package/dist/types/src/ui/components/Surface/SurfaceProfilerContext.d.ts +1 -1
- package/dist/types/src/ui/components/Surface/SurfaceProfilerContext.d.ts.map +1 -1
- package/dist/types/src/ui/components/Surface/context.d.ts +6 -2
- package/dist/types/src/ui/components/Surface/context.d.ts.map +1 -1
- package/dist/types/src/ui/components/Surface/index.d.ts +11 -4
- package/dist/types/src/ui/components/Surface/index.d.ts.map +1 -1
- package/dist/types/src/ui/components/Surface/types.d.ts +52 -72
- package/dist/types/src/ui/components/Surface/types.d.ts.map +1 -1
- package/dist/types/src/ui/hooks/useApp.d.ts +1 -1
- package/dist/types/src/ui/hooks/useCapabilities.d.ts +17 -1
- package/dist/types/src/ui/hooks/useCapabilities.d.ts.map +1 -1
- package/dist/types/src/vite-plugin/composer/index.d.ts +11 -4
- package/dist/types/src/vite-plugin/composer/index.d.ts.map +1 -1
- package/dist/types/src/vite-plugin/import-map/index.d.ts.map +1 -1
- package/dist/types/src/vite-plugin/index.d.ts +1 -0
- package/dist/types/src/vite-plugin/index.d.ts.map +1 -1
- package/dist/types/src/vite-plugin/load.d.ts +16 -0
- package/dist/types/src/vite-plugin/load.d.ts.map +1 -0
- package/dist/types/src/vite-plugin/manifest.d.ts +16 -4
- package/dist/types/src/vite-plugin/manifest.d.ts.map +1 -1
- package/dist/types/src/vite-plugin/packages.d.ts.map +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/docs/registry-spec.md +331 -0
- package/moon.yml +1 -0
- package/package.json +50 -39
- package/src/cli/cli.ts +2 -2
- package/src/common/activation-events.ts +3 -3
- package/src/common/capabilities.ts +18 -18
- package/src/config/index.ts +5 -0
- package/src/core/activation-event.ts +15 -8
- package/src/core/capability.ts +18 -6
- package/src/core/edge-registry-plugin-provider.ts +41 -42
- package/src/core/plugin-manager.test.ts +133 -137
- package/src/core/plugin-manager.ts +25 -19
- package/src/core/plugin-manifest.test.ts +5 -5
- package/src/core/plugin-manifest.ts +13 -10
- package/src/core/plugin.ts +58 -114
- package/src/core/registry.ts +20 -60
- package/src/core/url-loader.test.ts +2 -2
- package/src/core/url-loader.ts +23 -19
- package/src/index.ts +1 -0
- package/src/testing/harness.ts +5 -3
- package/src/testing/react.test.tsx +4 -2
- package/src/testing/react.tsx +10 -9
- package/src/testing/service.ts +2 -2
- package/src/testing/withPluginManager.stories.tsx +4 -2
- package/src/testing/withPluginManager.tsx +3 -1
- package/src/ui/components/App/App.stories.tsx +2 -2
- package/src/ui/components/PluginManager/PluginManagerProvider.ts +7 -0
- package/src/ui/components/Surface/SurfaceComponent.stories.tsx +22 -22
- package/src/ui/components/Surface/SurfaceComponent.tsx +90 -79
- package/src/ui/components/Surface/SurfaceProfilerContext.tsx +1 -1
- package/src/ui/components/Surface/context.ts +6 -4
- package/src/ui/components/Surface/index.ts +14 -3
- package/src/ui/components/Surface/types.test.ts +43 -51
- package/src/ui/components/Surface/types.ts +99 -64
- package/src/ui/hooks/useApp.test.tsx +1 -1
- package/src/ui/hooks/useApp.tsx +2 -2
- package/src/ui/hooks/useCapabilities.ts +49 -2
- package/src/vite-plugin/boot-loader/BootLoader.solid-stories.tsx +11 -11
- package/src/vite-plugin/boot-loader/loader.ts +3 -3
- package/src/vite-plugin/composer/index.ts +134 -61
- package/src/vite-plugin/import-map/index.ts +23 -7
- package/src/vite-plugin/index.ts +1 -0
- package/src/vite-plugin/load.ts +57 -0
- package/src/vite-plugin/manifest.test.ts +3 -3
- package/src/vite-plugin/manifest.ts +21 -10
- package/src/vite-plugin/packages.ts +0 -2
- package/tsconfig.json +5 -2
- package/dist/lib/browser/chunk-5GY3YOEL.mjs.map +0 -7
- package/dist/lib/browser/chunk-66IXTIVK.mjs.map +0 -7
- package/dist/lib/browser/chunk-CO3XLNUX.mjs.map +0 -7
- package/dist/lib/browser/chunk-DC3WRPBV.mjs.map +0 -7
- package/dist/lib/browser/chunk-FO3IYSLV.mjs.map +0 -7
- package/dist/lib/browser/chunk-HFLKXMT7.mjs.map +0 -7
- package/dist/lib/browser/chunk-IW44C7UL.mjs.map +0 -7
- package/dist/lib/browser/chunk-KZUDO43J.mjs.map +0 -7
- package/dist/lib/browser/chunk-XHS5KDNX.mjs.map +0 -7
- package/dist/lib/browser/chunk-Y66ELD4U.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-A5CHGAZE.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-CTKEZHKF.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-FSVGKTF6.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-KFZEB6BV.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-NULBHQYS.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-SX5NVETP.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-WK7OIQKI.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-XGBUKRCK.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-XIGPWXCQ.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-XOCUANHO.mjs.map +0 -7
- /package/dist/lib/browser/{capability-BOPAKKWG.mjs.map → capability-S44TE2H7.mjs.map} +0 -0
- /package/dist/lib/browser/{process-manager-capability-GXNUO7AR.mjs.map → process-manager-capability-QK4BMKMN.mjs.map} +0 -0
- /package/dist/lib/node-esm/{capability-KZWRTX7R.mjs.map → capability-3YRF77LV.mjs.map} +0 -0
- /package/dist/lib/node-esm/{process-manager-capability-TX5TA6YN.mjs.map → process-manager-capability-5S7WZ2JR.mjs.map} +0 -0
|
@@ -1,24 +1,20 @@
|
|
|
1
1
|
import React, { type NamedExoticComponent, type RefAttributes } from 'react';
|
|
2
2
|
import { type CapabilityManager } from '../../../core';
|
|
3
|
-
import { type
|
|
3
|
+
import { type RoleToken, type TokenData, type TypedProps } from './types';
|
|
4
4
|
/**
|
|
5
5
|
* A surface is a named region of the screen that can be populated by plugins.
|
|
6
|
+
* The `type` prop is a {@link RoleToken} that defines which region and its
|
|
7
|
+
* associated data contract.
|
|
6
8
|
*/
|
|
7
|
-
export declare const SurfaceComponent: (<TToken extends RoleToken<any>>(props: TypedProps<TToken> & RefAttributes<HTMLElement>) => React.ReactNode) & NamedExoticComponent<
|
|
9
|
+
export declare const SurfaceComponent: (<TToken extends RoleToken<any>>(props: TypedProps<TToken> & RefAttributes<HTMLElement>) => React.ReactNode) & NamedExoticComponent<TypedProps<RoleToken<any>> & RefAttributes<HTMLElement>>;
|
|
8
10
|
/**
|
|
9
11
|
* @returns `true` if there is a contributed surface which matches the specified role & data, `false` otherwise.
|
|
10
12
|
*
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
* declared contract (e.g. `AppSurface.Section` requires `attendableId`).
|
|
14
|
-
* - Legacy: pass a string `role` and `data` is untyped.
|
|
13
|
+
* Typed: pass a `type` role token and `data` is constrained to the token's
|
|
14
|
+
* declared contract (e.g. `AppSurface.Section` requires `attendableId`).
|
|
15
15
|
*/
|
|
16
16
|
export declare function isSurfaceAvailable<TToken extends RoleToken<any>>(capabilityManager: CapabilityManager.CapabilityManager, args: {
|
|
17
17
|
type: TToken;
|
|
18
18
|
data?: TokenData<TToken>;
|
|
19
|
-
role?: never;
|
|
20
|
-
}): boolean;
|
|
21
|
-
export declare function isSurfaceAvailable(capabilityManager: CapabilityManager.CapabilityManager, args: Pick<Props, 'role' | 'data'> & {
|
|
22
|
-
type?: undefined;
|
|
23
19
|
}): boolean;
|
|
24
20
|
//# sourceMappingURL=SurfaceComponent.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SurfaceComponent.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/components/Surface/SurfaceComponent.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"SurfaceComponent.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/components/Surface/SurfaceComponent.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,EAGZ,KAAK,oBAAoB,EAEzB,KAAK,aAAa,EAOnB,MAAM,OAAO,CAAC;AAQf,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAKvD,OAAO,EAGL,KAAK,SAAS,EACd,KAAK,SAAS,EACd,KAAK,UAAU,EAEhB,MAAM,SAAS,CAAC;AAmKjB;;;;GAIG;AAEH,eAAO,MAAM,gBAAgB,EA6CxB,CAAC,CAAC,MAAM,SAAS,SAAS,CAAC,GAAG,CAAC,EAAE,KAAK,EAAE,UAAU,CAAC,MAAM,CAAC,GAAG,aAAa,CAAC,WAAW,CAAC,KAAK,KAAK,CAAC,SAAS,CAAC,GAC/G,oBAAoB,CAAC,UAAU,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,GAAG,aAAa,CAAC,WAAW,CAAC,CAAC,CAAC;AAwChF;;;;;GAKG;AACH,wBAAgB,kBAAkB,CAAC,MAAM,SAAS,SAAS,CAAC,GAAG,CAAC,EAC9D,iBAAiB,EAAE,iBAAiB,CAAC,iBAAiB,EACtD,IAAI,EAAE;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,IAAI,CAAC,EAAE,SAAS,CAAC,MAAM,CAAC,CAAA;CAAE,GAC/C,OAAO,CAYT"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SurfaceComponent.stories.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/components/Surface/SurfaceComponent.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAa,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjE,OAAO,
|
|
1
|
+
{"version":3,"file":"SurfaceComponent.stories.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/components/Surface/SurfaceComponent.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAa,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjE,OAAO,KAAmD,MAAM,OAAO,CAAC;AA6HxE,QAAA,MAAM,IAAI;;;;;QAKN,MAAM;;CAE2B,CAAC;eAEvB,IAAI;AAEnB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KAAU,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SurfaceProfilerContext.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/components/Surface/SurfaceProfilerContext.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,EAEZ,KAAK,
|
|
1
|
+
{"version":3,"file":"SurfaceProfilerContext.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/components/Surface/SurfaceProfilerContext.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,EAEZ,KAAK,wBAAwB,EAC7B,KAAK,iBAAiB,EAMvB,MAAM,OAAO,CAAC;AAIf;;GAEG;AACH,MAAM,MAAM,oBAAoB,GAAG;IACjC,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,OAAO,GAAG,QAAQ,GAAG,eAAe,CAAC;IAC5C,cAAc,EAAE,MAAM,CAAC;IACvB,YAAY,EAAE,MAAM,CAAC;IACrB,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,oBAAoB,GAAG;IACjC,EAAE,EAAE,MAAM,CAAC;IACX,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,MAAM,CAAC;IACrB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,iBAAiB,EAAE,MAAM,CAAC;IAC1B,eAAe,EAAE,MAAM,CAAC;IACxB,kBAAkB,EAAE,MAAM,CAAC;IAC3B,cAAc,EAAE,MAAM,CAAC;CACxB,CAAC;AAmEF;;GAEG;AACH,eAAO,MAAM,uBAAuB,iBAAkB,iBAAiB,sBAQtE,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,0BAA0B,QAAO,wBAAwB,GAAG,SAkBxE,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,yBAAyB,QAAO,SAAS,oBAAoB,EAGzE,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,uBAAuB,QAAO,oBAAoB,EAqC9D,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,uBAAuB,QAAO,CAAC,MAAM,IAAI,CAAC,GAAG,SAGzD,CAAC"}
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
import { type Context } from 'react';
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
export type SurfaceContext = {
|
|
3
|
+
id?: string;
|
|
4
|
+
/** The resolved role NSID (e.g. `org.dxos.role.article`). */
|
|
5
|
+
role: string;
|
|
6
|
+
data?: Record<string, any>;
|
|
7
|
+
};
|
|
4
8
|
export declare const SurfaceContext: Context<SurfaceContext | undefined>;
|
|
5
9
|
//# sourceMappingURL=context.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/components/Surface/context.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,OAAO,EAAiB,MAAM,OAAO,CAAC;AAEpD,
|
|
1
|
+
{"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/components/Surface/context.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,OAAO,EAAiB,MAAM,OAAO,CAAC;AAEpD,MAAM,MAAM,cAAc,GAAG;IAC3B,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,6DAA6D;IAC7D,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CAC5B,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,OAAO,CAAC,cAAc,GAAG,SAAS,CAAwD,CAAC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import type { DXN } from '@dxos/keys';
|
|
1
2
|
import { SurfaceContext } from './context';
|
|
2
3
|
import { isSurfaceAvailable } from './SurfaceComponent';
|
|
3
|
-
import { type
|
|
4
|
+
import { type SurfaceBinding as SurfaceBindingType, type Definition as SurfaceDefinition, type SurfaceFilter as SurfaceFilterType, type RoleToken as SurfaceRoleToken, type TokenData as SurfaceTokenData, type TypedProps as SurfaceTypedProps, create as createSurface, createWeb as createWebSurface } from './types';
|
|
4
5
|
export declare namespace Surface {
|
|
5
6
|
type Definition = SurfaceDefinition;
|
|
6
7
|
const create: typeof createSurface;
|
|
@@ -13,8 +14,10 @@ export declare namespace Surface {
|
|
|
13
14
|
data?: any;
|
|
14
15
|
}>;
|
|
15
16
|
placeholder?: import("react").ReactNode;
|
|
16
|
-
|
|
17
|
-
type
|
|
17
|
+
id?: string;
|
|
18
|
+
type: SurfaceRoleToken<any>;
|
|
19
|
+
data?: any;
|
|
20
|
+
limit?: number | undefined;
|
|
18
21
|
} & {
|
|
19
22
|
[x: string]: any;
|
|
20
23
|
} & import("react").RefAttributes<HTMLElement>>;
|
|
@@ -24,7 +27,11 @@ export declare namespace Surface {
|
|
|
24
27
|
type Filter<TData> = SurfaceFilterType<TData>;
|
|
25
28
|
type TokenData<T> = SurfaceTokenData<T>;
|
|
26
29
|
type TypedProps<TToken extends SurfaceRoleToken<any>> = SurfaceTypedProps<TToken>;
|
|
27
|
-
|
|
30
|
+
/** Mints a typed role token. The NSID is validated at compile time via {@link DXN.Name}. */
|
|
31
|
+
const makeType: {
|
|
32
|
+
<TData = unknown, T extends string = string>(nsid: [DXN.Name<T>] extends [never] ? `Invalid NSID "${T}": final segment must be camelCase (no hyphens)` : T): SurfaceRoleToken<TData>;
|
|
33
|
+
};
|
|
34
|
+
const makeFilter: <TData>(token: SurfaceRoleToken<TData>, guard?: (data: TData) => boolean) => SurfaceFilterType<TData>;
|
|
28
35
|
const isFilter: (value: unknown) => value is SurfaceFilterType<any>;
|
|
29
36
|
const ProfilerProvider: ({ children }: import("react").PropsWithChildren) => import("react").JSX.Element;
|
|
30
37
|
const useProfilerCallback: () => import("react").ProfilerOnRenderCallback | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/components/Surface/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/components/Surface/index.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AAGtC,OAAO,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAC3C,OAAO,EAAoB,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AAQ1E,OAAO,EACL,KAAK,cAAc,IAAI,kBAAkB,EACzC,KAAK,UAAU,IAAI,iBAAiB,EACpC,KAAK,aAAa,IAAI,iBAAi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AC;IACvD,MAAM,kBAAkB,0EAA4B,CAAC;IACrD,MAAM,gBAAgB,iEAA0B,CAAC;IACjD,MAAM,gBAAgB,gCAA0B,CAAC;CACzD;AAED,YAAY,EAAE,oBAAoB,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAC"}
|
|
@@ -1,11 +1,14 @@
|
|
|
1
|
-
import type { FC, PropsWithChildren, ReactNode,
|
|
1
|
+
import type { FC, PropsWithChildren, ReactNode, Ref } from 'react';
|
|
2
|
+
import type { DXN } from '@dxos/keys';
|
|
2
3
|
import type { MakeOptional, Position } from '@dxos/util';
|
|
3
4
|
/**
|
|
4
|
-
* A typed role token. Carries a role
|
|
5
|
+
* A typed role token. Carries a role NSID for runtime dispatch plus a phantom
|
|
5
6
|
* data type so consumers using `type={SomeToken}` and providers using
|
|
6
7
|
* `AppSurface.object(SomeToken, ...)` share a single type-level contract.
|
|
7
8
|
*
|
|
8
|
-
* Mint via {@link makeType}.
|
|
9
|
+
* Mint via {@link makeType}. The `role` field holds the bare NSID (e.g.
|
|
10
|
+
* `org.dxos.role.article`) — the dispatch key, `data-role` attribute value,
|
|
11
|
+
* and what `.role` comparisons inside matched components see.
|
|
9
12
|
*/
|
|
10
13
|
export type RoleToken<TData> = {
|
|
11
14
|
readonly role: string;
|
|
@@ -13,8 +16,8 @@ export type RoleToken<TData> = {
|
|
|
13
16
|
readonly _phantom?: TData;
|
|
14
17
|
};
|
|
15
18
|
/**
|
|
16
|
-
* One entry in a {@link SurfaceFilter} — a role plus the guard that
|
|
17
|
-
* the data shape when the Surface dispatcher is matching that role.
|
|
19
|
+
* One entry in a {@link SurfaceFilter} — a role NSID plus the guard that
|
|
20
|
+
* validates the data shape when the Surface dispatcher is matching that role.
|
|
18
21
|
*/
|
|
19
22
|
export type SurfaceBinding = {
|
|
20
23
|
readonly role: string;
|
|
@@ -40,16 +43,31 @@ export type TokenData<T> = T extends RoleToken<infer D> ? D : never;
|
|
|
40
43
|
*/
|
|
41
44
|
export declare const isSurfaceFilter: (value: unknown) => value is SurfaceFilter<any>;
|
|
42
45
|
/**
|
|
43
|
-
* Mints a typed role token.
|
|
44
|
-
*
|
|
46
|
+
* Mints a typed role token. The NSID is validated at compile time via
|
|
47
|
+
* {@link DXN.Name}: the final segment must be camelCase (no hyphens).
|
|
48
|
+
* Dynamic NSIDs (template-literal / runtime strings) are validated at runtime.
|
|
49
|
+
*
|
|
50
|
+
* Identity is structural; all tokens with the same `role` string are
|
|
51
|
+
* interchangeable at runtime.
|
|
45
52
|
*/
|
|
46
|
-
export declare const makeType:
|
|
53
|
+
export declare const makeType: {
|
|
54
|
+
<TData = unknown, T extends string = string>(nsid: [DXN.Name<T>] extends [never] ? `Invalid NSID "${T}": final segment must be camelCase (no hyphens)` : T): RoleToken<TData>;
|
|
55
|
+
};
|
|
47
56
|
/**
|
|
48
|
-
*
|
|
57
|
+
* Creates a {@link SurfaceFilter} from a role token and an optional guard.
|
|
49
58
|
*
|
|
50
|
-
*
|
|
51
|
-
*
|
|
52
|
-
*
|
|
59
|
+
* When `guard` is omitted the filter matches any data at the token's role
|
|
60
|
+
* (role-only dispatch). Pass a guard to add runtime data-shape validation on
|
|
61
|
+
* top of the role match.
|
|
62
|
+
*
|
|
63
|
+
* This is the framework-level primitive; `@dxos/app-toolkit` builds richer
|
|
64
|
+
* domain-aware helpers (ECHO schema checks, literal matching, etc.) on top of it.
|
|
65
|
+
*/
|
|
66
|
+
export declare const makeFilter: <TData>(token: RoleToken<TData>, guard?: (data: TData) => boolean) => SurfaceFilter<TData>;
|
|
67
|
+
/**
|
|
68
|
+
* Typed Surface consumer props — carries the role/data-shape contract via a
|
|
69
|
+
* {@link RoleToken}. The `type` prop is required; the string `role` prop has
|
|
70
|
+
* been removed from the consumer-facing API.
|
|
53
71
|
*/
|
|
54
72
|
export type Props<T extends Record<string, any> = Record<string, unknown>> = {
|
|
55
73
|
/**
|
|
@@ -65,22 +83,7 @@ export type Props<T extends Record<string, any> = Record<string, unknown>> = {
|
|
|
65
83
|
* The placeholder component will be rendered while the surface component is loading.
|
|
66
84
|
*/
|
|
67
85
|
placeholder?: ReactNode;
|
|
68
|
-
} & MakeOptional<CoreProps<T>, 'id' | 'data'
|
|
69
|
-
/**
|
|
70
|
-
* Explicitly disallow `type` on the untyped Props overload — if the caller
|
|
71
|
-
* provides `type={AppSurface.X}`, TypeScript must route to the typed
|
|
72
|
-
* overload (where `data` is narrowed by the token). Without this, the
|
|
73
|
-
* catch-all index signature below would accept any `type` value and mask
|
|
74
|
-
* the typed overload entirely.
|
|
75
|
-
*/
|
|
76
|
-
type?: undefined;
|
|
77
|
-
} /**
|
|
78
|
-
* Additional props to pass to the component.
|
|
79
|
-
* These props are not used by Surface itself but may be used by components which resolve the surface.
|
|
80
|
-
* Exclude known prop names to prevent overriding well-defined props.
|
|
81
|
-
*/ & {
|
|
82
|
-
[K in keyof Record<string, any>]: K extends keyof CoreProps<T> | 'fallback' | 'placeholder' | 'type' ? never : any;
|
|
83
|
-
};
|
|
86
|
+
} & MakeOptional<CoreProps<T>, 'id' | 'data'>;
|
|
84
87
|
/**
|
|
85
88
|
* Typed Surface consumer props — carries the role/data-shape contract via a
|
|
86
89
|
* {@link RoleToken}. Available as a typed overload of the Surface component so
|
|
@@ -102,6 +105,8 @@ export type TypedProps<TToken extends RoleToken<any>> = {
|
|
|
102
105
|
};
|
|
103
106
|
/**
|
|
104
107
|
* NOTE: If `[key: string]: unknown` is included in shared types, when re-used other fields become unknown as well.
|
|
108
|
+
* The `type` prop is the only way to set the role; it is required here and
|
|
109
|
+
* optional in {@link Props} via MakeOptional.
|
|
105
110
|
*/
|
|
106
111
|
export type CoreProps<T extends Record<string, any> = Record<string, unknown>> = PropsWithChildren<{
|
|
107
112
|
/**
|
|
@@ -109,12 +114,9 @@ export type CoreProps<T extends Record<string, any> = Record<string, unknown>> =
|
|
|
109
114
|
*/
|
|
110
115
|
id: string;
|
|
111
116
|
/**
|
|
112
|
-
*
|
|
113
|
-
* typed overload of the Surface component which takes a {@link RoleToken}
|
|
114
|
-
* via the `type` prop instead — it enforces a role/data contract at compile
|
|
115
|
-
* time.
|
|
117
|
+
* The role token defining how the data should be rendered.
|
|
116
118
|
*/
|
|
117
|
-
|
|
119
|
+
type: RoleToken<T>;
|
|
118
120
|
/**
|
|
119
121
|
* The data to be rendered by the surface.
|
|
120
122
|
* NOTE: This must be a stable value.
|
|
@@ -125,43 +127,23 @@ export type CoreProps<T extends Record<string, any> = Record<string, unknown>> =
|
|
|
125
127
|
*/
|
|
126
128
|
limit?: number | undefined;
|
|
127
129
|
}>;
|
|
128
|
-
export type ComponentProps<T extends Record<string, any> = Record<string, any>> =
|
|
129
|
-
|
|
130
|
-
|
|
130
|
+
export type ComponentProps<T extends Record<string, any> = Record<string, any>> = {
|
|
131
|
+
/**
|
|
132
|
+
* The resolved role NSID string (e.g. `org.dxos.role.article`). Present on
|
|
133
|
+
* matched components only — multi-role containers can branch on this value
|
|
134
|
+
* by comparing against a token's `.role` (e.g. `role === AppSurface.Section.role`).
|
|
135
|
+
*/
|
|
136
|
+
role: string;
|
|
137
|
+
ref?: Ref<HTMLElement>;
|
|
138
|
+
} & PropsWithChildren<{
|
|
139
|
+
id: string;
|
|
140
|
+
data: T;
|
|
141
|
+
limit?: number | undefined;
|
|
142
|
+
}> & Record<string, any>;
|
|
131
143
|
/**
|
|
132
144
|
* React component used to render a surface once is has matched.
|
|
133
145
|
*/
|
|
134
146
|
export type ComponentFunction<T extends Record<string, any> = Record<string, any>> = (props: ComponentProps<T>) => ReactNode;
|
|
135
|
-
/**
|
|
136
|
-
* Definition of when a React component surface should be rendered.
|
|
137
|
-
*
|
|
138
|
-
* The optional `filter` receives the consumer-supplied `role` as its second
|
|
139
|
-
* argument so a single definition can encode role-specific guards (used by the
|
|
140
|
-
* {@link SurfaceFilter}-based `create` overload).
|
|
141
|
-
*/
|
|
142
|
-
export type ReactDefinition<T extends Record<string, any> = any> = Readonly<{
|
|
143
|
-
kind: 'react';
|
|
144
|
-
id: string;
|
|
145
|
-
role: string | string[];
|
|
146
|
-
position?: Position;
|
|
147
|
-
component: ComponentFunction<T>;
|
|
148
|
-
filter?: (data: Record<string, unknown>, role?: string) => data is T;
|
|
149
|
-
}>;
|
|
150
|
-
/**
|
|
151
|
-
* Definition of when a Web Component surface should be rendered.
|
|
152
|
-
*/
|
|
153
|
-
export type WebComponentDefinition<T extends Record<string, any> = any> = Readonly<{
|
|
154
|
-
kind: 'web-component';
|
|
155
|
-
id: string;
|
|
156
|
-
role: string | string[];
|
|
157
|
-
position?: Position;
|
|
158
|
-
/**
|
|
159
|
-
* The tag name of the Web Component to render.
|
|
160
|
-
* The Web Component will receive the same props as React surfaces via properties/attributes.
|
|
161
|
-
*/
|
|
162
|
-
tagName: string;
|
|
163
|
-
filter?: (data: Record<string, unknown>, role?: string) => data is T;
|
|
164
|
-
}>;
|
|
165
147
|
/**
|
|
166
148
|
* Definition of when a surface (React or Web Component) should be rendered.
|
|
167
149
|
*/
|
|
@@ -173,7 +155,7 @@ export type TypedReactDefinition<T extends Record<string, any> = any> = Readonly
|
|
|
173
155
|
id: string;
|
|
174
156
|
filter: SurfaceFilter<T>;
|
|
175
157
|
component: ComponentFunction<T>;
|
|
176
|
-
position?: Position;
|
|
158
|
+
position?: Position.Position;
|
|
177
159
|
}>;
|
|
178
160
|
/**
|
|
179
161
|
* Typed Web Component surface definition.
|
|
@@ -182,16 +164,14 @@ export type TypedWebComponentDefinition<T extends Record<string, any> = any> = R
|
|
|
182
164
|
id: string;
|
|
183
165
|
filter: SurfaceFilter<T>;
|
|
184
166
|
tagName: string;
|
|
185
|
-
position?: Position;
|
|
167
|
+
position?: Position.Position;
|
|
186
168
|
}>;
|
|
187
169
|
/**
|
|
188
|
-
* Creates a React surface definition.
|
|
170
|
+
* Creates a React surface definition from a typed filter.
|
|
189
171
|
*/
|
|
190
172
|
export declare function create<T extends Record<string, any> = any>(definition: TypedReactDefinition<T>): ReactDefinition<T>;
|
|
191
|
-
export declare function create<T extends Record<string, any> = any>(definition: Omit<ReactDefinition<T>, 'kind'>): ReactDefinition<T>;
|
|
192
173
|
/**
|
|
193
|
-
* Creates a Web Component surface definition.
|
|
174
|
+
* Creates a Web Component surface definition from a typed filter.
|
|
194
175
|
*/
|
|
195
176
|
export declare function createWeb<T extends Record<string, any> = any>(definition: TypedWebComponentDefinition<T>): WebComponentDefinition<T>;
|
|
196
|
-
export declare function createWeb<T extends Record<string, any> = any>(definition: Omit<WebComponentDefinition<T>, 'kind'>): WebComponentDefinition<T>;
|
|
197
177
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/components/Surface/types.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,EAAE,EAAE,iBAAiB,EAAE,SAAS,EAAE,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/components/Surface/types.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,EAAE,EAAE,iBAAiB,EAAE,SAAS,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAEnE,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AAEtC,OAAO,KAAK,EAAE,YAAY,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAEzD;;;;;;;;GAQG;AACH,MAAM,MAAM,SAAS,CAAC,KAAK,IAAI;IAC7B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,oDAAoD;IACpD,QAAQ,CAAC,QAAQ,CAAC,EAAE,KAAK,CAAC;CAC3B,CAAC;AAEF;;;GAGG;AACH,MAAM,MAAM,cAAc,GAAG;IAC3B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,KAAK,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,OAAO,CAAC;CAC5C,CAAC;AAEF;;;;GAIG;AACH,MAAM,MAAM,aAAa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,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,GAAG,EAAE,UAAU,EAAE,oBAAoB,CAAC,CAAC,CAAC,GAAG,eAAe,CAAC,CAAC,CAAC,CAAC;AAQrH;;GAEG;AACH,wBAAgB,SAAS,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,GAAG,EAC3D,UAAU,EAAE,2BAA2B,CAAC,CAAC,CAAC,GACzC,sBAAsB,CAAC,CAAC,CAAC,CAAC"}
|
|
@@ -70,7 +70,7 @@ export type UseAppOptions = {
|
|
|
70
70
|
* );
|
|
71
71
|
*
|
|
72
72
|
* @param params.pluginLoader A function which loads new plugins.
|
|
73
|
-
* @param params.plugins All plugins available to the application. Plugins whose `meta.tags` includes `'system'` are treated as core (force-enabled, not user-toggleable).
|
|
73
|
+
* @param params.plugins All plugins available to the application. Plugins whose `meta.profile.tags` includes `'system'` are treated as core (force-enabled, not user-toggleable).
|
|
74
74
|
* @param params.defaults Default plugins are enabled by default but can be disabled by the user.
|
|
75
75
|
* @param params.cacheEnabled Whether to cache enabled plugins in localStorage.
|
|
76
76
|
* @param params.safeMode Whether to enable safe mode, which disables optional plugins.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Atom } from '@effect-atom/atom';
|
|
2
2
|
import { Capabilities } from '../../common';
|
|
3
3
|
import { type Capability } from '../../core';
|
|
4
4
|
/**
|
|
@@ -12,6 +12,16 @@ export declare const useCapabilities: <T>(interfaceDef: Capability.InterfaceDef<
|
|
|
12
12
|
* @throws If no capability is found.
|
|
13
13
|
*/
|
|
14
14
|
export declare const useCapability: <T>(interfaceDef: Capability.InterfaceDef<T>) => T;
|
|
15
|
+
/**
|
|
16
|
+
* Hook to request capabilities without requiring a plugin manager.
|
|
17
|
+
* @returns An array of capabilities, or an empty array when rendered outside a {@link PluginManagerProvider}.
|
|
18
|
+
*/
|
|
19
|
+
export declare const useOptionalCapabilities: <T>(interfaceDef: Capability.InterfaceDef<T>) => readonly T[];
|
|
20
|
+
/**
|
|
21
|
+
* Hook to request a single capability without requiring a plugin manager.
|
|
22
|
+
* @returns The first matching capability, or `undefined` when none is registered (or there is no plugin manager).
|
|
23
|
+
*/
|
|
24
|
+
export declare const useOptionalCapability: <T>(interfaceDef: Capability.InterfaceDef<T>) => T | undefined;
|
|
15
25
|
/**
|
|
16
26
|
* Hook to get the current value of an atom capability.
|
|
17
27
|
* Automatically subscribes to changes.
|
|
@@ -24,6 +34,12 @@ export declare const useAtomCapability: <T>(atomCapability: Capability.Interface
|
|
|
24
34
|
* @example const [settings, updateSettings] = useAtomCapabilityState(CommentCapabilities.Settings);
|
|
25
35
|
*/
|
|
26
36
|
export declare const useAtomCapabilityState: <T>(atomCapability: Capability.InterfaceDef<Atom.Writable<T>>) => [T, (fn: (current: T) => T) => void];
|
|
37
|
+
/**
|
|
38
|
+
* Tolerant variant of {@link useAtomCapabilityState}: returns `[undefined, noop]` when the atom
|
|
39
|
+
* capability is not registered (e.g. the contributing plugin is not installed) rather than
|
|
40
|
+
* throwing. The updater is a no-op while the capability is absent.
|
|
41
|
+
*/
|
|
42
|
+
export declare const useOptionalAtomCapabilityState: <T>(atomCapability: Capability.InterfaceDef<Atom.Writable<T>>) => [T | undefined, (fn: (current: T) => T) => void];
|
|
27
43
|
/**
|
|
28
44
|
* Hook to get the operation invoker capability.
|
|
29
45
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useCapabilities.d.ts","sourceRoot":"","sources":["../../../../../src/ui/hooks/useCapabilities.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"useCapabilities.d.ts","sourceRoot":"","sources":["../../../../../src/ui/hooks/useCapabilities.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AAMzC,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAC5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 +8,17 @@ export type ComposerPluginOptions = {
|
|
|
8
8
|
/** Dev server port. Defaults to {@link PLUGIN_DEV_SERVER_PORT}. */
|
|
9
9
|
port?: number;
|
|
10
10
|
/**
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
|
|
14
|
-
|
|
11
|
+
* Path to the project's `dx.config.ts`. Defaults to auto-discovery in the project root
|
|
12
|
+
* (`dx.config.{ts,mjs,js}`). Used only to derive the manifest metadata.
|
|
13
|
+
*/
|
|
14
|
+
config?: string;
|
|
15
|
+
/**
|
|
16
|
+
* Plugin metadata. Optional — when omitted it is derived from the project's `dx.config.ts`
|
|
17
|
+
* (`@dxos/protocols` `Config2.Config`) plus the `package.json` version and resolved dependencies. When
|
|
18
|
+
* present (explicitly or derived), a `manifest.json` asset is emitted alongside the bundle listing
|
|
19
|
+
* every emitted file. The host fetches this manifest at install time and persists the declared
|
|
20
|
+
* assets in its offline cache so the plugin works without network. The bundle's entry module is
|
|
21
|
+
* always written as {@link ENTRY_FILENAME} (`index.mjs`).
|
|
15
22
|
*/
|
|
16
23
|
meta?: BuildMeta;
|
|
17
24
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/vite-plugin/composer/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/vite-plugin/composer/index.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,KAAK,MAAM,IAAI,UAAU,EAAE,MAAM,MAAM,CAAC;AAIjD,OAAO,EAAE,KAAK,SAAS,EAAE,cAAc,EAAE,mBAAmB,EAAE,iBAAiB,EAAe,MAAM,aAAa,CAAC;AAGlH,OAAO,EAAE,cAAc,EAAE,mBAAmB,EAAE,iBAAiB,EAAE,CAAC;AAClE,YAAY,EAAE,SAAS,EAAE,CAAC;AA+F1B,MAAM,MAAM,qBAAqB,GAAG;IAClC,uEAAuE;IACvE,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,mEAAmE;IACnE,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;;;;;;OAOG;IACH,IAAI,CAAC,EAAE,SAAS,CAAC;CAClB,CAAC;AAEF;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,cAAc,aAAc,qBAAqB,KAAG,UAAU,EAyO1E,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/vite-plugin/import-map/index.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,KAAK,MAAM,EAAE,MAAM,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/vite-plugin/import-map/index.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,KAAK,MAAM,EAAE,MAAM,MAAM,CAAC;AAkUnC;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,eAAO,MAAM,eAAe,aAAc;IAAE,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAA;CAAE,KAAG,MAAM,EA6LzE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/vite-plugin/index.ts"],"names":[],"mappings":"AAIA,cAAc,eAAe,CAAC;AAC9B,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAG7B,cAAc,YAAY,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/vite-plugin/index.ts"],"names":[],"mappings":"AAIA,cAAc,eAAe,CAAC;AAC9B,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAG7B,cAAc,YAAY,CAAC;AAC3B,OAAO,EAAE,gBAAgB,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Config2 } from '@dxos/protocols';
|
|
2
|
+
/**
|
|
3
|
+
* Resolves the first `dx.config.{ts,mjs,js}` found under `dir`, or `undefined` if none exist.
|
|
4
|
+
* Pass the result to {@link loadDxConfig}.
|
|
5
|
+
*/
|
|
6
|
+
export declare const findDxConfigFile: (dir: string) => string | undefined;
|
|
7
|
+
/**
|
|
8
|
+
* Loads and validates a `dx.config.ts` (or `.mjs`/`.js`) file at the given `filePath`.
|
|
9
|
+
*
|
|
10
|
+
* Transpiles the file with esbuild — leaving its bare imports (`@dxos/protocols`, `@dxos/app-framework`, …)
|
|
11
|
+
* external so they resolve from the project's `node_modules` — imports the result, then decodes the
|
|
12
|
+
* default export against the `Config2` schema (a malformed config throws a `Schema` parse error).
|
|
13
|
+
* Node-only (esbuild + filesystem); used by `composerPlugin` and `dx registry publish`.
|
|
14
|
+
*/
|
|
15
|
+
export declare const loadDxConfig: (filePath: string) => Promise<Config2.Config>;
|
|
16
|
+
//# sourceMappingURL=load.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"load.d.ts","sourceRoot":"","sources":["../../../../src/vite-plugin/load.ts"],"names":[],"mappings":"AAYA,OAAO,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAM1C;;;GAGG;AACH,eAAO,MAAM,gBAAgB,QAAS,MAAM,KAAG,MAAM,GAAG,SAC4C,CAAC;AAErG;;;;;;;GAOG;AACH,eAAO,MAAM,YAAY,aAAoB,MAAM,KAAG,OAAO,CAAC,OAAO,CAAC,MAAM,CAuB3E,CAAC"}
|
|
@@ -11,14 +11,26 @@ export declare const MANIFEST_ASSET_NAME = "manifest.json";
|
|
|
11
11
|
*/
|
|
12
12
|
export declare const ENTRY_FILENAME = "index.mjs";
|
|
13
13
|
/**
|
|
14
|
-
*
|
|
14
|
+
* Flat plugin metadata emitted into `manifest.json` at build time (the shape validated by
|
|
15
|
+
* `@dxos/protocols` `PluginManifestSchema`).
|
|
15
16
|
*
|
|
16
|
-
*
|
|
17
|
-
*
|
|
17
|
+
* The runtime {@link Plugin.Meta} nests its display/identity fields under `profile`; the build
|
|
18
|
+
* manifest is intentionally flat, so this is the {@link Plugin.Profile} content plus build-time fields:
|
|
19
|
+
* the package `version`, and a `dependencies` snapshot (every declared dependency resolved to its
|
|
20
|
+
* concrete installed version). The host derives SDK compatibility from the subset of `dependencies`
|
|
21
|
+
* it shares with the plugin (the externalized `@dxos/*` packages); the rest are recorded for transparency.
|
|
18
22
|
*/
|
|
19
|
-
export type BuildMeta = Plugin.
|
|
23
|
+
export type BuildMeta = Plugin.Profile & {
|
|
20
24
|
version: string;
|
|
25
|
+
dependencies?: Record<string, string>;
|
|
21
26
|
};
|
|
27
|
+
/**
|
|
28
|
+
* Flattens a runtime {@link Plugin.Meta}'s `profile` and augments it with the build-time fields
|
|
29
|
+
* needed to emit `manifest.json`: the package `version` (from the publishing project's `package.json`)
|
|
30
|
+
* and an optional resolved `dependencies` snapshot. Produces the {@link BuildMeta} that `composerPlugin`
|
|
31
|
+
* serializes.
|
|
32
|
+
*/
|
|
33
|
+
export declare const toBuildMeta: (meta: Plugin.Meta, version: string, dependencies?: Record<string, string>) => BuildMeta;
|
|
22
34
|
/**
|
|
23
35
|
* Serializes a plugin's public metadata + bundle layout into the format consumed
|
|
24
36
|
* by the host loader (see `UrlLoader.make` and `PluginManifest.parse`).
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"manifest.d.ts","sourceRoot":"","sources":["../../../../src/vite-plugin/manifest.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,KAAK,MAAM,EAAE,MAAM,SAAS,CAAC;AAEtC;;;;GAIG;AACH,eAAO,MAAM,mBAAmB,kBAAkB,CAAC;AAEnD;;;GAGG;AACH,eAAO,MAAM,cAAc,cAAwB,CAAC;AAEpD
|
|
1
|
+
{"version":3,"file":"manifest.d.ts","sourceRoot":"","sources":["../../../../src/vite-plugin/manifest.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,KAAK,MAAM,EAAE,MAAM,SAAS,CAAC;AAEtC;;;;GAIG;AACH,eAAO,MAAM,mBAAmB,kBAAkB,CAAC;AAEnD;;;GAGG;AACH,eAAO,MAAM,cAAc,cAAwB,CAAC;AAEpD;;;;;;;;;GASG;AACH,MAAM,MAAM,SAAS,GAAG,MAAM,CAAC,OAAO,GAAG;IAAE,OAAO,EAAE,MAAM,CAAC;IAAC,YAAY,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;CAAE,CAAC;AAEpG;;;;;GAKG;AACH,eAAO,MAAM,WAAW,SAAU,MAAM,CAAC,IAAI,WAAW,MAAM,iBAAiB,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,KAAG,SAItG,CAAC;AAEH;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,iBAAiB,SACtB,SAAS,wBACO;IAAE,MAAM,EAAE,SAAS,MAAM,EAAE,CAAC;IAAC,QAAQ,CAAC,EAAE,MAAM,CAAA;CAAE,KACrE,MAUF,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"packages.d.ts","sourceRoot":"","sources":["../../../../src/vite-plugin/packages.ts"],"names":[],"mappings":"AAyCA,eAAO,MAAM,gBAAgB,
|
|
1
|
+
{"version":3,"file":"packages.d.ts","sourceRoot":"","sources":["../../../../src/vite-plugin/packages.ts"],"names":[],"mappings":"AAyCA,eAAO,MAAM,gBAAgB,UAkI5B,CAAC;AAEF;;;;;;;;;GASG;AACH,eAAO,MAAM,eAAe,OAAQ,MAAM,KAAG,OAC2B,CAAC"}
|