@jitsu/js 1.10.0 → 1.10.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/jitsu-no-ext.cjs.d.ts +38 -0
- package/dist/jitsu-no-ext.cjs.js +1703 -0
- package/dist/jitsu-no-ext.es.d.ts +38 -0
- package/dist/jitsu-no-ext.es.js +1692 -0
- package/dist/jitsu.cjs.js +23 -0
- package/dist/jitsu.d.ts +35 -84
- package/dist/jitsu.es.js +23 -0
- package/dist/web/p.js.txt +19 -0
- package/package.json +7 -6
- package/dist/analytics-plugin.d.ts +0 -29
- package/dist/browser.d.ts +0 -10
- package/dist/index.d.ts +0 -6
- package/dist/method-queue.d.ts +0 -17
- package/dist/script-loader.d.ts +0 -8
- package/dist/tlds.d.ts +0 -3
- package/dist/version.d.ts +0 -3
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { PersistentStorage, JitsuOptions, RuntimeFacade, AnalyticsInterface } from '@jitsu/protocols/analytics';
|
|
2
|
+
export { AnalyticsInterface, Callback, DispatchedEvent, DynamicJitsuOptions, ID, JSONObject, JitsuOptions, Options, PersistentStorage, RuntimeFacade } from '@jitsu/protocols/analytics';
|
|
3
|
+
import { AnalyticsPlugin } from 'analytics';
|
|
4
|
+
|
|
5
|
+
declare const parseQuery: (qs?: string) => Record<string, string>;
|
|
6
|
+
type StorageFactory = (cookieDomain: string, key2Cookie: (key: string) => string) => PersistentStorage;
|
|
7
|
+
declare function windowRuntime(opts: JitsuOptions): RuntimeFacade;
|
|
8
|
+
declare function createInMemoryStorage(debug?: boolean): PersistentStorage;
|
|
9
|
+
declare const emptyRuntime: (config: JitsuOptions) => RuntimeFacade;
|
|
10
|
+
declare function isInBrowser(): boolean;
|
|
11
|
+
type DestinationDescriptor = {
|
|
12
|
+
id: string;
|
|
13
|
+
destinationType: string;
|
|
14
|
+
credentials: any;
|
|
15
|
+
options: any;
|
|
16
|
+
newEvents?: any[];
|
|
17
|
+
deviceOptions: DeviceOptions;
|
|
18
|
+
};
|
|
19
|
+
type AnalyticsPluginDescriptor = {
|
|
20
|
+
type: "analytics-plugin";
|
|
21
|
+
packageCdn: string;
|
|
22
|
+
moduleVarName: string;
|
|
23
|
+
};
|
|
24
|
+
type InternalPluginDescriptor = {
|
|
25
|
+
type: "internal-plugin";
|
|
26
|
+
name: string;
|
|
27
|
+
};
|
|
28
|
+
type DeviceOptions = AnalyticsPluginDescriptor | InternalPluginDescriptor;
|
|
29
|
+
declare const jitsuAnalyticsPlugin: (jitsuOptions: JitsuOptions, storage: PersistentStorage) => AnalyticsPlugin;
|
|
30
|
+
declare function randomId(hashString?: string | undefined): string;
|
|
31
|
+
declare function uuid(): string;
|
|
32
|
+
|
|
33
|
+
declare function parse(input: any): any;
|
|
34
|
+
declare const emptyAnalytics: AnalyticsInterface;
|
|
35
|
+
declare function jitsuAnalytics(_opts: JitsuOptions): AnalyticsInterface;
|
|
36
|
+
|
|
37
|
+
export { createInMemoryStorage, parse as default, emptyAnalytics, emptyRuntime, isInBrowser, jitsuAnalytics, jitsuAnalyticsPlugin, parseQuery, randomId, uuid, windowRuntime };
|
|
38
|
+
export type { AnalyticsPluginDescriptor, DestinationDescriptor, DeviceOptions, InternalPluginDescriptor, StorageFactory };
|