@jointhedots/core 2.1.2 → 2.1.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.
- package/bundle.manifest.json +6 -2
- package/components.d.ts +0 -0
- package/package.json +1 -1
- package/types.d.ts +47 -43
package/bundle.manifest.json
CHANGED
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
{
|
|
2
|
-
"$id": "jointhedots.core",
|
|
2
|
+
"$id": "@jointhedots.core",
|
|
3
|
+
"type": "bundle",
|
|
3
4
|
"name": "@jointhedots/core",
|
|
5
|
+
"icon": "",
|
|
6
|
+
"title": "@jointhedots/core",
|
|
4
7
|
"data": {
|
|
5
|
-
"baseline": "jointhedots.core-v0",
|
|
8
|
+
"baseline": "@jointhedots.core-v0",
|
|
6
9
|
"components": [],
|
|
10
|
+
"namespaces": [],
|
|
7
11
|
"exports": {
|
|
8
12
|
"@jointhedots/core": "export.js",
|
|
9
13
|
"@jointhedots/core/commands": "export.commands.js",
|
package/components.d.ts
ADDED
|
File without changes
|
package/package.json
CHANGED
package/types.d.ts
CHANGED
|
@@ -26,9 +26,9 @@ declare module '@jointhedots/core:src/common/types' {
|
|
|
26
26
|
|
|
27
27
|
declare module '@jointhedots/core:src/components/components' {
|
|
28
28
|
import { URI } from '@jointhedots/core:src/components/vscode-uri';
|
|
29
|
-
import type { DocumentationSchema, JSONSchema, ResourceEntry } from '@jointhedots/core:src/schema/schema
|
|
30
|
-
import type { ComponentEntry } from '@jointhedots/core:src/components/manifold
|
|
31
|
-
import { ServiceAccessor, type ServiceType } from '@jointhedots/core:src/services/service-accessor
|
|
29
|
+
import type { DocumentationSchema, JSONSchema, ResourceEntry } from '@jointhedots/core:src/schema/schema';
|
|
30
|
+
import type { ComponentEntry } from '@jointhedots/core:src/components/manifold';
|
|
31
|
+
import { ServiceAccessor, type ServiceType } from '@jointhedots/core:src/services/service-accessor';
|
|
32
32
|
import React from '@jointhedots/core:src/components/react';
|
|
33
33
|
export type ComponentID = string;
|
|
34
34
|
export interface ComponentPublication {
|
|
@@ -148,8 +148,8 @@ declare module '@jointhedots/core:src/components/components' {
|
|
|
148
148
|
|
|
149
149
|
declare module '@jointhedots/core:src/components/helpers' {
|
|
150
150
|
import { URI } from '@jointhedots/core:src/components/vscode-uri';
|
|
151
|
-
import { type ComponentFilter, type ComponentManifest, type ComponentPublication } from '@jointhedots/core:src/components/components
|
|
152
|
-
import type { ResourceEntry, ResourceImport } from '@jointhedots/core:src/schema/schema
|
|
151
|
+
import { type ComponentFilter, type ComponentManifest, type ComponentPublication } from '@jointhedots/core:src/components/components';
|
|
152
|
+
import type { ResourceEntry, ResourceImport } from '@jointhedots/core:src/schema/schema';
|
|
153
153
|
export function parseComponentURI(ref: string): URI;
|
|
154
154
|
export function getComponentServicesList(manif: ComponentManifest): Promise<string[]>;
|
|
155
155
|
export function createComponentPublication(manif: ComponentManifest): Promise<ComponentPublication>;
|
|
@@ -158,16 +158,16 @@ declare module '@jointhedots/core:src/components/helpers' {
|
|
|
158
158
|
export function parseResourceEntry(entry: ResourceEntry): ResourceImport;
|
|
159
159
|
}
|
|
160
160
|
|
|
161
|
-
declare module '@jointhedots/core:src/components
|
|
161
|
+
declare module '@jointhedots/core:src/components' {
|
|
162
162
|
export * from '@jointhedots/core:src/components/components';
|
|
163
163
|
export * from '@jointhedots/core:src/components/manifold';
|
|
164
164
|
export * from '@jointhedots/core:src/components/helpers';
|
|
165
165
|
}
|
|
166
166
|
|
|
167
167
|
declare module '@jointhedots/core:src/components/manifold' {
|
|
168
|
-
import { type ComponentFilter, type ComponentManifest, type ComponentPublication, type IContentProvider, type IResourceLoader } from '@jointhedots/core:src/components/components
|
|
169
|
-
import { CombinedComponentProvider } from '@jointhedots/core:src/providers/components/CombinedComponentProvider
|
|
170
|
-
import { type QueryLogResult } from '@jointhedots/core:src/logging
|
|
168
|
+
import { type ComponentFilter, type ComponentManifest, type ComponentPublication, type IContentProvider, type IResourceLoader } from '@jointhedots/core:src/components/components';
|
|
169
|
+
import { CombinedComponentProvider } from '@jointhedots/core:src/providers/components/CombinedComponentProvider';
|
|
170
|
+
import { type QueryLogResult } from '@jointhedots/core:src/logging';
|
|
171
171
|
export type ComponentErrorManifest = ComponentManifest & {
|
|
172
172
|
type: "<error>";
|
|
173
173
|
message: string;
|
|
@@ -195,7 +195,7 @@ declare module '@jointhedots/core:src/components/manifold' {
|
|
|
195
195
|
hasResource(identifier: string): boolean;
|
|
196
196
|
getResourceAsync(identifier: string): Promise<ComponentResource>;
|
|
197
197
|
fetchResource<T = any>(identifier: string): Promise<T>;
|
|
198
|
-
getLogStats(): import( '@jointhedots/core:src
|
|
198
|
+
getLogStats(): import( '@jointhedots/core:src').LogInfos;
|
|
199
199
|
getLogs(count: number): QueryLogResult;
|
|
200
200
|
}
|
|
201
201
|
export class ComponentResource {
|
|
@@ -244,7 +244,7 @@ declare module '@jointhedots/core:src/components/manifold' {
|
|
|
244
244
|
export function failedComponentPublication(id: string, title?: string): ComponentPublication;
|
|
245
245
|
}
|
|
246
246
|
|
|
247
|
-
declare module '@jointhedots/core:src
|
|
247
|
+
declare module '@jointhedots/core:src' {
|
|
248
248
|
export * from '@jointhedots/core:src/common/types';
|
|
249
249
|
export * from '@jointhedots/core:src/logging';
|
|
250
250
|
export * from '@jointhedots/core:src/observable';
|
|
@@ -329,7 +329,7 @@ declare module '@jointhedots/core:src/interfaces/react/ErrorBoundary' {
|
|
|
329
329
|
export {};
|
|
330
330
|
}
|
|
331
331
|
|
|
332
|
-
declare module '@jointhedots/core:src/interfaces/react
|
|
332
|
+
declare module '@jointhedots/core:src/interfaces/react' {
|
|
333
333
|
export * from '@jointhedots/core:src/interfaces/react/interface';
|
|
334
334
|
export * from '@jointhedots/core:src/interfaces/react/useAsyncMemo';
|
|
335
335
|
export * from '@jointhedots/core:src/interfaces/react/useAsyncState';
|
|
@@ -612,8 +612,8 @@ declare module '@jointhedots/core:src/interfaces/rest/decorators' {
|
|
|
612
612
|
|
|
613
613
|
declare module '@jointhedots/core:src/interfaces/rest/interface' {
|
|
614
614
|
import { URI } from '@jointhedots/core:src/components/vscode-uri';
|
|
615
|
-
import { ComponentEntry } from '@jointhedots/core:src/components/manifold
|
|
616
|
-
import { ServiceAccessor } from '@jointhedots/core:src/services/service-accessor
|
|
615
|
+
import { ComponentEntry } from '@jointhedots/core:src/components/manifold';
|
|
616
|
+
import { ServiceAccessor } from '@jointhedots/core:src/services/service-accessor';
|
|
617
617
|
export interface RESTService {
|
|
618
618
|
getUrl(path: string): string;
|
|
619
619
|
invoke(path: string, init?: RequestInit): Promise<Response>;
|
|
@@ -698,8 +698,8 @@ declare module '@jointhedots/core:src/interfaces/storage/interface' {
|
|
|
698
698
|
}
|
|
699
699
|
|
|
700
700
|
declare module '@jointhedots/core:src/interfaces/view/interface' {
|
|
701
|
-
import { ComponentEntry } from '@jointhedots/core:src/components/manifold
|
|
702
|
-
import { ServiceAccessor } from '@jointhedots/core:src/services/service-accessor
|
|
701
|
+
import { ComponentEntry } from '@jointhedots/core:src/components/manifold';
|
|
702
|
+
import { ServiceAccessor } from '@jointhedots/core:src/services/service-accessor';
|
|
703
703
|
export const ViewServiceKey: ServiceAccessor<any, any>;
|
|
704
704
|
export type ViewInfos = {
|
|
705
705
|
name: string;
|
|
@@ -720,9 +720,9 @@ declare module '@jointhedots/core:src/interfaces/view/interface' {
|
|
|
720
720
|
export function updateURLView(view: string | ViewInfos): void;
|
|
721
721
|
}
|
|
722
722
|
|
|
723
|
-
declare module '@jointhedots/core:src/logging
|
|
724
|
-
import type { Command } from '@jointhedots/core:src/interfaces/commands/interface
|
|
725
|
-
export { print } from '@jointhedots/core:src/logging/trace
|
|
723
|
+
declare module '@jointhedots/core:src/logging' {
|
|
724
|
+
import type { Command } from '@jointhedots/core:src/interfaces/commands/interface';
|
|
725
|
+
export { print } from '@jointhedots/core:src/logging/trace';
|
|
726
726
|
export type LogObjectID = string;
|
|
727
727
|
export type LogStatus = "error" | "warn" | "notify" | "info";
|
|
728
728
|
export type LogKind = "event" | "ticket";
|
|
@@ -812,7 +812,7 @@ declare module '@jointhedots/core:src/observable/attributes' {
|
|
|
812
812
|
export const HttpStatusAttribute: unique symbol;
|
|
813
813
|
}
|
|
814
814
|
|
|
815
|
-
declare module '@jointhedots/core:src/observable
|
|
815
|
+
declare module '@jointhedots/core:src/observable' {
|
|
816
816
|
export * from '@jointhedots/core:src/observable/attributes';
|
|
817
817
|
export * from '@jointhedots/core:src/observable/observable';
|
|
818
818
|
export * from '@jointhedots/core:src/observable/listenable';
|
|
@@ -885,7 +885,7 @@ declare module '@jointhedots/core:src/observable/RestResource' {
|
|
|
885
885
|
}
|
|
886
886
|
|
|
887
887
|
declare module '@jointhedots/core:src/providers/components/CombinedComponentProvider' {
|
|
888
|
-
import { type ComponentFilter, type ComponentManifest, type ComponentPublication, type IComponentProvider } from '@jointhedots/core:src/components/components
|
|
888
|
+
import { type ComponentFilter, type ComponentManifest, type ComponentPublication, type IComponentProvider } from '@jointhedots/core:src/components/components';
|
|
889
889
|
export class CombinedComponentProvider implements IComponentProvider {
|
|
890
890
|
readonly providers: IComponentProvider[];
|
|
891
891
|
constructor(providers?: IComponentProvider[]);
|
|
@@ -900,7 +900,7 @@ declare module '@jointhedots/core:src/providers/components/CombinedComponentProv
|
|
|
900
900
|
}
|
|
901
901
|
|
|
902
902
|
declare module '@jointhedots/core:src/providers/components/InMemComponentProvider' {
|
|
903
|
-
import { type ComponentFilter, type ComponentManifest, type ComponentPublication, type IComponentProvider, type IComponentPublisher } from '@jointhedots/core:src/components/components
|
|
903
|
+
import { type ComponentFilter, type ComponentManifest, type ComponentPublication, type IComponentProvider, type IComponentPublisher } from '@jointhedots/core:src/components/components';
|
|
904
904
|
export class InMemComponentPublisher implements IComponentPublisher {
|
|
905
905
|
pubs: Map<string, ComponentPublication>;
|
|
906
906
|
constructor(catalog?: ComponentPublication[]);
|
|
@@ -917,13 +917,17 @@ declare module '@jointhedots/core:src/providers/components/InMemComponentProvide
|
|
|
917
917
|
}
|
|
918
918
|
|
|
919
919
|
declare module '@jointhedots/core:src/providers/components/LocalComponentProvider' {
|
|
920
|
-
import { type IComponentProvider } from '@jointhedots/core:src/components/components
|
|
920
|
+
import { type IComponentProvider } from '@jointhedots/core:src/components/components';
|
|
921
921
|
export function createLocalComponentProvider(): IComponentProvider;
|
|
922
922
|
}
|
|
923
923
|
|
|
924
|
+
declare module '@jointhedots/core:src/providers/components/NodeComponentProvider' {
|
|
925
|
+
|
|
926
|
+
}
|
|
927
|
+
|
|
924
928
|
declare module '@jointhedots/core:src/providers/components/StaticComponentProvider' {
|
|
925
|
-
import { type BundleManifest, type ComponentFilter, type ComponentManifest, type ComponentPublication, type IComponentProvider, type IContentProvider } from '@jointhedots/core:src/components/components
|
|
926
|
-
import { InMemComponentPublisher } from '@jointhedots/core:src/providers/components/InMemComponentProvider
|
|
929
|
+
import { type BundleManifest, type ComponentFilter, type ComponentManifest, type ComponentPublication, type IComponentProvider, type IContentProvider } from '@jointhedots/core:src/components/components';
|
|
930
|
+
import { InMemComponentPublisher } from '@jointhedots/core:src/providers/components/InMemComponentProvider';
|
|
927
931
|
export class StaticComponentProvider implements IComponentProvider {
|
|
928
932
|
readonly content_provider: IContentProvider;
|
|
929
933
|
manifest: BundleManifest;
|
|
@@ -942,7 +946,7 @@ declare module '@jointhedots/core:src/providers/components/StaticComponentProvid
|
|
|
942
946
|
|
|
943
947
|
declare module '@jointhedots/core:src/providers/resources/CommonResourceProvider' {
|
|
944
948
|
import { URI } from '@jointhedots/core:src/components/vscode-uri';
|
|
945
|
-
import { type IContentProvider, type IResourceLoader } from '@jointhedots/core:src/components/components
|
|
949
|
+
import { type IContentProvider, type IResourceLoader } from '@jointhedots/core:src/components/components';
|
|
946
950
|
export class CommonResourceProvider implements IResourceLoader {
|
|
947
951
|
readonly storage: IContentProvider;
|
|
948
952
|
modules_exports: Map<string, any>;
|
|
@@ -956,7 +960,7 @@ declare module '@jointhedots/core:src/providers/resources/CommonResourceProvider
|
|
|
956
960
|
|
|
957
961
|
declare module '@jointhedots/core:src/providers/resources/StaticContentProvider' {
|
|
958
962
|
import { URI } from '@jointhedots/core:src/components/vscode-uri';
|
|
959
|
-
import type { IContentProvider } from '@jointhedots/core:src/components/components
|
|
963
|
+
import type { IContentProvider } from '@jointhedots/core:src/components/components';
|
|
960
964
|
export class StaticContentProvider implements IContentProvider {
|
|
961
965
|
check_url_content(ref: string): Promise<string>;
|
|
962
966
|
load_url_content(ref: string): Promise<Blob>;
|
|
@@ -968,7 +972,7 @@ declare module '@jointhedots/core:src/providers/resources/StaticContentProvider'
|
|
|
968
972
|
}
|
|
969
973
|
|
|
970
974
|
declare module '@jointhedots/core:src/schema/helpers' {
|
|
971
|
-
import { type JSONSchema } from '@jointhedots/core:src/schema/schema
|
|
975
|
+
import { type JSONSchema } from '@jointhedots/core:src/schema/schema';
|
|
972
976
|
export const CommonTypes: {
|
|
973
977
|
boolean: any;
|
|
974
978
|
string: any;
|
|
@@ -1000,10 +1004,10 @@ declare module '@jointhedots/core:src/schema/helpers' {
|
|
|
1000
1004
|
export {};
|
|
1001
1005
|
}
|
|
1002
1006
|
|
|
1003
|
-
declare module '@jointhedots/core:src/schema
|
|
1004
|
-
export * from '@jointhedots/core:src/schema/helpers
|
|
1005
|
-
export * from '@jointhedots/core:src/schema/schema
|
|
1006
|
-
export * from '@jointhedots/core:src/schema/zod
|
|
1007
|
+
declare module '@jointhedots/core:src/schema' {
|
|
1008
|
+
export * from '@jointhedots/core:src/schema/helpers';
|
|
1009
|
+
export * from '@jointhedots/core:src/schema/schema';
|
|
1010
|
+
export * from '@jointhedots/core:src/schema/zod';
|
|
1007
1011
|
}
|
|
1008
1012
|
|
|
1009
1013
|
declare module '@jointhedots/core:src/schema/schema' {
|
|
@@ -1387,7 +1391,7 @@ declare module '@jointhedots/core:src/schema/schema' {
|
|
|
1387
1391
|
|
|
1388
1392
|
declare module '@jointhedots/core:src/schema/zod' {
|
|
1389
1393
|
import { z, type ZodType } from '@jointhedots/core:src/interfaces/react/zod';
|
|
1390
|
-
import { type JSONSchema, type ServiceSchema } from '@jointhedots/core:src/schema/schema
|
|
1394
|
+
import { type JSONSchema, type ServiceSchema } from '@jointhedots/core:src/schema/schema';
|
|
1391
1395
|
export class ZodService<T = unknown> {
|
|
1392
1396
|
readonly $spec: string;
|
|
1393
1397
|
readonly version?: string;
|
|
@@ -1432,7 +1436,7 @@ declare module '@jointhedots/core:src/schema/zod' {
|
|
|
1432
1436
|
export { z };
|
|
1433
1437
|
}
|
|
1434
1438
|
|
|
1435
|
-
declare module '@jointhedots/core:src/services
|
|
1439
|
+
declare module '@jointhedots/core:src/services' {
|
|
1436
1440
|
export * from '@jointhedots/core:src/services/service-definitions';
|
|
1437
1441
|
export * from '@jointhedots/core:src/services/service-points';
|
|
1438
1442
|
export * from '@jointhedots/core:src/services/service-specification';
|
|
@@ -1461,10 +1465,10 @@ declare module '@jointhedots/core:src/services/service-accessor' {
|
|
|
1461
1465
|
}
|
|
1462
1466
|
|
|
1463
1467
|
declare module '@jointhedots/core:src/services/service-definitions' {
|
|
1464
|
-
import type { ServiceSchema } from '@jointhedots/core:src/schema/schema
|
|
1465
|
-
import { ZodService } from '@jointhedots/core:src/schema/zod
|
|
1468
|
+
import type { ServiceSchema } from '@jointhedots/core:src/schema/schema';
|
|
1469
|
+
import { ZodService } from '@jointhedots/core:src/schema/zod';
|
|
1466
1470
|
import type { ZodType } from '@jointhedots/core:src/interfaces/react/zod';
|
|
1467
|
-
import { type ServiceSpecification, type ServiceCompatibility } from '@jointhedots/core:src/services/service-specification
|
|
1471
|
+
import { type ServiceSpecification, type ServiceCompatibility } from '@jointhedots/core:src/services/service-specification';
|
|
1468
1472
|
/**
|
|
1469
1473
|
* ServiceDefinition is a concrete definition linking a specification to implementation.
|
|
1470
1474
|
*
|
|
@@ -1501,9 +1505,9 @@ declare module '@jointhedots/core:src/services/service-definitions' {
|
|
|
1501
1505
|
}
|
|
1502
1506
|
|
|
1503
1507
|
declare module '@jointhedots/core:src/services/service-points' {
|
|
1504
|
-
import { type ComponentID } from '@jointhedots/core:src/components/components
|
|
1505
|
-
import { type ILogDispatcher, type LogObject } from '@jointhedots/core:src/logging
|
|
1506
|
-
import { ServiceAccessor, type ServiceType } from '@jointhedots/core:src/services/service-accessor
|
|
1508
|
+
import { type ComponentID } from '@jointhedots/core:src/components/components';
|
|
1509
|
+
import { type ILogDispatcher, type LogObject } from '@jointhedots/core:src/logging';
|
|
1510
|
+
import { ServiceAccessor, type ServiceType } from '@jointhedots/core:src/services/service-accessor';
|
|
1507
1511
|
export const ServicePoints: Map<string, ServicePoint>;
|
|
1508
1512
|
export type ServicePointID = string;
|
|
1509
1513
|
export type ServicePointProperties = {
|
|
@@ -1544,7 +1548,7 @@ declare module '@jointhedots/core:src/services/service-points' {
|
|
|
1544
1548
|
}
|
|
1545
1549
|
|
|
1546
1550
|
declare module '@jointhedots/core:src/services/service-specification' {
|
|
1547
|
-
import type { JSONSchema } from '@jointhedots/core:src/schema/schema
|
|
1551
|
+
import type { JSONSchema } from '@jointhedots/core:src/schema/schema';
|
|
1548
1552
|
import type { ZodType } from '@jointhedots/core:src/interfaces/react/zod';
|
|
1549
1553
|
/**
|
|
1550
1554
|
* ServiceSpecification defines the metadata and schema for a service interface.
|
|
@@ -1631,7 +1635,7 @@ declare module '@jointhedots/core:src/services/settings' {
|
|
|
1631
1635
|
}
|
|
1632
1636
|
|
|
1633
1637
|
declare module '@jointhedots/core' {
|
|
1634
|
-
export * from '@jointhedots/core:src
|
|
1638
|
+
export * from '@jointhedots/core:src';
|
|
1635
1639
|
}
|
|
1636
1640
|
|
|
1637
1641
|
declare module '@jointhedots/core/commands' {
|
|
@@ -1647,7 +1651,7 @@ declare module '@jointhedots/core/view' {
|
|
|
1647
1651
|
}
|
|
1648
1652
|
|
|
1649
1653
|
declare module '@jointhedots/core/react' {
|
|
1650
|
-
export * from '@jointhedots/core:src/interfaces/react
|
|
1654
|
+
export * from '@jointhedots/core:src/interfaces/react';
|
|
1651
1655
|
}
|
|
1652
1656
|
|
|
1653
1657
|
declare module '@jointhedots/core/rest' {
|