@iankibetsh/shframework 1.9.1 → 1.9.2

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/library.js CHANGED
@@ -11,7 +11,6 @@ var _ = require('lodash');
11
11
  var vueRouter = require('vue-router');
12
12
  var pinia = require('pinia');
13
13
  var bootstrap = require('bootstrap');
14
- var shGql_js = require('@/lib/repo/graphql/shGql.js');
15
14
 
16
15
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
17
16
 
@@ -38,7 +37,6 @@ var moment__default = /*#__PURE__*/_interopDefaultLegacy(moment);
38
37
  var Swal__default = /*#__PURE__*/_interopDefaultLegacy(Swal);
39
38
  var NProgress__default = /*#__PURE__*/_interopDefaultLegacy(NProgress);
40
39
  var ___default = /*#__PURE__*/_interopDefaultLegacy(_);
41
- var shGql_js__default = /*#__PURE__*/_interopDefaultLegacy(shGql_js);
42
40
 
43
41
  function setItem (key, value) {
44
42
  let toStore = value;
@@ -6512,10 +6510,19 @@ const ShFrontend = {
6512
6510
  }
6513
6511
  };
6514
6512
 
6515
- Object.defineProperty(exports, 'shGql', {
6516
- enumerable: true,
6517
- get: function () { return shGql_js__default["default"]; }
6518
- });
6513
+ const query = async qlQuery => {
6514
+ const result = await shApis.graphQlQuery(qlQuery);
6515
+ return result.data
6516
+ };
6517
+ const mutate = async mutation => {
6518
+ const result = await shApis.graphQlMutate(mutation);
6519
+ return result.data
6520
+ };
6521
+ var shGql = {
6522
+ query,
6523
+ mutate
6524
+ };
6525
+
6519
6526
  exports.Countries = countries;
6520
6527
  exports.ManagePermissions = script$9;
6521
6528
  exports.ShAutoForm = script$n;
@@ -6537,6 +6544,7 @@ exports.ShSilentAction = script$f;
6537
6544
  exports.ShTable = script$e;
6538
6545
  exports.ShTabs = script$d;
6539
6546
  exports.shApis = shApis;
6547
+ exports.shGql = shGql;
6540
6548
  exports.shRepo = shRepo;
6541
6549
  exports.shStorage = ShStorage;
6542
6550
  exports.useUserStore = useUserStore;
package/dist/library.mjs CHANGED
@@ -7,7 +7,6 @@ import _ from 'lodash';
7
7
  import { useRoute, useRouter } from 'vue-router';
8
8
  import { defineStore, storeToRefs } from 'pinia';
9
9
  import { Modal, Offcanvas } from 'bootstrap';
10
- export { default as shGql } from '@/lib/repo/graphql/shGql.js';
11
10
 
12
11
  function setItem (key, value) {
13
12
  let toStore = value;
@@ -6481,4 +6480,17 @@ const ShFrontend = {
6481
6480
  }
6482
6481
  };
6483
6482
 
6484
- export { countries as Countries, script$9 as ManagePermissions, script$n as ShAutoForm, script$i as ShCanvas, script$a as ShCanvasBtn, script$g as ShConfirmAction, script$m as ShDropDownForm, script$c as ShDynamicTabs, script$u as ShForm, ShFrontend, script$l as ShModal, script$b as ShModalBtn, script$k as ShModalForm, script$j as ShModalFormAuto, script$w as ShPhone, script$4 as ShPopups, script$3 as ShRange, script$f as ShSilentAction, script$e as ShTable, script$d as ShTabs, shApis, shRepo, ShStorage as shStorage, useUserStore };
6483
+ const query = async qlQuery => {
6484
+ const result = await shApis.graphQlQuery(qlQuery);
6485
+ return result.data
6486
+ };
6487
+ const mutate = async mutation => {
6488
+ const result = await shApis.graphQlMutate(mutation);
6489
+ return result.data
6490
+ };
6491
+ var shGql = {
6492
+ query,
6493
+ mutate
6494
+ };
6495
+
6496
+ export { countries as Countries, script$9 as ManagePermissions, script$n as ShAutoForm, script$i as ShCanvas, script$a as ShCanvasBtn, script$g as ShConfirmAction, script$m as ShDropDownForm, script$c as ShDynamicTabs, script$u as ShForm, ShFrontend, script$l as ShModal, script$b as ShModalBtn, script$k as ShModalForm, script$j as ShModalFormAuto, script$w as ShPhone, script$4 as ShPopups, script$3 as ShRange, script$f as ShSilentAction, script$e as ShTable, script$d as ShTabs, shApis, shGql, shRepo, ShStorage as shStorage, useUserStore };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@iankibetsh/shframework",
3
- "version": "1.9.1",
3
+ "version": "1.9.2",
4
4
  "description": "Vue library for handling laravel backend",
5
5
  "main": "dist/library.js",
6
6
  "module": "dist/library.mjs",