@hanzo/commerce 7.7.0 → 7.7.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.
Files changed (90) hide show
  1. package/dist/components/checkout/payment-step-form/methods/card.js +20 -2
  2. package/dist/components/checkout/payment-step-form/methods/card.js.map +1 -1
  3. package/package.json +38 -9
  4. package/billing.ts +0 -2
  5. package/client.ts +0 -783
  6. package/components/Icons.tsx +0 -35
  7. package/components/add-to-cart-widget.tsx +0 -195
  8. package/components/buy/buy-card.tsx +0 -269
  9. package/components/buy/carousel-buy-card.tsx +0 -243
  10. package/components/buy/multi-family/all-variants-carousel.tsx +0 -259
  11. package/components/buy/multi-family/family-carousel/index.tsx +0 -75
  12. package/components/buy/multi-family/family-carousel/slide.tsx +0 -82
  13. package/components/buy/multi-family/family-carousel/state.ts +0 -87
  14. package/components/buy/multi-family/index.ts +0 -2
  15. package/components/buy/single-family-selector.tsx +0 -91
  16. package/components/buy/title-and-byline.tsx +0 -26
  17. package/components/cart/cart-panel/cart-line-item.tsx +0 -77
  18. package/components/cart/cart-panel/index.tsx +0 -157
  19. package/components/cart/cart-panel/promo-code.tsx +0 -105
  20. package/components/cart/cart-panel/total-area.tsx +0 -61
  21. package/components/checkout/payment-step-form/card-icon-row.tsx +0 -26
  22. package/components/checkout/payment-step-form/card-icons/amex.tsx +0 -32
  23. package/components/checkout/payment-step-form/card-icons/diners-club.tsx +0 -13
  24. package/components/checkout/payment-step-form/card-icons/discover.tsx +0 -25
  25. package/components/checkout/payment-step-form/card-icons/jcb.tsx +0 -26
  26. package/components/checkout/payment-step-form/card-icons/mastercard.tsx +0 -27
  27. package/components/checkout/payment-step-form/card-icons/visa.tsx +0 -25
  28. package/components/checkout/payment-step-form/cc-button.tsx +0 -18
  29. package/components/checkout/payment-step-form/contact-form.tsx +0 -48
  30. package/components/checkout/payment-step-form/crypto-icons/btc.tsx +0 -11
  31. package/components/checkout/payment-step-form/crypto-icons/eth.tsx +0 -20
  32. package/components/checkout/payment-step-form/crypto-icons/usdt.tsx +0 -13
  33. package/components/checkout/payment-step-form/index.tsx +0 -113
  34. package/components/checkout/payment-step-form/methods/bank-transfer.tsx +0 -81
  35. package/components/checkout/payment-step-form/methods/card.tsx +0 -230
  36. package/components/checkout/payment-step-form/methods/crypto.tsx +0 -226
  37. package/components/checkout/payment-step-form/methods/index.ts +0 -23
  38. package/components/checkout/shipping-step-form.tsx +0 -171
  39. package/components/index.ts +0 -11
  40. package/components/item/product-card.tsx +0 -66
  41. package/components/item-selector/button.tsx +0 -213
  42. package/components/item-selector/carousel/index.tsx +0 -196
  43. package/components/item-selector/carousel/slider.tsx +0 -37
  44. package/components/item-selector/index.ts +0 -5
  45. package/components/item-selector/quantity-indicator.tsx +0 -50
  46. package/components/node-tabs/index.tsx +0 -90
  47. package/components/node-tabs/node-image.tsx +0 -31
  48. package/index.ts +0 -55
  49. package/metering.test.ts +0 -199
  50. package/metering.ts +0 -289
  51. package/product-card.test.tsx +0 -104
  52. package/service/context.tsx +0 -45
  53. package/service/debug.ts +0 -41
  54. package/service/impls/standalone/actual-line-item.ts +0 -136
  55. package/service/impls/standalone/get-instance.ts +0 -64
  56. package/service/impls/standalone/index.ts +0 -579
  57. package/service/impls/standalone/order/firebase.ts +0 -5
  58. package/service/impls/standalone/order/index.ts +0 -58
  59. package/service/impls/standalone/persistence.ts +0 -33
  60. package/service/path-utils.ts +0 -26
  61. package/service/sep.ts +0 -7
  62. package/tsconfig.json +0 -17
  63. package/types/README.md +0 -2
  64. package/types/category-node.ts +0 -50
  65. package/types/checkout.ts +0 -47
  66. package/types/commerce-config.ts +0 -13
  67. package/types/commerce-service.ts +0 -128
  68. package/types/family.ts +0 -26
  69. package/types/index.ts +0 -15
  70. package/types/item-selector.ts +0 -97
  71. package/types/line-item.ts +0 -29
  72. package/types/multi-family-selector-props.ts +0 -20
  73. package/types/product.ts +0 -21
  74. package/types/promo.ts +0 -10
  75. package/types/selection-ui-specifier.ts +0 -52
  76. package/types/string-mutator.ts +0 -14
  77. package/types/token-separators.ts +0 -7
  78. package/util/analytics.ts +0 -21
  79. package/util/countries.ts +0 -196
  80. package/util/error.ts +0 -34
  81. package/util/index.ts +0 -71
  82. package/util/item-selector-options-accessor.ts +0 -35
  83. package/util/line-item-ref.ts +0 -23
  84. package/util/multi-family-selector-options-accessor.ts +0 -15
  85. package/util/obs-string-mutator.ts +0 -22
  86. package/util/product-media-accessor.ts +0 -58
  87. package/util/promo-codes.ts +0 -106
  88. package/util/selection-ui-specifiers.ts +0 -30
  89. package/util/square-payment.ts +0 -50
  90. package/util/use-sync-sku-param-w-current-item.ts +0 -88
