dirk-cfx-react 1.1.89 → 1.1.91
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 +499 -247
- package/dist/components/index.cjs.map +1 -1
- package/dist/components/index.d.cts +39 -9
- package/dist/components/index.d.ts +39 -9
- package/dist/components/index.js +500 -249
- package/dist/components/index.js.map +1 -1
- package/dist/hooks/index.cjs +22 -12
- package/dist/hooks/index.cjs.map +1 -1
- package/dist/hooks/index.js +22 -12
- package/dist/hooks/index.js.map +1 -1
- package/dist/index.cjs +502 -248
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +43 -2
- package/dist/index.d.ts +43 -2
- package/dist/index.js +500 -250
- package/dist/index.js.map +1 -1
- package/dist/providers/index.cjs +51 -17
- package/dist/providers/index.cjs.map +1 -1
- package/dist/providers/index.js +51 -17
- package/dist/providers/index.js.map +1 -1
- package/dist/utils/index.cjs +51 -17
- package/dist/utils/index.cjs.map +1 -1
- package/dist/utils/index.js +51 -17
- package/dist/utils/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -369,8 +369,9 @@ declare const MotionIcon: React__default.ComponentType<Omit<{
|
|
|
369
369
|
stroke?: string | undefined;
|
|
370
370
|
imageRendering?: string | number | undefined;
|
|
371
371
|
crossOrigin?: "" | "anonymous" | "use-credentials" | undefined;
|
|
372
|
-
direction?: string | number | undefined;
|
|
373
372
|
transform?: string | _fortawesome_fontawesome_svg_core.Transform | undefined;
|
|
373
|
+
format?: string | number | undefined;
|
|
374
|
+
direction?: string | number | undefined;
|
|
374
375
|
media?: string | undefined;
|
|
375
376
|
method?: string | undefined;
|
|
376
377
|
target?: string | undefined;
|
|
@@ -434,7 +435,6 @@ declare const MotionIcon: React__default.ComponentType<Omit<{
|
|
|
434
435
|
fontSizeAdjust?: string | number | undefined;
|
|
435
436
|
fontStretch?: string | number | undefined;
|
|
436
437
|
fontVariant?: string | number | undefined;
|
|
437
|
-
format?: string | number | undefined;
|
|
438
438
|
fr?: string | number | undefined;
|
|
439
439
|
from?: string | number | undefined;
|
|
440
440
|
fx?: string | number | undefined;
|
|
@@ -1043,12 +1043,6 @@ interface TestBedProps {
|
|
|
1043
1043
|
}
|
|
1044
1044
|
declare function TestBed({ items, storageKey, disablePersistence, title, placement, }: TestBedProps): react_jsx_runtime.JSX.Element | null;
|
|
1045
1045
|
|
|
1046
|
-
type ThemeOverrideValue = {
|
|
1047
|
-
useOverride: boolean;
|
|
1048
|
-
primaryColor: string;
|
|
1049
|
-
primaryShade: number;
|
|
1050
|
-
customTheme: string[];
|
|
1051
|
-
};
|
|
1052
1046
|
type ThemeOverrideSectionProps = {
|
|
1053
1047
|
/**
|
|
1054
1048
|
* Schema path the consumer stores its override block under. Defaults to
|
|
@@ -1063,6 +1057,42 @@ type ThemeOverrideSectionProps = {
|
|
|
1063
1057
|
};
|
|
1064
1058
|
declare function ThemeOverrideSection({ schemaKey, title, }: ThemeOverrideSectionProps): react_jsx_runtime.JSX.Element;
|
|
1065
1059
|
|
|
1060
|
+
type AccessOverrideValue = {
|
|
1061
|
+
/** Job / gang / ACE group names allowed to access this resource. */
|
|
1062
|
+
groups: string[];
|
|
1063
|
+
/** Persistent player ids (citizenid on qb/qbx, license on esx — what
|
|
1064
|
+
* PlayerSelect yields). dirk_lib also matches raw FiveM identifiers. */
|
|
1065
|
+
identifiers: string[];
|
|
1066
|
+
};
|
|
1067
|
+
type AccessOverrideSectionProps = {
|
|
1068
|
+
/**
|
|
1069
|
+
* Schema path the consumer stores its access block under. Defaults to
|
|
1070
|
+
* "access" — matches the recommended schema key.
|
|
1071
|
+
*/
|
|
1072
|
+
schemaKey?: string;
|
|
1073
|
+
/**
|
|
1074
|
+
* Optional title for the AdminPageTitle. Defaults to the localized
|
|
1075
|
+
* "Access" string with a fallback.
|
|
1076
|
+
*/
|
|
1077
|
+
title?: string;
|
|
1078
|
+
/**
|
|
1079
|
+
* Optional description shown under the title. Defaults to a localized
|
|
1080
|
+
* explanation with a fallback.
|
|
1081
|
+
*/
|
|
1082
|
+
description?: string;
|
|
1083
|
+
/**
|
|
1084
|
+
* Restrict the group picker to "job" or "gang" only. Omit to allow any
|
|
1085
|
+
* group (jobs + gangs grouped in the dropdown). Forwarded to GroupName.
|
|
1086
|
+
*/
|
|
1087
|
+
groupType?: "job" | "gang";
|
|
1088
|
+
/**
|
|
1089
|
+
* When true, the player picker searches offline players (DB-backed) too.
|
|
1090
|
+
* Defaults to true so admins can grant access to players who aren't online.
|
|
1091
|
+
*/
|
|
1092
|
+
includeOffline?: boolean;
|
|
1093
|
+
};
|
|
1094
|
+
declare function AccessOverrideSection({ schemaKey, title, description, groupType, includeOffline, }: AccessOverrideSectionProps): react_jsx_runtime.JSX.Element;
|
|
1095
|
+
|
|
1066
1096
|
type AnimPostFxSelectProps = Omit<SelectProps, "data" | "value" | "onChange"> & {
|
|
1067
1097
|
/** Current effect name. Empty string = no effect selected. */
|
|
1068
1098
|
value: string;
|
|
@@ -1312,4 +1342,4 @@ type AdminToolStore = {
|
|
|
1312
1342
|
};
|
|
1313
1343
|
declare const useAdminToolStore: zustand.UseBoundStore<zustand.StoreApi<AdminToolStore>>;
|
|
1314
1344
|
|
|
1315
|
-
export { AccountSelect, type AccountSelectProps, type ActiveTool, AdminPageTitle, type AdminPageTitleProps, AnimPostFxSelect, type AnimPostFxSelectProps, AsyncSaveButton, BlipColorSelect, type BlipColorSelectProps, BlipDisplaySelect, type BlipDisplaySelectProps, BlipIconSelect, type BlipIconSelectProps, BlipMarker, type BlipMarkerProps, BorderedIcon, type BorderedIconProps, type ButtonProps, ConfigPanel, type ConfigPanelProps, ConfirmModal, type ConfirmModalProps, ControlMultiSelect, type ControlMultiSelectProps, ControlSelect, type ControlSelectProps, Counter, type DiscordRole, DiscordRoleSelect, type DiscordRoleSelectProps, DoorPickerButton, type FiveMControls, FiveMKeyBindInput, FloatingParticles, type FloatingParticlesProps, type FrameworkAccount, GroupName, type GroupNameProps, GroupRank, type GroupRankProps, GroupSelect, type GroupSelectProps, type GroupType, type GroupValue, InfoBox, type InfoBoxProps, InputContainer, type InputContainerProps, type InstructionKey, InstructionPanel, type InstructionPanelProps, LevelBanner, LevelPanel, Map, MapLayer, type MapProps, type MapStyle, MissingItemsBanner, Modal, ModalContext, type ModalProps, ModalProvider, MotionFlex, MotionIcon, MotionImage, MotionText, NavBar, type NavItem, NavigationContext, NavigationProvider, type NavigationStore, type ParticleState, type PickedDoor, type PickedDoorGroup, PlayerSelect, type PlayerSelectProps, PositionPicker, type PositionPickerProps, type ProgressProps, type Prompt, type PromptButton, PromptModal, ScenarioSelect, type ScenarioSelectProps, type SegmentProps, SegmentedControl, type SegmentedControlProps, SegmentedProgress, SelectItem, type SelectItemProps, type StoreModalProps, SwitchPanel, type SwitchPanelProps, TestBed, type TestBedItem, type TestBedPlacement, type TestBedProps, ThemeOverrideSection, type ThemeOverrideSectionProps,
|
|
1345
|
+
export { AccessOverrideSection, type AccessOverrideSectionProps, type AccessOverrideValue, AccountSelect, type AccountSelectProps, type ActiveTool, AdminPageTitle, type AdminPageTitleProps, AnimPostFxSelect, type AnimPostFxSelectProps, AsyncSaveButton, BlipColorSelect, type BlipColorSelectProps, BlipDisplaySelect, type BlipDisplaySelectProps, BlipIconSelect, type BlipIconSelectProps, BlipMarker, type BlipMarkerProps, BorderedIcon, type BorderedIconProps, type ButtonProps, ConfigPanel, type ConfigPanelProps, ConfirmModal, type ConfirmModalProps, ControlMultiSelect, type ControlMultiSelectProps, ControlSelect, type ControlSelectProps, Counter, type DiscordRole, DiscordRoleSelect, type DiscordRoleSelectProps, DoorPickerButton, type FiveMControls, FiveMKeyBindInput, FloatingParticles, type FloatingParticlesProps, type FrameworkAccount, GroupName, type GroupNameProps, GroupRank, type GroupRankProps, GroupSelect, type GroupSelectProps, type GroupType, type GroupValue, InfoBox, type InfoBoxProps, InputContainer, type InputContainerProps, type InstructionKey, InstructionPanel, type InstructionPanelProps, LevelBanner, LevelPanel, Map, MapLayer, type MapProps, type MapStyle, MissingItemsBanner, Modal, ModalContext, type ModalProps, ModalProvider, MotionFlex, MotionIcon, MotionImage, MotionText, NavBar, type NavItem, NavigationContext, NavigationProvider, type NavigationStore, type ParticleState, type PickedDoor, type PickedDoorGroup, PlayerSelect, type PlayerSelectProps, PositionPicker, type PositionPickerProps, type ProgressProps, type Prompt, type PromptButton, PromptModal, ScenarioSelect, type ScenarioSelectProps, type SegmentProps, SegmentedControl, type SegmentedControlProps, SegmentedProgress, SelectItem, type SelectItemProps, type StoreModalProps, SwitchPanel, type SwitchPanelProps, TestBed, type TestBedItem, type TestBedPlacement, type TestBedProps, ThemeOverrideSection, type ThemeOverrideSectionProps, Title, type TitleProps, type TitleSize, Vector4DeleteButton, Vector4Display, type Vector4Value, WorldPositionGotoButton, WorldPositionPicker, type WorldPositionPickerSlot, WorldPositionSetButton, ZoomControls, blipUrl, blipUrlForSprite, getBlipColor, getBlipEntry, useAdminToolStore, useMissingItemsAudit, useModal, useModalActions, useNavigation, useNavigationStore, usePickDoor };
|
|
@@ -369,8 +369,9 @@ declare const MotionIcon: React__default.ComponentType<Omit<{
|
|
|
369
369
|
stroke?: string | undefined;
|
|
370
370
|
imageRendering?: string | number | undefined;
|
|
371
371
|
crossOrigin?: "" | "anonymous" | "use-credentials" | undefined;
|
|
372
|
-
direction?: string | number | undefined;
|
|
373
372
|
transform?: string | _fortawesome_fontawesome_svg_core.Transform | undefined;
|
|
373
|
+
format?: string | number | undefined;
|
|
374
|
+
direction?: string | number | undefined;
|
|
374
375
|
media?: string | undefined;
|
|
375
376
|
method?: string | undefined;
|
|
376
377
|
target?: string | undefined;
|
|
@@ -434,7 +435,6 @@ declare const MotionIcon: React__default.ComponentType<Omit<{
|
|
|
434
435
|
fontSizeAdjust?: string | number | undefined;
|
|
435
436
|
fontStretch?: string | number | undefined;
|
|
436
437
|
fontVariant?: string | number | undefined;
|
|
437
|
-
format?: string | number | undefined;
|
|
438
438
|
fr?: string | number | undefined;
|
|
439
439
|
from?: string | number | undefined;
|
|
440
440
|
fx?: string | number | undefined;
|
|
@@ -1043,12 +1043,6 @@ interface TestBedProps {
|
|
|
1043
1043
|
}
|
|
1044
1044
|
declare function TestBed({ items, storageKey, disablePersistence, title, placement, }: TestBedProps): react_jsx_runtime.JSX.Element | null;
|
|
1045
1045
|
|
|
1046
|
-
type ThemeOverrideValue = {
|
|
1047
|
-
useOverride: boolean;
|
|
1048
|
-
primaryColor: string;
|
|
1049
|
-
primaryShade: number;
|
|
1050
|
-
customTheme: string[];
|
|
1051
|
-
};
|
|
1052
1046
|
type ThemeOverrideSectionProps = {
|
|
1053
1047
|
/**
|
|
1054
1048
|
* Schema path the consumer stores its override block under. Defaults to
|
|
@@ -1063,6 +1057,42 @@ type ThemeOverrideSectionProps = {
|
|
|
1063
1057
|
};
|
|
1064
1058
|
declare function ThemeOverrideSection({ schemaKey, title, }: ThemeOverrideSectionProps): react_jsx_runtime.JSX.Element;
|
|
1065
1059
|
|
|
1060
|
+
type AccessOverrideValue = {
|
|
1061
|
+
/** Job / gang / ACE group names allowed to access this resource. */
|
|
1062
|
+
groups: string[];
|
|
1063
|
+
/** Persistent player ids (citizenid on qb/qbx, license on esx — what
|
|
1064
|
+
* PlayerSelect yields). dirk_lib also matches raw FiveM identifiers. */
|
|
1065
|
+
identifiers: string[];
|
|
1066
|
+
};
|
|
1067
|
+
type AccessOverrideSectionProps = {
|
|
1068
|
+
/**
|
|
1069
|
+
* Schema path the consumer stores its access block under. Defaults to
|
|
1070
|
+
* "access" — matches the recommended schema key.
|
|
1071
|
+
*/
|
|
1072
|
+
schemaKey?: string;
|
|
1073
|
+
/**
|
|
1074
|
+
* Optional title for the AdminPageTitle. Defaults to the localized
|
|
1075
|
+
* "Access" string with a fallback.
|
|
1076
|
+
*/
|
|
1077
|
+
title?: string;
|
|
1078
|
+
/**
|
|
1079
|
+
* Optional description shown under the title. Defaults to a localized
|
|
1080
|
+
* explanation with a fallback.
|
|
1081
|
+
*/
|
|
1082
|
+
description?: string;
|
|
1083
|
+
/**
|
|
1084
|
+
* Restrict the group picker to "job" or "gang" only. Omit to allow any
|
|
1085
|
+
* group (jobs + gangs grouped in the dropdown). Forwarded to GroupName.
|
|
1086
|
+
*/
|
|
1087
|
+
groupType?: "job" | "gang";
|
|
1088
|
+
/**
|
|
1089
|
+
* When true, the player picker searches offline players (DB-backed) too.
|
|
1090
|
+
* Defaults to true so admins can grant access to players who aren't online.
|
|
1091
|
+
*/
|
|
1092
|
+
includeOffline?: boolean;
|
|
1093
|
+
};
|
|
1094
|
+
declare function AccessOverrideSection({ schemaKey, title, description, groupType, includeOffline, }: AccessOverrideSectionProps): react_jsx_runtime.JSX.Element;
|
|
1095
|
+
|
|
1066
1096
|
type AnimPostFxSelectProps = Omit<SelectProps, "data" | "value" | "onChange"> & {
|
|
1067
1097
|
/** Current effect name. Empty string = no effect selected. */
|
|
1068
1098
|
value: string;
|
|
@@ -1312,4 +1342,4 @@ type AdminToolStore = {
|
|
|
1312
1342
|
};
|
|
1313
1343
|
declare const useAdminToolStore: zustand.UseBoundStore<zustand.StoreApi<AdminToolStore>>;
|
|
1314
1344
|
|
|
1315
|
-
export { AccountSelect, type AccountSelectProps, type ActiveTool, AdminPageTitle, type AdminPageTitleProps, AnimPostFxSelect, type AnimPostFxSelectProps, AsyncSaveButton, BlipColorSelect, type BlipColorSelectProps, BlipDisplaySelect, type BlipDisplaySelectProps, BlipIconSelect, type BlipIconSelectProps, BlipMarker, type BlipMarkerProps, BorderedIcon, type BorderedIconProps, type ButtonProps, ConfigPanel, type ConfigPanelProps, ConfirmModal, type ConfirmModalProps, ControlMultiSelect, type ControlMultiSelectProps, ControlSelect, type ControlSelectProps, Counter, type DiscordRole, DiscordRoleSelect, type DiscordRoleSelectProps, DoorPickerButton, type FiveMControls, FiveMKeyBindInput, FloatingParticles, type FloatingParticlesProps, type FrameworkAccount, GroupName, type GroupNameProps, GroupRank, type GroupRankProps, GroupSelect, type GroupSelectProps, type GroupType, type GroupValue, InfoBox, type InfoBoxProps, InputContainer, type InputContainerProps, type InstructionKey, InstructionPanel, type InstructionPanelProps, LevelBanner, LevelPanel, Map, MapLayer, type MapProps, type MapStyle, MissingItemsBanner, Modal, ModalContext, type ModalProps, ModalProvider, MotionFlex, MotionIcon, MotionImage, MotionText, NavBar, type NavItem, NavigationContext, NavigationProvider, type NavigationStore, type ParticleState, type PickedDoor, type PickedDoorGroup, PlayerSelect, type PlayerSelectProps, PositionPicker, type PositionPickerProps, type ProgressProps, type Prompt, type PromptButton, PromptModal, ScenarioSelect, type ScenarioSelectProps, type SegmentProps, SegmentedControl, type SegmentedControlProps, SegmentedProgress, SelectItem, type SelectItemProps, type StoreModalProps, SwitchPanel, type SwitchPanelProps, TestBed, type TestBedItem, type TestBedPlacement, type TestBedProps, ThemeOverrideSection, type ThemeOverrideSectionProps,
|
|
1345
|
+
export { AccessOverrideSection, type AccessOverrideSectionProps, type AccessOverrideValue, AccountSelect, type AccountSelectProps, type ActiveTool, AdminPageTitle, type AdminPageTitleProps, AnimPostFxSelect, type AnimPostFxSelectProps, AsyncSaveButton, BlipColorSelect, type BlipColorSelectProps, BlipDisplaySelect, type BlipDisplaySelectProps, BlipIconSelect, type BlipIconSelectProps, BlipMarker, type BlipMarkerProps, BorderedIcon, type BorderedIconProps, type ButtonProps, ConfigPanel, type ConfigPanelProps, ConfirmModal, type ConfirmModalProps, ControlMultiSelect, type ControlMultiSelectProps, ControlSelect, type ControlSelectProps, Counter, type DiscordRole, DiscordRoleSelect, type DiscordRoleSelectProps, DoorPickerButton, type FiveMControls, FiveMKeyBindInput, FloatingParticles, type FloatingParticlesProps, type FrameworkAccount, GroupName, type GroupNameProps, GroupRank, type GroupRankProps, GroupSelect, type GroupSelectProps, type GroupType, type GroupValue, InfoBox, type InfoBoxProps, InputContainer, type InputContainerProps, type InstructionKey, InstructionPanel, type InstructionPanelProps, LevelBanner, LevelPanel, Map, MapLayer, type MapProps, type MapStyle, MissingItemsBanner, Modal, ModalContext, type ModalProps, ModalProvider, MotionFlex, MotionIcon, MotionImage, MotionText, NavBar, type NavItem, NavigationContext, NavigationProvider, type NavigationStore, type ParticleState, type PickedDoor, type PickedDoorGroup, PlayerSelect, type PlayerSelectProps, PositionPicker, type PositionPickerProps, type ProgressProps, type Prompt, type PromptButton, PromptModal, ScenarioSelect, type ScenarioSelectProps, type SegmentProps, SegmentedControl, type SegmentedControlProps, SegmentedProgress, SelectItem, type SelectItemProps, type StoreModalProps, SwitchPanel, type SwitchPanelProps, TestBed, type TestBedItem, type TestBedPlacement, type TestBedProps, ThemeOverrideSection, type ThemeOverrideSectionProps, Title, type TitleProps, type TitleSize, Vector4DeleteButton, Vector4Display, type Vector4Value, WorldPositionGotoButton, WorldPositionPicker, type WorldPositionPickerSlot, WorldPositionSetButton, ZoomControls, blipUrl, blipUrlForSprite, getBlipColor, getBlipEntry, useAdminToolStore, useMissingItemsAudit, useModal, useModalActions, useNavigation, useNavigationStore, usePickDoor };
|