0.2.0 • Published 8 months ago

@r/frames v0.2.0

Weekly downloads
228
License
UNLICENSED
Repository
github
Last release
8 months ago

r/iframes

A library for interacting with <iframes />.

Change Log

v0.0.0

Initial release

v0.1.1

Transform modules to commonjs

v0.1.5

Library is no built when installed as a dependency. This removes the dependency on Babel packages.

v0.1.6

Fixes a polyfill issue for server environments introduced in v0.1.4.

v0.2.0

Fixes a reference error with the hoisted arguments variable. Updates babel CLI and the presets used for building. Remove polyfill for CustomEvent.

Installation

yarn add @r/frames -s

Usage example

import * as frames from '@r/frames';

// parent window
frames.listen('dfp');
frames.receiveMessageOnce('init.dfp', () => {
  // do stuff.
});

// iframe
frames.postMessage(window.parent, 'init.dfp', data);

TODO

  1. Add tests
  2. Convert to typescript
0.2.0

8 months ago

0.2.0-alpha

9 months ago

0.1.6

5 years ago

0.1.5

5 years ago

0.1.4

6 years ago

0.1.3

6 years ago

0.1.2

6 years ago

0.1.1

7 years ago

0.1.0

7 years ago

0.0.0

7 years ago