@datapos/datapos-shared 0.3.158 → 0.3.162

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 CHANGED
@@ -84,18 +84,18 @@ Each module implements a set of components. All module component types extend th
84
84
 
85
85
  #### Informer Module Components
86
86
 
87
- | Item | Notes |
88
- | ------------------------------------------- | --------------------------------------------------------------------- |
89
- | [Presenter Types](./src/presenter.ts) | Presenter types. The Presenter type extends the Component type. |
90
- | [Presentation Types](./src/presentation.ts) | Presentation types. The Presentation type extends the Component type. |
91
-
92
- #### Presenter Module Components
93
-
94
87
  | Item | Notes |
95
88
  | ----------------------------------- | ------------------------------------------------------------- |
96
89
  | [Informer Types](./src/informer.ts) | Informer types. The Informer type extends the Component type. |
97
90
  | [Recipe Types](./src/recipe.ts) | Recipe types. The Recipe type extends the Component type. |
98
91
 
92
+ #### Presenter Module Components
93
+
94
+ | Item | Notes |
95
+ | ------------------------------------------- | --------------------------------------------------------------------- |
96
+ | [Presenter Types](./src/presenter.ts) | Presenter types. The Presenter type extends the Component type. |
97
+ | [Presentation Types](./src/presentation.ts) | Presentation types. The Presentation type extends the Component type. |
98
+
99
99
  ### Composables
100
100
 
101
101
  ### Constants
