@schematichq/schematic-react 0.1.2 → 0.1.4
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/schematic-react.cjs.js +28 -2818
- package/dist/schematic-react.d.ts +34 -0
- package/dist/schematic-react.esm.js +41 -2839
- package/package.json +4 -4
@@ -1,6 +1,37 @@
|
|
1
|
+
import { Event as Event_2 } from '@schematichq/schematic-js';
|
2
|
+
import { EventBody } from '@schematichq/schematic-js';
|
3
|
+
import { EventBodyCompany } from '@schematichq/schematic-js';
|
4
|
+
import { EventBodyIdentify } from '@schematichq/schematic-js';
|
5
|
+
import { EventBodyTrack } from '@schematichq/schematic-js';
|
6
|
+
import { EventType } from '@schematichq/schematic-js';
|
7
|
+
import { FlagCheckResponseBody } from '@schematichq/schematic-js';
|
8
|
+
import { FlagCheckWithKeyResponseBody } from '@schematichq/schematic-js';
|
9
|
+
import { Keys } from '@schematichq/schematic-js';
|
1
10
|
import { default as React_2 } from 'react';
|
2
11
|
import { ReactNode } from 'react';
|
12
|
+
import { SchematicContext } from '@schematichq/schematic-js';
|
3
13
|
import * as SchematicJS from '@schematichq/schematic-js';
|
14
|
+
import { Traits } from '@schematichq/schematic-js';
|
15
|
+
|
16
|
+
export { Event_2 as Event }
|
17
|
+
|
18
|
+
export { EventBody }
|
19
|
+
|
20
|
+
export { EventBodyCompany }
|
21
|
+
|
22
|
+
export { EventBodyIdentify }
|
23
|
+
|
24
|
+
export { EventBodyTrack }
|
25
|
+
|
26
|
+
export { EventType }
|
27
|
+
|
28
|
+
export { FlagCheckResponseBody }
|
29
|
+
|
30
|
+
export { FlagCheckWithKeyResponseBody }
|
31
|
+
|
32
|
+
export { Keys }
|
33
|
+
|
34
|
+
export { SchematicContext }
|
4
35
|
|
5
36
|
declare interface SchematicContextProps {
|
6
37
|
client?: SchematicJS.Schematic;
|
@@ -16,8 +47,11 @@ export declare const SchematicProvider: React_2.FC<SchematicProviderProps>;
|
|
16
47
|
declare interface SchematicProviderProps {
|
17
48
|
children: ReactNode;
|
18
49
|
publishableKey?: string;
|
50
|
+
apiUrl?: string;
|
19
51
|
}
|
20
52
|
|
53
|
+
export { Traits }
|
54
|
+
|
21
55
|
export declare const useSchematic: () => SchematicContextProps;
|
22
56
|
|
23
57
|
export declare const useSchematicContext: () => {
|