@shelf/global-renderer 0.6.3 → 0.7.0

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/CHANGELOG.md CHANGED
@@ -3,6 +3,24 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [0.7.0](https://github.com/shelfio/libs-frontend/compare/@shelf/global-renderer@0.6.4...@shelf/global-renderer@0.7.0) (2022-10-05)
7
+
8
+ ### Features
9
+
10
+ - REACT-338 localize date ([c61ae8e](https://github.com/shelfio/libs-frontend/commit/c61ae8e8ff879d5fb109fa8becf7e52946c23e44))
11
+ - REACT-338 localize strings ([3d666d3](https://github.com/shelfio/libs-frontend/commit/3d666d3c16ea94f61da07bc74ce2aa88761b3454))
12
+ - REACT-338 render fields ([7f8f9c5](https://github.com/shelfio/libs-frontend/commit/7f8f9c5db577751c7755a7391427305b73ab1af0))
13
+
14
+ ### Bug Fixes
15
+
16
+ - REACT-338 fix tests ([36cef9e](https://github.com/shelfio/libs-frontend/commit/36cef9ee69abf2bf4e952502885a157ee410a2c2))
17
+ - REACT-338 fix types ([f999910](https://github.com/shelfio/libs-frontend/commit/f999910346bda8e4c4a2d5628cc23cfcfedf9a50))
18
+ - REACT-338 wording ([f4caece](https://github.com/shelfio/libs-frontend/commit/f4caece671699daaafeff8c53f417e739c44b4fc))
19
+
20
+ ### [0.6.4](https://github.com/shelfio/libs-frontend/compare/@shelf/global-renderer@0.6.3...@shelf/global-renderer@0.6.4) (2022-10-05)
21
+
22
+ **Note:** Version bump only for package @shelf/global-renderer
23
+
6
24
  ### [0.6.3](https://github.com/shelfio/libs-frontend/compare/@shelf/global-renderer@0.6.2...@shelf/global-renderer@0.6.3) (2022-10-04)
7
25
 
8
26
  **Note:** Version bump only for package @shelf/global-renderer
@@ -1,4 +1,4 @@
1
1
  /// <reference types="react" />
2
2
  import { RenderDTContentData } from './types';
3
- declare const DecisionTreeContent: ({ title, description, tree, exportedBy, exportedAt, createdBy, gemPropertiesText, }: RenderDTContentData) => JSX.Element;
3
+ declare const DecisionTreeContent: ({ title, description, tree, exportedBy, exportedAt, createdBy, fields, language, }: RenderDTContentData) => JSX.Element;
4
4
  export default DecisionTreeContent;
@@ -33,3 +33,6 @@ export declare const ContentListIcon: import("styled-components").StyledComponen
33
33
  export declare const MetaBlock: import("styled-components").StyledComponent<"div", any, {}, never>;
34
34
  export declare const MataInfo: import("styled-components").StyledComponent<"div", any, {}, never>;
35
35
  export declare const CustomFields: import("styled-components").StyledComponent<"div", any, {}, never>;
36
+ export declare const CustomField: import("styled-components").StyledComponent<"div", any, {}, never>;
37
+ export declare const FieldName: import("styled-components").StyledComponent<"div", any, {}, never>;
38
+ export declare const FieldValue: import("styled-components").StyledComponent<"div", any, {}, never>;
@@ -1,7 +1,8 @@
1
1
  /// <reference types="react" />
2
- declare const _default: ({ exportedAt, exportedBy, createdBy, }: {
2
+ declare const _default: ({ exportedAt, exportedBy, createdBy, language, }: {
3
3
  exportedAt: string;
4
4
  exportedBy: string;
5
5
  createdBy: string;
6
+ language: string;
6
7
  }) => JSX.Element;
7
8
  export default _default;
@@ -1,3 +1,4 @@
1
+ import type { L10n } from '@shelf/types';
1
2
  import { DTStep, DTStepFromApi } from './types';
2
3
  export declare const FIRST_STEP_ID = "Step#1";
3
4
  export declare const QUESTION_TYPE = "Question";
@@ -33,16 +34,5 @@ export declare const getTreeWithParentSteps: (tree: Omit<DTStep, 'parentSteps'>[
33
34
  }[] | undefined;
34
35
  }[];
35
36
  export declare const convertStepToRenderFormat: (tree: DTStepFromApi[]) => DTStep[];
36
- export declare const strings: {
37
- question: string;
38
- solution: string;
39
- link: string;
40
- step: string;
41
- start: string;
42
- parentSteps: string;
43
- noLinks: string;
44
- getExportedInfo: (data: string, exportedBy: string) => string;
45
- getCreatedInfo: (createdBy: string) => string;
46
- };
47
- export declare const formatDate: (date: string | Date, dateFormat?: string) => string;
48
- export declare const getDateAndTime: (date: string) => string;
37
+ export declare const formatDate: (date: string | Date, dateFormat: string | undefined, language: L10n.LanguageCode) => string;
38
+ export declare const getDateAndTime: (date: string, language: L10n.LanguageCode) => string;
@@ -5,7 +5,10 @@ export declare const dtData: {
5
5
  language: string;
6
6
  exportedBy: string;
7
7
  createdBy: string;
8
- gemPropertiesText: string;
8
+ fields: {
9
+ name: string;
10
+ value: string;
11
+ }[];
9
12
  tree: ({
10
13
  id: string;
11
14
  title: string;
@@ -10,7 +10,10 @@ export declare type RenderDTContentData = {
10
10
  exportedAt: string;
11
11
  exportedBy: string;
12
12
  createdBy: string;
13
- gemPropertiesText?: string;
13
+ fields?: {
14
+ name: string;
15
+ value: string;
16
+ }[];
14
17
  };
15
18
  declare type StepPointer = {
16
19
  id?: string;
@@ -0,0 +1,3 @@
1
+ declare const i18next: import("i18next").i18n;
2
+ export { i18next };
3
+ export default i18next;