@@ -1,4 +1,4 @@
1
- import { PreviewColumn } from '../../Z_PreviewColumn';
1
+ import { PreviewColumn } from './OLD_PreviewColumn';
2
2
  export type ParsedValue = {
3
3
  isValid: boolean;
4
4
  value: bigint | boolean | number | string | null;
@@ -15,7 +15,6 @@ export interface ComponentConfig {
15
15
  statusId: ComponentStatusId;
16
16
  typeId: ComponentTypeId;
17
17
  }
18
- export type ComponentTypeId = 'connector' | 'connectorConnection' | 'context' | 'contextModelGroup' | 'contextModel' | 'contextModelDimensionGroup' | 'contextModelDimension' | 'contextModelDimensionHierarchy' | 'contextModelEntityGroup' | 'contextModelEntity' | 'contextModelEntityDataItem' | 'contextModelEntityEvent' | 'contextModelEntityPrimaryMeasure' | 'contextModelSecondaryMeasureGroup' | 'contextModelSecondaryMeasure' | 'dataView' | 'dimension' | 'eventQuery' | 'presenter' | 'presenterPresentation' | 'informer' | 'informerDocument';
19
18
  export type ComponentRef = {
20
19
  id: string;
21
20
  label: Partial<LocalisedString>;
@@ -30,3 +29,4 @@ export type ComponentStatus = {
30
29
  };
31
30
  export type ComponentStatusId = 'alpha' | 'beta' | 'generalAvailability' | 'notApplicable' | 'preAlpha' | 'proposed' | 'releaseCandidate' | 'unavailable' | 'underReview';
32
31
  export declare const getComponentStatus: (id: string, localeId?: LocaleCode) => ComponentStatus;
32
+ export type ComponentTypeId = 'connector' | 'connectorConnection' | 'context' | 'contextModelGroup' | 'contextModel' | 'contextModelDimensionGroup' | 'contextModelDimension' | 'contextModelDimensionHierarchy' | 'contextModelEntityGroup' | 'contextModelEntity' | 'contextModelEntityDataItem' | 'contextModelEntityEvent' | 'contextModelEntityPrimaryMeasure' | 'contextModelSecondaryMeasureGroup' | 'contextModelSecondaryMeasure' | 'dataView' | 'dimension' | 'eventQuery' | 'presenter' | 'presenterPresentation' | 'informer' | 'informerDocument';
@@ -1,4 +1,6 @@
1
- import { default as markdownIt } from 'markdown-it';
1
+ import { default as MarkdownIt } from 'markdown-it';
2
+ import { micromark } from 'micromark';
3
+ import { default as prism } from 'prismjs';
2
4
  import { Module } from '../../module';
3
5
  import { Component, ComponentConfig, ComponentRef } from '..';
4
6
  export interface Presenter extends Module, Component {
@@ -16,5 +18,7 @@ export type PresenterLocalisedConfig = Omit<PresenterConfig, 'label' | 'descript
16
18
  description: string;
17
19
  };
18
20
  export type PresenterTools = {
19
- markdownIt: typeof markdownIt;
21
+ MarkdownIt: typeof MarkdownIt;
22
+ micromark: typeof micromark;
23
+ prism: typeof prism;
20
24
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@datapos/datapos-shared",
3
- "version": "0.3.158",
3
+ "version": "0.3.162",
4
4
  "description": "A TypeScript library containing common declarations and utilities used across other Data Positioning repositories.",
5
5
  "license": "MIT",
6
6
  "private": false,
@@ -24,29 +24,34 @@
24
24
  "files": [
25
25
  "dist"
26
26
  ],
27
+ "peerDependencies": {
28
+ "csv-parse": "^6.1.0",
29
+ "date-fns": "^4.1.0",
30
+ "highcharts": "^12.4.0",
31
+ "markdown-it": "^14.1.0",
32
+ "prismjs": "^1.30.0",
33
+ "zod": "^4.1.12"
34
+ },
27
35
  "devDependencies": {
28
36
  "@datapos/datapos-development": "^0.3.64",
29
37
  "@types/markdown-it": "^14.1.2",
30
38
  "@types/node": "^24.10.0",
39
+ "@types/prismjs": "^1.26.5",
31
40
  "@typescript-eslint/eslint-plugin": "^8.46.3",
32
41
  "@typescript-eslint/parser": "^8.46.3",
33
- "csv-parse": "^6.1.0",
34
- "date-fns": "^4.1.0",
35
42
  "eslint": "^9.39.1",
36
43
  "eslint-plugin-import": "^2.32.0",
37
- "highcharts": "^12.4.0",
38
44
  "jiti": "^2.6.1",
39
45
  "license-report": "^6.8.1",
40
46
  "license-report-check": "^0.1.2",
41
- "markdown-it": "^14.1.0",
47
+ "micromark": "^4.0.2",
42
48
  "nanoid": "^5.1.6",
43
49
  "npm-check-updates": "^19.1.2",
44
50
  "prettier": "^3.6.2",
45
51
  "retire": "^5.3.0",
46
52
  "typescript": "^5.9.3",
47
53
  "vite": "^7.2.2",
48
- "vite-plugin-dts": "^4.5.4",
49
- "zod": "^4.1.12"
54
+ "vite-plugin-dts": "^4.5.4"
50
55
  },
51
56
  "scripts": {
52
57
  "audit": "npm audit",
@@ -59,7 +64,7 @@
59
64
  "publish:toNPM": "npm publish --access public",
60
65
  "release": "npm run sync:withGitHub && npm run build && npm run publish:toNPM",
61
66
  "sync:withGitHub": "npm run bump:version && node -e \"import('@datapos/datapos-development').then(m => m.syncWithGitHub())\"",
62
- "test": "echo \"***** TEST SCRIPT NOT IMPLEMENTED. *****\"",
67
+ "test": "node -e \"import('@datapos/datapos-development').then(m => m.echoScriptNotImplemented('Test'))\"",
63
68
  "update:dataPosDeps": "npm run _update:developDeps",
64
69
  "_document:licenceReport": "license-report --only=prod,peer > LICENSES.json",
65
70
  "_document:licenceCheck": "license-report-check --source ./LICENSES.json --allowed 'MIT' --allowed 'n/a' --allowed 'Apache-2.0' --output=table",