Skip to content

Commit

Permalink
feat: add prop to enable animations
Browse files Browse the repository at this point in the history
  • Loading branch information
douglaseggleton committed Oct 18, 2023
1 parent f3fa983 commit 7c8e502
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/embed/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ The options for this integration are as follows.
| `merchantAccountId` | `default` | An optional merchant account ID. |
| `billingAddressFields` | `Object` | An optional object with billing details requirements. <br /> All properties are optional. Example: `{ address: { houseNumberOrName: true, line1: true, city: true, postalCode: true, state: true, country: true }, emailAddress: true, firstName: true, lastName: true, taxId: true }` |
| `antiFraudFingerprint` | `string` | An optional string to use as the device fingerprint. Leave unset to opt-in to Gr4vy's automatic anti-fraud functionality. |
| `enableAnimations` | `false` | An optional boolean to turn on animations. |

### Theming

Expand Down
1 change: 1 addition & 0 deletions packages/embed/src/create-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ export const createConfig = (setupConfig: SetupConfig) => {
: setupConfig.element

return {
enableAnimations: false,
requireSecurityCode: false,
showDeleteButton: false,
store: 'ask',
Expand Down
1 change: 1 addition & 0 deletions packages/embed/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ export const optionKeys = [
'merchantAccountId',
'billingAddressFields',
'antiFraudFingerprint',
'enableAnimations',
]

// Map of cleanup callbacks
Expand Down
1 change: 1 addition & 0 deletions packages/embed/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ export type Config = {
merchantAccountId?: string
billingAddressFields?: BillingAddressFields
antiFraudFingerprint?: string
enableAnimations?: boolean
}

export type BillingAddressFields = {
Expand Down

0 comments on commit 7c8e502

Please sign in to comment.