package/tsconfig.json DELETED
@@ -1,17 +0,0 @@
1
- {
2
- "extends": "../tsconfig.hanzo.base.json",
3
- "include": [
4
- "**/*.ts",
5
- "**/*.tsx",
6
- ],
7
- "exclude": [
8
- "node_modules",
9
- "dist"
10
- ],
11
- "compilerOptions": {
12
- "noEmit": false,
13
- "declaration": true,
14
- "skipLibCheck": true,
15
- "strict": false
16
- }
17
- }
package/types/README.md DELETED
@@ -1,2 +0,0 @@
1
- These are the types that the card ui expects and understands.
2
- There should always be adaptors both ways from Hanzo commerceJs types.
@@ -1,50 +0,0 @@
1
- import type { ReactNode } from 'react'
2
-
3
- interface CategoryNode {
4
- skuToken: string // a token in the sku
5
- label: string;
6
- /**
7
- * Explicitly marks this node as a "last user-visible" / "outermost" Category.
8
- * Normally, a node is "outermost" when it has no subnodes
9
- * (and thus is a family with products -- "single-family")
10
- * But if it *has* subnodes, and its subNodes are actually sibling families
11
- * of a Category, it must be marked as "outermost" ("multi-family")
12
- * */
13
- outermost?: boolean;
14
- img? : string | ReactNode // icon is required
15
- imgAR? : number // helps with svgs
16
-
17
- /**
18
- * One word prompt that describes the 'meaning' of
19
- * the subnodes.
20
- * For example, if a node is 'Lux Credit',
21
- * it's subNodesLabel might be 'Level', so some UI's
22
- * might be configured to render 'Level: Black'
23
- *
24
- * or something like...
25
- *
26
- * <Tabs title={parentNode.label + ': ' + parentNode.subNodesLabel} values={families.map((f) => (f.shortName))} />
27
- *
28
- * ...which renders
29
- *
30
- * Lux Credit Levels:
31
- * Black Elite Founder Sovereign
32
- */
33
- subNodesLabel?: string
34
- subNodes?: CategoryNode[]
35
- }
36
-
37
- type CategoryNodeRole =
38
- 'single-family' |
39
- 'family-in-multi-family' |
40
- 'multi-family' |
41
- 'non-outermost'
42
-
43
- // Which facets tokens are 'on' at each level
44
- type SelectedPaths = Record<number, string[]>
45
-
46
- export type {
47
- CategoryNodeRole,
48
- CategoryNode,
49
- SelectedPaths
50
- }
package/types/checkout.ts DELETED
@@ -1,47 +0,0 @@
1
- import type { ComponentType } from 'react'
2
- import type { UseFormReturn } from 'react-hook-form'
3
-
4
- type TransactionStatus = 'unpaid' | 'paid' | 'confirmed' | 'error'
5
-
6
- interface CheckoutStepComponentProps {
7
- onDone: () => void
8
- orderId: string | undefined
9
- setOrderId: (orderId: string | undefined) => void
10
- }
11
-
12
- interface CheckoutStep {
13
- name: string
14
- label?: string
15
- Comp: ComponentType<CheckoutStepComponentProps>
16
- }
17
-
18
- type ContactFormType = UseFormReturn<{
19
- name: string
20
- email: string
21
- }, any, {
22
- name: string
23
- email: string
24
- }>
25
-
26
- interface PaymentMethodComponentProps {
27
- onDone: () => void
28
- transactionStatus: TransactionStatus
29
- setTransactionStatus: (status: TransactionStatus) => void
30
- storePaymentInfo: (paymentInfo: any) => Promise<void>
31
- contactForm: ContactFormType
32
- }
33
-
34
- interface PaymentMethodDesc {
35
- value: string
36
- label: string
37
- Comp: ComponentType<PaymentMethodComponentProps>
38
- }
39
-
40
- export {
41
- type TransactionStatus,
42
- type CheckoutStepComponentProps,
43
- type CheckoutStep,
44
- type PaymentMethodComponentProps,
45
- type PaymentMethodDesc,
46
- type ContactFormType,
47
- }
@@ -1,13 +0,0 @@
1
- import type { ServiceOptions } from '..'
2
- import type { CategoryNode } from './category-node'
3
- import type { Family } from './family'
4
- import type { SelectionUISpecifier } from './selection-ui-specifier'
5
-
6
- interface CommerceConfig {
7
- families: Family[]
8
- rootNode: CategoryNode
9
- options?: ServiceOptions
10
- uiSpecifiers?: Record<string, SelectionUISpecifier>
11
- }
12
-
13
- export { type CommerceConfig as default }
@@ -1,128 +0,0 @@
1
- import type { LineItem, ObsLineItemRef } from './line-item'
2
- import type { CategoryNode, SelectedPaths, CategoryNodeRole } from './category-node'
3
- import type { Family, ObsFamilyRef} from './family'
4
- import type Promo from './promo'
5
-
6
-
7
- interface CommerceService extends ObsLineItemRef, ObsFamilyRef {
8
-
9
- /** Items in cart */
10
- get cartItems(): LineItem[]
11
- /** Total of all quantities of all items in cart */
12
- get cartQuantity(): number
13
- /** Total of all prices x quantities of items in cart */
14
- get cartTotal(): number
15
-
16
- /** cartItem whose quantity was modified most recently
17
- * item: LineItem
18
- * modified: number (timestamp)
19
- * (undefined if cartEmpty)
20
- */
21
- get recentItem(): { item: LineItem, modified: number } | undefined
22
- get promoAppliedCartTotal(): number
23
-
24
- get cartEmpty(): boolean
25
-
26
- get appliedPromo(): Promo | null
27
- setAppliedPromo(promo: Promo | null): void
28
- /** returns the price with promo applied, of undefined if no promo or promo does not apply */
29
- itemPromoPrice(item: LineItem): number | undefined
30
-
31
- getFamilySubtotal(familyId: string): number
32
-
33
- createOrder(email: string, name?: string): Promise<string | undefined>
34
- updateOrderShippingInfo(orderId: string, shippingInfo: any): Promise<void>
35
- updateOrderPaymentInfo(orderId: string, paymentInfo: any): Promise<void>
36
-
37
- /**
38
- * Sets the tokens at each level supplied.
39
- * If a level is selected as [], nothing will be selected.
40
- * If a level is missing (undefined), everything at that level is selected
41
- *
42
- * This selects one or more Family's, and all the LineItem's in them.
43
- *
44
- * An empty value object selects all Family's and all LineItem's,
45
- * */
46
- selectPaths(value: SelectedPaths): Family[]
47
- selectPath(skuPath: string): Family[]
48
-
49
- /**
50
- * With role as ...
51
- *
52
- * 'single-family':
53
- * item: item with skuPath as SKU, otherwise undefined
54
- * node: node at path (or item's parent node),
55
- * family: node at path as family (or item's parent node as family),
56
- * families: undefined
57
- *
58
- * 'family-in-multi-family':
59
- * item: item with skuPath as SKU, otherwise undefined
60
- * node: parent node of this family (or parent node of item's family)
61
- * family: this family (or item's family)
62
- * families: this family (or item's family) and siblings
63
- *
64
- * 'multi-family':
65
- * item: undefined
66
- * node: node at path
67
- * family: undefined
68
- * families: subnodes / families of this node
69
- *
70
- * 'non-outermost':
71
- * item: undefined
72
- * node: node at path
73
- * family: undefined
74
- * families: undefined
75
- *
76
- */
77
- peek(skuPath: string): {
78
- role: CategoryNodeRole
79
- family: Family | undefined
80
- families: Family[] | undefined
81
- node: CategoryNode | undefined
82
- item: LineItem | undefined
83
- } | string // or error string
84
-
85
- /** @deprecated
86
- * Whether this path defines a Family, or if it has further levels
87
- * */
88
- getNodeAtPath(skuPath: string): CategoryNode | undefined
89
-
90
- get selectedPaths(): SelectedPaths // returns a copy
91
-
92
- get selectedItems(): LineItem[]
93
- get selectedFamilies(): Family[]
94
- get hasSelection(): boolean
95
-
96
-
97
- /**
98
- * Who are the subnodes selected at 'level'?
99
- * If more than one value is selected at 'level',
100
- * the returned CategoryNode[] may represent multiple sets.
101
- * */
102
- getSelectedNodesAtLevel(level: number): CategoryNode[] | undefined
103
-
104
- /**
105
- * For convenience, so widgets can share state.
106
- * "current" is unrelated to what branches and items are
107
- * "selected" (with CategoryNode's and paths)
108
- *
109
- * SEE ALSO: from ObsLineItemRef and ObsFamilyRef, there are also
110
- * get item(): LineItem | undefined
111
- * get family(): Family | undefined
112
- *
113
- * These simply delegate to these functions
114
- * */
115
- setCurrentItem(sku: string | undefined): boolean // valid sku and was set.
116
- get currentItem(): LineItem | undefined
117
- setCurrentFamily(id: string | undefined): boolean // valid id and was set.
118
- get currentFamily(): Family | undefined
119
-
120
- // utility
121
- getFamilyById(id: string): Family | undefined
122
- getItemBySku(sku: string): LineItem | undefined
123
- }
124
-
125
-
126
- export {
127
- type CommerceService as default
128
- }
package/types/family.ts DELETED
@@ -1,26 +0,0 @@
1
- import type { ImageDef } from '@hanzo/ui/types'
2
- import type Product from './product'
3
-
4
- interface Family {
5
- id: string // LXB-AU-B
6
- title: string // Minted Bar, Lux Elite Card
7
- titleShort?: string // Elite
8
- parentTitle?: string // Lux Gold, Lux Credit
9
- byline?: string // literal text, or name of function on 'this' object that returns a string
10
- desc?: string
11
- img?: ImageDef,
12
- // inbound to the service, they're Products
13
- // when it's initialized, interally they become LineItems
14
- // always ok to cast up to LineItem thereafter
15
- products: Product[]
16
- }
17
-
18
-
19
- interface ObsFamilyRef {
20
- get family(): Family | undefined
21
- }
22
-
23
- export {
24
- type Family,
25
- type ObsFamilyRef
26
- }
package/types/index.ts DELETED
@@ -1,15 +0,0 @@
1
-
2
- export type { default as CommerceService } from './commerce-service'
3
- export type { default as CommerceConfig } from './commerce-config'
4
- export type { default as MultiFamilySelectorProps } from './multi-family-selector-props'
5
- export type { default as Product } from './product'
6
- export type { default as Promo } from './promo'
7
- export type { default as TokenSeparators } from './token-separators'
8
-
9
- export * from './category-node'
10
- export * from './checkout'
11
- export * from './family'
12
- export * from './item-selector'
13
- export * from './line-item'
14
- export * from './selection-ui-specifier'
15
- export * from './string-mutator'
@@ -1,97 +0,0 @@
1
- import type { LineItem, ObsLineItemRef } from './line-item'
2
-
3
- interface ItemSelector {
4
- items: LineItem[]
5
- selectedItemRef: ObsLineItemRef
6
- selectSku: (sku: string) => void
7
- }
8
-
9
- /** default: 'text' */
10
- type ItemButton = 'text' | 'image-and-text' | 'image'
11
-
12
- // NOTE: if a field is added here, it should also
13
- // be added to util/item-selector-options-accessor.ts
14
- type ItemSelectorOptions = {
15
-
16
- /**
17
- * default: short
18
- * 'short': product.shortTitle if defined
19
- * 'long': always us product.title, even if .shortTitle is defined
20
- * 'none': do not show title AND BYLINE
21
- *
22
- * (NOTE: *not* the same as buttonType = 'none')
23
- */
24
- familyTitle?: 'none' | 'long' | 'short'
25
-
26
- /** only if title shown
27
- * default: false */
28
- showFamilyByline?: boolean
29
-
30
- /**
31
- * Whether the item label includes the Family name.
32
- * eg, 'Minted Bar, 1oz' vs '1oz'
33
- * default: false.
34
- */
35
- showFamilyInOption?: boolean
36
- /** default: true if it exists */
37
- showByline?: boolean
38
-
39
- /** default: true */
40
- showPrice?: boolean
41
-
42
- /**
43
- * Show the current item quantity along with title and price.
44
- * default: false
45
- */
46
- showQuantity?: boolean
47
-
48
- buttonType?: ItemButton
49
-
50
- /** (button selector only) default: false */
51
- horizButtons?: boolean
52
-
53
- /** (carousel selector only)
54
- * affects sort. See below.
55
- * default: false */
56
- showSlider?: boolean
57
-
58
- /** default true */
59
- showButtonIfOnlyOne?: boolean
60
-
61
- /**
62
- * Sort by cost.
63
- * If it's a carousel selector and 'showSlider' is true,
64
- * defaults to 'asc', unless another value is explicitly specified.
65
- * Otherwise, defaults to 'none'
66
- * */
67
- sort?: 'none' | 'asc' | 'desc'
68
- }
69
-
70
- interface _ItemSelectorCompProps {
71
- clx?: string
72
- itemClx?: string
73
- soleItemClx?: string
74
- /** type-specific props for ItemSelector's.
75
- * eg, Carousel options.
76
- */
77
- ext?: any
78
- /** List selectors will scroll.
79
- * Used internally
80
- * default: false */
81
- scrollable? : boolean
82
- options?: ItemSelectorOptions
83
-
84
- mobile?: boolean
85
- }
86
-
87
- type ItemSelectorCompProps = Omit<_ItemSelectorCompProps, 'scrollable'>
88
-
89
- interface ItemSelectorProps extends
90
- ItemSelector, _ItemSelectorCompProps {}
91
-
92
- export {
93
- type ItemSelector,
94
- type ItemSelectorCompProps,
95
- type ItemSelectorOptions,
96
- type ItemSelectorProps
97
- }
@@ -1,29 +0,0 @@
1
- import type Product from './product'
2
-
3
- // Client code always
4
- // has a LineItem, whether the Product
5
- // is in the cart or not. Something is in the cart
6
- // when its quantity > 0. That's the only difference.
7
- // The ui, and as well as some Cart state, reacts to
8
- // changes in this quantity.
9
-
10
- // It could have more accurately been named
11
- // 'QuantifiedProduct' but that sucked.
12
- interface LineItem extends Product {
13
-
14
- /** all observable */
15
- get quantity(): number
16
- get canDecrement(): boolean
17
- get isInCart(): boolean
18
-
19
- increment(): void
20
- decrement(): void
21
-
22
- get title(): string
23
- }
24
-
25
- interface ObsLineItemRef {
26
- get item(): LineItem | undefined
27
- }
28
-
29
- export type { LineItem, ObsLineItemRef}
@@ -1,20 +0,0 @@
1
- import type { Dimensions } from '@hanzo/ui/types'
2
-
3
- import type { Family } from './family'
4
- import type { ItemSelectorOptions } from './item-selector'
5
- import type { MultiFamilySelectorOptions } from './selection-ui-specifier'
6
- import type { CategoryNode } from './category-node'
7
- import type { LineItem } from './line-item'
8
-
9
- interface MultiFamilySelectorProps {
10
- families: Family[]
11
- parent: CategoryNode
12
- clx?: string
13
- itemClx?: string
14
- itemOptions?: ItemSelectorOptions
15
- selectorOptions?: MultiFamilySelectorOptions
16
- mediaConstraint?: Dimensions
17
- mobile?: boolean
18
- }
19
-
20
- export { type MultiFamilySelectorProps as default }
package/types/product.ts DELETED
@@ -1,21 +0,0 @@
1
- import type { ImageDef, MediaStackDef } from '@hanzo/ui/types'
2
-
3
- interface Product extends MediaStackDef {
4
- id: string // DB index // not a logical aspect of our domain. may not be necessary at all
5
- sku: string // human visible on orders etc.
6
- fullTitle?: string
7
- optionLabel: string
8
- optionLabelShort?: string
9
- familyId: string // skuPath, eg LXB-AU-B
10
- familyTitle: string
11
- byline?: string
12
- desc?: string
13
- price: number
14
- // image to by uses as an image button in a list of choices
15
- // defaults to (MediaStackDef's) img
16
- optionImg?: ImageDef
17
- }
18
-
19
- export {
20
- type Product as default
21
- }
package/types/promo.ts DELETED
@@ -1,10 +0,0 @@
1
- interface Promo {
2
- type: 'percent' | 'amount'
3
- code: string
4
- value: number,
5
- skus?: string[]
6
- }
7
-
8
- export {
9
- type Promo as default
10
- }
@@ -1,52 +0,0 @@
1
- import type { ItemSelectorOptions } from './item-selector'
2
-
3
- type SingleFamilySelector = 'buttons' | 'carousel'
4
- type MultiFamilySelector = 'family-carousel' | 'all-variants-carousel'
5
-
6
- type MultiFamilySelectorOptions = {
7
- /**
8
- * Show title of parent node of families.
9
- * eg,
10
- * Lux Credit
11
- * Black Card
12
- *
13
- * vs just Black Card
14
- *
15
- * ( parent CategoryNode.label)
16
- *
17
- * (goes to one line if only one family)
18
- * default: true
19
- * */
20
- showParentTitle?: boolean
21
-
22
- /** parent CategoryNode.subNodesLabel
23
- *
24
- * default: 'none'
25
- */
26
- parentByline?: 'none' | 'own-line' | 'comma-sep' | 'colon-sep'
27
-
28
- /** show horiz image buttons of
29
- * all sibling items below item info
30
- * default: true*/
31
- showItemSwatches?: boolean
32
- }
33
-
34
- interface SelectionUISpecifier {
35
- multiFamily?: {
36
- type: MultiFamilySelector
37
- selectorOptions?: MultiFamilySelectorOptions
38
- itemOptions?: ItemSelectorOptions
39
- }
40
- singleFamily?: {
41
- type: SingleFamilySelector
42
- options?: ItemSelectorOptions
43
- }
44
- }
45
-
46
- export {
47
- type SelectionUISpecifier,
48
- type ItemSelectorOptions,
49
- type SingleFamilySelector,
50
- type MultiFamilySelector,
51
- type MultiFamilySelectorOptions
52
- }
@@ -1,14 +0,0 @@
1
- interface StringMutator {
2
- get(): string | null
3
- set(v: string | null): void
4
- }
5
-
6
- interface StringArrayMutator {
7
- get(): string[] | null
8
- set(v: string[] | null): void
9
- }
10
-
11
- export type {
12
- StringMutator,
13
- StringArrayMutator
14
- }
@@ -1,7 +0,0 @@
1
- interface TokenSeparators {
2
- readonly tok: string
3
- readonly subTok: string
4
- readonly decimal: string
5
- }
6
-
7
- export { type TokenSeparators as default }
package/util/analytics.ts DELETED
@@ -1,21 +0,0 @@
1
- declare global {
2
- interface Window {
3
- fbq: Function;
4
- gtag: Function;
5
- }
6
- }
7
-
8
- // https://developers.facebook.com/docs/meta-pixel/reference
9
- const sendFBEvent = (name: string, options = {}) => {
10
- window.fbq('track', name, options)
11
- }
12
-
13
- // https://developers.google.com/analytics/devguides/collection/ga4/ecommerce?client_type=gtag
14
- const sendGAEvent = (name: string, options = {}) => {
15
- window.gtag('event', name, options)
16
- }
17
-
18
- export {
19
- sendFBEvent,
20
- sendGAEvent,
21
- }