@fctc/interface-logic 1.10.9 → 2.0.0

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/hooks.js CHANGED
@@ -105,7 +105,7 @@ module.exports = __toCommonJS(hooks_exports);
105
105
  var import_react_query3 = require("@tanstack/react-query");
106
106
 
107
107
  // src/services/action-service/index.ts
108
- var import_react5 = require("react");
108
+ var import_react6 = require("react");
109
109
 
110
110
  // src/constants/api/uri-constant.ts
111
111
  var UriConstants = /* @__PURE__ */ ((UriConstants2) => {
@@ -2932,10 +2932,14 @@ var import_react4 = require("react");
2932
2932
  var import_jsx_runtime6 = require("react/jsx-runtime");
2933
2933
  var ServiceContext = (0, import_react4.createContext)(null);
2934
2934
 
2935
+ // src/provider/meta-provider.tsx
2936
+ var import_react5 = require("react");
2937
+ var import_jsx_runtime7 = require("react/jsx-runtime");
2938
+
2935
2939
  // src/services/action-service/index.ts
2936
2940
  function useActionService() {
2937
2941
  const { env } = useEnv();
2938
- const loadAction = (0, import_react5.useCallback)(
2942
+ const loadAction = (0, import_react6.useCallback)(
2939
2943
  async ({
2940
2944
  idAction,
2941
2945
  context
@@ -2950,7 +2954,7 @@ function useActionService() {
2950
2954
  },
2951
2955
  [env]
2952
2956
  );
2953
- const callButton = (0, import_react5.useCallback)(
2957
+ const callButton = (0, import_react6.useCallback)(
2954
2958
  async ({
2955
2959
  model,
2956
2960
  ids = [],
@@ -2974,7 +2978,7 @@ function useActionService() {
2974
2978
  },
2975
2979
  [env]
2976
2980
  );
2977
- const removeRows = (0, import_react5.useCallback)(
2981
+ const removeRows = (0, import_react6.useCallback)(
2978
2982
  async ({
2979
2983
  model,
2980
2984
  ids,
@@ -2992,7 +2996,7 @@ function useActionService() {
2992
2996
  },
2993
2997
  [env]
2994
2998
  );
2995
- const duplicateRecord = (0, import_react5.useCallback)(
2999
+ const duplicateRecord = (0, import_react6.useCallback)(
2996
3000
  async ({
2997
3001
  model,
2998
3002
  id,
@@ -3010,7 +3014,7 @@ function useActionService() {
3010
3014
  },
3011
3015
  [env]
3012
3016
  );
3013
- const getPrintReportName = (0, import_react5.useCallback)(
3017
+ const getPrintReportName = (0, import_react6.useCallback)(
3014
3018
  async ({ id }) => {
3015
3019
  const jsonData = {
3016
3020
  model: "ir.actions.report",
@@ -3028,7 +3032,7 @@ function useActionService() {
3028
3032
  },
3029
3033
  [env]
3030
3034
  );
3031
- const print = (0, import_react5.useCallback)(
3035
+ const print = (0, import_react6.useCallback)(
3032
3036
  async ({ id, report, db }) => {
3033
3037
  const jsonData = {
3034
3038
  report,
@@ -3046,7 +3050,7 @@ function useActionService() {
3046
3050
  },
3047
3051
  [env]
3048
3052
  );
3049
- const runAction = (0, import_react5.useCallback)(
3053
+ const runAction = (0, import_react6.useCallback)(
3050
3054
  async ({
3051
3055
  idAction,
3052
3056
  context
@@ -3073,10 +3077,10 @@ function useActionService() {
3073
3077
  }
3074
3078
 
3075
3079
  // src/services/auth-service/index.ts
3076
- var import_react6 = require("react");
3080
+ var import_react7 = require("react");
3077
3081
  function useAuthService() {
3078
3082
  const { env } = useEnv();
3079
- const login = (0, import_react6.useCallback)(
3083
+ const login = (0, import_react7.useCallback)(
3080
3084
  async (body) => {
3081
3085
  const payload = Object.fromEntries(
3082
3086
  Object.entries({
@@ -3096,7 +3100,7 @@ function useAuthService() {
3096
3100
  },
3097
3101
  [env]
3098
3102
  );
3099
- const forgotPassword = (0, import_react6.useCallback)(
3103
+ const forgotPassword = (0, import_react7.useCallback)(
3100
3104
  async (email) => {
3101
3105
  const bodyData = {
3102
3106
  login: email,
@@ -3110,7 +3114,7 @@ function useAuthService() {
3110
3114
  },
3111
3115
  [env]
3112
3116
  );
3113
- const forgotPasswordSSO = (0, import_react6.useCallback)(
3117
+ const forgotPasswordSSO = (0, import_react7.useCallback)(
3114
3118
  async ({
3115
3119
  email,
3116
3120
  with_context,
@@ -3133,7 +3137,7 @@ function useAuthService() {
3133
3137
  },
3134
3138
  [env]
3135
3139
  );
3136
- const resetPassword = (0, import_react6.useCallback)(
3140
+ const resetPassword = (0, import_react7.useCallback)(
3137
3141
  async (data, token) => {
3138
3142
  const bodyData = {
3139
3143
  token,
@@ -3148,7 +3152,7 @@ function useAuthService() {
3148
3152
  },
3149
3153
  [env]
3150
3154
  );
3151
- const resetPasswordSSO = (0, import_react6.useCallback)(
3155
+ const resetPasswordSSO = (0, import_react7.useCallback)(
3152
3156
  async ({
3153
3157
  method,
3154
3158
  password,
@@ -3171,7 +3175,7 @@ function useAuthService() {
3171
3175
  },
3172
3176
  [env]
3173
3177
  );
3174
- const updatePassword = (0, import_react6.useCallback)(
3178
+ const updatePassword = (0, import_react7.useCallback)(
3175
3179
  async (data, token) => {
3176
3180
  const bodyData = {
3177
3181
  token,
@@ -3186,7 +3190,7 @@ function useAuthService() {
3186
3190
  },
3187
3191
  [env]
3188
3192
  );
3189
- const isValidToken = (0, import_react6.useCallback)(
3193
+ const isValidToken = (0, import_react7.useCallback)(
3190
3194
  async (token) => {
3191
3195
  const bodyData = {
3192
3196
  token
@@ -3199,7 +3203,7 @@ function useAuthService() {
3199
3203
  },
3200
3204
  [env]
3201
3205
  );
3202
- const isValidActionToken = (0, import_react6.useCallback)(
3206
+ const isValidActionToken = (0, import_react7.useCallback)(
3203
3207
  async (actionToken, path) => {
3204
3208
  return env?.requests?.post(
3205
3209
  path,
@@ -3215,7 +3219,7 @@ function useAuthService() {
3215
3219
  },
3216
3220
  [env]
3217
3221
  );
3218
- const loginSocial = (0, import_react6.useCallback)(
3222
+ const loginSocial = (0, import_react7.useCallback)(
3219
3223
  async ({
3220
3224
  db,
3221
3225
  state,
@@ -3233,13 +3237,13 @@ function useAuthService() {
3233
3237
  },
3234
3238
  [env]
3235
3239
  );
3236
- const getProviders = (0, import_react6.useCallback)(
3240
+ const getProviders = (0, import_react7.useCallback)(
3237
3241
  async (db) => {
3238
3242
  return env?.requests?.get("/oauth/providers", { params: { db } });
3239
3243
  },
3240
3244
  [env]
3241
3245
  );
3242
- const getAccessByCode = (0, import_react6.useCallback)(
3246
+ const getAccessByCode = (0, import_react7.useCallback)(
3243
3247
  async (code) => {
3244
3248
  const data = new URLSearchParams();
3245
3249
  data.append("code", code);
@@ -3258,7 +3262,7 @@ function useAuthService() {
3258
3262
  },
3259
3263
  [env]
3260
3264
  );
3261
- const logout = (0, import_react6.useCallback)(
3265
+ const logout = (0, import_react7.useCallback)(
3262
3266
  async (data) => {
3263
3267
  console.log(data);
3264
3268
  return env?.requests?.post(
@@ -3292,17 +3296,17 @@ function useAuthService() {
3292
3296
  }
3293
3297
 
3294
3298
  // src/services/company-service/index.ts
3295
- var import_react7 = require("react");
3299
+ var import_react8 = require("react");
3296
3300
  function useCompanyService() {
3297
3301
  const { env } = useEnv();
3298
- const getCurrentCompany = (0, import_react7.useCallback)(async () => {
3302
+ const getCurrentCompany = (0, import_react8.useCallback)(async () => {
3299
3303
  return await env.requests.get("/company" /* COMPANY_PATH */, {
3300
3304
  headers: {
3301
3305
  "Content-Type": "application/json"
3302
3306
  }
3303
3307
  });
3304
3308
  }, [env]);
3305
- const getInfoCompany = (0, import_react7.useCallback)(
3309
+ const getInfoCompany = (0, import_react8.useCallback)(
3306
3310
  async (id) => {
3307
3311
  const jsonData = {
3308
3312
  ids: [id],
@@ -3333,10 +3337,10 @@ function useCompanyService() {
3333
3337
  }
3334
3338
 
3335
3339
  // src/services/excel-service/index.ts
3336
- var import_react8 = require("react");
3340
+ var import_react9 = require("react");
3337
3341
  function useExcelService() {
3338
3342
  const { env } = useEnv();
3339
- const uploadFile = (0, import_react8.useCallback)(
3343
+ const uploadFile = (0, import_react9.useCallback)(
3340
3344
  async ({ formData }) => {
3341
3345
  return env.requests.post("/upload/file" /* UPLOAD_FILE_PATH */, formData, {
3342
3346
  headers: {
@@ -3346,7 +3350,7 @@ function useExcelService() {
3346
3350
  },
3347
3351
  [env]
3348
3352
  );
3349
- const uploadIdFile = (0, import_react8.useCallback)(
3353
+ const uploadIdFile = (0, import_react9.useCallback)(
3350
3354
  async ({ formData }) => {
3351
3355
  return env.requests.post("/upload/file" /* UPLOAD_FILE_PATH */, formData, {
3352
3356
  headers: {
@@ -3356,7 +3360,7 @@ function useExcelService() {
3356
3360
  },
3357
3361
  [env]
3358
3362
  );
3359
- const parsePreview = (0, import_react8.useCallback)(
3363
+ const parsePreview = (0, import_react9.useCallback)(
3360
3364
  async ({
3361
3365
  id,
3362
3366
  selectedSheet,
@@ -3400,7 +3404,7 @@ function useExcelService() {
3400
3404
  },
3401
3405
  [env]
3402
3406
  );
3403
- const executeImport = (0, import_react8.useCallback)(
3407
+ const executeImport = (0, import_react9.useCallback)(
3404
3408
  async ({
3405
3409
  columns,
3406
3410
  fields,
@@ -3429,7 +3433,7 @@ function useExcelService() {
3429
3433
  },
3430
3434
  [env]
3431
3435
  );
3432
- const getFileExcel = (0, import_react8.useCallback)(
3436
+ const getFileExcel = (0, import_react9.useCallback)(
3433
3437
  async ({ model }) => {
3434
3438
  const jsonData = {
3435
3439
  model,
@@ -3440,7 +3444,7 @@ function useExcelService() {
3440
3444
  },
3441
3445
  [env]
3442
3446
  );
3443
- const getFieldExport = (0, import_react8.useCallback)(
3447
+ const getFieldExport = (0, import_react9.useCallback)(
3444
3448
  async ({
3445
3449
  ids,
3446
3450
  model,
@@ -3471,7 +3475,7 @@ function useExcelService() {
3471
3475
  },
3472
3476
  [env]
3473
3477
  );
3474
- const exportExcel = (0, import_react8.useCallback)(
3478
+ const exportExcel = (0, import_react9.useCallback)(
3475
3479
  async ({
3476
3480
  model,
3477
3481
  domain,
@@ -3507,10 +3511,10 @@ function useExcelService() {
3507
3511
  }
3508
3512
 
3509
3513
  // src/services/form-service/index.ts
3510
- var import_react9 = require("react");
3514
+ var import_react10 = require("react");
3511
3515
  function useFormService() {
3512
3516
  const { env } = useEnv();
3513
- const getComment = (0, import_react9.useCallback)(
3517
+ const getComment = (0, import_react10.useCallback)(
3514
3518
  async ({ data }) => {
3515
3519
  const jsonData = {
3516
3520
  thread_id: data.thread_id,
@@ -3528,7 +3532,7 @@ function useFormService() {
3528
3532
  },
3529
3533
  [env]
3530
3534
  );
3531
- const sentComment = (0, import_react9.useCallback)(
3535
+ const sentComment = (0, import_react10.useCallback)(
3532
3536
  async ({ data }) => {
3533
3537
  const jsonData = {
3534
3538
  context: {
@@ -3556,7 +3560,7 @@ function useFormService() {
3556
3560
  },
3557
3561
  [env]
3558
3562
  );
3559
- const deleteComment = (0, import_react9.useCallback)(
3563
+ const deleteComment = (0, import_react10.useCallback)(
3560
3564
  async ({ data }) => {
3561
3565
  const jsonData = {
3562
3566
  attachment_ids: [],
@@ -3572,7 +3576,7 @@ function useFormService() {
3572
3576
  },
3573
3577
  [env]
3574
3578
  );
3575
- const getImage = (0, import_react9.useCallback)(
3579
+ const getImage = (0, import_react10.useCallback)(
3576
3580
  async ({ data }) => {
3577
3581
  return env.requests.get(
3578
3582
  `${"/web/image" /* IMAGE_PATH */}?filename=${data.filename}&unique=${data.checksum}&width=1920&height=300`,
@@ -3585,7 +3589,7 @@ function useFormService() {
3585
3589
  },
3586
3590
  [env]
3587
3591
  );
3588
- const uploadImage = (0, import_react9.useCallback)(
3592
+ const uploadImage = (0, import_react10.useCallback)(
3589
3593
  async ({ data }) => {
3590
3594
  return env.requests.post("/mail/attachment/upload" /* UPLOAD_IMAGE */, data, {
3591
3595
  headers: {
@@ -3595,7 +3599,7 @@ function useFormService() {
3595
3599
  },
3596
3600
  [env]
3597
3601
  );
3598
- const getFormView = (0, import_react9.useCallback)(
3602
+ const getFormView = (0, import_react10.useCallback)(
3599
3603
  async ({ data }) => {
3600
3604
  const jsonData = {
3601
3605
  model: data.model,
@@ -3611,7 +3615,7 @@ function useFormService() {
3611
3615
  },
3612
3616
  [env]
3613
3617
  );
3614
- const changeStatus = (0, import_react9.useCallback)(
3618
+ const changeStatus = (0, import_react10.useCallback)(
3615
3619
  async ({ data }) => {
3616
3620
  const vals = {
3617
3621
  [data.name]: data.stage_id
@@ -3652,10 +3656,10 @@ function useFormService() {
3652
3656
  }
3653
3657
 
3654
3658
  // src/services/kanban-service/index.ts
3655
- var import_react10 = require("react");
3659
+ var import_react11 = require("react");
3656
3660
  function useKanbanService() {
3657
3661
  const { env } = useEnv();
3658
- const getGroups = (0, import_react10.useCallback)(
3662
+ const getGroups = (0, import_react11.useCallback)(
3659
3663
  async ({ model, width_context }) => {
3660
3664
  const jsonData = {
3661
3665
  model,
@@ -3675,7 +3679,7 @@ function useKanbanService() {
3675
3679
  },
3676
3680
  [env]
3677
3681
  );
3678
- const getProgressBar = (0, import_react10.useCallback)(
3682
+ const getProgressBar = (0, import_react11.useCallback)(
3679
3683
  async ({ field, color, model, width_context }) => {
3680
3684
  const jsonData = {
3681
3685
  model,
@@ -3705,11 +3709,11 @@ function useKanbanService() {
3705
3709
  }
3706
3710
 
3707
3711
  // src/services/model-service/index.ts
3708
- var import_react11 = require("react");
3712
+ var import_react12 = require("react");
3709
3713
  var OBJECT_POSITION = 2;
3710
3714
  function useModelService() {
3711
3715
  const { env } = useEnv();
3712
- const getListMyBankAccount = (0, import_react11.useCallback)(
3716
+ const getListMyBankAccount = (0, import_react12.useCallback)(
3713
3717
  async ({
3714
3718
  domain,
3715
3719
  spectification,
@@ -3733,7 +3737,7 @@ function useModelService() {
3733
3737
  },
3734
3738
  [env]
3735
3739
  );
3736
- const getCurrency = (0, import_react11.useCallback)(async () => {
3740
+ const getCurrency = (0, import_react12.useCallback)(async () => {
3737
3741
  const jsonData = {
3738
3742
  model: "res.currency",
3739
3743
  method: "web_search_read",
@@ -3753,7 +3757,7 @@ function useModelService() {
3753
3757
  }
3754
3758
  });
3755
3759
  }, [env]);
3756
- const getConversionRate = (0, import_react11.useCallback)(async () => {
3760
+ const getConversionRate = (0, import_react12.useCallback)(async () => {
3757
3761
  const jsonData = {
3758
3762
  model: "res.currency",
3759
3763
  method: "web_search_read",
@@ -3779,7 +3783,7 @@ function useModelService() {
3779
3783
  }
3780
3784
  });
3781
3785
  }, [env]);
3782
- const getAll = (0, import_react11.useCallback)(
3786
+ const getAll = (0, import_react12.useCallback)(
3783
3787
  async ({ data }) => {
3784
3788
  const jsonReadGroup = data.type == "calendar" ? { fields: data?.fields } : data.fields && data.fields.length > 0 && data.groupby && data.groupby.length > 0 && data.groupby[0] ? {
3785
3789
  fields: data.fields,
@@ -3809,7 +3813,7 @@ function useModelService() {
3809
3813
  },
3810
3814
  [env]
3811
3815
  );
3812
- const getListCalendar = (0, import_react11.useCallback)(
3816
+ const getListCalendar = (0, import_react12.useCallback)(
3813
3817
  async ({ data }) => {
3814
3818
  const jsonReadGroup = data.type == "calendar" ? data?.fields : data.fields && data.fields.length > 0 && data.groupby && data.groupby.length > 0 && data.groupby[0] ? {
3815
3819
  fields: data.fields,
@@ -3840,7 +3844,7 @@ function useModelService() {
3840
3844
  },
3841
3845
  [env]
3842
3846
  );
3843
- const getList = (0, import_react11.useCallback)(
3847
+ const getList = (0, import_react12.useCallback)(
3844
3848
  async ({
3845
3849
  model,
3846
3850
  ids = [],
@@ -3872,7 +3876,7 @@ function useModelService() {
3872
3876
  },
3873
3877
  [env]
3874
3878
  );
3875
- const getDetail = (0, import_react11.useCallback)(
3879
+ const getDetail = (0, import_react12.useCallback)(
3876
3880
  async ({ ids = [], model, specification, context }) => {
3877
3881
  const jsonData = {
3878
3882
  model,
@@ -3891,7 +3895,7 @@ function useModelService() {
3891
3895
  },
3892
3896
  [env]
3893
3897
  );
3894
- const save = (0, import_react11.useCallback)(
3898
+ const save = (0, import_react12.useCallback)(
3895
3899
  async ({
3896
3900
  model,
3897
3901
  ids = [],
@@ -3918,7 +3922,7 @@ function useModelService() {
3918
3922
  },
3919
3923
  [env]
3920
3924
  );
3921
- const deleteApi = (0, import_react11.useCallback)(
3925
+ const deleteApi = (0, import_react12.useCallback)(
3922
3926
  async ({ ids = [], model }) => {
3923
3927
  const jsonData = {
3924
3928
  model,
@@ -3933,7 +3937,7 @@ function useModelService() {
3933
3937
  },
3934
3938
  [env]
3935
3939
  );
3936
- const onChange = (0, import_react11.useCallback)(
3940
+ const onChange = (0, import_react12.useCallback)(
3937
3941
  async ({
3938
3942
  ids = [],
3939
3943
  model,
@@ -3961,7 +3965,7 @@ function useModelService() {
3961
3965
  },
3962
3966
  [env]
3963
3967
  );
3964
- const getListFieldsOnchange = (0, import_react11.useCallback)(
3968
+ const getListFieldsOnchange = (0, import_react12.useCallback)(
3965
3969
  async ({ model }) => {
3966
3970
  const jsonData = {
3967
3971
  model,
@@ -3975,7 +3979,7 @@ function useModelService() {
3975
3979
  },
3976
3980
  [env]
3977
3981
  );
3978
- const parseORMOdoo = (0, import_react11.useCallback)((data) => {
3982
+ const parseORMOdoo = (0, import_react12.useCallback)((data) => {
3979
3983
  for (const key in data) {
3980
3984
  if (key === "display_name") {
3981
3985
  delete data[key];
@@ -3988,7 +3992,7 @@ function useModelService() {
3988
3992
  }
3989
3993
  return { ...data };
3990
3994
  }, []);
3991
- const toDataJS = (0, import_react11.useCallback)(
3995
+ const toDataJS = (0, import_react12.useCallback)(
3992
3996
  (data, viewData, model) => {
3993
3997
  for (const key in data) {
3994
3998
  if (data[key] === false) {
@@ -4048,10 +4052,10 @@ function useModelService() {
4048
4052
  }
4049
4053
 
4050
4054
  // src/services/user-service/index.ts
4051
- var import_react12 = require("react");
4055
+ var import_react13 = require("react");
4052
4056
  function useUserService() {
4053
4057
  const { env } = useEnv();
4054
- const getProfile = (0, import_react12.useCallback)(
4058
+ const getProfile = (0, import_react13.useCallback)(
4055
4059
  async (path) => {
4056
4060
  return env?.requests?.get(path ?? "/userinfo" /* PROFILE_PATH */, {
4057
4061
  headers: {
@@ -4061,7 +4065,7 @@ function useUserService() {
4061
4065
  },
4062
4066
  [env]
4063
4067
  );
4064
- const getUser = (0, import_react12.useCallback)(
4068
+ const getUser = (0, import_react13.useCallback)(
4065
4069
  async ({ context, id }) => {
4066
4070
  const jsonData = {
4067
4071
  model: "res.users",
@@ -4099,7 +4103,7 @@ function useUserService() {
4099
4103
  },
4100
4104
  [env]
4101
4105
  );
4102
- const switchUserLocale = (0, import_react12.useCallback)(
4106
+ const switchUserLocale = (0, import_react13.useCallback)(
4103
4107
  async ({ id, values }) => {
4104
4108
  const jsonData = {
4105
4109
  model: "res.users",
@@ -4122,10 +4126,10 @@ function useUserService() {
4122
4126
  }
4123
4127
 
4124
4128
  // src/services/view-service/index.ts
4125
- var import_react13 = require("react");
4129
+ var import_react14 = require("react");
4126
4130
  function useViewService() {
4127
4131
  const { env } = useEnv();
4128
- const getView = (0, import_react13.useCallback)(
4132
+ const getView = (0, import_react14.useCallback)(
4129
4133
  async ({
4130
4134
  model,
4131
4135
  views,
@@ -4155,7 +4159,7 @@ function useViewService() {
4155
4159
  },
4156
4160
  [env]
4157
4161
  );
4158
- const getMenu = (0, import_react13.useCallback)(
4162
+ const getMenu = (0, import_react14.useCallback)(
4159
4163
  async (context) => {
4160
4164
  const jsonData = {
4161
4165
  model: "ir.ui.menu" /* MENU */,
@@ -4268,7 +4272,7 @@ function useViewService() {
4268
4272
  },
4269
4273
  [env]
4270
4274
  );
4271
- const getActionDetail = (0, import_react13.useCallback)(
4275
+ const getActionDetail = (0, import_react14.useCallback)(
4272
4276
  async (aid, context) => {
4273
4277
  const jsonData = {
4274
4278
  model: "ir.actions.act_window" /* WINDOW_ACTION */,
@@ -4298,7 +4302,7 @@ function useViewService() {
4298
4302
  },
4299
4303
  [env]
4300
4304
  );
4301
- const getResequence = (0, import_react13.useCallback)(
4305
+ const getResequence = (0, import_react14.useCallback)(
4302
4306
  async ({
4303
4307
  model,
4304
4308
  ids,
@@ -4320,7 +4324,7 @@ function useViewService() {
4320
4324
  },
4321
4325
  [env]
4322
4326
  );
4323
- const getSelectionItem = (0, import_react13.useCallback)(
4327
+ const getSelectionItem = (0, import_react14.useCallback)(
4324
4328
  async ({ data }) => {
4325
4329
  const jsonData = {
4326
4330
  model: data.model,
@@ -4347,7 +4351,7 @@ function useViewService() {
4347
4351
  },
4348
4352
  [env]
4349
4353
  );
4350
- const loadMessages = (0, import_react13.useCallback)(async () => {
4354
+ const loadMessages = (0, import_react14.useCallback)(async () => {
4351
4355
  return env.requests.post(
4352
4356
  "/load_message_failures" /* LOAD_MESSAGE */,
4353
4357
  {},
@@ -4358,14 +4362,14 @@ function useViewService() {
4358
4362
  }
4359
4363
  );
4360
4364
  }, [env]);
4361
- const getVersion = (0, import_react13.useCallback)(async () => {
4365
+ const getVersion = (0, import_react14.useCallback)(async () => {
4362
4366
  return env?.requests?.get("", {
4363
4367
  headers: {
4364
4368
  "Content-Type": "application/json"
4365
4369
  }
4366
4370
  });
4367
4371
  }, [env]);
4368
- const grantAccess = (0, import_react13.useCallback)(
4372
+ const grantAccess = (0, import_react14.useCallback)(
4369
4373
  async ({
4370
4374
  redirect_uri,
4371
4375
  state,
@@ -4387,7 +4391,7 @@ function useViewService() {
4387
4391
  },
4388
4392
  [env]
4389
4393
  );
4390
- const removeTotpSetUp = (0, import_react13.useCallback)(
4394
+ const removeTotpSetUp = (0, import_react14.useCallback)(
4391
4395
  async ({ method, token }) => {
4392
4396
  const jsonData = {
4393
4397
  method,
@@ -4403,7 +4407,7 @@ function useViewService() {
4403
4407
  },
4404
4408
  [env]
4405
4409
  );
4406
- const requestSetupTotp = (0, import_react13.useCallback)(
4410
+ const requestSetupTotp = (0, import_react14.useCallback)(
4407
4411
  async ({ method, token }) => {
4408
4412
  const jsonData = {
4409
4413
  method,
@@ -4417,7 +4421,7 @@ function useViewService() {
4417
4421
  },
4418
4422
  [env]
4419
4423
  );
4420
- const settingsWebRead2fa = (0, import_react13.useCallback)(
4424
+ const settingsWebRead2fa = (0, import_react14.useCallback)(
4421
4425
  async ({
4422
4426
  method,
4423
4427
  model,
@@ -4440,7 +4444,7 @@ function useViewService() {
4440
4444
  },
4441
4445
  [env]
4442
4446
  );
4443
- const signInSSO = (0, import_react13.useCallback)(
4447
+ const signInSSO = (0, import_react14.useCallback)(
4444
4448
  async ({
4445
4449
  redirect_uri,
4446
4450
  state,
@@ -4461,7 +4465,7 @@ function useViewService() {
4461
4465
  },
4462
4466
  [env]
4463
4467
  );
4464
- const verify2FA = (0, import_react13.useCallback)(
4468
+ const verify2FA = (0, import_react14.useCallback)(
4465
4469
  ({
4466
4470
  method,
4467
4471
  with_context,
@@ -4489,7 +4493,7 @@ function useViewService() {
4489
4493
  },
4490
4494
  [env]
4491
4495
  );
4492
- const get2FAMethods = (0, import_react13.useCallback)(
4496
+ const get2FAMethods = (0, import_react14.useCallback)(
4493
4497
  ({ method, with_context }) => {
4494
4498
  const jsonData = {
4495
4499
  method,
@@ -4503,7 +4507,7 @@ function useViewService() {
4503
4507
  },
4504
4508
  [env]
4505
4509
  );
4506
- const verifyTotp = (0, import_react13.useCallback)(
4510
+ const verifyTotp = (0, import_react14.useCallback)(
4507
4511
  ({
4508
4512
  method,
4509
4513
  action_token,
package/dist/hooks.mjs CHANGED
@@ -2829,6 +2829,10 @@ import { createContext as createContext2, useContext as useContext2 } from "reac
2829
2829
  import { jsx as jsx6 } from "react/jsx-runtime";
2830
2830
  var ServiceContext = createContext2(null);
2831
2831
 
2832
+ // src/provider/meta-provider.tsx
2833
+ import { useEffect as useEffect3 } from "react";
2834
+ import { Fragment as Fragment2, jsx as jsx7 } from "react/jsx-runtime";
2835
+
2832
2836
  // src/services/action-service/index.ts
2833
2837
  function useActionService() {
2834
2838
  const { env } = useEnv();
@@ -134,4 +134,9 @@ declare const ServiceProvider: ({ children, }: {
134
134
  }) => JSX.Element;
135
135
  declare const useService: () => ServiceContextType;
136
136
 
137
- export { EnvProvider, MainProvider, ReactQueryProvider, ServiceProvider, VersionGate, useEnv, useService };
137
+ type MetaProviderProps = {
138
+ children: ReactNode;
139
+ };
140
+ declare const MetaProvider: ({ children }: MetaProviderProps) => JSX.Element;
141
+
142
+ export { EnvProvider, MainProvider, MetaProvider, ReactQueryProvider, ServiceProvider, VersionGate, useEnv, useService };
@@ -134,4 +134,9 @@ declare const ServiceProvider: ({ children, }: {
134
134
  }) => JSX.Element;
135
135
  declare const useService: () => ServiceContextType;
136
136
 
137
- export { EnvProvider, MainProvider, ReactQueryProvider, ServiceProvider, VersionGate, useEnv, useService };
137
+ type MetaProviderProps = {
138
+ children: ReactNode;
139
+ };
140
+ declare const MetaProvider: ({ children }: MetaProviderProps) => JSX.Element;
141
+
142
+ export { EnvProvider, MainProvider, MetaProvider, ReactQueryProvider, ServiceProvider, VersionGate, useEnv, useService };