jamespot-react-components 1.0.249 → 1.0.251

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.
@@ -1,7 +1,7 @@
1
1
  import * as React from 'react';
2
- import { JRCInputFieldProps } from '../Common/JRCFormFieldRenderer.types';
3
- import { DataCy } from '../../../../types/dataAttributes';
4
2
  import { FieldValues } from 'react-hook-form';
3
+ import { DataCy } from '../../../../types/dataAttributes';
4
+ import { JRCInputFieldProps } from '../Common/JRCFormFieldRenderer.types';
5
5
  export type JRCInputTextProps = DataCy & Omit<React.ComponentPropsWithoutRef<'input'>, 'type'> & {
6
6
  width?: string;
7
7
  };
@@ -16,7 +16,7 @@ export declare const RenderPasswordInput: React.ForwardRefExoticComponent<DataCy
16
16
  * @returns JSX.Element
17
17
  */
18
18
  export declare function JRCInputPassword<T extends FieldValues = FieldValues>(props: JRCInputFieldProps<T> & {
19
- autocomplete?: AutoCompletePassword;
19
+ autoComplete?: AutoCompletePassword;
20
20
  width?: string;
21
21
  disabled?: boolean;
22
22
  }): React.JSX.Element;
@@ -4,9 +4,13 @@ import { DataCy } from '../../../../types/dataAttributes';
4
4
  import { JRCInputFieldProps } from '../Common/JRCFormFieldRenderer.types';
5
5
  export type JRCInputTextProps = DataCy & React.ComponentPropsWithoutRef<'input'> & {
6
6
  width?: string;
7
+ autocomplete?: 'on' | 'off';
8
+ inputmode?: 'text' | 'numeric';
7
9
  };
8
10
  export declare const RenderInput: React.ForwardRefExoticComponent<DataCy & Omit<React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref"> & {
9
11
  width?: string | undefined;
12
+ autocomplete?: "on" | "off" | undefined;
13
+ inputmode?: "text" | "numeric" | undefined;
10
14
  } & React.RefAttributes<HTMLInputElement>>;
