jamespot-react-core 1.3.34 → 1.3.36
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/app.bundle.js +687 -659
- package/build/app.bundle.js.map +1 -1
- package/build/src/components/articleEditor/ArticleEditor.d.ts +2 -1
- package/build/src/components/calendar/socialEvent/useSocialEventOrRecurringEventCreationHook.d.ts +2 -1
- package/build/src/components/widgets/wrapper/components/WidgetTitle.d.ts +5 -2
- package/build/src/displayer/DisplayForm.component.d.ts +1 -1
- package/build/src/displayer/types.d.ts +1 -1
- package/eslint.config.js +11 -0
- package/package.json +4 -4
|
@@ -16,7 +16,8 @@ export type ArticleEditorProps<FormValues extends {
|
|
|
16
16
|
loading?: boolean;
|
|
17
17
|
initialLoading?: boolean;
|
|
18
18
|
article?: jArticleLittle;
|
|
19
|
+
mode: 'create' | 'edit';
|
|
19
20
|
};
|
|
20
21
|
export declare const ArticleEditor: <FormValues extends {
|
|
21
22
|
publishTo: string | Array<any>;
|
|
22
|
-
}>({ children, title, schedule, form, saveAsDraft, autoSaveDisabledFields, submit, isValid, loading, initialLoading, article, }: ArticleEditorProps<FormValues>) => import("react/jsx-runtime").JSX.Element;
|
|
23
|
+
}>({ children, title, schedule, form, saveAsDraft, autoSaveDisabledFields, submit, isValid, loading, initialLoading, article, mode, }: ArticleEditorProps<FormValues>) => import("react/jsx-runtime").JSX.Element;
|
package/build/src/components/calendar/socialEvent/useSocialEventOrRecurringEventCreationHook.d.ts
CHANGED
|
@@ -13,6 +13,7 @@ type HookParams = {
|
|
|
13
13
|
defaultValues?: Partial<SocialEventOrRecurringEventFormValues> | (() => Promise<Partial<SocialEventOrRecurringEventFormValues>>);
|
|
14
14
|
visioMode: string | null;
|
|
15
15
|
idSpot?: number;
|
|
16
|
+
idDraft?: number;
|
|
16
17
|
};
|
|
17
18
|
type HookReturn = {
|
|
18
19
|
form: ReturnType<typeof useForm<SocialEventOrRecurringEventFormValues>>;
|
|
@@ -25,5 +26,5 @@ type HookReturn = {
|
|
|
25
26
|
schedule: (scheduleDate: string, permalinkId: string) => void;
|
|
26
27
|
loading: boolean;
|
|
27
28
|
};
|
|
28
|
-
export declare const useSocialEventOrRecurringEventCreationHook: ({ onCreate, defaultDateSelection, open, onSchedule: doOnSchedule, defaultValues, visioMode, idSpot, }: HookParams) => HookReturn;
|
|
29
|
+
export declare const useSocialEventOrRecurringEventCreationHook: ({ onCreate, defaultDateSelection, open, onSchedule: doOnSchedule, defaultValues, visioMode, idSpot, idDraft, }: HookParams) => HookReturn;
|
|
29
30
|
export {};
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
export declare const CSSWidgetTitle: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").
|
|
2
|
-
|
|
1
|
+
export declare const CSSWidgetTitle: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, {
|
|
2
|
+
$ellipsis?: boolean;
|
|
3
|
+
}>> & string;
|
|
4
|
+
export declare const WidgetTitle: ({ uniqid, ellipsis }: {
|
|
3
5
|
uniqid: string;
|
|
6
|
+
ellipsis?: boolean;
|
|
4
7
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -23,7 +23,7 @@ export type DisplayFormProps<TFieldValues extends FieldValues> = {
|
|
|
23
23
|
*
|
|
24
24
|
* This component display an array of attributes only if this attribute is activated on the platform
|
|
25
25
|
*/
|
|
26
|
-
declare function DisplayFormElement<TFieldValues extends FieldValues>({ onInit, ...props }: DisplayFormProps<TFieldValues>, ref: ForwardedRef<DisplayFormRef
|
|
26
|
+
declare function DisplayFormElement<TFieldValues extends FieldValues>({ onInit, ...props }: DisplayFormProps<TFieldValues>, ref: ForwardedRef<DisplayFormRef<TFieldValues>>): import("react/jsx-runtime").JSX.Element;
|
|
27
27
|
export declare const DisplayForm: <TFieldValues extends FieldValues>(props: DisplayFormProps<TFieldValues> & {
|
|
28
28
|
ref?: ForwardedRef<DisplayFormRef>;
|
|
29
29
|
}) => ReturnType<typeof DisplayFormElement>;
|
|
@@ -78,7 +78,7 @@ export type DisplayFormProps<TFieldValues extends FieldValues = FieldValues> = {
|
|
|
78
78
|
onSubmit: any;
|
|
79
79
|
buttons: ReactNode;
|
|
80
80
|
};
|
|
81
|
-
export type DisplayFormRef = UseFormReturn<
|
|
81
|
+
export type DisplayFormRef<TFieldValues extends FieldValues = any> = UseFormReturn<TFieldValues> & {
|
|
82
82
|
getFormattedValues: () => any;
|
|
83
83
|
};
|
|
84
84
|
export type Displayer<TFieldValues extends FieldValues = FieldValues> = Array<DisplayerElement<TFieldValues>>;
|
package/eslint.config.js
CHANGED
|
@@ -52,6 +52,17 @@ export default [
|
|
|
52
52
|
'import/no-cycle': 'error',
|
|
53
53
|
'import/no-unresolved': 'error',
|
|
54
54
|
'no-console': ['error', { allow: ['warn', 'error'] }],
|
|
55
|
+
'no-restricted-imports': [
|
|
56
|
+
'error',
|
|
57
|
+
{
|
|
58
|
+
patterns: [
|
|
59
|
+
{
|
|
60
|
+
group: ['src/*'],
|
|
61
|
+
message: 'Use relative import (./ ou ../)',
|
|
62
|
+
},
|
|
63
|
+
],
|
|
64
|
+
},
|
|
65
|
+
],
|
|
55
66
|
'react/react-in-jsx-scope': 'off',
|
|
56
67
|
'react-hooks/refs': 'warn',
|
|
57
68
|
'react-hooks/set-state-in-effect': 'warn',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "jamespot-react-core",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.36",
|
|
4
4
|
"description": "Jamespot React Core",
|
|
5
5
|
"main": "./build/app.bundle.js",
|
|
6
6
|
"types": "./build/src/App.d.ts",
|
|
@@ -38,9 +38,9 @@
|
|
|
38
38
|
"fork-ts-checker-webpack-plugin": "^9.1.0",
|
|
39
39
|
"history": "^5.3.0",
|
|
40
40
|
"husky": "^9.1.7",
|
|
41
|
-
"jamespot-front-business": "^1.3.
|
|
42
|
-
"jamespot-react-components": "^1.3.
|
|
43
|
-
"jamespot-user-api": "^1.3.
|
|
41
|
+
"jamespot-front-business": "^1.3.36",
|
|
42
|
+
"jamespot-react-components": "^1.3.36",
|
|
43
|
+
"jamespot-user-api": "^1.3.36",
|
|
44
44
|
"jest": "^30.2.0",
|
|
45
45
|
"jest-environment-jsdom": "^30.2.0",
|
|
46
46
|
"knip": "^5.70.0",
|