utopia-ui 3.0.97 → 3.0.99
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/Profile.cjs.js +3093 -73
- package/dist/Profile.cjs.js.map +1 -1
- package/dist/Profile.esm.js +3094 -74
- package/dist/Profile.esm.js.map +1 -1
- package/dist/TagView-B8qr_QIZ.js +2446 -0
- package/dist/TagView-B8qr_QIZ.js.map +1 -0
- package/dist/TagView-C5MuBwmM.js +2534 -0
- package/dist/TagView-C5MuBwmM.js.map +1 -0
- package/dist/index.cjs.js +4 -4
- package/dist/index.d.ts +1 -1
- package/dist/index.esm.js +5 -5
- package/dist/types/src/Components/Profile/Subcomponents/AvatarWidget.d.ts +1 -1
- package/dist/types/src/Components/Profile/Subcomponents/ContactInfoForm.d.ts +1 -1
- package/dist/types/src/Components/Profile/Subcomponents/CrowdfundingForm.d.ts +1 -1
- package/dist/types/src/Components/Profile/Subcomponents/FormHeader.d.ts +9 -5
- package/dist/types/src/Components/Profile/Subcomponents/GalleryForm.spec.d.ts +1 -0
- package/dist/types/src/Components/Profile/Subcomponents/GroupSubheaderForm.d.ts +1 -1
- package/dist/types/src/Components/Profile/Subcomponents/ProfileStartEndForm.d.ts +2 -1
- package/dist/types/src/Components/Profile/Subcomponents/ProfileTextForm.d.ts +1 -1
- package/dist/types/src/Components/Profile/Templates/FlexForm.d.ts +1 -1
- package/dist/types/src/Components/Profile/Templates/OnepagerForm.d.ts +1 -1
- package/dist/types/src/Components/Profile/itemFunctions.d.ts +6 -4
- package/dist/types/src/Utils/getImageDimensions.spec.d.ts +1 -0
- package/package.json +4 -1
@@ -1,5 +1,5 @@
|
|
1
1
|
import type { FormState } from '#types/FormState';
|
2
2
|
export declare const ContactInfoForm: ({ state, setState, }: {
|
3
3
|
state: FormState;
|
4
|
-
setState: React.Dispatch<React.SetStateAction<
|
4
|
+
setState: React.Dispatch<React.SetStateAction<FormState>>;
|
5
5
|
}) => import("react/jsx-runtime").JSX.Element;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import type { FormState } from '#types/FormState';
|
2
2
|
export declare const CrowdfundingForm: ({ state, setState, }: {
|
3
3
|
state: FormState;
|
4
|
-
setState: React.Dispatch<React.SetStateAction<
|
4
|
+
setState: React.Dispatch<React.SetStateAction<FormState>>;
|
5
5
|
}) => import("react/jsx-runtime").JSX.Element;
|
@@ -1,5 +1,9 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
1
|
+
import type { FormState } from '#types/FormState';
|
2
|
+
import type { Item } from '#types/Item';
|
3
|
+
interface Props {
|
4
|
+
item: Item;
|
5
|
+
state: Partial<FormState>;
|
6
|
+
setState: React.Dispatch<React.SetStateAction<Partial<FormState>>>;
|
7
|
+
}
|
8
|
+
export declare const FormHeader: ({ item, state, setState }: Props) => import("react/jsx-runtime").JSX.Element;
|
9
|
+
export {};
|
@@ -0,0 +1 @@
|
|
1
|
+
export {};
|
@@ -12,7 +12,7 @@ interface groupType {
|
|
12
12
|
}
|
13
13
|
export declare const GroupSubheaderForm: ({ state, setState, groupStates, groupTypes, }: {
|
14
14
|
state: FormState;
|
15
|
-
setState: React.Dispatch<React.SetStateAction<
|
15
|
+
setState: React.Dispatch<React.SetStateAction<FormState>>;
|
16
16
|
item: Item;
|
17
17
|
groupStates?: string[];
|
18
18
|
groupTypes?: groupType[];
|
@@ -1,5 +1,6 @@
|
|
1
|
+
import type { FormState } from '#types/FormState';
|
1
2
|
import type { Item } from '#types/Item';
|
2
3
|
export declare const ProfileStartEndForm: ({ item, setState, }: {
|
3
4
|
item: Item;
|
4
|
-
setState: React.Dispatch<React.SetStateAction<
|
5
|
+
setState: React.Dispatch<React.SetStateAction<FormState>>;
|
5
6
|
}) => import("react/jsx-runtime").JSX.Element;
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import type { FormState } from '#types/FormState';
|
2
2
|
export declare const ProfileTextForm: ({ state, setState, dataField, heading, size, hideInputLabel, }: {
|
3
3
|
state: FormState;
|
4
|
-
setState: React.Dispatch<React.SetStateAction<
|
4
|
+
setState: React.Dispatch<React.SetStateAction<FormState>>;
|
5
5
|
dataField?: string;
|
6
6
|
heading: string;
|
7
7
|
size: string;
|
@@ -2,6 +2,6 @@ import type { FormState } from '#types/FormState';
|
|
2
2
|
import type { Item } from '#types/Item';
|
3
3
|
export declare const FlexForm: ({ item, state, setState, }: {
|
4
4
|
state: FormState;
|
5
|
-
setState: React.Dispatch<React.SetStateAction<
|
5
|
+
setState: React.Dispatch<React.SetStateAction<FormState>>;
|
6
6
|
item: Item;
|
7
7
|
}) => import("react/jsx-runtime").JSX.Element;
|
@@ -2,6 +2,6 @@ import type { FormState } from '#types/FormState';
|
|
2
2
|
import type { Item } from '#types/Item';
|
3
3
|
export declare const OnepagerForm: ({ item, state, setState, }: {
|
4
4
|
state: FormState;
|
5
|
-
setState: React.Dispatch<React.SetStateAction<
|
5
|
+
setState: React.Dispatch<React.SetStateAction<FormState>>;
|
6
6
|
item: Item;
|
7
7
|
}) => import("react/jsx-runtime").JSX.Element;
|
@@ -1,5 +1,7 @@
|
|
1
|
+
import type { FormState } from '#types/FormState';
|
2
|
+
import type { Item } from '#types/Item';
|
1
3
|
export declare const submitNewItem: (evt: any, type: string, item: any, user: any, setLoading: any, tags: any, addTag: any, addItem: any, linkItem: any, resetFilterTags: any, layers: any, addItemPopupType: any, setAddItemPopupType: any) => Promise<void>;
|
2
|
-
export declare const linkItem: (id: string, item:
|
3
|
-
export declare const unlinkItem: (id: string, item:
|
4
|
-
export declare const handleDelete: (event: React.MouseEvent<HTMLElement>, item:
|
5
|
-
export declare const onUpdateItem: (state:
|
4
|
+
export declare const linkItem: (id: string, item: Item, updateItem: any) => Promise<void>;
|
5
|
+
export declare const unlinkItem: (id: string, item: Item, updateItem: any) => Promise<void>;
|
6
|
+
export declare const handleDelete: (event: React.MouseEvent<HTMLElement>, item: Item, setLoading: any, removeItem: any, map: any, navigate: any) => Promise<void>;
|
7
|
+
export declare const onUpdateItem: (state: FormState, item: Item, tags: any, addTag: any, setLoading: any, navigate: any, updateItem: any, addItem: any, user: any, params: any) => Promise<void>;
|
@@ -0,0 +1 @@
|
|
1
|
+
export {};
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "utopia-ui",
|
3
|
-
"version": "3.0.
|
3
|
+
"version": "3.0.99",
|
4
4
|
"description": "Reuseable React Components to build mapping apps for real life communities and networks",
|
5
5
|
"repository": "https://github.com/utopia-os/utopia-ui",
|
6
6
|
"homepage": "https://utopia-os.org/",
|
@@ -110,11 +110,14 @@
|
|
110
110
|
"@tiptap/react": "^2.12.0",
|
111
111
|
"@tiptap/starter-kit": "^2.12.0",
|
112
112
|
"axios": "^1.6.5",
|
113
|
+
"browser-image-compression": "^2.0.2",
|
114
|
+
"classnames": "^2.5.1",
|
113
115
|
"date-fns": "^3.3.1",
|
114
116
|
"leaflet": "^1.9.4",
|
115
117
|
"leaflet.locatecontrol": "^0.79.0",
|
116
118
|
"radash": "^12.1.0",
|
117
119
|
"react-colorful": "^5.6.1",
|
120
|
+
"react-dropzone": "^14.3.8",
|
118
121
|
"react-icons": "^5.5.0",
|
119
122
|
"react-image-crop": "^10.1.8",
|
120
123
|
"react-inlinesvg": "^4.2.0",
|