dirk-cfx-react 1.1.70 → 1.1.72
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/components/index.cjs +468 -36
- package/dist/components/index.cjs.map +1 -1
- package/dist/components/index.d.cts +49 -1
- package/dist/components/index.d.ts +49 -1
- package/dist/components/index.js +465 -39
- package/dist/components/index.js.map +1 -1
- package/dist/index.cjs +468 -36
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +465 -39
- package/dist/index.js.map +1 -1
- package/package.json +113 -113
|
@@ -5,6 +5,7 @@ import React__default, { ReactNode, ComponentType } from 'react';
|
|
|
5
5
|
import * as framer_motion from 'framer-motion';
|
|
6
6
|
import { Variants } from 'framer-motion';
|
|
7
7
|
import * as _fortawesome_fontawesome_svg_core from '@fortawesome/fontawesome-svg-core';
|
|
8
|
+
import * as zustand from 'zustand';
|
|
8
9
|
import { StoreApi } from 'zustand';
|
|
9
10
|
import { LucideProps } from 'lucide-react';
|
|
10
11
|
|
|
@@ -813,6 +814,10 @@ interface ConfigPanelProps<T extends Record<string, any> = Record<string, any>>
|
|
|
813
814
|
resetConfirmText?: string;
|
|
814
815
|
width?: string;
|
|
815
816
|
height?: string;
|
|
817
|
+
/** Skip the auto-mounted MissingItemsBanner. Default: false (banner shown).
|
|
818
|
+
The banner self-hides when nothing is missing, so leaving it on costs
|
|
819
|
+
nothing visually. */
|
|
820
|
+
suppressMissingItemsBanner?: boolean;
|
|
816
821
|
}
|
|
817
822
|
declare function ConfigPanel<T extends Record<string, any>>(props: ConfigPanelProps<T>): react_jsx_runtime.JSX.Element | null;
|
|
818
823
|
|
|
@@ -852,6 +857,26 @@ type PositionPickerProps = {
|
|
|
852
857
|
showHeading?: boolean;
|
|
853
858
|
};
|
|
854
859
|
declare function PositionPicker(props: PositionPickerProps): react_jsx_runtime.JSX.Element;
|
|
860
|
+
/** Read-only `vector4(x, y, z, w)` line in the same boxed style as PositionPicker. */
|
|
861
|
+
declare function Vector4Display({ value }: {
|
|
862
|
+
value: Vector4Value;
|
|
863
|
+
}): react_jsx_runtime.JSX.Element;
|
|
864
|
+
/** Grabs the player's current world coords+heading via `GET_POSITION`. */
|
|
865
|
+
declare function WorldPositionSetButton({ value, onChange, compact, }: {
|
|
866
|
+
value: Vector4Value;
|
|
867
|
+
onChange: (v: Vector4Value) => void;
|
|
868
|
+
compact?: boolean;
|
|
869
|
+
}): react_jsx_runtime.JSX.Element;
|
|
870
|
+
/** Teleports the player to the stored coords via `GOTO_POSITION`. */
|
|
871
|
+
declare function WorldPositionGotoButton({ value, compact, }: {
|
|
872
|
+
value: Vector4Value;
|
|
873
|
+
compact?: boolean;
|
|
874
|
+
}): react_jsx_runtime.JSX.Element;
|
|
875
|
+
/** Red-tinted Delete button matching the Set/Goto styling. */
|
|
876
|
+
declare function Vector4DeleteButton({ onClick, compact, }: {
|
|
877
|
+
onClick: () => void;
|
|
878
|
+
compact?: boolean;
|
|
879
|
+
}): react_jsx_runtime.JSX.Element;
|
|
855
880
|
|
|
856
881
|
type GroupValue = {
|
|
857
882
|
name?: string;
|
|
@@ -939,6 +964,29 @@ type AdminPageTitleProps = {
|
|
|
939
964
|
};
|
|
940
965
|
declare function AdminPageTitle(props: AdminPageTitleProps): react_jsx_runtime.JSX.Element;
|
|
941
966
|
|
|
967
|
+
type MissingItem = {
|
|
968
|
+
name: string;
|
|
969
|
+
label?: string;
|
|
970
|
+
weight?: number;
|
|
971
|
+
description?: string;
|
|
972
|
+
};
|
|
973
|
+
type AuditPayload = {
|
|
974
|
+
missing: MissingItem[];
|
|
975
|
+
snippets: {
|
|
976
|
+
ox: string;
|
|
977
|
+
qb: string;
|
|
978
|
+
esx: string;
|
|
979
|
+
};
|
|
980
|
+
};
|
|
981
|
+
type AuditStore = {
|
|
982
|
+
data: AuditPayload | null;
|
|
983
|
+
loaded: boolean;
|
|
984
|
+
inFlight: boolean;
|
|
985
|
+
refresh: () => Promise<void>;
|
|
986
|
+
};
|
|
987
|
+
declare const useMissingItemsAudit: zustand.UseBoundStore<zustand.StoreApi<AuditStore>>;
|
|
988
|
+
declare function MissingItemsBanner(): react_jsx_runtime.JSX.Element | null;
|
|
989
|
+
|
|
942
990
|
interface TestBedItem {
|
|
943
991
|
key: string;
|
|
944
992
|
label: string;
|
|
@@ -956,4 +1004,4 @@ interface TestBedProps {
|
|
|
956
1004
|
}
|
|
957
1005
|
declare function TestBed({ items, storageKey, disablePersistence, title, }: TestBedProps): react_jsx_runtime.JSX.Element | null;
|
|
958
1006
|
|
|
959
|
-
export { AdminPageTitle, type AdminPageTitleProps, AsyncSaveButton, BlipColorSelect, type BlipColorSelectProps, BlipDisplaySelect, type BlipDisplaySelectProps, BlipIconSelect, type BlipIconSelectProps, BorderedIcon, type BorderedIconProps, type ButtonProps, ConfigPanel, type ConfigPanelProps, ConfirmModal, type ConfirmModalProps, ControlMultiSelect, type ControlMultiSelectProps, ControlSelect, type ControlSelectProps, Counter, type FiveMControls, FiveMKeyBindInput, FloatingParticles, type FloatingParticlesProps, GroupName, type GroupNameProps, GroupRank, type GroupRankProps, GroupSelect, type GroupSelectProps, type GroupType, type GroupValue, InfoBox, type InfoBoxProps, InputContainer, type InputContainerProps, LevelBanner, LevelPanel, Modal, ModalContext, type ModalProps, ModalProvider, MotionFlex, MotionIcon, MotionImage, MotionText, NavBar, type NavItem, NavigationContext, NavigationProvider, type NavigationStore, type ParticleState, PositionPicker, type PositionPickerProps, type ProgressProps, type Prompt, type PromptButton, PromptModal, type SegmentProps, SegmentedControl, type SegmentedControlProps, SegmentedProgress, SelectItem, type SelectItemProps, type StoreModalProps, TestBed, type TestBedItem, type TestBedProps, Title, type TitleProps, type Vector4Value, useModal, useModalActions, useNavigation, useNavigationStore };
|
|
1007
|
+
export { AdminPageTitle, type AdminPageTitleProps, AsyncSaveButton, BlipColorSelect, type BlipColorSelectProps, BlipDisplaySelect, type BlipDisplaySelectProps, BlipIconSelect, type BlipIconSelectProps, BorderedIcon, type BorderedIconProps, type ButtonProps, ConfigPanel, type ConfigPanelProps, ConfirmModal, type ConfirmModalProps, ControlMultiSelect, type ControlMultiSelectProps, ControlSelect, type ControlSelectProps, Counter, type FiveMControls, FiveMKeyBindInput, FloatingParticles, type FloatingParticlesProps, GroupName, type GroupNameProps, GroupRank, type GroupRankProps, GroupSelect, type GroupSelectProps, type GroupType, type GroupValue, InfoBox, type InfoBoxProps, InputContainer, type InputContainerProps, LevelBanner, LevelPanel, MissingItemsBanner, Modal, ModalContext, type ModalProps, ModalProvider, MotionFlex, MotionIcon, MotionImage, MotionText, NavBar, type NavItem, NavigationContext, NavigationProvider, type NavigationStore, type ParticleState, PositionPicker, type PositionPickerProps, type ProgressProps, type Prompt, type PromptButton, PromptModal, type SegmentProps, SegmentedControl, type SegmentedControlProps, SegmentedProgress, SelectItem, type SelectItemProps, type StoreModalProps, TestBed, type TestBedItem, type TestBedProps, Title, type TitleProps, Vector4DeleteButton, Vector4Display, type Vector4Value, WorldPositionGotoButton, WorldPositionSetButton, useMissingItemsAudit, useModal, useModalActions, useNavigation, useNavigationStore };
|
|
@@ -5,6 +5,7 @@ import React__default, { ReactNode, ComponentType } from 'react';
|
|
|
5
5
|
import * as framer_motion from 'framer-motion';
|
|
6
6
|
import { Variants } from 'framer-motion';
|
|
7
7
|
import * as _fortawesome_fontawesome_svg_core from '@fortawesome/fontawesome-svg-core';
|
|
8
|
+
import * as zustand from 'zustand';
|
|
8
9
|
import { StoreApi } from 'zustand';
|
|
9
10
|
import { LucideProps } from 'lucide-react';
|
|
10
11
|
|
|
@@ -813,6 +814,10 @@ interface ConfigPanelProps<T extends Record<string, any> = Record<string, any>>
|
|
|
813
814
|
resetConfirmText?: string;
|
|
814
815
|
width?: string;
|
|
815
816
|
height?: string;
|
|
817
|
+
/** Skip the auto-mounted MissingItemsBanner. Default: false (banner shown).
|
|
818
|
+
The banner self-hides when nothing is missing, so leaving it on costs
|
|
819
|
+
nothing visually. */
|
|
820
|
+
suppressMissingItemsBanner?: boolean;
|
|
816
821
|
}
|
|
817
822
|
declare function ConfigPanel<T extends Record<string, any>>(props: ConfigPanelProps<T>): react_jsx_runtime.JSX.Element | null;
|
|
818
823
|
|
|
@@ -852,6 +857,26 @@ type PositionPickerProps = {
|
|
|
852
857
|
showHeading?: boolean;
|
|
853
858
|
};
|
|
854
859
|
declare function PositionPicker(props: PositionPickerProps): react_jsx_runtime.JSX.Element;
|
|
860
|
+
/** Read-only `vector4(x, y, z, w)` line in the same boxed style as PositionPicker. */
|
|
861
|
+
declare function Vector4Display({ value }: {
|
|
862
|
+
value: Vector4Value;
|
|
863
|
+
}): react_jsx_runtime.JSX.Element;
|
|
864
|
+
/** Grabs the player's current world coords+heading via `GET_POSITION`. */
|
|
865
|
+
declare function WorldPositionSetButton({ value, onChange, compact, }: {
|
|
866
|
+
value: Vector4Value;
|
|
867
|
+
onChange: (v: Vector4Value) => void;
|
|
868
|
+
compact?: boolean;
|
|
869
|
+
}): react_jsx_runtime.JSX.Element;
|
|
870
|
+
/** Teleports the player to the stored coords via `GOTO_POSITION`. */
|
|
871
|
+
declare function WorldPositionGotoButton({ value, compact, }: {
|
|
872
|
+
value: Vector4Value;
|
|
873
|
+
compact?: boolean;
|
|
874
|
+
}): react_jsx_runtime.JSX.Element;
|
|
875
|
+
/** Red-tinted Delete button matching the Set/Goto styling. */
|
|
876
|
+
declare function Vector4DeleteButton({ onClick, compact, }: {
|
|
877
|
+
onClick: () => void;
|
|
878
|
+
compact?: boolean;
|
|
879
|
+
}): react_jsx_runtime.JSX.Element;
|
|
855
880
|
|
|
856
881
|
type GroupValue = {
|
|
857
882
|
name?: string;
|
|
@@ -939,6 +964,29 @@ type AdminPageTitleProps = {
|
|
|
939
964
|
};
|
|
940
965
|
declare function AdminPageTitle(props: AdminPageTitleProps): react_jsx_runtime.JSX.Element;
|
|
941
966
|
|
|
967
|
+
type MissingItem = {
|
|
968
|
+
name: string;
|
|
969
|
+
label?: string;
|
|
970
|
+
weight?: number;
|
|
971
|
+
description?: string;
|
|
972
|
+
};
|
|
973
|
+
type AuditPayload = {
|
|
974
|
+
missing: MissingItem[];
|
|
975
|
+
snippets: {
|
|
976
|
+
ox: string;
|
|
977
|
+
qb: string;
|
|
978
|
+
esx: string;
|
|
979
|
+
};
|
|
980
|
+
};
|
|
981
|
+
type AuditStore = {
|
|
982
|
+
data: AuditPayload | null;
|
|
983
|
+
loaded: boolean;
|
|
984
|
+
inFlight: boolean;
|
|
985
|
+
refresh: () => Promise<void>;
|
|
986
|
+
};
|
|
987
|
+
declare const useMissingItemsAudit: zustand.UseBoundStore<zustand.StoreApi<AuditStore>>;
|
|
988
|
+
declare function MissingItemsBanner(): react_jsx_runtime.JSX.Element | null;
|
|
989
|
+
|
|
942
990
|
interface TestBedItem {
|
|
943
991
|
key: string;
|
|
944
992
|
label: string;
|
|
@@ -956,4 +1004,4 @@ interface TestBedProps {
|
|
|
956
1004
|
}
|
|
957
1005
|
declare function TestBed({ items, storageKey, disablePersistence, title, }: TestBedProps): react_jsx_runtime.JSX.Element | null;
|
|
958
1006
|
|
|
959
|
-
export { AdminPageTitle, type AdminPageTitleProps, AsyncSaveButton, BlipColorSelect, type BlipColorSelectProps, BlipDisplaySelect, type BlipDisplaySelectProps, BlipIconSelect, type BlipIconSelectProps, BorderedIcon, type BorderedIconProps, type ButtonProps, ConfigPanel, type ConfigPanelProps, ConfirmModal, type ConfirmModalProps, ControlMultiSelect, type ControlMultiSelectProps, ControlSelect, type ControlSelectProps, Counter, type FiveMControls, FiveMKeyBindInput, FloatingParticles, type FloatingParticlesProps, GroupName, type GroupNameProps, GroupRank, type GroupRankProps, GroupSelect, type GroupSelectProps, type GroupType, type GroupValue, InfoBox, type InfoBoxProps, InputContainer, type InputContainerProps, LevelBanner, LevelPanel, Modal, ModalContext, type ModalProps, ModalProvider, MotionFlex, MotionIcon, MotionImage, MotionText, NavBar, type NavItem, NavigationContext, NavigationProvider, type NavigationStore, type ParticleState, PositionPicker, type PositionPickerProps, type ProgressProps, type Prompt, type PromptButton, PromptModal, type SegmentProps, SegmentedControl, type SegmentedControlProps, SegmentedProgress, SelectItem, type SelectItemProps, type StoreModalProps, TestBed, type TestBedItem, type TestBedProps, Title, type TitleProps, type Vector4Value, useModal, useModalActions, useNavigation, useNavigationStore };
|
|
1007
|
+
export { AdminPageTitle, type AdminPageTitleProps, AsyncSaveButton, BlipColorSelect, type BlipColorSelectProps, BlipDisplaySelect, type BlipDisplaySelectProps, BlipIconSelect, type BlipIconSelectProps, BorderedIcon, type BorderedIconProps, type ButtonProps, ConfigPanel, type ConfigPanelProps, ConfirmModal, type ConfirmModalProps, ControlMultiSelect, type ControlMultiSelectProps, ControlSelect, type ControlSelectProps, Counter, type FiveMControls, FiveMKeyBindInput, FloatingParticles, type FloatingParticlesProps, GroupName, type GroupNameProps, GroupRank, type GroupRankProps, GroupSelect, type GroupSelectProps, type GroupType, type GroupValue, InfoBox, type InfoBoxProps, InputContainer, type InputContainerProps, LevelBanner, LevelPanel, MissingItemsBanner, Modal, ModalContext, type ModalProps, ModalProvider, MotionFlex, MotionIcon, MotionImage, MotionText, NavBar, type NavItem, NavigationContext, NavigationProvider, type NavigationStore, type ParticleState, PositionPicker, type PositionPickerProps, type ProgressProps, type Prompt, type PromptButton, PromptModal, type SegmentProps, SegmentedControl, type SegmentedControlProps, SegmentedProgress, SelectItem, type SelectItemProps, type StoreModalProps, TestBed, type TestBedItem, type TestBedProps, Title, type TitleProps, Vector4DeleteButton, Vector4Display, type Vector4Value, WorldPositionGotoButton, WorldPositionSetButton, useMissingItemsAudit, useModal, useModalActions, useNavigation, useNavigationStore };
|