Releases: adhese/sdk_typescript
Releases · adhese/sdk_typescript
@adhese/[email protected]
Minor Changes
- 97e282d: Add generateSlotSignature function to generate a unique signature based on the options of a slot and it's location
@adhese/[email protected]
Minor Changes
- 14949a5: Add 'render' prop to render custom React components inside a slot
- 14949a5: Add placeholder prop for rendering content when the loading is not complete yet
- 97e282d: Allow initial slots to be passed in a the React build
- 6cb6dd3: Do not render wrapper element when slot is empty or errored
Patch Changes
- 65ad4b6: Fix react state not recognizing the changed state of a slot
- Updated dependencies [97e282d]
- Updated dependencies [97e282d]
- Updated dependencies [6cb6dd3]
- Updated dependencies [8f544be]
- Updated dependencies [14949a5]
- Updated dependencies [60f6b8e]
- Updated dependencies [c27d1fa]
- @adhese/[email protected]
- @adhese/[email protected]
@adhese/[email protected]
Minor Changes
-
ae79c69: Allow users to only pass an element ID to the containingElement option when defining a slot.
Before
const slot = adhese.defineSlot({ containingElement: "my-element-id", format: "leaderboard", });
Elements would require a class of
adunit
and a matching data attribute ofdata-format
to be recognized as an Adhese
slot.<div id="my-element-id" class="adunit" data-format="leaderboard"></div>
After
const slot = adhese.defineSlot({ containingElement: "my-element-id", format: "leaderboard", });
Elements now only require a matching ID to be recognized as an Adhese slot.
<div id="my-element-id"></div>
@adhese/[email protected]
@adhese/[email protected]
Minor Changes
- ac8433e: Allow passing of all HTMLAttributes props to AdheseSlot to allow more customizing of the rendered element
- ac8433e: Set width and height on passed element from the passed options to prevent content jumping in your page if the size of the slot is already known
Patch Changes
- ac8433e: Filter out passed undefined values from slot options
- Updated dependencies [ac8433e]
- Updated dependencies [ac8433e]
- @adhese/[email protected]
@adhese/[email protected]
Patch Changes
- ac8433e: Move setting of position relative when in debug mode to @adhese/sdk-devtools plugin
@adhese/[email protected]
Patch Changes
- f36afb7: Fix @adhese/sdk export for cjs builds not pointing to the correct path
@adhese/[email protected]
Patch Changes
- f36afb7: Fix @adhese/sdk export for cjs builds not pointing to the correct path
- Updated dependencies [f36afb7]
- @adhese/[email protected]
@adhese/[email protected]
Patch Changes
- f568fa6: Preload validators on Adhese instance creation