utopia-ui 3.0.10 → 3.0.13

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.
Files changed (81) hide show
  1. package/dist/Components/AppShell/AppShell.d.ts +1 -1
  2. package/dist/Components/AppShell/SetAppState.d.ts +5 -0
  3. package/dist/Components/AppShell/SidebarSubmenu.d.ts +1 -1
  4. package/dist/Components/AppShell/hooks/useAppState.d.ts +17 -0
  5. package/dist/Components/AppShell/hooks/useAssets.d.ts +2 -2
  6. package/dist/Components/AppShell/index.d.ts +4 -4
  7. package/dist/Components/Auth/RequestPasswordPage.d.ts +2 -2
  8. package/dist/Components/Auth/index.d.ts +2 -2
  9. package/dist/Components/Auth/useAuth.d.ts +2 -2
  10. package/dist/Components/Gaming/Modal.d.ts +2 -2
  11. package/dist/Components/Gaming/hooks/useQuests.d.ts +2 -2
  12. package/dist/Components/Input/Autocomplete.d.ts +1 -1
  13. package/dist/Components/Input/ComboBoxInput.d.ts +1 -4
  14. package/dist/Components/Input/TextAreaInput.d.ts +1 -1
  15. package/dist/Components/Input/TextInput.d.ts +1 -1
  16. package/dist/Components/Input/index.d.ts +3 -3
  17. package/dist/Components/Map/ItemForm.d.ts +1 -1
  18. package/dist/Components/Map/Layer.d.ts +1 -1
  19. package/dist/Components/Map/Permissions.d.ts +1 -1
  20. package/dist/Components/Map/Subcomponents/AddButton.d.ts +1 -1
  21. package/dist/Components/Map/Subcomponents/Controls/Control.d.ts +2 -2
  22. package/dist/Components/Map/Subcomponents/ItemPopupComponents/HeaderView.d.ts +2 -2
  23. package/dist/Components/Map/Subcomponents/ItemPopupComponents/PopupButton.d.ts +1 -1
  24. package/dist/Components/Map/Subcomponents/ItemPopupComponents/PopupCheckboxInput.d.ts +1 -1
  25. package/dist/Components/Map/Subcomponents/ItemPopupComponents/PopupStartEndInput.d.ts +1 -1
  26. package/dist/Components/Map/Subcomponents/ItemPopupComponents/PopupTextAreaInput.d.ts +1 -1
  27. package/dist/Components/Map/Subcomponents/ItemPopupComponents/PopupTextInput.d.ts +1 -1
  28. package/dist/Components/Map/Subcomponents/ItemPopupComponents/TextView.d.ts +1 -1
  29. package/dist/Components/Map/UtopiaMap.d.ts +1 -1
  30. package/dist/Components/Map/UtopiaMapInner.d.ts +4 -4
  31. package/dist/Components/Map/hooks/useClusterRef.d.ts +1 -1
  32. package/dist/Components/Map/hooks/useFilter.d.ts +16 -16
  33. package/dist/Components/Map/hooks/useItems.d.ts +9 -9
  34. package/dist/Components/Map/hooks/useLayers.d.ts +3 -3
  35. package/dist/Components/Map/hooks/useLeafletRefs.d.ts +5 -5
  36. package/dist/Components/Map/hooks/usePermissions.d.ts +6 -6
  37. package/dist/Components/Map/hooks/useSelectPosition.d.ts +5 -5
  38. package/dist/Components/Map/hooks/useTags.d.ts +7 -7
  39. package/dist/Components/Map/index.d.ts +2 -2
  40. package/dist/Components/Profile/ProfileForm.d.ts +1 -3
  41. package/dist/Components/Profile/ProfileView.d.ts +1 -2
  42. package/dist/Components/Profile/Subcomponents/ActionsButton.d.ts +2 -2
  43. package/dist/Components/Profile/Subcomponents/AvatarWidget.d.ts +1 -1
  44. package/dist/Components/Profile/Subcomponents/ColorPicker.d.ts +1 -1
  45. package/dist/Components/Profile/Subcomponents/ContactInfo.d.ts +3 -6
  46. package/dist/Components/Profile/Subcomponents/ContactInfoForm.d.ts +6 -0
  47. package/dist/Components/Profile/Subcomponents/ContactInfoView.d.ts +5 -0
  48. package/dist/Components/Profile/Subcomponents/GroupSubHeaderView.d.ts +5 -0
  49. package/dist/Components/Profile/Subcomponents/GroupSubheaderForm.d.ts +19 -0
  50. package/dist/Components/Profile/Subcomponents/LinkedItemsHeaderView.d.ts +2 -2
  51. package/dist/Components/Profile/Subcomponents/PlusButton.d.ts +2 -2
  52. package/dist/Components/Profile/Subcomponents/ProfileStartEndForm.d.ts +6 -0
  53. package/dist/Components/Profile/Subcomponents/ProfileStartEndView.d.ts +4 -0
  54. package/dist/Components/Profile/Subcomponents/ProfileTextForm.d.ts +10 -0
  55. package/dist/Components/Profile/Subcomponents/ProfileTextView.d.ts +7 -0
  56. package/dist/Components/Profile/Subcomponents/SocialShareBar.d.ts +1 -1
  57. package/dist/Components/Profile/Templates/FlexForm.d.ts +8 -0
  58. package/dist/Components/Profile/Templates/FlexView.d.ts +4 -0
  59. package/dist/Components/Profile/Templates/OnepagerForm.d.ts +20 -19
  60. package/dist/Components/Profile/Templates/OnepagerView.d.ts +2 -3
  61. package/dist/Components/Profile/Templates/TabsForm.d.ts +1 -1
  62. package/dist/Components/Profile/Templates/TabsView.d.ts +1 -2
  63. package/dist/Components/Profile/index.d.ts +3 -3
  64. package/dist/Components/Templates/CardPage.d.ts +2 -2
  65. package/dist/Components/Templates/CircleLayout.d.ts +1 -1
  66. package/dist/Components/Templates/DateUserInfo.d.ts +1 -1
  67. package/dist/Components/Templates/DialogModal.d.ts +1 -1
  68. package/dist/Components/Templates/EmojiPicker.d.ts +1 -1
  69. package/dist/Components/Templates/ItemCard.d.ts +1 -1
  70. package/dist/Components/Templates/MapOverlayPage.d.ts +1 -1
  71. package/dist/Components/Templates/OverlayItemsIndexPage.d.ts +1 -1
  72. package/dist/Components/Templates/SelectUser.d.ts +1 -3
  73. package/dist/Components/Templates/TagView.d.ts +1 -1
  74. package/dist/Components/Templates/TitleCard.d.ts +2 -2
  75. package/dist/Components/Templates/index.d.ts +4 -4
  76. package/dist/Components/Typography/Subtitle.d.ts +1 -1
  77. package/dist/index.d.ts +5 -5
  78. package/dist/index.js +1593 -1106
  79. package/dist/index.js.map +1 -1
  80. package/dist/types.d.ts +44 -44
  81. package/package.json +7 -2
