Skip to content

Releases: adhese/sdk_typescript

@adhese/[email protected]

13 Nov 13:46
e4b5a8b
Compare
Choose a tag to compare

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]

13 Nov 13:46
e4b5a8b
Compare
Choose a tag to compare

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

@adhese/[email protected]

08 Oct 11:42
73585f5
Compare
Choose a tag to compare

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 of data-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]

25 Jun 08:40
67d3ae1
Compare
Choose a tag to compare

Patch Changes

  • ac8433e: Move setting of position relative when in debug mode to @adhese/sdk-devtools plugin
  • ac8433e: Filter out passed undefined values from slot options

@adhese/[email protected]

25 Jun 08:40
67d3ae1
Compare
Choose a tag to compare

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

@adhese/[email protected]

25 Jun 08:40
67d3ae1
Compare
Choose a tag to compare

Patch Changes

  • ac8433e: Move setting of position relative when in debug mode to @adhese/sdk-devtools plugin

@adhese/[email protected]

20 Jun 11:49
f9ea4e0
Compare
Choose a tag to compare

Patch Changes

  • f36afb7: Fix @adhese/sdk export for cjs builds not pointing to the correct path

@adhese/[email protected]

20 Jun 11:49
f9ea4e0
Compare
Choose a tag to compare

Patch Changes

@adhese/[email protected]

18 Jun 07:42
252d80d
Compare
Choose a tag to compare

Patch Changes

  • f568fa6: Preload validators on Adhese instance creation

@adhese/[email protected]

18 Jun 07:42
252d80d
Compare
Choose a tag to compare

Patch Changes

  • f568fa6: Revert chunk splitting in sdk-react as it was causing worse performance timings in applications
  • f568fa6: Preload validators on Adhese instance creation