@formo/analytics 1.30.0 → 1.30.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/cjs/src/FormoAnalyticsProvider.d.ts +8 -2
- package/dist/cjs/src/core.d.ts +10 -0
- package/dist/cjs/src/core.js +36 -0
- package/dist/cjs/src/index.d.ts +1 -8
- package/dist/cjs/src/index.js +1 -12
- package/dist/cjs/src/types/base.d.ts +0 -7
- package/dist/cjs/src/version.d.ts +1 -1
- package/dist/cjs/src/version.js +1 -1
- package/dist/esm/src/FormoAnalyticsProvider.d.ts +8 -2
- package/dist/esm/src/core.d.ts +10 -0
- package/dist/esm/src/core.js +13 -0
- package/dist/esm/src/index.d.ts +1 -8
- package/dist/esm/src/index.js +1 -6
- package/dist/esm/src/types/base.d.ts +0 -7
- package/dist/esm/src/version.d.ts +1 -1
- package/dist/esm/src/version.js +1 -1
- package/dist/index.umd.min.js +1 -1
- package/package.json +12 -1
|
@@ -1,5 +1,11 @@
|
|
|
1
|
-
import { FC } from "react";
|
|
2
|
-
import {
|
|
1
|
+
import { FC, ReactNode } from "react";
|
|
2
|
+
import { IFormoAnalytics, Options } from "./types";
|
|
3
|
+
export interface FormoAnalyticsProviderProps {
|
|
4
|
+
writeKey: string;
|
|
5
|
+
options?: Options;
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
children: ReactNode;
|
|
8
|
+
}
|
|
3
9
|
export declare const FormoAnalyticsContext: import("react").Context<IFormoAnalytics>;
|
|
4
10
|
export declare const FormoAnalyticsProvider: FC<FormoAnalyticsProviderProps>;
|
|
5
11
|
export declare const useFormo: () => IFormoAnalytics;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export * from "./FormoAnalytics";
|
|
2
|
+
export * from "./types";
|
|
3
|
+
export { formofy } from "./initialization";
|
|
4
|
+
export { parsePrivyProperties } from "./privy";
|
|
5
|
+
export type { PrivyUser, PrivyLinkedAccount, PrivyAccountType, PrivyProfileProperties, PrivyWalletInfo, } from "./privy";
|
|
6
|
+
export { SolanaManager } from "./solana";
|
|
7
|
+
export { SOLANA_CHAIN_IDS, DEFAULT_SOLANA_CHAIN_ID, isSolanaChainId, } from "./solana";
|
|
8
|
+
export type { SolanaOptions, SolanaCluster } from "./solana";
|
|
9
|
+
export type { SolanaClientStore, SolanaClientState } from "./solana";
|
|
10
|
+
//# sourceMappingURL=core.d.ts.map
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// React-free entry point.
|
|
3
|
+
// Use this from non-React frameworks (Angular, Vue, Svelte, vanilla JS) to
|
|
4
|
+
// avoid pulling the React provider into the dependency graph.
|
|
5
|
+
//
|
|
6
|
+
// Equivalent to the package root entry minus FormoAnalyticsProvider/useFormo
|
|
7
|
+
// and the `window.formofy = formofy` side effect.
|
|
8
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
9
|
+
if (k2 === undefined) k2 = k;
|
|
10
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
11
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
12
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
13
|
+
}
|
|
14
|
+
Object.defineProperty(o, k2, desc);
|
|
15
|
+
}) : (function(o, m, k, k2) {
|
|
16
|
+
if (k2 === undefined) k2 = k;
|
|
17
|
+
o[k2] = m[k];
|
|
18
|
+
}));
|
|
19
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
20
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
21
|
+
};
|
|
22
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
23
|
+
exports.isSolanaChainId = exports.DEFAULT_SOLANA_CHAIN_ID = exports.SOLANA_CHAIN_IDS = exports.SolanaManager = exports.parsePrivyProperties = exports.formofy = void 0;
|
|
24
|
+
__exportStar(require("./FormoAnalytics"), exports);
|
|
25
|
+
__exportStar(require("./types"), exports);
|
|
26
|
+
var initialization_1 = require("./initialization");
|
|
27
|
+
Object.defineProperty(exports, "formofy", { enumerable: true, get: function () { return initialization_1.formofy; } });
|
|
28
|
+
var privy_1 = require("./privy");
|
|
29
|
+
Object.defineProperty(exports, "parsePrivyProperties", { enumerable: true, get: function () { return privy_1.parsePrivyProperties; } });
|
|
30
|
+
var solana_1 = require("./solana");
|
|
31
|
+
Object.defineProperty(exports, "SolanaManager", { enumerable: true, get: function () { return solana_1.SolanaManager; } });
|
|
32
|
+
var solana_2 = require("./solana");
|
|
33
|
+
Object.defineProperty(exports, "SOLANA_CHAIN_IDS", { enumerable: true, get: function () { return solana_2.SOLANA_CHAIN_IDS; } });
|
|
34
|
+
Object.defineProperty(exports, "DEFAULT_SOLANA_CHAIN_ID", { enumerable: true, get: function () { return solana_2.DEFAULT_SOLANA_CHAIN_ID; } });
|
|
35
|
+
Object.defineProperty(exports, "isSolanaChainId", { enumerable: true, get: function () { return solana_2.isSolanaChainId; } });
|
|
36
|
+
//# sourceMappingURL=core.js.map
|
package/dist/cjs/src/index.d.ts
CHANGED
|
@@ -1,10 +1,3 @@
|
|
|
1
|
+
export * from "./core";
|
|
1
2
|
export * from "./FormoAnalyticsProvider";
|
|
2
|
-
export * from "./FormoAnalytics";
|
|
3
|
-
export * from "./types";
|
|
4
|
-
export { parsePrivyProperties } from "./privy";
|
|
5
|
-
export type { PrivyUser, PrivyLinkedAccount, PrivyAccountType, PrivyProfileProperties, PrivyWalletInfo } from "./privy";
|
|
6
|
-
export { SolanaManager } from "./solana";
|
|
7
|
-
export { SOLANA_CHAIN_IDS, DEFAULT_SOLANA_CHAIN_ID, isSolanaChainId } from "./solana";
|
|
8
|
-
export type { SolanaOptions, SolanaCluster, } from "./solana";
|
|
9
|
-
export type { SolanaClientStore, SolanaClientState, } from "./solana";
|
|
10
3
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/cjs/src/index.js
CHANGED
|
@@ -14,20 +14,9 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
exports.isSolanaChainId = exports.DEFAULT_SOLANA_CHAIN_ID = exports.SOLANA_CHAIN_IDS = exports.SolanaManager = exports.parsePrivyProperties = void 0;
|
|
18
17
|
var initialization_1 = require("./initialization");
|
|
18
|
+
__exportStar(require("./core"), exports);
|
|
19
19
|
__exportStar(require("./FormoAnalyticsProvider"), exports);
|
|
20
|
-
__exportStar(require("./FormoAnalytics"), exports);
|
|
21
|
-
__exportStar(require("./types"), exports);
|
|
22
|
-
var privy_1 = require("./privy");
|
|
23
|
-
Object.defineProperty(exports, "parsePrivyProperties", { enumerable: true, get: function () { return privy_1.parsePrivyProperties; } });
|
|
24
|
-
// Solana integration exports
|
|
25
|
-
var solana_1 = require("./solana");
|
|
26
|
-
Object.defineProperty(exports, "SolanaManager", { enumerable: true, get: function () { return solana_1.SolanaManager; } });
|
|
27
|
-
var solana_2 = require("./solana");
|
|
28
|
-
Object.defineProperty(exports, "SOLANA_CHAIN_IDS", { enumerable: true, get: function () { return solana_2.SOLANA_CHAIN_IDS; } });
|
|
29
|
-
Object.defineProperty(exports, "DEFAULT_SOLANA_CHAIN_ID", { enumerable: true, get: function () { return solana_2.DEFAULT_SOLANA_CHAIN_ID; } });
|
|
30
|
-
Object.defineProperty(exports, "isSolanaChainId", { enumerable: true, get: function () { return solana_2.isSolanaChainId; } });
|
|
31
20
|
if (typeof window !== "undefined")
|
|
32
21
|
window.formofy = initialization_1.formofy;
|
|
33
22
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { LogLevel } from "../logger";
|
|
2
2
|
import { IFormoEventContext, IFormoEventProperties, SignatureStatus, TransactionStatus } from "./events";
|
|
3
3
|
import { EIP1193Provider } from "./provider";
|
|
4
|
-
import { ReactNode } from "react";
|
|
5
4
|
import { SolanaOptions } from "../solana/types";
|
|
6
5
|
export type Nullable<T> = T | null;
|
|
7
6
|
export type ChainID = number;
|
|
@@ -221,10 +220,4 @@ export interface Options {
|
|
|
221
220
|
errorHandler?: (err: Error) => void;
|
|
222
221
|
ready?: (formo: IFormoAnalytics) => void;
|
|
223
222
|
}
|
|
224
|
-
export interface FormoAnalyticsProviderProps {
|
|
225
|
-
writeKey: string;
|
|
226
|
-
options?: Options;
|
|
227
|
-
disabled?: boolean;
|
|
228
|
-
children: ReactNode;
|
|
229
|
-
}
|
|
230
223
|
//# sourceMappingURL=base.d.ts.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const version = "1.30.
|
|
1
|
+
export declare const version = "1.30.1";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/dist/cjs/src/version.js
CHANGED
|
@@ -3,5 +3,5 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.version = void 0;
|
|
4
4
|
// This file is auto-generated by scripts/update-version.js during npm version
|
|
5
5
|
// Do not edit manually - it will be overwritten
|
|
6
|
-
exports.version = '1.30.
|
|
6
|
+
exports.version = '1.30.1';
|
|
7
7
|
//# sourceMappingURL=version.js.map
|
|
@@ -1,5 +1,11 @@
|
|
|
1
|
-
import { FC } from "react";
|
|
2
|
-
import {
|
|
1
|
+
import { FC, ReactNode } from "react";
|
|
2
|
+
import { IFormoAnalytics, Options } from "./types";
|
|
3
|
+
export interface FormoAnalyticsProviderProps {
|
|
4
|
+
writeKey: string;
|
|
5
|
+
options?: Options;
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
children: ReactNode;
|
|
8
|
+
}
|
|
3
9
|
export declare const FormoAnalyticsContext: import("react").Context<IFormoAnalytics>;
|
|
4
10
|
export declare const FormoAnalyticsProvider: FC<FormoAnalyticsProviderProps>;
|
|
5
11
|
export declare const useFormo: () => IFormoAnalytics;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export * from "./FormoAnalytics";
|
|
2
|
+
export * from "./types";
|
|
3
|
+
export { formofy } from "./initialization";
|
|
4
|
+
export { parsePrivyProperties } from "./privy";
|
|
5
|
+
export type { PrivyUser, PrivyLinkedAccount, PrivyAccountType, PrivyProfileProperties, PrivyWalletInfo, } from "./privy";
|
|
6
|
+
export { SolanaManager } from "./solana";
|
|
7
|
+
export { SOLANA_CHAIN_IDS, DEFAULT_SOLANA_CHAIN_ID, isSolanaChainId, } from "./solana";
|
|
8
|
+
export type { SolanaOptions, SolanaCluster } from "./solana";
|
|
9
|
+
export type { SolanaClientStore, SolanaClientState } from "./solana";
|
|
10
|
+
//# sourceMappingURL=core.d.ts.map
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
// React-free entry point.
|
|
2
|
+
// Use this from non-React frameworks (Angular, Vue, Svelte, vanilla JS) to
|
|
3
|
+
// avoid pulling the React provider into the dependency graph.
|
|
4
|
+
//
|
|
5
|
+
// Equivalent to the package root entry minus FormoAnalyticsProvider/useFormo
|
|
6
|
+
// and the `window.formofy = formofy` side effect.
|
|
7
|
+
export * from "./FormoAnalytics";
|
|
8
|
+
export * from "./types";
|
|
9
|
+
export { formofy } from "./initialization";
|
|
10
|
+
export { parsePrivyProperties } from "./privy";
|
|
11
|
+
export { SolanaManager } from "./solana";
|
|
12
|
+
export { SOLANA_CHAIN_IDS, DEFAULT_SOLANA_CHAIN_ID, isSolanaChainId, } from "./solana";
|
|
13
|
+
//# sourceMappingURL=core.js.map
|
package/dist/esm/src/index.d.ts
CHANGED
|
@@ -1,10 +1,3 @@
|
|
|
1
|
+
export * from "./core";
|
|
1
2
|
export * from "./FormoAnalyticsProvider";
|
|
2
|
-
export * from "./FormoAnalytics";
|
|
3
|
-
export * from "./types";
|
|
4
|
-
export { parsePrivyProperties } from "./privy";
|
|
5
|
-
export type { PrivyUser, PrivyLinkedAccount, PrivyAccountType, PrivyProfileProperties, PrivyWalletInfo } from "./privy";
|
|
6
|
-
export { SolanaManager } from "./solana";
|
|
7
|
-
export { SOLANA_CHAIN_IDS, DEFAULT_SOLANA_CHAIN_ID, isSolanaChainId } from "./solana";
|
|
8
|
-
export type { SolanaOptions, SolanaCluster, } from "./solana";
|
|
9
|
-
export type { SolanaClientStore, SolanaClientState, } from "./solana";
|
|
10
3
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/esm/src/index.js
CHANGED
|
@@ -1,11 +1,6 @@
|
|
|
1
1
|
import { formofy } from "./initialization";
|
|
2
|
+
export * from "./core";
|
|
2
3
|
export * from "./FormoAnalyticsProvider";
|
|
3
|
-
export * from "./FormoAnalytics";
|
|
4
|
-
export * from "./types";
|
|
5
|
-
export { parsePrivyProperties } from "./privy";
|
|
6
|
-
// Solana integration exports
|
|
7
|
-
export { SolanaManager } from "./solana";
|
|
8
|
-
export { SOLANA_CHAIN_IDS, DEFAULT_SOLANA_CHAIN_ID, isSolanaChainId } from "./solana";
|
|
9
4
|
if (typeof window !== "undefined")
|
|
10
5
|
window.formofy = formofy;
|
|
11
6
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { LogLevel } from "../logger";
|
|
2
2
|
import { IFormoEventContext, IFormoEventProperties, SignatureStatus, TransactionStatus } from "./events";
|
|
3
3
|
import { EIP1193Provider } from "./provider";
|
|
4
|
-
import { ReactNode } from "react";
|
|
5
4
|
import { SolanaOptions } from "../solana/types";
|
|
6
5
|
export type Nullable<T> = T | null;
|
|
7
6
|
export type ChainID = number;
|
|
@@ -221,10 +220,4 @@ export interface Options {
|
|
|
221
220
|
errorHandler?: (err: Error) => void;
|
|
222
221
|
ready?: (formo: IFormoAnalytics) => void;
|
|
223
222
|
}
|
|
224
|
-
export interface FormoAnalyticsProviderProps {
|
|
225
|
-
writeKey: string;
|
|
226
|
-
options?: Options;
|
|
227
|
-
disabled?: boolean;
|
|
228
|
-
children: ReactNode;
|
|
229
|
-
}
|
|
230
223
|
//# sourceMappingURL=base.d.ts.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const version = "1.30.
|
|
1
|
+
export declare const version = "1.30.1";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/dist/esm/src/version.js
CHANGED