@guillotinaweb/react-gmi 0.35.1 → 0.35.3
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/dist/react-gmi.js +5 -1
- package/dist/react-gmi.js.map +1 -1
- package/dist/react-gmi.modern.js +46 -41
- package/dist/react-gmi.modern.js.map +1 -1
- package/dist/src/guillo-gmi/components/fields/editComponent.d.ts +2 -1
- package/dist/src/guillo-gmi/components/input/input.d.ts +2 -2
- package/dist/src/guillo-gmi/components/input/input_list.d.ts +2 -2
- package/dist/src/guillo-gmi/components/input/select.d.ts +2 -1
- package/dist/src/guillo-gmi/components/input/select_vocabulary.d.ts +2 -1
- package/dist/src/guillo-gmi/components/input/textarea.d.ts +2 -1
- package/dist/src/guillo-gmi/components/modal.d.ts +2 -1
- package/dist/src/guillo-gmi/components/properties_view.d.ts +3 -2
- package/dist/src/guillo-gmi/components/selected_items_actions.d.ts +2 -1
- package/dist/src/guillo-gmi/contexts/index.d.ts +4 -4
- package/dist/src/guillo-gmi/models/sharing.d.ts +4 -3
- package/package.json +1 -1
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { GuillotinaSchemaProperty } from '../../types/guillotina';
|
|
2
2
|
import { EditableFieldValue } from '../../types/global';
|
|
3
|
+
import { ForwardRefExoticComponent, RefAttributes } from 'react';
|
|
3
4
|
interface Props {
|
|
4
5
|
schema: GuillotinaSchemaProperty;
|
|
5
6
|
val: EditableFieldValue;
|
|
@@ -10,5 +11,5 @@ interface Props {
|
|
|
10
11
|
id?: string;
|
|
11
12
|
required?: boolean;
|
|
12
13
|
}
|
|
13
|
-
export declare const EditComponent:
|
|
14
|
+
export declare const EditComponent: ForwardRefExoticComponent<Props & RefAttributes<unknown>>;
|
|
14
15
|
export default EditComponent;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ReactElement } from 'react';
|
|
1
|
+
import { ReactElement, ForwardRefExoticComponent, RefAttributes } from 'react';
|
|
2
2
|
interface Props {
|
|
3
3
|
name?: string;
|
|
4
4
|
icon?: ReactElement;
|
|
@@ -22,5 +22,5 @@ interface Props {
|
|
|
22
22
|
disabled?: boolean;
|
|
23
23
|
onKeyUp?: (event: React.KeyboardEvent<HTMLInputElement>) => void;
|
|
24
24
|
}
|
|
25
|
-
export declare const Input:
|
|
25
|
+
export declare const Input: ForwardRefExoticComponent<Props & RefAttributes<HTMLInputElement>>;
|
|
26
26
|
export default Input;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { InputHTMLAttributes } from 'react';
|
|
1
|
+
import { InputHTMLAttributes, ForwardRefExoticComponent, RefAttributes } from 'react';
|
|
2
2
|
interface Props {
|
|
3
3
|
value: string[];
|
|
4
4
|
onChange: (value: string[]) => void;
|
|
5
5
|
dataTest?: string;
|
|
6
6
|
id?: string;
|
|
7
7
|
}
|
|
8
|
-
export declare const InputList:
|
|
8
|
+
export declare const InputList: ForwardRefExoticComponent<InputHTMLAttributes<HTMLInputElement> & Props & RefAttributes<HTMLInputElement>>;
|
|
9
9
|
export default InputList;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { IndexSignature } from '../../types/global';
|
|
2
|
+
import { ForwardRefExoticComponent, RefAttributes } from 'react';
|
|
2
3
|
interface Props {
|
|
3
4
|
error?: string;
|
|
4
5
|
errorZoneClassName?: string;
|
|
@@ -20,5 +21,5 @@ interface Props {
|
|
|
20
21
|
dataTest?: string;
|
|
21
22
|
value?: string | string[];
|
|
22
23
|
}
|
|
23
|
-
export declare const Select:
|
|
24
|
+
export declare const Select: ForwardRefExoticComponent<Props & RefAttributes<HTMLSelectElement>>;
|
|
24
25
|
export default Select;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { ForwardRefExoticComponent, RefAttributes } from 'react';
|
|
1
2
|
interface Props {
|
|
2
3
|
vocabularyName: string;
|
|
3
4
|
className?: string;
|
|
@@ -10,5 +11,5 @@ interface Props {
|
|
|
10
11
|
id?: string;
|
|
11
12
|
placeholder?: string;
|
|
12
13
|
}
|
|
13
|
-
export declare const SelectVocabulary:
|
|
14
|
+
export declare const SelectVocabulary: ForwardRefExoticComponent<Props & RefAttributes<HTMLSelectElement>>;
|
|
14
15
|
export {};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { ForwardRefExoticComponent, RefAttributes } from 'react';
|
|
1
2
|
interface Props {
|
|
2
3
|
value: string;
|
|
3
4
|
classWrap?: string;
|
|
@@ -10,5 +11,5 @@ interface Props {
|
|
|
10
11
|
placeholder?: string;
|
|
11
12
|
id?: string;
|
|
12
13
|
}
|
|
13
|
-
export declare const Textarea:
|
|
14
|
+
export declare const Textarea: ForwardRefExoticComponent<Props & RefAttributes<HTMLTextAreaElement>>;
|
|
14
15
|
export default Textarea;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
+
import { ReactPortal } from 'react';
|
|
1
2
|
interface ModalProps {
|
|
2
3
|
isActive: boolean;
|
|
3
4
|
setActive: (value: boolean) => void;
|
|
4
5
|
children: React.ReactNode;
|
|
5
6
|
className?: string;
|
|
6
7
|
}
|
|
7
|
-
export declare function Modal(props: ModalProps):
|
|
8
|
+
export declare function Modal(props: ModalProps): ReactPortal;
|
|
8
9
|
interface ConfirmProps {
|
|
9
10
|
message?: React.ReactNode;
|
|
10
11
|
onCancel: () => void;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
+
import { Traversal } from '..';
|
|
2
3
|
export declare function PropertiesButtonView(): React.ReactElement<{
|
|
3
|
-
Ctx?:
|
|
4
|
+
Ctx?: Traversal;
|
|
4
5
|
}, string | React.JSXElementConstructor<any>> | null;
|
|
5
6
|
export declare function PropertiesView(): React.ReactElement<{
|
|
6
|
-
Ctx?:
|
|
7
|
+
Ctx?: Traversal;
|
|
7
8
|
}, string | React.JSXElementConstructor<any>> | null;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { Dispatch } from 'react';
|
|
1
|
+
import { Dispatch, Context } from 'react';
|
|
2
2
|
import { GuillotinaClient } from '../lib/client.js';
|
|
3
3
|
import { Auth } from '../lib/auth.js';
|
|
4
4
|
import { IndexSignature } from '../types/global';
|
|
5
5
|
import { GuillotinaGlobalState, GuillotinaReducerActionTypes } from '../reducers/guillotina';
|
|
6
6
|
import { GuillotinaCommonObject } from '../types/guillotina.js';
|
|
7
7
|
import { IManageRegistry } from '../hooks/useRegistry.js';
|
|
8
|
-
export declare const AuthContext:
|
|
9
|
-
export declare const ClientContext:
|
|
8
|
+
export declare const AuthContext: Context<{}>;
|
|
9
|
+
export declare const ClientContext: Context<GuillotinaClient | null>;
|
|
10
10
|
interface PropsTraversal {
|
|
11
11
|
client: GuillotinaClient;
|
|
12
12
|
auth: Auth;
|
|
@@ -43,7 +43,7 @@ export declare class Traversal {
|
|
|
43
43
|
hasPerm(permission: string): boolean;
|
|
44
44
|
filterTabs(tabs: IndexSignature, tabsPermissions: IndexSignature): IndexSignature<any>;
|
|
45
45
|
}
|
|
46
|
-
export declare const TraversalContext:
|
|
46
|
+
export declare const TraversalContext: Context<Traversal | null>;
|
|
47
47
|
export declare function TraversalProvider({ children, ...props }: PropsTraversal & {
|
|
48
48
|
children: React.ReactNode;
|
|
49
49
|
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { GuillotinaSharing, GuillotinaSharingInheritItem, GuillotinaSharingMap } from '../types/guillotina';
|
|
2
|
+
import { IndexSignature } from '../types/global';
|
|
2
3
|
export declare class Sharing {
|
|
3
4
|
local: GuillotinaSharingMap;
|
|
4
5
|
inherit: GuillotinaSharingInheritItem[];
|
|
5
6
|
constructor(element: GuillotinaSharing | undefined);
|
|
6
7
|
get roles(): string[];
|
|
7
|
-
getRole(role: string):
|
|
8
|
+
getRole(role: string): IndexSignature<string>;
|
|
8
9
|
get principals(): string[];
|
|
9
|
-
getPrincipals(principal: string):
|
|
10
|
+
getPrincipals(principal: string): IndexSignature<string>;
|
|
10
11
|
get prinrole(): string[];
|
|
11
|
-
getPrinroles(role: string):
|
|
12
|
+
getPrinroles(role: string): IndexSignature<string>;
|
|
12
13
|
}
|