@generazioneai/analytics-web 0.0.0-stage → 0.3.0
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 +29 -0
- package/LICENSE +201 -0
- package/README.md +191 -2
- package/bin/analytics-web.cjs +76 -0
- package/dist/autocapture.d.ts +57 -0
- package/dist/browser.d.ts +3 -0
- package/dist/cmp.d.ts +7 -0
- package/dist/cmp.js +1 -0
- package/dist/consent/cookiebot.d.ts +11 -0
- package/dist/consent/gcm.d.ts +10 -0
- package/dist/consent/index.d.ts +6 -0
- package/dist/consent/iubenda.d.ts +20 -0
- package/dist/consent/onetrust.d.ts +12 -0
- package/dist/consent/tcf.d.ts +43 -0
- package/dist/consent/test-env.d.ts +13 -0
- package/dist/consent/types.d.ts +60 -0
- package/dist/core.d.ts +165 -0
- package/dist/errors.d.ts +60 -0
- package/dist/extensions.d.ts +1 -0
- package/dist/flags.d.ts +96 -0
- package/dist/frustration.d.ts +62 -0
- package/dist/index.cjs +1380 -0
- package/dist/index.d.ts +31 -0
- package/dist/index.js +1359 -0
- package/dist/plugins.d.ts +16 -0
- package/dist/s.js +1 -0
- package/dist/scrub.d.ts +7 -0
- package/dist/snippet.d.ts +1 -0
- package/dist/vitals.d.ts +28 -0
- package/dist/x.js +3 -0
- package/package.json +45 -4
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { Auralytics, type AuralyticsOptions, type Consent, type Env, type Props } from './core';
|
|
2
|
+
import { type PluginOptions, type Plugins } from './plugins';
|
|
3
|
+
import { AuralyticsFlags, type FlagsOptions } from './flags';
|
|
4
|
+
export { Auralytics, SDK, uuidv7 } from './core';
|
|
5
|
+
export { AuralyticsFlags, assignVariant, bucket, evaluateFlag, fnv1a } from './flags';
|
|
6
|
+
export type { Attributes, ExperimentDef, FlagDef, FlagsOptions, FlagValue } from './flags';
|
|
7
|
+
export type { AuralyticsOptions, Consent, Env, Props };
|
|
8
|
+
export { tcf, tcfState, iubenda, iubendaState, cookiebot, onetrust, onetrustGroups, googleConsentMode, pickConsent, fromCategories, CONSENT_KEYS, CMP_WAIT_MS, } from './consent';
|
|
9
|
+
export type { ConsentValue, ConsentState, ConsentMode, ConsentAdapter, ConsentEnv, TcfOptions, TCData, IubendaOptions, CookiebotOptions, OneTrustOptions, } from './consent';
|
|
10
|
+
export { installPlugins } from './plugins';
|
|
11
|
+
export type { PluginOptions, Plugins } from './plugins';
|
|
12
|
+
export { installErrors, exceptionProps, fingerprint, normalizeStack } from './errors';
|
|
13
|
+
export type { ErrorsOptions } from './errors';
|
|
14
|
+
export { installWebVitals, rateVitals } from './vitals';
|
|
15
|
+
export type { VitalsOptions } from './vitals';
|
|
16
|
+
export { installAutocapture, installEnhanced } from './autocapture';
|
|
17
|
+
export type { AutocaptureOptions, EnhancedOptions } from './autocapture';
|
|
18
|
+
export type InitOptions = AuralyticsOptions & PluginOptions;
|
|
19
|
+
/**
|
|
20
|
+
* Pacchetto npm (`@generazioneai/analytics-web`): `const auralytics = init({ stream: 'pk_…', errors: { release }, webVitals: true })`.
|
|
21
|
+
* Le estensioni (W2, W3) si accendono con le opzioni `errors`, `webVitals`, `enhanced`, `autocapture`; `auralytics.plugins` le espone
|
|
22
|
+
* (`captureException`). In un ambiente senza `window` (server) restano spente.
|
|
23
|
+
*/
|
|
24
|
+
export declare function init(opts: InitOptions, env?: Env): Auralytics & {
|
|
25
|
+
plugins: Plugins;
|
|
26
|
+
};
|
|
27
|
+
/**
|
|
28
|
+
* Ondata 5 (A3): flag ed esperimenti, `const flags = createFlags(auralytics, { stream: 'pk_…' }); await flags.refresh();
|
|
29
|
+
* flags.isOn('nuovo-checkout'); flags.variant('prezzo-annuale')`.
|
|
30
|
+
*/
|
|
31
|
+
export declare function createFlags(auralytics: Auralytics, opts: FlagsOptions): AuralyticsFlags;
|