flowrix 1.0.1-beta.120 → 1.0.1-beta.121

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/module.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "flowrix",
3
3
  "configKey": "flowrix",
4
- "version": "1.0.1-beta.120",
4
+ "version": "1.0.1-beta.121",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "1.0.2",
7
7
  "unbuild": "3.6.1"
@@ -2,9 +2,9 @@ export default function (props: any): {
2
2
  filters: import("vue").Ref<{}, {}>;
3
3
  samplesData: import("vue").ComputedRef<any>;
4
4
  innerBanner: any;
5
- SideBar: any;
6
- TopBar: any;
7
- SampleCard: any;
8
- Pagination: any;
9
- Services: any;
5
+ SideBar: new () => import("vue").ComponentPublicInstance;
6
+ TopBar: new () => import("vue").ComponentPublicInstance;
7
+ SampleCard: new () => import("vue").ComponentPublicInstance;
8
+ Pagination: new () => import("vue").ComponentPublicInstance;
9
+ Services: new () => import("vue").ComponentPublicInstance;
10
10
  };
@@ -1,24 +1,29 @@
1
- import { ref, computed, defineAsyncComponent } from "vue";
1
+ import { ref, computed, defineAsyncComponent, defineComponent } from "vue";
2
2
  export default function(props) {
3
3
  const filters = ref({});
4
4
  const samplesData = computed(() => props);
5
- const innerBanner = defineAsyncComponent(
6
- () => import("@/components/Others/InnerBanner.vue")
5
+ const EmptyComponent = defineComponent(() => null);
6
+ function asyncIfExists(path) {
7
+ const modules = import.meta.glob("@/components/**/*.vue");
8
+ return defineAsyncComponent(
9
+ modules[path] ? modules[path] : async () => EmptyComponent
10
+ );
11
+ }
12
+ const InnerBanner = asyncIfExists("@/components/Others/InnerBanner.vue");
13
+ const SideBar = asyncIfExists(
14
+ "@/components/Samples/Template01/Sidebar.vue"
7
15
  );
8
- const SideBar = defineAsyncComponent(
9
- () => import("@/components/Samples/Template01/Sidebar.vue")
16
+ const TopBar = asyncIfExists(
17
+ "@/components/Samples/Template01/TopBar.vue"
10
18
  );
11
- const TopBar = defineAsyncComponent(
12
- () => import("@/components/Samples/Template01/TopBar.vue")
19
+ const SampleCard = asyncIfExists(
20
+ "@/components/Product/SampleProductCard.vue"
13
21
  );
14
- const SampleCard = defineAsyncComponent(
15
- () => import("@/components/Product/SampleProductCard.vue")
22
+ const Pagination = asyncIfExists(
23
+ "@/components/Others/Pagination.vue"
16
24
  );
17
- const Pagination = defineAsyncComponent(
18
- () => import("@/components/Others/Pagination.vue")
19
- );
20
- const Services = defineAsyncComponent(
21
- () => import("@/components/Services/Template01/Services.vue")
25
+ const Services = asyncIfExists(
26
+ "@/components/Services/Template01/Services.vue"
22
27
  );
23
28
  return {
24
29
  // pageData,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "flowrix",
3
- "version": "1.0.1-beta.120",
3
+ "version": "1.0.1-beta.121",
4
4
  "description": "Plug-and-play Nuxt eCommerce cart powered by FLOWRiX. Subscription required.",
5
5
  "license": "MIT",
6
6
  "type": "module",