@peers-app/peers-sdk 0.28.6 → 0.28.8
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/README.md +2 -2
- package/dist/contracts/builder.d.ts +0 -6
- package/dist/contracts/builder.js +0 -11
- package/dist/contracts/contract-proxy.d.ts +7 -6
- package/dist/contracts/extract.d.ts +1 -1
- package/dist/contracts/system/contract-catalog-contract.d.ts +6 -0
- package/dist/contracts/system/contract-catalog-contract.js +1 -0
- package/dist/contracts/system/packages-contract.d.ts +19 -6
- package/dist/contracts/system/packages-contract.js +15 -2
- package/dist/data/package-version-resolver.js +1 -19
- package/dist/data/package-versions.d.ts +4 -0
- package/dist/data/package-versions.js +8 -0
- package/dist/data/packages.utils.d.ts +4 -0
- package/dist/data/packages.utils.js +5 -1
- package/dist/data/tools.d.ts +0 -10
- package/dist/define/context.d.ts +5 -7
- package/dist/define/observables.js +1 -5
- package/dist/package-build/cli.js +4 -3
- package/dist/package-build/contract-add.d.ts +4 -2
- package/dist/package-build/contract-add.js +3 -11
- package/dist/package-build/contract-source.d.ts +7 -4
- package/dist/package-build/contract-source.js +26 -13
- package/dist/package-build/index.d.ts +3 -0
- package/dist/package-build/index.js +11 -0
- package/dist/package-installer/package-cloner.js +1 -0
- package/dist/package-installer/package-creator.js +2 -0
- package/dist/package-installer/package-installer.d.ts +3 -1
- package/dist/package-installer/package-installer.js +37 -8
- package/dist/package-installer/package-sdk-version.d.ts +5 -0
- package/dist/package-installer/package-sdk-version.js +50 -0
- package/dist/package-installer/types.d.ts +11 -4
- package/dist/package-loader/isolated-artifact.d.ts +16 -29
- package/dist/package-loader/isolated-artifact.js +20 -33
- package/dist/package-loader/package-loader.d.ts +5 -5
- package/dist/package-loader/package-loader.js +14 -43
- package/dist/package-loader/package-runtime-state.d.ts +1 -2
- package/dist/sdk-version.d.ts +2 -0
- package/dist/sdk-version.js +5 -0
- package/dist/types/peers-package.d.ts +1 -7
- package/package.json +1 -1
|
@@ -24,9 +24,8 @@ export type PackageRuntimeStatus = "running" | "failed" | "unavailable" | "unsup
|
|
|
24
24
|
*
|
|
25
25
|
* - `isolated` — an isolated artifact served by the host's isolated runtime.
|
|
26
26
|
* - `contract` — an in-process `definePackage()` bundle.
|
|
27
|
-
* - `legacy` — an in-process legacy bundle without a package definition.
|
|
28
27
|
*/
|
|
29
|
-
export type PackageRuntimeKind = "isolated" | "contract"
|
|
28
|
+
export type PackageRuntimeKind = "isolated" | "contract";
|
|
30
29
|
/** A contract a running package provides. */
|
|
31
30
|
export interface IPackageRuntimeProvidedContract {
|
|
32
31
|
/** Provided contract identity. */
|
|
@@ -1,16 +1,10 @@
|
|
|
1
|
-
import type { IAssistant } from "../data";
|
|
2
|
-
import type { ITableDefinition } from "../data/orm/table-definitions.type";
|
|
3
1
|
import type { IPeersUI } from "../peers-ui/peers-ui";
|
|
4
2
|
import type { IPeersUIRoute } from "../peers-ui/peers-ui.types";
|
|
5
3
|
import type { IAppNav } from "./app-nav";
|
|
6
|
-
|
|
7
|
-
/** Host package tables, assistants and UI; tools are provided by contracts. */
|
|
4
|
+
/** Identity and navigation of a loaded package; content is installed from its definition. */
|
|
8
5
|
export interface IPeersPackage {
|
|
9
6
|
packageId: string;
|
|
10
|
-
assistants?: IAssistant[];
|
|
11
|
-
workflows?: IWorkflow[];
|
|
12
7
|
appNavs?: IAppNav[];
|
|
13
|
-
tableDefinitions?: ITableDefinition[];
|
|
14
8
|
}
|
|
15
9
|
/** Routes exported by a host package. */
|
|
16
10
|
export interface IPeersPackageRoutes {
|