utopia-ui 3.0.90 → 3.0.92
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/index.cjs +812 -784
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +61 -109
- package/dist/index.esm.js +812 -784
- package/dist/index.esm.js.map +1 -1
- package/dist/types/src/Components/Map/Layer.d.ts +1 -1
- package/dist/types/src/Components/Map/LayerContext.d.ts +2 -1
- package/dist/types/src/Components/Map/Subcomponents/ItemFormPopup.d.ts +5 -2
- package/dist/types/src/Components/Map/Subcomponents/ItemPopupComponents/PopupStartEndInput.d.ts +1 -2
- package/dist/types/src/Components/Map/Subcomponents/ItemViewPopup.d.ts +0 -2
- package/dist/types/src/Components/Map/hooks/useSelectPosition.d.ts +2 -2
- package/dist/types/src/Components/Map/index.d.ts +0 -9
- package/dist/types/src/index.d.ts +1 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
@@ -1,10 +1,10 @@
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
2
2
|
import { GeoJsonObject, Geometry, Point } from 'geojson';
|
3
3
|
export { Point } from 'geojson';
|
4
|
-
import
|
5
|
-
export { Popup } from 'leaflet';
|
4
|
+
import * as react from 'react';
|
6
5
|
import { Key } from 'react';
|
7
6
|
export { default as SVG } from 'react-inlinesvg';
|
7
|
+
export { Popup } from 'leaflet';
|
8
8
|
|
9
9
|
/**
|
10
10
|
* This component creates the map.
|
@@ -184,14 +184,6 @@ interface Item {
|
|
184
184
|
} */
|
185
185
|
}
|
186
186
|
|
187
|
-
interface ItemFormPopupProps {
|
188
|
-
position: LatLng
|
189
|
-
layer: LayerProps
|
190
|
-
item?: Item
|
191
|
-
children?: React.ReactNode
|
192
|
-
setItemFormPopup?: React.Dispatch<React.SetStateAction<ItemFormPopupProps | null>>
|
193
|
-
}
|
194
|
-
|
195
187
|
interface ItemType {
|
196
188
|
name: string
|
197
189
|
show_name_input: boolean
|
@@ -233,10 +225,6 @@ interface LayerProps {
|
|
233
225
|
public_edit_items?: boolean
|
234
226
|
listed?: boolean
|
235
227
|
item_presets?: Record<string, unknown>
|
236
|
-
setItemFormPopup?: React.Dispatch<React.SetStateAction<ItemFormPopupProps | null>>
|
237
|
-
itemFormPopup?: ItemFormPopupProps | null
|
238
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
239
|
-
clusterRef?: any
|
240
228
|
}
|
241
229
|
|
242
230
|
/**
|
@@ -283,7 +271,7 @@ interface Tag {
|
|
283
271
|
/**
|
284
272
|
* @category Map
|
285
273
|
*/
|
286
|
-
declare const Layer: ({ data, children, name, menuIcon, menuText, menuColor, markerIcon, markerShape, markerDefaultColor, markerDefaultColor2, api, itemType, userProfileLayer, customEditLink, customEditParameter, public_edit_items, listed,
|
274
|
+
declare const Layer: ({ data, children, name, menuIcon, menuText, menuColor, markerIcon, markerShape, markerDefaultColor, markerDefaultColor2, api, itemType, userProfileLayer, customEditLink, customEditParameter, public_edit_items, listed, }: LayerProps) => react_jsx_runtime.JSX.Element;
|
287
275
|
|
288
276
|
/**
|
289
277
|
* This Components injects Tags comming from an {@link ItemsApi | `API`}
|
@@ -374,99 +362,6 @@ declare function Permissions({ data, api, adminRole, }: {
|
|
374
362
|
adminRole?: string;
|
375
363
|
}): react_jsx_runtime.JSX.Element;
|
376
364
|
|
377
|
-
/**
|
378
|
-
* @category Map
|
379
|
-
*/
|
380
|
-
declare const ItemForm: {
|
381
|
-
({ children, item, title, setPopupTitle, }: {
|
382
|
-
children?: React.ReactNode;
|
383
|
-
item?: Item;
|
384
|
-
title?: string;
|
385
|
-
setPopupTitle?: React.Dispatch<React.SetStateAction<string>>;
|
386
|
-
}): react_jsx_runtime.JSX.Element;
|
387
|
-
__TYPE: string;
|
388
|
-
};
|
389
|
-
|
390
|
-
/**
|
391
|
-
* @category Map
|
392
|
-
*/
|
393
|
-
declare const ItemView: {
|
394
|
-
({ children, item }: {
|
395
|
-
children?: React.ReactNode;
|
396
|
-
item?: Item;
|
397
|
-
}): react_jsx_runtime.JSX.Element;
|
398
|
-
__TYPE: string;
|
399
|
-
};
|
400
|
-
|
401
|
-
/**
|
402
|
-
* @category Map
|
403
|
-
*/
|
404
|
-
declare const PopupTextAreaInput: ({ dataField, placeholder, style, item, }: {
|
405
|
-
dataField: string;
|
406
|
-
placeholder: string;
|
407
|
-
style?: string;
|
408
|
-
item?: Item;
|
409
|
-
}) => react_jsx_runtime.JSX.Element;
|
410
|
-
|
411
|
-
interface StartEndInputProps {
|
412
|
-
item?: Item;
|
413
|
-
showLabels?: boolean;
|
414
|
-
updateStartValue?: (value: string) => void;
|
415
|
-
updateEndValue?: (value: string) => void;
|
416
|
-
}
|
417
|
-
/**
|
418
|
-
* @category Map
|
419
|
-
*/
|
420
|
-
declare const PopupStartEndInput: ({ item, showLabels, updateStartValue, updateEndValue, }: StartEndInputProps) => react_jsx_runtime.JSX.Element;
|
421
|
-
|
422
|
-
/**
|
423
|
-
* @category Map
|
424
|
-
*/
|
425
|
-
declare const PopupTextInput: ({ dataField, placeholder, style, item, }: {
|
426
|
-
dataField: string;
|
427
|
-
placeholder: string;
|
428
|
-
style?: string;
|
429
|
-
item?: Item;
|
430
|
-
}) => react_jsx_runtime.JSX.Element;
|
431
|
-
|
432
|
-
/**
|
433
|
-
* @category Map
|
434
|
-
*/
|
435
|
-
declare const PopupCheckboxInput: ({ dataField, label, item, }: {
|
436
|
-
dataField: string;
|
437
|
-
label: string;
|
438
|
-
item?: Item;
|
439
|
-
}) => react_jsx_runtime.JSX.Element;
|
440
|
-
|
441
|
-
/**
|
442
|
-
* @category Map
|
443
|
-
*/
|
444
|
-
declare const TextView: ({ item, itemId, text, truncate, rawText, itemTextField, }: {
|
445
|
-
item?: Item;
|
446
|
-
itemId?: string;
|
447
|
-
text?: string;
|
448
|
-
truncate?: boolean;
|
449
|
-
rawText?: string;
|
450
|
-
itemTextField?: string;
|
451
|
-
}) => react_jsx_runtime.JSX.Element;
|
452
|
-
|
453
|
-
/**
|
454
|
-
* @category Map
|
455
|
-
*/
|
456
|
-
declare const StartEndView: ({ item }: {
|
457
|
-
item?: Item;
|
458
|
-
}) => react_jsx_runtime.JSX.Element;
|
459
|
-
|
460
|
-
/**
|
461
|
-
* @category Map
|
462
|
-
*/
|
463
|
-
declare const PopupButton: ({ url, parameterField, text, item, }: {
|
464
|
-
url: string;
|
465
|
-
parameterField?: string;
|
466
|
-
text: string;
|
467
|
-
item?: Item;
|
468
|
-
}) => react_jsx_runtime.JSX.Element;
|
469
|
-
|
470
365
|
/**
|
471
366
|
* @category Types
|
472
367
|
*/
|
@@ -682,6 +577,63 @@ interface InputTextProps {
|
|
682
577
|
*/
|
683
578
|
declare function TextInput({ labelTitle, labelStyle, type, dataField, containerStyle, inputStyle, defaultValue, placeholder, autocomplete, pattern, required, updateFormValue, }: InputTextProps): react_jsx_runtime.JSX.Element;
|
684
579
|
|
580
|
+
interface StartEndInputProps {
|
581
|
+
item?: Item;
|
582
|
+
showLabels?: boolean;
|
583
|
+
updateStartValue?: (value: string) => void;
|
584
|
+
updateEndValue?: (value: string) => void;
|
585
|
+
}
|
586
|
+
|
587
|
+
/**
|
588
|
+
* @category Item
|
589
|
+
*/
|
590
|
+
declare const PopupForm: ({ children }: {
|
591
|
+
children?: React.ReactNode;
|
592
|
+
}) => react_jsx_runtime.JSX.Element;
|
593
|
+
|
594
|
+
/**
|
595
|
+
* @category Item
|
596
|
+
*/
|
597
|
+
declare const PopupView: ({ children }: {
|
598
|
+
children?: React.ReactNode;
|
599
|
+
}) => (react_jsx_runtime.JSX.Element | null)[];
|
600
|
+
|
601
|
+
declare const TextView: react.ComponentType<Omit<{
|
602
|
+
item?: Item;
|
603
|
+
itemId?: string;
|
604
|
+
text?: string;
|
605
|
+
truncate?: boolean;
|
606
|
+
rawText?: string;
|
607
|
+
itemTextField?: string;
|
608
|
+
}, "item">>;
|
609
|
+
declare const StartEndView: react.ComponentType<Omit<{
|
610
|
+
item?: Item;
|
611
|
+
}, "item">>;
|
612
|
+
declare const PopupTextInput: react.ComponentType<Omit<{
|
613
|
+
dataField: string;
|
614
|
+
placeholder: string;
|
615
|
+
style?: string;
|
616
|
+
item?: Item;
|
617
|
+
}, "item">>;
|
618
|
+
declare const PopupButton: react.ComponentType<Omit<{
|
619
|
+
url: string;
|
620
|
+
parameterField?: string;
|
621
|
+
text: string;
|
622
|
+
item?: Item;
|
623
|
+
}, "item">>;
|
624
|
+
declare const PopupCheckboxInput: react.ComponentType<Omit<{
|
625
|
+
dataField: string;
|
626
|
+
label: string;
|
627
|
+
item?: Item;
|
628
|
+
}, "item">>;
|
629
|
+
declare const PopupTextAreaInput: react.ComponentType<Omit<{
|
630
|
+
dataField: string;
|
631
|
+
placeholder: string;
|
632
|
+
style?: string;
|
633
|
+
item?: Item;
|
634
|
+
}, "item">>;
|
635
|
+
declare const PopupStartEndInput: react.ComponentType<Omit<StartEndInputProps, "item">>;
|
636
|
+
|
685
637
|
declare global {
|
686
638
|
interface Window {
|
687
639
|
my_modal_3: {
|
@@ -690,4 +642,4 @@ declare global {
|
|
690
642
|
}
|
691
643
|
}
|
692
644
|
|
693
|
-
export { AppShell, type AssetsApi, AttestationForm, AuthProvider, CardPage, Content, type Item,
|
645
|
+
export { AppShell, type AssetsApi, AttestationForm, AuthProvider, CardPage, Content, type Item, type ItemsApi, Layer, type LayerProps, LoginPage, MapOverlayPage, MarketView, Modal, OverlayItemsIndexPage, type Permission, Permissions, PopupButton, PopupCheckboxInput, PopupForm, PopupStartEndInput, PopupTextAreaInput, PopupTextInput, PopupView, ProfileForm, ProfileView, Quests, RequestPasswordPage, SelectUser, SetNewPasswordPage, SideBar, SignupPage, StartEndView, type Tag, Tags, TextAreaInput, TextInput, TextView, TitleCard, type UserApi, type UserItem, UserSettings, UtopiaMap };
|