flowrix 1.0.0 → 1.0.1-beta.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.
package/LICENSE CHANGED
@@ -4,7 +4,6 @@ Copyright (c) 2025 Nimble Technology Pty Ltd (ACN 664 547 424) All rights reserv
4
4
 
5
5
  This module (“Software”) is part of the FLOWRiX ecosystem and is provided for use only by licensed FLOWRiX subscribers under the FLOWRiX Terms of Use available at https://flowrix.com/terms-of-use.
6
6
  By installing, copying, or otherwise using this Software, you agree to be bound by the FLOWRiX Terms of Use.
7
-
8
7
  If you do not agree to those terms, you must not install or use this Software.
9
8
 
10
9
  Usage Conditions
package/dist/module.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "flowrix",
3
3
  "configKey": "flowrix",
4
- "version": "1.0.0",
4
+ "version": "1.0.1-beta.1",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "1.0.2",
7
7
  "unbuild": "3.6.1"
package/dist/module.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { defineNuxtModule, createResolver, installModule, addPlugin, addImportsDir, addImports, addServerHandler } from '@nuxt/kit';
1
+ import { defineNuxtModule, createResolver, installModule, addImportsDir, addPlugin, addImports, addServerHandler } from '@nuxt/kit';
2
2
 
3
3
  const module = defineNuxtModule({
4
4
  meta: {
@@ -27,13 +27,12 @@ const module = defineNuxtModule({
27
27
  };
28
28
  const resolver = createResolver(import.meta.url);
29
29
  await installModule("@pinia/nuxt");
30
- addPlugin({
31
- src: resolver.resolve("./runtime/plugins/persistedstate.client"),
32
- mode: "client"
33
- // ensures only client side
34
- });
35
30
  addImportsDir(resolver.resolve("./runtime/composables"));
36
31
  addImportsDir(resolver.resolve("./runtime/stores"));
32
+ addPlugin({
33
+ src: resolver.resolve("./runtime/plugin"),
34
+ mode: "all"
35
+ });
37
36
  addImports({
38
37
  from: resolver.resolve("./runtime/middleware/flowrix"),
39
38
  name: "flowrixApi"
@@ -266,7 +265,6 @@ const module = defineNuxtModule({
266
265
  route: "/api/v2/**",
267
266
  handler: resolver.resolve("./runtime/server/api/v2/[...slug]")
268
267
  });
269
- addPlugin(resolver.resolve("./runtime/plugin"));
270
268
  }
271
269
  });
272
270
 
@@ -1,7 +1,6 @@
1
1
  import { ref } from "vue";
2
2
  import { useRoute } from "#imports";
3
3
  import { useCartStore } from "../stores/cart";
4
- import { useCartInsight } from "./useCartInsight";
5
4
  export const useAddToCart = () => {
6
5
  const showError = ref(false);
7
6
  const ErrorMessage = ref("");
@@ -11,7 +10,6 @@ export const useAddToCart = () => {
11
10
  const proQuantity = ref(1);
12
11
  const price_span = ref("");
13
12
  const route = useRoute();
14
- const { sendCartInsight } = useCartInsight();
15
13
  const closeErrorModal = () => {
16
14
  showError.value = false;
17
15
  ErrorMessage.value = "";
@@ -87,7 +85,6 @@ export const useAddToCart = () => {
87
85
  await cartStore.addToCart(product, qty, formData);
88
86
  if (cartStore.addedResponse === "success") {
89
87
  open.value = true;
90
- sendCartInsight();
91
88
  }
92
89
  } catch (error) {
93
90
  console.error("Error in addToCart:", error);
@@ -1,4 +1,5 @@
1
1
  import { defineNuxtPlugin } from "#app";
2
- export default defineNuxtPlugin((_nuxtApp) => {
3
- console.log("Plugin injected by flowrix!");
2
+ import { setActivePinia } from "pinia";
3
+ export default defineNuxtPlugin((nuxtApp) => {
4
+ setActivePinia(nuxtApp.$pinia);
4
5
  });
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "flowrix",
3
- "version": "1.0.0",
4
- "description": "Plug-and-play Nuxt eCommerce cart powered by FLOWRiX. Subscription required.",
3
+ "version": "1.0.1-beta.1",
4
+ "description": "lug-and-play Nuxt eCommerce cart powered by FLOWRiX. Subscription required.",
5
5
  "license": "MIT",
6
6
  "type": "module",
7
7
  "exports": {