jamespot-react-components 1.0.219 → 1.0.220
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 +3 -3
- package/build/jamespot-react-components.js.map +1 -1
- package/build/src/components/Widgets/JRCWidgetArticleText/JRCWidgetArticleText.stories.d.ts +10 -11
- package/build/src/components/Widgets/JRCWidgetPresence/JRCWidgetPresence.d.ts +2 -2
- package/build/src/components/Widgets/JRCWidgetQuickSurvey/JRCWidgetQuickSurvey.d.ts +8 -8
- package/build/src/components/Widgets/context/hooks.d.ts +10 -11
- package/package.json +2 -2
|
@@ -127,21 +127,20 @@ export declare const Primary: Story<{
|
|
|
127
127
|
} | {
|
|
128
128
|
limit?: number | boolean | undefined;
|
|
129
129
|
limitValue?: number | undefined;
|
|
130
|
-
closing?: boolean | undefined;
|
|
131
|
-
isClosed?: boolean | undefined;
|
|
130
|
+
closing?: boolean | 0 | 1 | undefined;
|
|
131
|
+
isClosed?: boolean | 0 | 1 | undefined;
|
|
132
132
|
} | {
|
|
133
133
|
widgets?: import("jamespot-user-api").WidgetBaseType[] | undefined;
|
|
134
134
|
arr?: import("jamespot-user-api").WidgetQuickSurveyContentArr[] | undefined;
|
|
135
135
|
css?: Record<string, string> | undefined;
|
|
136
|
-
closing?: boolean | undefined;
|
|
137
|
-
isClosed?: boolean | undefined;
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
anonymize?: boolean | undefined;
|
|
136
|
+
closing?: boolean | 0 | 1 | undefined;
|
|
137
|
+
isClosed?: boolean | 0 | 1 | undefined;
|
|
138
|
+
open?: boolean | 0 | 1 | undefined;
|
|
139
|
+
multi?: boolean | 0 | 1 | undefined;
|
|
140
|
+
showResult?: boolean | 0 | 1 | undefined;
|
|
141
|
+
isNotDisabled?: boolean | 0 | 1 | undefined;
|
|
142
|
+
seeResponseAfter?: boolean | 0 | 1 | undefined;
|
|
143
|
+
anonymize?: boolean | 0 | 1 | undefined;
|
|
145
144
|
}), args_1: boolean, ...args_2: unknown[]) => void;
|
|
146
145
|
onStateChange: (args_0: {
|
|
147
146
|
busy?: boolean | undefined;
|
|
@@ -3,8 +3,8 @@ import React from 'react';
|
|
|
3
3
|
export declare const JRCWidgetPresence: ({ limit, limitValue, userAvailableList, userUnavailableList, userValue, userAvailableTotal, userUnavailableTotal, isClosed, handleClickAvailable, handleClickUnavailable, handleOpenUsersModal, }: {
|
|
4
4
|
limit?: number | boolean | undefined;
|
|
5
5
|
limitValue?: number | undefined;
|
|
6
|
-
closing?: boolean | undefined;
|
|
7
|
-
isClosed?: boolean | undefined;
|
|
6
|
+
closing?: boolean | 0 | 1 | undefined;
|
|
7
|
+
isClosed?: boolean | 0 | 1 | undefined;
|
|
8
8
|
} & {
|
|
9
9
|
userAvailableList: jUserLittle[];
|
|
10
10
|
userUnavailableList: jUserLittle[];
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { WidgetQuickSurveyContentArr, WidgetQuickSurveyResponses } from 'jamespot-user-api';
|
|
1
|
+
import { WidgetQuickSurveyContentArr, WidgetQuickSurveyResponses, WidgetLegacyMixedBoolean } from 'jamespot-user-api';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
type JRCWidgetQuickSurveyProps = {
|
|
4
4
|
limit: number;
|
|
5
5
|
values: WidgetQuickSurveyContentArr[];
|
|
6
6
|
userResponses?: WidgetQuickSurveyResponses;
|
|
7
|
-
canCloseSurvey:
|
|
8
|
-
isClosed?:
|
|
9
|
-
open?:
|
|
10
|
-
userHasAlreadyVoted?:
|
|
11
|
-
anonymize?:
|
|
12
|
-
seeResponseAfter?:
|
|
13
|
-
canUpdate?:
|
|
7
|
+
canCloseSurvey: WidgetLegacyMixedBoolean;
|
|
8
|
+
isClosed?: WidgetLegacyMixedBoolean;
|
|
9
|
+
open?: WidgetLegacyMixedBoolean;
|
|
10
|
+
userHasAlreadyVoted?: WidgetLegacyMixedBoolean;
|
|
11
|
+
anonymize?: WidgetLegacyMixedBoolean;
|
|
12
|
+
seeResponseAfter?: WidgetLegacyMixedBoolean;
|
|
13
|
+
canUpdate?: WidgetLegacyMixedBoolean;
|
|
14
14
|
handleClickFile?: (entry: WidgetQuickSurveyContentArr) => void;
|
|
15
15
|
handleCloseSurvey: () => void;
|
|
16
16
|
handleProgressBarClick: (index: number) => void;
|
|
@@ -121,19 +121,18 @@ export declare const useEditorContext: <T = EditorBaseContext<{
|
|
|
121
121
|
} | {
|
|
122
122
|
limit?: number | boolean | undefined;
|
|
123
123
|
limitValue?: number | undefined;
|
|
124
|
-
closing?: boolean | undefined;
|
|
125
|
-
isClosed?: boolean | undefined;
|
|
124
|
+
closing?: boolean | 0 | 1 | undefined;
|
|
125
|
+
isClosed?: boolean | 0 | 1 | undefined;
|
|
126
126
|
} | {
|
|
127
127
|
widgets?: import("jamespot-user-api").WidgetBaseType[] | undefined;
|
|
128
128
|
arr?: import("jamespot-user-api").WidgetQuickSurveyContentArr[] | undefined;
|
|
129
129
|
css?: Record<string, string> | undefined;
|
|
130
|
-
closing?: boolean | undefined;
|
|
131
|
-
isClosed?: boolean | undefined;
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
anonymize?: boolean | undefined;
|
|
130
|
+
closing?: boolean | 0 | 1 | undefined;
|
|
131
|
+
isClosed?: boolean | 0 | 1 | undefined;
|
|
132
|
+
open?: boolean | 0 | 1 | undefined;
|
|
133
|
+
multi?: boolean | 0 | 1 | undefined;
|
|
134
|
+
showResult?: boolean | 0 | 1 | undefined;
|
|
135
|
+
isNotDisabled?: boolean | 0 | 1 | undefined;
|
|
136
|
+
seeResponseAfter?: boolean | 0 | 1 | undefined;
|
|
137
|
+
anonymize?: boolean | 0 | 1 | undefined;
|
|
139
138
|
})>>() => T;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "jamespot-react-components",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.220",
|
|
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.
|
|
83
|
+
"jamespot-user-api": "^1.0.201",
|
|
84
84
|
"moment": "2.29.4",
|
|
85
85
|
"react": "^17.x",
|
|
86
86
|
"react-beautiful-dnd": "^13.1.1",
|