@avsbhq/vue 1.1.0 → 1.1.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.
@@ -10,7 +10,7 @@ import { consoleLogger } from "@avsbhq/core";
10
10
 
11
11
  // src/internal/providerState.ts
12
12
  import { ref, shallowRef } from "vue";
13
- var UNEXPLAINED_FAILURE = "[avsb] the SDK could not load a datafile and nothing was cached or bootstrapped, so every flag is returning the default you passed. Check the SDK key on app.avsb.cloud under Settings, then Environments.";
13
+ var UNEXPLAINED_FAILURE = "[avsb] the SDK could not load a datafile and nothing was cached or bootstrapped, so every flag is returning the default you passed. Check the SDK key on app.avsb.cloud under Environments in the project sidebar.";
14
14
  function createProviderState(client) {
15
15
  const status = ref(client.isReady() ? "ready" : "loading");
16
16
  const error = shallowRef(void 0);
@@ -57,7 +57,7 @@ function createProviderState(client) {
57
57
 
58
58
  // src/internal/resolveClient.ts
59
59
  import { AvsbClient } from "@avsbhq/browser";
60
- var MISUSE_MESSAGE = `[avsb] <AvsbProvider> needs either an sdk-key (Mode A) or a client (Mode B). Mode A: <AvsbProvider sdk-key="sdk_production_..." :context="{ kind: 'user', key: userId }">. Mode B: <AvsbProvider :client="myClient">. The key for each environment is on app.avsb.cloud under Settings, then Environments.`;
60
+ var MISUSE_MESSAGE = `[avsb] <AvsbProvider> needs either an sdk-key (Mode A) or a client (Mode B). Mode A: <AvsbProvider sdk-key="sdk_production_..." :context="{ kind: 'user', key: userId }">. Mode B: <AvsbProvider :client="myClient">. The key for each environment is on app.avsb.cloud under Environments in the project sidebar.`;
61
61
  function resolveClient(props) {
62
62
  const injected = props.client;
63
63
  if (injected !== void 0 && injected !== null) {
package/dist/index.cjs CHANGED
@@ -66,7 +66,7 @@ function hasAvsbContext() {
66
66
 
67
67
  // src/internal/providerState.ts
68
68
  var import_vue2 = require("vue");
69
- var UNEXPLAINED_FAILURE = "[avsb] the SDK could not load a datafile and nothing was cached or bootstrapped, so every flag is returning the default you passed. Check the SDK key on app.avsb.cloud under Settings, then Environments.";
69
+ var UNEXPLAINED_FAILURE = "[avsb] the SDK could not load a datafile and nothing was cached or bootstrapped, so every flag is returning the default you passed. Check the SDK key on app.avsb.cloud under Environments in the project sidebar.";
70
70
  function createProviderState(client) {
71
71
  const status = (0, import_vue2.ref)(client.isReady() ? "ready" : "loading");
72
72
  const error = (0, import_vue2.shallowRef)(void 0);
@@ -113,7 +113,7 @@ function createProviderState(client) {
113
113
 
114
114
  // src/internal/resolveClient.ts
115
115
  var import_browser = require("@avsbhq/browser");
116
- var MISUSE_MESSAGE = `[avsb] <AvsbProvider> needs either an sdk-key (Mode A) or a client (Mode B). Mode A: <AvsbProvider sdk-key="sdk_production_..." :context="{ kind: 'user', key: userId }">. Mode B: <AvsbProvider :client="myClient">. The key for each environment is on app.avsb.cloud under Settings, then Environments.`;
116
+ var MISUSE_MESSAGE = `[avsb] <AvsbProvider> needs either an sdk-key (Mode A) or a client (Mode B). Mode A: <AvsbProvider sdk-key="sdk_production_..." :context="{ kind: 'user', key: userId }">. Mode B: <AvsbProvider :client="myClient">. The key for each environment is on app.avsb.cloud under Environments in the project sidebar.`;
117
117
  function resolveClient(props) {
118
118
  const injected = props.client;
119
119
  if (injected !== void 0 && injected !== null) {
package/dist/index.js CHANGED
@@ -2,7 +2,7 @@ import {
2
2
  AvsbProvider,
3
3
  createProviderState,
4
4
  resolveClient
5
- } from "./chunk-7A3YSHQG.js";
5
+ } from "./chunk-FUADAPSW.js";
6
6
  import {
7
7
  AvsbInjectionKey,
8
8
  useAvsbContext
package/dist/pinia.d.cts CHANGED
@@ -18,6 +18,6 @@ interface AvsbStoreState {
18
18
  reset: () => void;
19
19
  track: (eventKey: string, payload?: TrackPayload) => void;
20
20
  }
21
- declare const useAvsbStore: pinia.StoreDefinition<"avsb", Pick<AvsbStoreState, never>, Pick<AvsbStoreState, "error" | "client" | "status" | "degraded" | "flags">, Pick<AvsbStoreState, "identify" | "alias" | "reset" | "track">>;
21
+ declare const useAvsbStore: pinia.StoreDefinition<"avsb", Pick<AvsbStoreState, never>, Pick<AvsbStoreState, "flags" | "client" | "error" | "status" | "degraded">, Pick<AvsbStoreState, "reset" | "track" | "identify" | "alias">>;
22
22
 
23
23
  export { type AvsbStoreState, useAvsbStore };
package/dist/pinia.d.ts CHANGED
@@ -18,6 +18,6 @@ interface AvsbStoreState {
18
18
  reset: () => void;
19
19
  track: (eventKey: string, payload?: TrackPayload) => void;
20
20
  }
21
- declare const useAvsbStore: pinia.StoreDefinition<"avsb", Pick<AvsbStoreState, never>, Pick<AvsbStoreState, "error" | "client" | "status" | "degraded" | "flags">, Pick<AvsbStoreState, "identify" | "alias" | "reset" | "track">>;
21
+ declare const useAvsbStore: pinia.StoreDefinition<"avsb", Pick<AvsbStoreState, never>, Pick<AvsbStoreState, "flags" | "client" | "error" | "status" | "degraded">, Pick<AvsbStoreState, "reset" | "track" | "identify" | "alias">>;
22
22
 
23
23
  export { type AvsbStoreState, useAvsbStore };
package/dist/testing.cjs CHANGED
@@ -123,7 +123,7 @@ function hasAvsbContext() {
123
123
 
124
124
  // src/internal/providerState.ts
125
125
  var import_vue2 = require("vue");
126
- var UNEXPLAINED_FAILURE = "[avsb] the SDK could not load a datafile and nothing was cached or bootstrapped, so every flag is returning the default you passed. Check the SDK key on app.avsb.cloud under Settings, then Environments.";
126
+ var UNEXPLAINED_FAILURE = "[avsb] the SDK could not load a datafile and nothing was cached or bootstrapped, so every flag is returning the default you passed. Check the SDK key on app.avsb.cloud under Environments in the project sidebar.";
127
127
  function createProviderState(client) {
128
128
  const status = (0, import_vue2.ref)(client.isReady() ? "ready" : "loading");
129
129
  const error = (0, import_vue2.shallowRef)(void 0);
@@ -170,7 +170,7 @@ function createProviderState(client) {
170
170
 
171
171
  // src/internal/resolveClient.ts
172
172
  var import_browser2 = require("@avsbhq/browser");
173
- var MISUSE_MESSAGE = `[avsb] <AvsbProvider> needs either an sdk-key (Mode A) or a client (Mode B). Mode A: <AvsbProvider sdk-key="sdk_production_..." :context="{ kind: 'user', key: userId }">. Mode B: <AvsbProvider :client="myClient">. The key for each environment is on app.avsb.cloud under Settings, then Environments.`;
173
+ var MISUSE_MESSAGE = `[avsb] <AvsbProvider> needs either an sdk-key (Mode A) or a client (Mode B). Mode A: <AvsbProvider sdk-key="sdk_production_..." :context="{ kind: 'user', key: userId }">. Mode B: <AvsbProvider :client="myClient">. The key for each environment is on app.avsb.cloud under Environments in the project sidebar.`;
174
174
  function resolveClient(props) {
175
175
  const injected = props.client;
176
176
  if (injected !== void 0 && injected !== null) {
@@ -42,9 +42,9 @@ declare const AvsbTestProvider: vue.DefineComponent<vue.ExtractPropTypes<{
42
42
  default: undefined;
43
43
  };
44
44
  }>> & Readonly<{}>, {
45
- client: VueAvsbClient;
46
45
  flags: TestFlags;
47
46
  context: EvalContext;
47
+ client: VueAvsbClient;
48
48
  }, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
49
49
 
50
50
  export { AvsbTestProvider };
package/dist/testing.d.ts CHANGED
@@ -42,9 +42,9 @@ declare const AvsbTestProvider: vue.DefineComponent<vue.ExtractPropTypes<{
42
42
  default: undefined;
43
43
  };
44
44
  }>> & Readonly<{}>, {
45
- client: VueAvsbClient;
46
45
  flags: TestFlags;
47
46
  context: EvalContext;
47
+ client: VueAvsbClient;
48
48
  }, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
49
49
 
50
50
  export { AvsbTestProvider };
package/dist/testing.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  AvsbProvider
3
- } from "./chunk-7A3YSHQG.js";
3
+ } from "./chunk-FUADAPSW.js";
4
4
  import "./chunk-4XBADQFO.js";
5
5
 
6
6
  // src/testing.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@avsbhq/vue",
3
- "version": "1.1.0",
3
+ "version": "1.1.1",
4
4
  "description": "Vue SDK for A vs B feature flags and experiments: composables, a provider component, an optional Pinia store, and test helpers.",
5
5
  "keywords": [
6
6
  "avsb",