11
15
  /**
12
16
  * Component used as a <input type="text"/>
@@ -17,6 +21,8 @@ export declare const RenderInput: React.ForwardRefExoticComponent<DataCy & Omit<
17
21
  export declare function JRCInputText<T extends FieldValues = FieldValues>(props: JRCInputFieldProps<T> & {
18
22
  width?: string;
19
23
  disabled?: boolean;
24
+ autoComplete?: 'on' | 'off';
25
+ inputmode?: 'text' | 'numeric';
20
26
  }): React.JSX.Element;
21
27
  export type JRCInputNumberProps = DataCy & React.ComponentPropsWithoutRef<'input'> & {
22
28
  width?: string;
@@ -35,5 +35,6 @@ export type JRCListProps<T extends Record<string, unknown>> = {
35
35
  };
36
36
  className?: string;
37
37
  loading?: boolean;
38
+ dataCy?: string;
38
39
  };
39
40
  export declare const JRCList: <T extends Record<string, unknown>>(props: JRCListProps<T>) => React.JSX.Element;
@@ -35,8 +35,8 @@ export declare const Primary: Story<{
35
35
  name: import("jamespot-user-api").WidgetsName.ExcelDatasourceTable;
36
36
  uniqid: string;
37
37
  content: {
38
- limit?: number | boolean | undefined;
39
38
  uri?: string | undefined;
39
+ limit?: number | boolean | undefined;
40
40
  tableColumnsData?: {
41
41
  name?: string | undefined;
42
42
  label?: string | undefined;
@@ -82,10 +82,10 @@ export declare const Primary: Story<{
82
82
  url?: string | undefined;
83
83
  }>)>[] | undefined;
84
84
  } & (import("jamespot-user-api").WidgetArticleAttachmentContent | import("jamespot-user-api").WidgetArticleGalleryContent | import("jamespot-user-api").WidgetArticleImageContent | WidgetArticleTextContent | import("jamespot-user-api").WidgetArticleTitleContent | import("jamespot-user-api").WidgetArticleSliderContent | {
85
- target?: string | undefined;
86
85
  text?: string | undefined;
87
86
  color?: string | undefined;
88
87
  url?: string | undefined;
88
+ target?: string | undefined;
89
89
  variant?: "contained" | "outlined" | undefined;
90
90
  backgroundColor?: string | undefined;
91
91
  borderRadius?: string | undefined;
@@ -93,8 +93,8 @@ export declare const Primary: Story<{
93
93
  buttonSize?: "md" | "sm" | "lg" | undefined;
94
94
  openingType?: "link" | "anchor" | "popup" | undefined;
95
95
  openingTypeLink?: {
96
- target: string;
97
96
  url: string;
97
+ target: string;
98
98
  } | undefined;
99
99
  openingTypeAnchor?: {
100
100
  uniqid: string;
@@ -109,8 +109,8 @@ export declare const Primary: Story<{
109
109
  css?: Record<string, string> | undefined;
110
110
  edit?: boolean | undefined;
111
111
  } | {
112
- limit?: number | boolean | undefined;
113
112
  uri?: string | undefined;
113
+ limit?: number | boolean | undefined;
114
114
  tableColumnsData?: {
115
115
  name?: string | undefined;
116
116
  label?: string | undefined;
@@ -128,8 +128,8 @@ export declare const Primary: Story<{
128
128
  tableSizedColumns?: boolean | undefined;
129
129
  tableSizedColumnsWidth?: number | undefined;
130
130
  } | {
131
- limit?: number | boolean | undefined;
132
131
  uri?: string | undefined;
132
+ limit?: number | boolean | undefined;
133
133
  tableColumnsData?: {
134
134
  name?: string | undefined;
135
135
  label?: string | undefined;
@@ -13,8 +13,8 @@ export type WidgetDatasourceContext = EditorBaseContext<WidgetDatasourceTableCon
13
13
  handlers: WidgetDatasourceHandlers;
14
14
  };
15
15
  export declare const JRCWidgetDatasourceTableEditor: ({ uri, limit, tableHeadColor, tableHeadTextColor, tableHeadIconColor, tableRowColor, tableRowTextColor, tableColumnsData, tableBorderRadius, tableSizedColumns, tableSizedColumnsWidth, hook, handlers, onChange, onSave, onStateChange, onError, }: {
16
- limit?: number | boolean | undefined;
17
16
  uri?: string | undefined;
17
+ limit?: number | boolean | undefined;
18
18
  tableColumnsData?: {
19
19
  name?: string | undefined;
20
20
  label?: string | undefined;
@@ -38,8 +38,8 @@ export declare const JRCWidgetDatasourceTableEditor: ({ uri, limit, tableHeadCol
38
38
  isActive: HookIsActive;
39
39
  };
40
40
  } & WidgetEditorActions<{
41
- limit?: number | boolean | undefined;
42
41
  uri?: string | undefined;
42
+ limit?: number | boolean | undefined;
43
43
  tableColumnsData?: {
44
44
  name?: string | undefined;
45
45
  label?: string | undefined;
@@ -13,8 +13,8 @@ export type WidgetExcelDatasourceContext = EditorBaseContext<WidgetExcelDatasour
13
13
  handlers: WidgetExcelDatasourceHandlers;
14
14
  };
15
15
  export declare const JRCWidgetExcelDatasourceTableEditor: ({ uri, limit, tableHeadColor, tableHeadTextColor, tableHeadIconColor, tableRowColor, tableRowTextColor, tableColumnsData, tableSizedColumns, tableSizedColumnsWidth, tableBorderRadius, hook, handlers, onChange, onSave, onStateChange, onError, }: {
16
- limit?: number | boolean | undefined;
17
16
  uri?: string | undefined;
17
+ limit?: number | boolean | undefined;
18
18
  tableColumnsData?: {
19
19
  name?: string | undefined;
20
20
  label?: string | undefined;
@@ -38,8 +38,8 @@ export declare const JRCWidgetExcelDatasourceTableEditor: ({ uri, limit, tableHe
38
38
  isActive: HookIsActive;
39
39
  };
40
40
  } & WidgetEditorActions<{
41
- limit?: number | boolean | undefined;
42
41
  uri?: string | undefined;
42
+ limit?: number | boolean | undefined;
43
43
  tableColumnsData?: {
44
44
  name?: string | undefined;
45
45
  label?: string | undefined;
@@ -29,8 +29,8 @@ export declare const useEditorContext: <T = EditorBaseContext<{
29
29
  name: import("jamespot-user-api").WidgetsName.ExcelDatasourceTable;
30
30
  uniqid: string;
31
31
  content: {
32
- limit?: number | boolean | undefined;
33
32
  uri?: string | undefined;
33
+ limit?: number | boolean | undefined;
34
34
  tableColumnsData?: {
35
35
  name?: string | undefined;
36
36
  label?: string | undefined;
@@ -76,10 +76,10 @@ export declare const useEditorContext: <T = EditorBaseContext<{
76
76
  url?: string | undefined;
77
77
  }>)>[] | undefined;
78
78
  } & (import("jamespot-user-api").WidgetArticleAttachmentContent | import("jamespot-user-api").WidgetArticleGalleryContent | import("jamespot-user-api").WidgetArticleImageContent | import("jamespot-user-api").WidgetArticleTextContent | import("jamespot-user-api").WidgetArticleTitleContent | {
79
- target?: string | undefined;
80
79
  text?: string | undefined;
81
80
  color?: string | undefined;
82
81
  url?: string | undefined;
82
+ target?: string | undefined;
83
83
  variant?: "contained" | "outlined" | undefined;
84
84
  backgroundColor?: string | undefined;
85
85
  borderRadius?: string | undefined;
@@ -87,8 +87,8 @@ export declare const useEditorContext: <T = EditorBaseContext<{
87
87
  buttonSize?: "md" | "sm" | "lg" | undefined;
88
88
  openingType?: "link" | "anchor" | "popup" | undefined;
89
89
  openingTypeLink?: {
90
- target: string;
91
90
  url: string;
91
+ target: string;
92
92
  } | undefined;
93
93
  openingTypeAnchor?: {
94
94
  uniqid: string;
@@ -103,8 +103,8 @@ export declare const useEditorContext: <T = EditorBaseContext<{
103
103
  css?: Record<string, string> | undefined;
104
104
  edit?: boolean | undefined;
105
105
  } | {
106
- limit?: number | boolean | undefined;
107
106
  uri?: string | undefined;
107
+ limit?: number | boolean | undefined;
108
108
  tableColumnsData?: {
109
109
  name?: string | undefined;
110
110
  label?: string | undefined;
@@ -122,8 +122,8 @@ export declare const useEditorContext: <T = EditorBaseContext<{
122
122
  tableSizedColumns?: boolean | undefined;
123
123
  tableSizedColumnsWidth?: number | undefined;
124
124
  } | {
125
- limit?: number | boolean | undefined;
126
125
  uri?: string | undefined;
126
+ limit?: number | boolean | undefined;
127
127
  tableColumnsData?: {
128
128
  name?: string | undefined;
129
129
  label?: string | undefined;
@@ -42,8 +42,8 @@ export declare const Utils: {
42
42
  plugins: string[];
43
43
  text_patterns: {
44
44
  start: string;
45
- end?: string | undefined;
46
45
  format?: string | undefined;
46
+ end?: string | undefined;
47
47
  cmd?: string | undefined;
48
48
  }[];
49
49
  menubar: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jamespot-react-components",
3
- "version": "1.0.249",
3
+ "version": "1.0.251",
4
4
  "description": "",
5
5
  "main": "./build/jamespot-react-components.js",
6
6
  "types": "./build/src/index.d.ts",
@@ -80,7 +80,7 @@
80
80
  "chroma-js": "^2.1.1",
81
81
  "classnames": "^2.3.1",
82
82
  "dompurify": "^3.0.5",
83
- "jamespot-user-api": "^1.0.223",
83
+ "jamespot-user-api": "^1.0.224",
84
84
  "moment": "2.29.4",
85
85
  "react": "^17.x",
86
86
  "react-beautiful-dnd": "^13.1.1",