fui-material 2.8.0 → 2.8.1

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.
@@ -8492,21 +8492,21 @@ const useFApi = ({ doNotUseState = false, defaultState = null, getValueByPath =
8492
8492
  return { data, loading, error: error2, execute, reset };
8493
8493
  };
8494
8494
  const LibraryContext = createContext(null);
8495
- const LibraryProvider = ({
8495
+ const FLibraryProvider = ({
8496
8496
  children,
8497
8497
  config
8498
8498
  }) => {
8499
8499
  return /* @__PURE__ */ jsx(LibraryContext.Provider, { value: config, children });
8500
8500
  };
8501
- const useLibraryContext = () => {
8501
+ const useFLibraryContext = () => {
8502
8502
  const context = useContext(LibraryContext);
8503
8503
  if (!context) {
8504
- throw new Error("[UIKit/Lib]: Вы должны обернуть приложение в <LibraryProvider config={{ apiService }}>");
8504
+ throw new Error("[UIKit/Lib]: Вы должны обернуть приложение в <FLibraryProvider config={{ apiService }}>");
8505
8505
  }
8506
8506
  return context;
8507
8507
  };
8508
8508
  const useFApiMutation = (url, config, options) => {
8509
- const { apiService } = useLibraryContext();
8509
+ const { apiService } = useFLibraryContext();
8510
8510
  const queryClient = useQueryClient();
8511
8511
  const mutation = useMutation({
8512
8512
  mutationFn: ({ data, urlParams }) => {
@@ -8627,7 +8627,7 @@ function useNotificationEffects(options, state) {
8627
8627
  }, [state.isSuccess, onSuccessNotification, successNotificationTitle, successNotificationBody]);
8628
8628
  }
8629
8629
  const useFApiQuery = (queryKey, url, config, options) => {
8630
- const { apiService } = useLibraryContext();
8630
+ const { apiService } = useFLibraryContext();
8631
8631
  const {
8632
8632
  onErrorNotification = false,
8633
8633
  onErrorLog = false,
@@ -8700,7 +8700,7 @@ const useFApiQuery = (queryKey, url, config, options) => {
8700
8700
  return query;
8701
8701
  };
8702
8702
  function useFManualApiQuery(queryKey, url, initialParams, config, options) {
8703
- const { apiService } = useLibraryContext();
8703
+ const { apiService } = useFLibraryContext();
8704
8704
  const queryClient = useQueryClient();
8705
8705
  const [params, setParams] = useState(initialParams);
8706
8706
  const [urlParams, setUrlParams] = useState(options == null ? void 0 : options.urlParams);
@@ -8920,6 +8920,7 @@ export {
8920
8920
  FGridRow,
8921
8921
  FInfoCircleIcon,
8922
8922
  FInputFileForm,
8923
+ FLibraryProvider,
8923
8924
  FListIcon,
8924
8925
  FLoadIcon,
8925
8926
  FMenuBlockLinks,
@@ -8964,7 +8965,6 @@ export {
8964
8965
  FUnlinkIcon,
8965
8966
  FUploadIcon,
8966
8967
  FWaterErrorBoundaryPage,
8967
- LibraryProvider,
8968
8968
  fAlert,
8969
8969
  fBankRound,
8970
8970
  fConfirm,