@ghentcdh/annotation-api 0.0.1-alpha.24 → 0.0.1-alpha.26

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/index.cjs CHANGED
@@ -198,19 +198,19 @@ var createAnnotationStyleBodyUnsafe = (annotationConfig, style) => {
198
198
  //#region src/lib/utils/annotation.context-builder.ts
199
199
  var ANNOTATION_DEF_CONFIG_TOKEN = Symbol("ANNOTATION_DEF_CONFIG_TOKEN");
200
200
  //#endregion
201
- //#region \0@oxc-project+runtime@0.152.0/helpers/esm/decorateMetadata.js
201
+ //#region \0@oxc-project+runtime@0.154.0/helpers/esm/decorateMetadata.js
202
202
  function __decorateMetadata(k, v) {
203
203
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
204
204
  }
205
205
  //#endregion
206
- //#region \0@oxc-project+runtime@0.152.0/helpers/esm/decorateParam.js
206
+ //#region \0@oxc-project+runtime@0.154.0/helpers/esm/decorateParam.js
207
207
  function __decorateParam(paramIndex, decorator) {
208
208
  return function(target, key) {
209
209
  decorator(target, key, paramIndex);
210
210
  };
211
211
  }
212
212
  //#endregion
213
- //#region \0@oxc-project+runtime@0.152.0/helpers/esm/decorate.js
213
+ //#region \0@oxc-project+runtime@0.154.0/helpers/esm/decorate.js
214
214
  function __decorate(decorators, target, key, desc) {
215
215
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
216
216
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
@@ -230,7 +230,7 @@ var AnnotationContextService = class AnnotationContextService {
230
230
  }
231
231
  async reloadAll() {
232
232
  this.contextConfigMap.clear();
233
- this.configRegistry.findAll().forEach((resource) => {
233
+ (await this.configRegistry.getAll()).forEach((resource) => {
234
234
  const context = createAnnotationContext(this.annotationDefConfig, resource);
235
235
  this.contextConfigMap.set(resource.id, context);
236
236
  this.prefixMap.set(context.prefix, resource.id);
package/index.js CHANGED
@@ -197,19 +197,19 @@ var createAnnotationStyleBodyUnsafe = (annotationConfig, style) => {
197
197
  //#region src/lib/utils/annotation.context-builder.ts
198
198
  var ANNOTATION_DEF_CONFIG_TOKEN = Symbol("ANNOTATION_DEF_CONFIG_TOKEN");
199
199
  //#endregion
200
- //#region \0@oxc-project+runtime@0.152.0/helpers/esm/decorateMetadata.js
200
+ //#region \0@oxc-project+runtime@0.154.0/helpers/esm/decorateMetadata.js
201
201
  function __decorateMetadata(k, v) {
202
202
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
203
203
  }
204
204
  //#endregion
205
- //#region \0@oxc-project+runtime@0.152.0/helpers/esm/decorateParam.js
205
+ //#region \0@oxc-project+runtime@0.154.0/helpers/esm/decorateParam.js
206
206
  function __decorateParam(paramIndex, decorator) {
207
207
  return function(target, key) {
208
208
  decorator(target, key, paramIndex);
209
209
  };
210
210
  }
211
211
  //#endregion
212
- //#region \0@oxc-project+runtime@0.152.0/helpers/esm/decorate.js
212
+ //#region \0@oxc-project+runtime@0.154.0/helpers/esm/decorate.js
213
213
  function __decorate(decorators, target, key, desc) {
214
214
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
215
215
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
@@ -229,7 +229,7 @@ var AnnotationContextService = class AnnotationContextService {
229
229
  }
230
230
  async reloadAll() {
231
231
  this.contextConfigMap.clear();
232
- this.configRegistry.findAll().forEach((resource) => {
232
+ (await this.configRegistry.getAll()).forEach((resource) => {
233
233
  const context = createAnnotationContext(this.annotationDefConfig, resource);
234
234
  this.contextConfigMap.set(resource.id, context);
235
235
  this.prefixMap.set(context.prefix, resource.id);
@@ -1,14 +1,13 @@
1
- import { AnnotationJsonResource } from '@ghentcdh/annotation-core';
2
1
  import { ResourceConfigRegistry } from '@ghentcdh/crouton-api';
3
2
  import { AnnotationContextService } from './context/annotation-context.service';
4
3
  export declare class AnnotationNamespaceController {
5
4
  private readonly service;
6
5
  private readonly annotationContextService;
7
- constructor(service: ResourceConfigRegistry<AnnotationJsonResource>, annotationContextService: AnnotationContextService);
6
+ constructor(service: ResourceConfigRegistry<any>, annotationContextService: AnnotationContextService);
8
7
  listNames(): Promise<{
9
8
  annotations: {
10
- id: string;
11
- name: string;
9
+ id: any;
10
+ name: any;
12
11
  schemas: string;
13
12
  jsonld: string;
14
13
  }[];
@@ -1,11 +1,11 @@
1
- import { AnnotationContext, AnnotationDefConfig, AnnotationResource } from '@ghentcdh/annotation-core';
1
+ import { AnnotationContext, AnnotationDefConfig } from '@ghentcdh/annotation-core';
2
2
  import { ResourceConfigRegistry } from '@ghentcdh/crouton-api';
3
3
  export declare class AnnotationContextService {
4
4
  private readonly configRegistry;
5
5
  private readonly annotationDefConfig;
6
6
  private readonly contextConfigMap;
7
7
  private readonly prefixMap;
8
- constructor(configRegistry: ResourceConfigRegistry<AnnotationResource>, annotationDefConfig: AnnotationDefConfig);
8
+ constructor(configRegistry: ResourceConfigRegistry<any>, annotationDefConfig: AnnotationDefConfig);
9
9
  reloadAll(): Promise<void>;
10
10
  findById(annotationId: string): Promise<AnnotationContext | null>;
11
11
  getResourceIdFromUri: (uri: string) => string | null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ghentcdh/annotation-api",
3
- "version": "0.0.1-alpha.24",
3
+ "version": "0.0.1-alpha.26",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/GhentCDH/annotation-editor"
@@ -13,6 +13,6 @@
13
13
  "@nestjs/common": "^12.0.0"
14
14
  },
15
15
  "dependencies": {
16
- "@ghentcdh/crouton-api": "0.0.1-alpha.71"
16
+ "@ghentcdh/crouton-api": "0.0.1-alpha.88"
17
17
  }
18
18
  }