@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.
- package/dist/{chunk-7A3YSHQG.js → chunk-FUADAPSW.js} +2 -2
- package/dist/index.cjs +2 -2
- package/dist/index.js +1 -1
- package/dist/pinia.d.cts +1 -1
- package/dist/pinia.d.ts +1 -1
- package/dist/testing.cjs +2 -2
- package/dist/testing.d.cts +1 -1
- package/dist/testing.d.ts +1 -1
- package/dist/testing.js +1 -1
- package/package.json +1 -1
|
@@ -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
|
|
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
|
|
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
|
|
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
|
|
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
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, "
|
|
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, "
|
|
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
|
|
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
|
|
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) {
|
package/dist/testing.d.cts
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.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
package/package.json
CHANGED