@datapos/datapos-shared 0.3.71 → 0.3.73

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.
@@ -20,15 +20,15 @@ export type { DataFormatId, EncodingConfig, RecordDelimiterId, ValueDelimiterId
20
20
  export type { DataViewConfig, DataViewContentAuditConfig, DataViewLocalisedConfig, DataViewPreviewConfig, DataViewRelationshipsAuditConfig, ParsedValue } from './dataView';
21
21
  export type { DimensionConfig, DimensionLocalisedConfig } from './dimension';
22
22
  export type { ConnectorInterfaceResult, ContextInterfaceResult, Engine, EngineWorker } from './engine';
23
- export { APIError, ApplicationError, EngineError, FetchError, OperationalError, VueError, WindowRuntimeError, WindowPromiseRejectionError } from './errors';
24
23
  export type { SerialisedError } from './errors';
25
24
  export type { EventQueryConfig, EventQueryLocalisedConfig } from './eventQuery';
26
- export type { Presenter, PresenterConfig, PresenterItemConfig, PresenterLocalisedConfig } from './presenter';
25
+ export type { Presenter, PresenterConfig, PresenterItemConfig, PresenterLocalisedConfig, PresenterTools } from './presenter';
27
26
  export type { Recipe, RecipeConfig, RecipeLocalisedConfig } from './recipe';
28
27
  export type { ServiceData } from './service';
29
28
  export type { StateConfig } from './state';
30
29
  export type { Timestamp } from './timestamp';
31
30
  export type { TutorialConfig } from './tutorial';
31
+ export { APIError, ApplicationError, EngineError, FetchError, OperationalError, VueError, WindowRuntimeError, WindowPromiseRejectionError } from './errors';
32
32
  export { buildFetchError, concatenateSerialisedErrorMessages, normalizeToError, serialiseError } from './errors';
33
33
  export { convertMillisecondsToTimestamp, getCurrentTimestamp } from './timestamp';
34
34
  export { convertODataTypeIdToUsageTypeId } from './utilities';
@@ -1,9 +1,14 @@
1
+ import { default as markdownIt } from 'markdown-it';
1
2
  import { ComponentConfig } from './component';
2
3
  export interface Presenter {
3
4
  readonly config: PresenterConfig;
5
+ tools: PresenterTools;
4
6
  list(path: string): PresenterItemConfig[];
5
7
  render(id: string, renderTo: string | HTMLElement): Promise<void>;
6
8
  }
9
+ export type PresenterTools = {
10
+ markdownIt: typeof markdownIt;
11
+ };
7
12
  export interface PresenterConfig extends ComponentConfig {
8
13
  version: string;
9
14
  }
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@datapos/datapos-shared",
3
3
  "license": "MIT",
4
4
  "private": false,
5
- "version": "0.3.71",
5
+ "version": "0.3.73",
6
6
  "type": "module",
7
7
  "files": [
8
8
  "dist"
@@ -17,6 +17,7 @@
17
17
  "types": "./dist/types/src/index.d.ts",
18
18
  "devDependencies": {
19
19
  "@datapos/datapos-development": "^0.3.29",
20
+ "@types/markdown-it": "^14.1.2",
20
21
  "@types/node": "^24.9.2",
21
22
  "@typescript-eslint/eslint-plugin": "^8.46.2",
22
23
  "@typescript-eslint/parser": "^8.46.2",
@@ -27,6 +28,7 @@
27
28
  "jiti": "^2.6.1",
28
29
  "license-report": "^6.8.1",
29
30
  "license-report-check": "^0.1.2",
31
+ "markdown-it": "^14.1.0",
30
32
  "nanoid": "^5.1.6",
31
33
  "npm-check-updates": "^19.1.2",
32
34
  "prettier": "^3.6.2",