jamespot-react-components 1.2.60 → 1.2.61
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/build/jamespot-react-components.js +1 -1
- package/build/jamespot-react-components.js.map +1 -1
- package/build/src/components/Form/Input/JRCInputFile/utils/file.api.d.ts +1 -13
- package/build/src/components/Form/Input/JRCSelect/JRCInputSelect.style.d.ts +1 -1
- package/build/src/components/Widgets/JRCWidgetArticleText/JRCWidgetArticleText.stories.d.ts +2 -200
- package/build/src/components/Widgets/JRCWidgetTable/utils.d.ts +1 -17
- package/package.json +2 -2
|
@@ -1,16 +1,4 @@
|
|
|
1
1
|
export declare function fileSend(file: File, token: string | undefined, name: string): Promise<{
|
|
2
|
-
result:
|
|
3
|
-
id: number;
|
|
4
|
-
type: string;
|
|
5
|
-
uri: string;
|
|
6
|
-
mainType: string;
|
|
7
|
-
dateCreation: string;
|
|
8
|
-
dateModified: string | null;
|
|
9
|
-
title: string;
|
|
10
|
-
_url: string;
|
|
11
|
-
size: number;
|
|
12
|
-
mimetype: string;
|
|
13
|
-
path?: string | undefined;
|
|
14
|
-
};
|
|
2
|
+
result: import("jamespot-user-api").jFileLittle;
|
|
15
3
|
token: string;
|
|
16
4
|
}>;
|
|
@@ -286,7 +286,7 @@ export declare const OptionMenu: import("styled-components").StyledComponent<"di
|
|
|
286
286
|
} & {
|
|
287
287
|
sizeVariant?: "s" | "md";
|
|
288
288
|
minWidth?: string | false;
|
|
289
|
-
}, "key" | "ref" | "color" | "
|
|
289
|
+
}, "key" | "ref" | "color" | "theme" | "slot" | "style" | "title" | "suppressHydrationWarning" | "className" | "id" | "lang" | "role" | "tabIndex" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-description" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowindextext" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerLeave" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "accessKey" | "autoCapitalize" | "autoFocus" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "enterKeyHint" | "hidden" | "nonce" | "spellCheck" | "translate" | "radioGroup" | "about" | "content" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "exportparts" | "part">;
|
|
290
290
|
export declare const SelectedOptionWrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
291
291
|
export declare const SelectedOption: import("styled-components").StyledComponent<"button", import("styled-components").DefaultTheme, {
|
|
292
292
|
type: "button";
|
|
@@ -1,205 +1,7 @@
|
|
|
1
1
|
import { Meta } from '@storybook/react-webpack5';
|
|
2
|
-
import { WidgetArticleTextContent } from 'jamespot-user-api';
|
|
2
|
+
import { WidgetArticleTextContent, WidgetDefaultProps } from 'jamespot-user-api';
|
|
3
3
|
declare const _default: Meta;
|
|
4
4
|
export default _default;
|
|
5
|
-
export declare const Primary: import("storybook/internal/csf").AnnotatedStoryFn<import("@storybook/react-webpack5").ReactRenderer, {
|
|
6
|
-
mode: "edit" | "view" | "preview";
|
|
7
|
-
inplace: boolean;
|
|
8
|
-
onChange: (args_0: {
|
|
9
|
-
widgets?: import("jamespot-user-api").WidgetWrapperGeneric<({
|
|
10
|
-
layers?: string[] | undefined;
|
|
11
|
-
} & import("jamespot-user-api").WidgetArticleAttachmentType) | ({
|
|
12
|
-
layers?: string[] | undefined;
|
|
13
|
-
} & import("jamespot-user-api").WidgetArticleButtonType) | ({
|
|
14
|
-
layers?: string[] | undefined;
|
|
15
|
-
} & import("jamespot-user-api").WidgetArticleGalleryType) | ({
|
|
16
|
-
layers?: string[] | undefined;
|
|
17
|
-
} & import("jamespot-user-api").WidgetArticleImageType) | ({
|
|
18
|
-
layers?: string[] | undefined;
|
|
19
|
-
} & import("jamespot-user-api").WidgetArticleTitleType) | ({
|
|
20
|
-
layers?: string[] | undefined;
|
|
21
|
-
} & import("jamespot-user-api").WidgetArticleTextType) | ({
|
|
22
|
-
layers?: string[] | undefined;
|
|
23
|
-
} & import("jamespot-user-api").WidgetArticleSliderType) | ({
|
|
24
|
-
layers?: string[] | undefined;
|
|
25
|
-
} & import("jamespot-user-api").WidgetType<{
|
|
26
|
-
widgets?: import("jamespot-user-api").WidgetBaseType[] | undefined;
|
|
27
|
-
arr?: import("jamespot-user-api").WidgetCheckListContentArr[] | undefined;
|
|
28
|
-
css?: Record<string, string | number> | undefined;
|
|
29
|
-
edit?: boolean | undefined;
|
|
30
|
-
}>) | ({
|
|
31
|
-
layers?: string[] | undefined;
|
|
32
|
-
} & import("jamespot-user-api").WidgetDatasourceTableType) | ({
|
|
33
|
-
layers?: string[] | undefined;
|
|
34
|
-
} & {
|
|
35
|
-
name: import("jamespot-user-api").WidgetsName.ExcelDatasourceTable;
|
|
36
|
-
uniqid: string;
|
|
37
|
-
content: {
|
|
38
|
-
limit?: number | boolean | undefined;
|
|
39
|
-
uri?: string | undefined;
|
|
40
|
-
tableColumnsData?: {
|
|
41
|
-
name?: string | undefined;
|
|
42
|
-
label?: string | undefined;
|
|
43
|
-
isVisible?: boolean | undefined;
|
|
44
|
-
textEllipsis?: boolean | undefined;
|
|
45
|
-
dateFormat?: "date" | "date-time" | "date-time-sec" | "time" | "time-sec" | undefined;
|
|
46
|
-
numberFormat?: "fr-FR" | "en-EN" | "filesize" | undefined;
|
|
47
|
-
}[] | undefined;
|
|
48
|
-
tableHeadColor?: string | undefined;
|
|
49
|
-
tableHeadTextColor?: string | undefined;
|
|
50
|
-
tableHeadIconColor?: string | undefined;
|
|
51
|
-
tableRowColor?: string | undefined;
|
|
52
|
-
tableRowTextColor?: string | undefined;
|
|
53
|
-
tableBorderRadius?: number | undefined;
|
|
54
|
-
tableSizedColumns?: boolean | undefined;
|
|
55
|
-
tableSizedColumnsWidth?: number | undefined;
|
|
56
|
-
};
|
|
57
|
-
}) | ({
|
|
58
|
-
layers?: string[] | undefined;
|
|
59
|
-
} & import("jamespot-user-api").WidgetPresenceType) | ({
|
|
60
|
-
layers?: string[] | undefined;
|
|
61
|
-
} & import("jamespot-user-api").WidgetQuickSurveyType) | ({
|
|
62
|
-
layers?: string[] | undefined;
|
|
63
|
-
} & import("jamespot-user-api").WidgetType<{
|
|
64
|
-
calEventsLimit?: boolean | undefined;
|
|
65
|
-
calEventsLimitValue?: number | undefined;
|
|
66
|
-
calEventsPromptStatus?: string | undefined;
|
|
67
|
-
}>) | ({
|
|
68
|
-
layers?: string[] | undefined;
|
|
69
|
-
} & import("jamespot-user-api").WidgetType<{
|
|
70
|
-
contactLimit?: boolean | undefined;
|
|
71
|
-
contactLimitValue?: number | undefined;
|
|
72
|
-
contactPromptStatus?: string | undefined;
|
|
73
|
-
}>) | ({
|
|
74
|
-
layers?: string[] | undefined;
|
|
75
|
-
} & import("jamespot-user-api").WidgetType<{
|
|
76
|
-
emailsLimit?: boolean | undefined;
|
|
77
|
-
emailsLimitValue?: number | undefined;
|
|
78
|
-
emailsPromptStatus?: string | undefined;
|
|
79
|
-
}>) | ({
|
|
80
|
-
layers?: string[] | undefined;
|
|
81
|
-
} & import("jamespot-user-api").WidgetType<{
|
|
82
|
-
url?: string | undefined;
|
|
83
|
-
}>) | ({
|
|
84
|
-
layers?: string[] | undefined;
|
|
85
|
-
} & import("jamespot-user-api").WidgetType<{
|
|
86
|
-
css?: Record<string, string | number> | undefined;
|
|
87
|
-
buttonName?: string | undefined;
|
|
88
|
-
pictureSize?: string | undefined;
|
|
89
|
-
}>)>[] | undefined;
|
|
90
|
-
} & (import("jamespot-user-api").WidgetArticleAttachmentContent | {
|
|
91
|
-
text?: string | undefined;
|
|
92
|
-
color?: string | undefined;
|
|
93
|
-
url?: string | undefined;
|
|
94
|
-
target?: string | undefined;
|
|
95
|
-
variant?: import("jamespot-user-api").VariantType | undefined;
|
|
96
|
-
backgroundColor?: string | undefined;
|
|
97
|
-
borderRadius?: string | undefined;
|
|
98
|
-
fontSize?: string | undefined;
|
|
99
|
-
buttonSize?: import("jamespot-user-api").VariantSizeType | undefined;
|
|
100
|
-
openingType?: "link" | "anchor" | "popup" | undefined;
|
|
101
|
-
openingTypeLink?: {
|
|
102
|
-
url: string;
|
|
103
|
-
target: string;
|
|
104
|
-
} | undefined;
|
|
105
|
-
openingTypeAnchor?: {
|
|
106
|
-
uniqid: string;
|
|
107
|
-
} | undefined;
|
|
108
|
-
openingTypePopup?: {
|
|
109
|
-
title: string;
|
|
110
|
-
widgets: import("jamespot-user-api").WidgetBaseType[];
|
|
111
|
-
} | undefined;
|
|
112
|
-
} | import("jamespot-user-api").WidgetArticleGalleryContent | import("jamespot-user-api").WidgetArticleImageContent | import("jamespot-user-api").WidgetArticleSliderContent | import("jamespot-user-api/lib/src/types/widgets/widgetArticleText").WidgetArticleTextContent | import("jamespot-user-api").WidgetArticleTitleContent | {
|
|
113
|
-
widgets?: import("jamespot-user-api").WidgetBaseType[] | undefined;
|
|
114
|
-
arr?: import("jamespot-user-api").WidgetCheckListContentArr[] | undefined;
|
|
115
|
-
css?: Record<string, string | number> | undefined;
|
|
116
|
-
edit?: boolean | undefined;
|
|
117
|
-
} | {
|
|
118
|
-
limit?: number | boolean | undefined;
|
|
119
|
-
uri?: string | undefined;
|
|
120
|
-
tableColumnsData?: {
|
|
121
|
-
name?: string | undefined;
|
|
122
|
-
label?: string | undefined;
|
|
123
|
-
isVisible?: boolean | undefined;
|
|
124
|
-
textEllipsis?: boolean | undefined;
|
|
125
|
-
dateFormat?: "date" | "date-time" | "date-time-sec" | "time" | "time-sec" | undefined;
|
|
126
|
-
numberFormat?: "fr-FR" | "en-EN" | "filesize" | undefined;
|
|
127
|
-
}[] | undefined;
|
|
128
|
-
tableHeadColor?: string | undefined;
|
|
129
|
-
tableHeadTextColor?: string | undefined;
|
|
130
|
-
tableHeadIconColor?: string | undefined;
|
|
131
|
-
tableRowColor?: string | undefined;
|
|
132
|
-
tableRowTextColor?: string | undefined;
|
|
133
|
-
tableBorderRadius?: number | undefined;
|
|
134
|
-
tableSizedColumns?: boolean | undefined;
|
|
135
|
-
tableSizedColumnsWidth?: number | undefined;
|
|
136
|
-
} | {
|
|
137
|
-
limit?: number | boolean | undefined;
|
|
138
|
-
uri?: string | undefined;
|
|
139
|
-
tableColumnsData?: {
|
|
140
|
-
name?: string | undefined;
|
|
141
|
-
label?: string | undefined;
|
|
142
|
-
isVisible?: boolean | undefined;
|
|
143
|
-
textEllipsis?: boolean | undefined;
|
|
144
|
-
dateFormat?: "date" | "date-time" | "date-time-sec" | "time" | "time-sec" | undefined;
|
|
145
|
-
numberFormat?: "fr-FR" | "en-EN" | "filesize" | undefined;
|
|
146
|
-
}[] | undefined;
|
|
147
|
-
tableHeadColor?: string | undefined;
|
|
148
|
-
tableHeadTextColor?: string | undefined;
|
|
149
|
-
tableHeadIconColor?: string | undefined;
|
|
150
|
-
tableRowColor?: string | undefined;
|
|
151
|
-
tableRowTextColor?: string | undefined;
|
|
152
|
-
tableBorderRadius?: number | undefined;
|
|
153
|
-
tableSizedColumns?: boolean | undefined;
|
|
154
|
-
tableSizedColumnsWidth?: number | undefined;
|
|
155
|
-
} | {
|
|
156
|
-
limit?: number | boolean | undefined;
|
|
157
|
-
limitValue?: number | undefined;
|
|
158
|
-
closing?: boolean | 0 | 1 | undefined;
|
|
159
|
-
isClosed?: boolean | 0 | 1 | undefined;
|
|
160
|
-
} | {
|
|
161
|
-
widgets?: import("jamespot-user-api").WidgetBaseType[] | undefined;
|
|
162
|
-
arr?: import("jamespot-user-api").WidgetQuickSurveyContentArr[] | undefined;
|
|
163
|
-
css?: Record<string, string | number> | undefined;
|
|
164
|
-
closing?: boolean | 0 | 1 | undefined;
|
|
165
|
-
isClosed?: boolean | 0 | 1 | undefined;
|
|
166
|
-
open?: boolean | 0 | 1 | undefined;
|
|
167
|
-
multi?: boolean | 0 | 1 | undefined;
|
|
168
|
-
showResult?: boolean | 0 | 1 | undefined;
|
|
169
|
-
isNotDisabled?: boolean | 0 | 1 | undefined;
|
|
170
|
-
seeResponseAfter?: boolean | 0 | 1 | undefined;
|
|
171
|
-
anonymize?: boolean | 0 | 1 | undefined;
|
|
172
|
-
} | {
|
|
173
|
-
calEventsLimit?: boolean | undefined;
|
|
174
|
-
calEventsLimitValue?: number | undefined;
|
|
175
|
-
calEventsPromptStatus?: string | undefined;
|
|
176
|
-
} | {
|
|
177
|
-
contactLimit?: boolean | undefined;
|
|
178
|
-
contactLimitValue?: number | undefined;
|
|
179
|
-
contactPromptStatus?: string | undefined;
|
|
180
|
-
} | {
|
|
181
|
-
emailsLimit?: boolean | undefined;
|
|
182
|
-
emailsLimitValue?: number | undefined;
|
|
183
|
-
emailsPromptStatus?: string | undefined;
|
|
184
|
-
} | {
|
|
185
|
-
url?: string | undefined;
|
|
186
|
-
} | {
|
|
187
|
-
css?: Record<string, string | number> | undefined;
|
|
188
|
-
buttonName?: string | undefined;
|
|
189
|
-
pictureSize?: string | undefined;
|
|
190
|
-
}), args_1: boolean, ...args: unknown[]) => void;
|
|
191
|
-
onStateChange: (args_0: {
|
|
192
|
-
busy?: boolean | undefined;
|
|
193
|
-
loading?: boolean | undefined;
|
|
194
|
-
initialized?: boolean | undefined;
|
|
195
|
-
mounted?: boolean | undefined;
|
|
196
|
-
hover?: boolean | undefined;
|
|
197
|
-
empty?: boolean | undefined;
|
|
198
|
-
locked?: boolean | undefined;
|
|
199
|
-
}, ...args: unknown[]) => void;
|
|
200
|
-
width?: number | undefined;
|
|
201
|
-
isComponentVisible?: boolean | undefined;
|
|
202
|
-
onClick?: ((...args: unknown[]) => void) | undefined;
|
|
203
|
-
} & {
|
|
5
|
+
export declare const Primary: import("storybook/internal/csf").AnnotatedStoryFn<import("@storybook/react-webpack5").ReactRenderer, WidgetDefaultProps & {
|
|
204
6
|
content: WidgetArticleTextContent;
|
|
205
7
|
}>;
|
|
@@ -1,19 +1,3 @@
|
|
|
1
1
|
import { WidgetTableColumn, WidgetTableColumnsData } from 'jamespot-user-api';
|
|
2
2
|
export declare function labelize(name: string, tableColumnsData: WidgetTableColumnsData, initialValue: string): string;
|
|
3
|
-
export declare function updateTableColumns(columns: WidgetTableColumn[], headers: string[]):
|
|
4
|
-
name: string;
|
|
5
|
-
type: "number" | "text" | "date" | "datetime" | "file" | "select" | "email" | "url" | "transient" | "uri" | "title";
|
|
6
|
-
label: string;
|
|
7
|
-
widget: {} | {
|
|
8
|
-
type: "text";
|
|
9
|
-
} | {
|
|
10
|
-
options: {
|
|
11
|
-
value: string;
|
|
12
|
-
label: string;
|
|
13
|
-
}[];
|
|
14
|
-
type: "select";
|
|
15
|
-
} | {
|
|
16
|
-
type: "date";
|
|
17
|
-
};
|
|
18
|
-
sortable?: boolean | undefined;
|
|
19
|
-
}[];
|
|
3
|
+
export declare function updateTableColumns(columns: WidgetTableColumn[], headers: string[]): WidgetTableColumn[];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "jamespot-react-components",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.61",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "./build/jamespot-react-components.js",
|
|
6
6
|
"types": "./build/src/index.d.ts",
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
"fork-ts-checker-webpack-plugin": "^9.1.0",
|
|
67
67
|
"husky": "^7.0.4",
|
|
68
68
|
"identity-obj-proxy": "^3.0.0",
|
|
69
|
-
"jamespot-user-api": "^1.2.
|
|
69
|
+
"jamespot-user-api": "^1.2.61",
|
|
70
70
|
"jest": "^30.2.0",
|
|
71
71
|
"jest-environment-jsdom": "^30.2.0",
|
|
72
72
|
"jest-styled-components": "^7.2.0",
|