@iankibetsh/shframework 0.0.2 → 0.0.8

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
@@ -33,9 +33,9 @@ var shstorage = {
33
33
  removeItem
34
34
  };
35
35
 
36
- let apiUrl = undefined.VITE_APP_API_URL;
36
+ let apiUrl = window.VITE_APP_API_URL;
37
37
  if (process.env.NODE_ENV === 'production') {
38
- apiUrl = undefined.VITE_APP_API_PRODUCTION_URL;
38
+ apiUrl = window.VITE_APP_API_PRODUCTION_URL;
39
39
  }
40
40
  const axios = Axios__default["default"].create({
41
41
  baseURL: apiUrl
@@ -1552,8 +1552,8 @@ var script$6 = {
1552
1552
  isoCode: 'KE',
1553
1553
  flag: 'https://www.countryflags.io/KE/flat/64.png'
1554
1554
  },
1555
- flag: undefined.VITE_APP_HOME_URL + 'flags/ke.svg',
1556
- appUrl: undefined.VITE_APP_HOME_URL
1555
+ flag: window.VITE_APP_HOME_URL + 'flags/ke.svg',
1556
+ appUrl: window.VITE_APP_HOME_URL
1557
1557
  }
1558
1558
  },
1559
1559
  updated () {
@@ -1649,7 +1649,6 @@ script$6.__file = "src/views/ShPhone.vue";
1649
1649
 
1650
1650
  var script$5 = {
1651
1651
  name: 'ShForm',
1652
- inject: ['global'],
1653
1652
  components: {
1654
1653
  ShPhone: script$6
1655
1654
  },
@@ -1665,7 +1664,7 @@ var script$5 = {
1665
1664
  selectData: {},
1666
1665
  users: [],
1667
1666
  allPlaceHolders: {},
1668
- user: this.global.state.user,
1667
+ user: null,
1669
1668
  allLabels: {}
1670
1669
  }
1671
1670
  },
@@ -2637,7 +2636,7 @@ var script$1 = {
2637
2636
  moreDetailsId: null,
2638
2637
  moreDetailsModel: null,
2639
2638
  downloading: false,
2640
- appUrl: undefined.VITE_APP_API_URL
2639
+ appUrl: window.VITE_APP_API_URL
2641
2640
  }
2642
2641
  },
2643
2642
  mounted () {
@@ -3372,24 +3371,18 @@ script.render = render;
3372
3371
  script.__scopeId = "data-v-3628b6a6";
3373
3372
  script.__file = "src/views/ShTabs.vue";
3374
3373
 
3375
- var components = {
3374
+ var components = /*#__PURE__*/Object.freeze({
3375
+ __proto__: null,
3376
3376
  ShForm: script$5,
3377
3377
  ShCanvas: script$4,
3378
3378
  ShModal: script$3,
3379
3379
  ShPhone: script$6,
3380
3380
  ShTable: script$1,
3381
3381
  ShTabs: script
3382
- };
3382
+ });
3383
3383
 
3384
- const plugin = {
3385
- install (Vue) {
3386
- for (const prop in components) {
3387
- if (components.hasOwnProperty(prop)) {
3388
- const component = components[prop];
3389
- Vue.component(component.name, component);
3390
- }
3391
- }
3384
+ if (typeof Vue !== 'undefined') {
3385
+ for (const name in components) {
3386
+ Vue.component(name, components[name]);
3392
3387
  }
3393
- };
3394
-
3395
- module.exports = plugin;
3388
+ }
package/dist/library.mjs CHANGED
@@ -24,9 +24,9 @@ var shstorage = {
24
24
  removeItem
25
25
  };
26
26
 
27
- let apiUrl = import.meta.env.VITE_APP_API_URL;
27
+ let apiUrl = window.VITE_APP_API_URL;
28
28
  if (process.env.NODE_ENV === 'production') {
29
- apiUrl = import.meta.env.VITE_APP_API_PRODUCTION_URL;
29
+ apiUrl = window.VITE_APP_API_PRODUCTION_URL;
30
30
  }
31
31
  const axios = Axios.create({
32
32
  baseURL: apiUrl
@@ -1543,8 +1543,8 @@ var script$6 = {
1543
1543
  isoCode: 'KE',
1544
1544
  flag: 'https://www.countryflags.io/KE/flat/64.png'
1545
1545
  },
1546
- flag: import.meta.env.VITE_APP_HOME_URL + 'flags/ke.svg',
1547
- appUrl: import.meta.env.VITE_APP_HOME_URL
1546
+ flag: window.VITE_APP_HOME_URL + 'flags/ke.svg',
1547
+ appUrl: window.VITE_APP_HOME_URL
1548
1548
  }
1549
1549
  },
1550
1550
  updated () {
@@ -1640,7 +1640,6 @@ script$6.__file = "src/views/ShPhone.vue";
1640
1640
 
1641
1641
  var script$5 = {
1642
1642
  name: 'ShForm',
1643
- inject: ['global'],
1644
1643
  components: {
1645
1644
  ShPhone: script$6
1646
1645
  },
@@ -1656,7 +1655,7 @@ var script$5 = {
1656
1655
  selectData: {},
1657
1656
  users: [],
1658
1657
  allPlaceHolders: {},
1659
- user: this.global.state.user,
1658
+ user: null,
1660
1659
  allLabels: {}
1661
1660
  }
1662
1661
  },
@@ -2628,7 +2627,7 @@ var script$1 = {
2628
2627
  moreDetailsId: null,
2629
2628
  moreDetailsModel: null,
2630
2629
  downloading: false,
2631
- appUrl: import.meta.env.VITE_APP_API_URL
2630
+ appUrl: window.VITE_APP_API_URL
2632
2631
  }
2633
2632
  },
2634
2633
  mounted () {
@@ -3363,24 +3362,18 @@ script.render = render;
3363
3362
  script.__scopeId = "data-v-3628b6a6";
3364
3363
  script.__file = "src/views/ShTabs.vue";
3365
3364
 
3366
- var components = {
3365
+ var components = /*#__PURE__*/Object.freeze({
3366
+ __proto__: null,
3367
3367
  ShForm: script$5,
3368
3368
  ShCanvas: script$4,
3369
3369
  ShModal: script$3,
3370
3370
  ShPhone: script$6,
3371
3371
  ShTable: script$1,
3372
3372
  ShTabs: script
3373
- };
3373
+ });
3374
3374
 
3375
- const plugin = {
3376
- install (Vue) {
3377
- for (const prop in components) {
3378
- if (components.hasOwnProperty(prop)) {
3379
- const component = components[prop];
3380
- Vue.component(component.name, component);
3381
- }
3382
- }
3375
+ if (typeof Vue !== 'undefined') {
3376
+ for (const name in components) {
3377
+ Vue.component(name, components[name]);
3383
3378
  }
3384
- };
3385
-
3386
- export { plugin as default };
3379
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@iankibetsh/shframework",
3
- "version": "0.0.2",
3
+ "version": "0.0.8",
4
4
  "description": "Vue library for handling laravel backend",
5
5
  "main": "dist/library.js",
6
6
  "module": "dist/library.mjs",