<AccessContext />
appId
{String
} Your Poool App IDconfig
{Object
} (optional) Default paywall config (see the configuration documentation).styles
{Object
} (optional) Default paywall styles (see the styles documentation).texts
{Object
} (optional) Default paywall texts (see the texts documentation).events
{Object
} (optional) Paywall events listeners (see the events documentation).variables
{Object
} (optional) Paywall variables (see the variables documentation).scriptUrl
{String
} (optional, default: 'https://assets.poool.fr/access.min.js'
) Default Poool Access SDK urlwithAudit
{Boolean
} (optional, default: false
) Whether to include AuditContext in AccessContext or not<AuditContext />
appId
{String
} Your Poool App IDconfig
{Object
} (optional) Default audit config (see the configuration documentation).events
{Object
} (optional) Audit events listeners (see the events documentation).scriptUrl
{String
} (optional, default: 'https://assets.poool.fr/audit.min.js'
) Default Poool Audit SDK url<RestrictedContent />
mode
{String
: 'excerpt'
| 'hide'
| 'custom'
} (optional) Way to hide content see Access configuration for more informations.percent
{Number
} (optional) Percentage of content to hide.<Paywall />
contentRef
{React.Ref
} Reference to the RestrictedContent component associated to this Paywallid
{String
} (optional, default: random id) Custom wrapper component IDpageType
{String
} (optional, default: 'premium'
) Current page type (supported types: page
, premium
, free
, subscription
)config
{Object
} (optional) Paywall config (see the configuration documentation).styles
{Object
} (optional) Paywall styles (see the styles documentation).texts
{Object
} (optional) Paywall texts (see the texts documentation).variables
{Object
} (optional) Paywall variables (see the variables documentation).events
{Object
} (optional) Paywall events listeners (see the events documentation)<Pixel />
type
{String
} Event type (supported types: page-view
)data
{Object
} (optional but mandatory when type is page-view) Data associated to the event (see the audit documentation)config
{Object
} (optional) Pixel config (see the configuration documentation).options
{Object
} (optional) Options to pass to the event (see the audit documentation)onDone
{Function
} (optional) Callback to execute when the event is donereuse
{Boolean
} (optional, default: false
) Whether to reuse the same event or notlib
{Function
} The entire Access sdkappId
{String
} Current app IDconfig
{Object
} Current access context configtexts
{Object
} Current context textsstyles
{Object
} Current context stylesvariables
{Object
} Current context variablesevents
{Object
} Current access context events listenersscriptUrl
{Object
} Access SDK urlcreateFactory
{Function
} Function to trigger a new access init, returns the created access instance, with passed optionsdestroyFactory
{Function
} Function to delete a factorylib
{Function
} The entire Audit sdkappId
{String
} Current app IDconfig
{Object
} Current audit context configevents
{Object
} Current audit context events listenersscriptUrl
{Function
} Audit SDK url<PaywallContext />
has been replaced with <AccessContext />
(used to show the paywall) and <AuditContext />
(used to track particular events)usePoool
has been replaced with useAccess
and useAudit
, both respectively requiring the above contexts to be a parent component<Paywall />
now needs a contentRef
prop to be able to lock/unlock the content, and the ref should be retrieved from <RestrictedContent />
<Pixel />
has been added to avoid manual event tracking using the legacy poool()
function