@cross-deck/web 1.2.0 → 1.4.2
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/CHANGELOG.md +106 -1
- package/README.md +13 -1
- package/dist/crossdeck.umd.min.js +2 -2
- package/dist/crossdeck.umd.min.js.map +1 -1
- package/dist/error-codes.json +106 -1
- package/dist/index.cjs +691 -73
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +22 -4
- package/dist/index.d.ts +22 -4
- package/dist/index.mjs +691 -73
- package/dist/index.mjs.map +1 -1
- package/dist/react.cjs +581 -73
- package/dist/react.cjs.map +1 -1
- package/dist/react.d.mts +1 -1
- package/dist/react.d.ts +1 -1
- package/dist/react.mjs +581 -73
- package/dist/react.mjs.map +1 -1
- package/dist/{types-BzoKor4z.d.mts → types-Bu3jbmdq.d.mts} +4 -0
- package/dist/{types-BzoKor4z.d.ts → types-Bu3jbmdq.d.ts} +4 -0
- package/dist/vue.cjs +581 -73
- package/dist/vue.cjs.map +1 -1
- package/dist/vue.mjs +581 -73
- package/dist/vue.mjs.map +1 -1
- package/package.json +2 -2
package/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { P as PublicEntitlement, C as CrossdeckOptions, I as IdentifyOptions, A as AliasResult, G as GroupTraits, E as EventProperties, a as PurchaseResult, H as HeartbeatResponse, D as Diagnostics, K as KeyValueStorage } from './types-
|
|
2
|
-
export { b as AuditRail, c as AutoTrackOptions, d as EntitlementsListResponse, e as Environment, f as Platform } from './types-
|
|
1
|
+
import { P as PublicEntitlement, C as CrossdeckOptions, I as IdentifyOptions, A as AliasResult, G as GroupTraits, E as EventProperties, a as PurchaseResult, H as HeartbeatResponse, D as Diagnostics, K as KeyValueStorage } from './types-Bu3jbmdq.mjs';
|
|
2
|
+
export { b as AuditRail, c as AutoTrackOptions, d as EntitlementsListResponse, e as Environment, f as Platform } from './types-Bu3jbmdq.mjs';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Durable last-known-good cache of the customer's entitlements.
|
|
@@ -662,6 +662,25 @@ declare class MemoryStorage implements KeyValueStorage {
|
|
|
662
662
|
removeItem(key: string): void;
|
|
663
663
|
}
|
|
664
664
|
|
|
665
|
+
/**
|
|
666
|
+
* SDK version constant — generated by `scripts/sync-sdk-versions.mjs`.
|
|
667
|
+
*
|
|
668
|
+
* Single source of truth: the `version` field in this package's
|
|
669
|
+
* package.json. The sync script writes this file so that
|
|
670
|
+
* `SDK_VERSION` is a plain TypeScript literal at runtime — no
|
|
671
|
+
* runtime JSON-import gotcha (Node ESM requires
|
|
672
|
+
* `with { type: "json" }` to import JSON as ESM, and the published
|
|
673
|
+
* dist file would otherwise fail to load).
|
|
674
|
+
*
|
|
675
|
+
* Drift protection: `node scripts/sync-sdk-versions.mjs --check` (the
|
|
676
|
+
* CI gate) flags this file when it falls out of sync with package.json.
|
|
677
|
+
* Bumping `package.json` without re-running the sync script fails CI.
|
|
678
|
+
*
|
|
679
|
+
* Do NOT edit by hand — `node scripts/sync-sdk-versions.mjs`.
|
|
680
|
+
*/
|
|
681
|
+
declare const SDK_VERSION = "1.4.2";
|
|
682
|
+
declare const SDK_NAME = "@cross-deck/web";
|
|
683
|
+
|
|
665
684
|
/**
|
|
666
685
|
* HTTP transport for the SDK. Single fetch wrapper used by every endpoint
|
|
667
686
|
* call. Adds the Bearer token and SDK version header, parses responses,
|
|
@@ -670,8 +689,7 @@ declare class MemoryStorage implements KeyValueStorage {
|
|
|
670
689
|
* Uses platform-native fetch (browser + Node 18+). No axios, no isomorphic-
|
|
671
690
|
* fetch shim, no transitive deps.
|
|
672
691
|
*/
|
|
673
|
-
|
|
674
|
-
declare const SDK_VERSION = "1.1.0";
|
|
692
|
+
|
|
675
693
|
declare const DEFAULT_BASE_URL = "https://api.cross-deck.com/v1";
|
|
676
694
|
|
|
677
695
|
/**
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { P as PublicEntitlement, C as CrossdeckOptions, I as IdentifyOptions, A as AliasResult, G as GroupTraits, E as EventProperties, a as PurchaseResult, H as HeartbeatResponse, D as Diagnostics, K as KeyValueStorage } from './types-
|
|
2
|
-
export { b as AuditRail, c as AutoTrackOptions, d as EntitlementsListResponse, e as Environment, f as Platform } from './types-
|
|
1
|
+
import { P as PublicEntitlement, C as CrossdeckOptions, I as IdentifyOptions, A as AliasResult, G as GroupTraits, E as EventProperties, a as PurchaseResult, H as HeartbeatResponse, D as Diagnostics, K as KeyValueStorage } from './types-Bu3jbmdq.js';
|
|
2
|
+
export { b as AuditRail, c as AutoTrackOptions, d as EntitlementsListResponse, e as Environment, f as Platform } from './types-Bu3jbmdq.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Durable last-known-good cache of the customer's entitlements.
|
|
@@ -662,6 +662,25 @@ declare class MemoryStorage implements KeyValueStorage {
|
|
|
662
662
|
removeItem(key: string): void;
|
|
663
663
|
}
|
|
664
664
|
|
|
665
|
+
/**
|
|
666
|
+
* SDK version constant — generated by `scripts/sync-sdk-versions.mjs`.
|
|
667
|
+
*
|
|
668
|
+
* Single source of truth: the `version` field in this package's
|
|
669
|
+
* package.json. The sync script writes this file so that
|
|
670
|
+
* `SDK_VERSION` is a plain TypeScript literal at runtime — no
|
|
671
|
+
* runtime JSON-import gotcha (Node ESM requires
|
|
672
|
+
* `with { type: "json" }` to import JSON as ESM, and the published
|
|
673
|
+
* dist file would otherwise fail to load).
|
|
674
|
+
*
|
|
675
|
+
* Drift protection: `node scripts/sync-sdk-versions.mjs --check` (the
|
|
676
|
+
* CI gate) flags this file when it falls out of sync with package.json.
|
|
677
|
+
* Bumping `package.json` without re-running the sync script fails CI.
|
|
678
|
+
*
|
|
679
|
+
* Do NOT edit by hand — `node scripts/sync-sdk-versions.mjs`.
|
|
680
|
+
*/
|
|
681
|
+
declare const SDK_VERSION = "1.4.2";
|
|
682
|
+
declare const SDK_NAME = "@cross-deck/web";
|
|
683
|
+
|
|
665
684
|
/**
|
|
666
685
|
* HTTP transport for the SDK. Single fetch wrapper used by every endpoint
|
|
667
686
|
* call. Adds the Bearer token and SDK version header, parses responses,
|
|
@@ -670,8 +689,7 @@ declare class MemoryStorage implements KeyValueStorage {
|
|
|
670
689
|
* Uses platform-native fetch (browser + Node 18+). No axios, no isomorphic-
|
|
671
690
|
* fetch shim, no transitive deps.
|
|
672
691
|
*/
|
|
673
|
-
|
|
674
|
-
declare const SDK_VERSION = "1.1.0";
|
|
692
|
+
|
|
675
693
|
declare const DEFAULT_BASE_URL = "https://api.cross-deck.com/v1";
|
|
676
694
|
|
|
677
695
|
/**
|