package/dist/types.d.ts CHANGED
@@ -1,5 +1,11 @@
1
1
  import * as React from 'react';
2
- import { ItemFormPopupProps } from "./Components/Map/Subcomponents/ItemFormPopup";
2
+ import { ItemFormPopupProps } from './Components/Map/Subcomponents/ItemFormPopup';
3
+ export interface Tag {
4
+ color: string;
5
+ id: string;
6
+ name: string;
7
+ offer_or_need?: boolean;
8
+ }
3
9
  export interface UtopiaMapProps {
4
10
  height?: string;
5
11
  width?: string;
@@ -13,6 +19,18 @@ export interface UtopiaMapProps {
13
19
  showGratitudeControl?: boolean;
14
20
  infoText?: string;
15
21
  }
22
+ export interface ItemType {
23
+ name: string;
24
+ [key: string]: any;
25
+ }
26
+ export interface ItemsApi<T> {
27
+ getItems(): Promise<any>;
28
+ getItem?(id: string): Promise<any>;
29
+ createItem?(item: T): Promise<any>;
30
+ updateItem?(item: T): Promise<any>;
31
+ deleteItem?(id: string): Promise<any>;
32
+ collectionName?: string;
33
+ }
16
34
  export interface LayerProps {
17
35
  id?: string;
18
36
  data?: Item[];
@@ -48,10 +66,15 @@ export interface LayerProps {
48
66
  itemFormPopup?: ItemFormPopupProps | null;
49
67
  clusterRef?: any;
50
68
  }
51
- export interface ItemType {
52
- name: string;
53
- [key: string]: any;
69
+ export declare class Geometry {
70
+ type: string;
71
+ coordinates: number[];
72
+ constructor(lng: number, lat: number);
54
73
  }
74
+ export declare type Relation = {
75
+ related_items_id: string;
76
+ [key: string]: any;
77
+ };
55
78
  export declare class Item {
56
79
  id: string;
57
80
  name: string;
@@ -71,29 +94,26 @@ export declare class Item {
71
94
  [key: string]: any;
72
95
  constructor(id: string, name: string, text: string, position: Geometry, layer?: LayerProps, api?: ItemsApi<any>);
73
96
  }
74
- export declare class Geometry {
75
- type: string;
76
- coordinates: number[];
77
- constructor(lng: number, lat: number);
78
- }
79
- export interface Tag {
80
- color: string;
81
- id: string;
82
- name: string;
83
- offer_or_need?: boolean;
84
- }
85
- export interface ItemsApi<T> {
86
- getItems(): Promise<any>;
87
- getItem?(id: string): Promise<any>;
88
- createItem?(item: T): Promise<any>;
89
- updateItem?(item: T): Promise<any>;
90
- deleteItem?(id: string): Promise<any>;
91
- collectionName?: string;
92
- }
93
97
  export interface AssetsApi {
94
98
  upload(file: Blob, title: string): any;
95
99
  url: string;
96
100
  }
101
+ export declare type Profile = {
102
+ id?: string;
103
+ avatar?: string;
104
+ color?: string;
105
+ name: string;
106
+ text: string;
107
+ geoposition?: Geometry;
108
+ };
109
+ export declare type UserItem = {
110
+ id?: string;
111
+ role?: any;
112
+ email?: string;
113
+ password?: string;
114
+ profile?: Profile;
115
+ [key: string]: any;
116
+ };
97
117
  export interface UserApi {
98
118
  register(email: string, password: string, userName: string): Promise<void>;
99
119
  login(email: string, password: string): Promise<any>;
@@ -104,22 +124,6 @@ export interface UserApi {
104
124
  requestPasswordReset(email: string, reset_url?: string): any;
105
125
  passwordReset(token: string, new_password: string): any;
106
126
  }
107
- export declare type UserItem = {
108
- id?: string;
109
- role?: any;
110
- email?: string;
111
- password?: string;
112
- profile?: Profile;
113
- [key: string]: any;
114
- };
115
- export declare type Profile = {
116
- id?: string;
117
- avatar?: string;
118
- color?: string;
119
- name: string;
120
- text: string;
121
- geoposition?: Geometry;
122
- };
123
127
  export declare type PermissionCondition = {
124
128
  user_created?: {
125
129
  _eq: string;
@@ -128,6 +132,7 @@ export declare type PermissionCondition = {
128
132
  _eq: boolean;
129
133
  };
130
134
  };
135
+ export declare type PermissionAction = 'create' | 'read' | 'update' | 'delete';
131
136
  export declare type Permission = {
132
137
  id?: string;
133
138
  policy: any;
@@ -137,8 +142,3 @@ export declare type Permission = {
137
142
  _and: PermissionCondition[];
138
143
  };
139
144
  };
140
- export declare type PermissionAction = "create" | "read" | "update" | "delete";
141
- export declare type Relation = {
142
- related_items_id: string;
143
- [key: string]: any;
144
- };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "utopia-ui",
3
- "version": "3.0.10",
3
+ "version": "3.0.13",
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/",
@@ -16,8 +16,9 @@
16
16
  ],
17
17
  "keywords": [],
18
18
  "author": "Anton Tranelis",
19
- "license": "MIT",
19
+ "license": "GPL-3.0-only",
20
20
  "devDependencies": {
21
+ "@eslint-community/eslint-plugin-eslint-comments": "^4.4.1",
21
22
  "@types/leaflet": "^1.7.11",
22
23
  "@types/react": "^18.2.0",
23
24
  "@types/react-dom": "^18.0.5",
@@ -27,11 +28,15 @@
27
28
  "autoprefixer": "^10.4.14",
28
29
  "daisyui": "^4.6.1",
29
30
  "eslint": "^8.24.0",
31
+ "eslint-config-prettier": "^9.1.0",
32
+ "eslint-config-standard": "^17.1.0",
30
33
  "eslint-plugin-json": "^3.1.0",
34
+ "eslint-plugin-prettier": "^5.2.1",
31
35
  "eslint-plugin-react": "^7.31.8",
32
36
  "eslint-plugin-react-hooks": "^4.6.0",
33
37
  "eslint-plugin-yml": "^1.14.0",
34
38
  "postcss": "^8.4.21",
39
+ "prettier": "^3.3.3",
35
40
  "react": "^18.2.0",
36
41
  "react-dom": "^18.2.0",
37
42
  "rollup": "^2.75.7",