iframe-resizer 4.3.6 → 4.3.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +1 -1
- package/README.md +2 -4
- package/js/iframeResizer.contentWindow.min.js +1 -1
- package/js/iframeResizer.min.js +1 -1
- package/package.json +28 -25
- package/CHANGELOG.md +0 -226
- package/CONTRIBUTING.md +0 -83
- package/FUNDING.md +0 -5
- package/SECURITY.md +0 -10
package/LICENSE
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
The MIT License (MIT)
|
|
2
2
|
|
|
3
|
-
Copyright (c) 2013-
|
|
3
|
+
Copyright (c) 2013-2023 David J. Bradshaw
|
|
4
4
|
|
|
5
5
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
6
|
of this software and associated documentation files (the "Software"), to deal
|
package/README.md
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
|
|
1
|
+
<img src="https://raw.githubusercontent.com/davidjbradshaw/iframe-resizer/master/img/logo-no-background.svg" alt="iFrame Resizer" style="margin-bottom: -20">
|
|
2
2
|
|
|
3
3
|
[](http://badge.fury.io/js/iframe-resizer)
|
|
4
4
|
[](https://npm-stat.com/charts.html?package=iframe-resizer&from=2014-12-31)
|
|
5
5
|
[](https://www.jsdelivr.com/package/npm/iframe-resizer)
|
|
6
6
|
[](https://coveralls.io/github/davidjbradshaw/iframe-resizer)
|
|
7
|
-
[](https://www.paypal.me/davidjbradshaw)
|
|
8
7
|
|
|
9
8
|
This library enables the automatic resizing of the height and width of both same and cross domain iFrames to fit their contained content. It provides a range of features to address the most common issues with using iFrames, these include:
|
|
10
9
|
|
|
@@ -20,7 +19,6 @@ This library enables the automatic resizing of the height and width of both same
|
|
|
20
19
|
- Exposes parent position and viewport size to the iFrame.
|
|
21
20
|
- Provides `onMouseEnter` and `onMouseLeave` events for the iFrame.
|
|
22
21
|
- Works with [ViewerJS](http://viewerjs.org/) to support PDF and ODF documents.
|
|
23
|
-
- Supports IE 11 ([V3 supports back to IE8](https://github.com/davidjbradshaw/iframe-resizer/tree/V3))
|
|
24
22
|
|
|
25
23
|
## Donate
|
|
26
24
|
|
|
@@ -68,7 +66,7 @@ If you have problems, check the [troubleshooting](https://github.com/davidjbrads
|
|
|
68
66
|
|
|
69
67
|
### Example
|
|
70
68
|
|
|
71
|
-
To see this working take a look at this [example](
|
|
69
|
+
To see this working take a look at this [example](https://davidjbradshaw.github.io/iframe-resizer/example/) and watch the [console](https://developer.mozilla.org/en-US/docs/Tools/Web_Console).
|
|
72
70
|
|
|
73
71
|
## API Documentation
|
|
74
72
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! iFrame Resizer (iframeSizer.contentWindow.min.js) - v4.3.
|
|
1
|
+
/*! iFrame Resizer (iframeSizer.contentWindow.min.js) - v4.3.8 - 2023-11-10
|
|
2
2
|
* Desc: Include this file in any page being loaded into an iframe
|
|
3
3
|
* to force the iframe to resize to the content size.
|
|
4
4
|
* Requires: iframeResizer.min.js on host page.
|
package/js/iframeResizer.min.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! iFrame Resizer (iframeSizer.min.js ) - v4.3.
|
|
1
|
+
/*! iFrame Resizer (iframeSizer.min.js ) - v4.3.8 - 2023-11-10
|
|
2
2
|
* Desc: Force cross domain iframes to size to content.
|
|
3
3
|
* Requires: iframeResizer.contentWindow.min.js to be loaded into the target frame.
|
|
4
4
|
* Copyright: (c) 2023 David J. Bradshaw - dave@bradshaw.net
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "iframe-resizer",
|
|
3
|
-
"version": "4.3.
|
|
3
|
+
"version": "4.3.8",
|
|
4
4
|
"homepage": "https://github.com/davidjbradshaw/iframe-resizer",
|
|
5
5
|
"authors": [
|
|
6
6
|
"David J. Bradshaw <dave@bradshaw.net>"
|
|
@@ -12,11 +12,12 @@
|
|
|
12
12
|
}
|
|
13
13
|
],
|
|
14
14
|
"scripts": {
|
|
15
|
-
"build": "
|
|
15
|
+
"build": "grunt build",
|
|
16
16
|
"eslint": "eslint *.js src/* --color",
|
|
17
17
|
"eslint:fix": "npm run eslint -- --fix",
|
|
18
18
|
"test-watch": "grunt test-watch",
|
|
19
|
-
"test": "grunt travis"
|
|
19
|
+
"test": "grunt travis",
|
|
20
|
+
"upgrade": "npm-check-updates -u && npm install && npm run test"
|
|
20
21
|
},
|
|
21
22
|
"description": "Keep same and cross domain iFrames sized to their content with support for window/content resizing, and multiple iFrames.",
|
|
22
23
|
"repository": {
|
|
@@ -29,27 +30,28 @@
|
|
|
29
30
|
"url": "https://github.com/davidjbradshaw/iframe-resizer/blob/master/FUNDING.md"
|
|
30
31
|
},
|
|
31
32
|
"devDependencies": {
|
|
32
|
-
"cosmiconfig": "^8.
|
|
33
|
+
"cosmiconfig": "^8.3.6",
|
|
33
34
|
"cryptiles": "^4.1.3",
|
|
34
35
|
"deep-extend": "^0.6.0",
|
|
35
|
-
"eslint": "^8.
|
|
36
|
+
"eslint": "^8.49.0",
|
|
36
37
|
"eslint-config-adjunct": "^4.12.2",
|
|
37
38
|
"eslint-config-airbnb-babel": "^0.2.2",
|
|
38
39
|
"eslint-config-airbnb-base": "^15.0.0",
|
|
39
40
|
"eslint-config-auto": "^0.7.3",
|
|
40
|
-
"eslint-config-prettier": "^
|
|
41
|
-
"eslint-plugin-array-func": "^
|
|
42
|
-
"eslint-plugin-compat": "^4.
|
|
41
|
+
"eslint-config-prettier": "^9.0.0",
|
|
42
|
+
"eslint-plugin-array-func": "^4.0.0",
|
|
43
|
+
"eslint-plugin-compat": "^4.2.0",
|
|
44
|
+
"eslint-plugin-const-case": "^1.2.2",
|
|
43
45
|
"eslint-plugin-eslint-comments": "^3.2.0",
|
|
44
46
|
"eslint-plugin-html": "^7.1.0",
|
|
45
47
|
"eslint-plugin-ie11": "^1.0.0",
|
|
46
|
-
"eslint-plugin-import": "^2.
|
|
48
|
+
"eslint-plugin-import": "^2.28.1",
|
|
47
49
|
"eslint-plugin-jasmine": "^4.1.3",
|
|
48
50
|
"eslint-plugin-json": "^3.1.0",
|
|
49
51
|
"eslint-plugin-json-format": "^2.0.1",
|
|
50
52
|
"eslint-plugin-lodash": "^7.4.0",
|
|
51
53
|
"eslint-plugin-lodash-fp": "^2.2.0-a1",
|
|
52
|
-
"eslint-plugin-markdown": "^3.0.
|
|
54
|
+
"eslint-plugin-markdown": "^3.0.1",
|
|
53
55
|
"eslint-plugin-no-constructor-bind": "^2.0.4",
|
|
54
56
|
"eslint-plugin-no-secrets": "^0.8.9",
|
|
55
57
|
"eslint-plugin-no-unsanitized": "^4.0.2",
|
|
@@ -57,15 +59,16 @@
|
|
|
57
59
|
"eslint-plugin-only-error": "^1.0.2",
|
|
58
60
|
"eslint-plugin-optimize-regex": "^1.2.1",
|
|
59
61
|
"eslint-plugin-pii": "^1.0.2",
|
|
60
|
-
"eslint-plugin-prettier": "^
|
|
62
|
+
"eslint-plugin-prettier": "^5.0.0",
|
|
61
63
|
"eslint-plugin-promise": "^6.1.1",
|
|
62
|
-
"eslint-plugin-qunit": "^
|
|
64
|
+
"eslint-plugin-qunit": "^8.0.0",
|
|
63
65
|
"eslint-plugin-scanjs-rules": "^0.2.1",
|
|
64
66
|
"eslint-plugin-security": "^1.7.1",
|
|
65
67
|
"eslint-plugin-simple-import-sort": "^10.0.0",
|
|
66
|
-
"eslint-plugin-sonarjs": "^0.
|
|
68
|
+
"eslint-plugin-sonarjs": "^0.21.0",
|
|
67
69
|
"eslint-plugin-switch-case": "^1.1.2",
|
|
68
|
-
"eslint-plugin-unicorn": "^
|
|
70
|
+
"eslint-plugin-unicorn": "^48.0.1",
|
|
71
|
+
"eslint-plugin-xss": "^0.1.12",
|
|
69
72
|
"grunt": "^1.6.1",
|
|
70
73
|
"grunt-bump": "^0.8.0",
|
|
71
74
|
"grunt-cli": "^1.4.3",
|
|
@@ -76,20 +79,20 @@
|
|
|
76
79
|
"grunt-contrib-qunit": "^2.0.0",
|
|
77
80
|
"grunt-contrib-uglify": "^5.2.2",
|
|
78
81
|
"grunt-contrib-watch": "~1.1.0",
|
|
79
|
-
"grunt-eslint": "^24.0
|
|
80
|
-
"grunt-jsonlint": "
|
|
82
|
+
"grunt-eslint": "^24.3.0",
|
|
83
|
+
"grunt-jsonlint": "^2.1.3",
|
|
81
84
|
"grunt-karma": "^4.0.2",
|
|
82
85
|
"grunt-karma-coveralls": "^2.5.4",
|
|
83
86
|
"grunt-shell": "~4.0.0",
|
|
84
87
|
"hoek": "^6.1.3",
|
|
85
|
-
"jasmine": "^
|
|
86
|
-
"jasmine-core": "^
|
|
88
|
+
"jasmine": "^5.1.0",
|
|
89
|
+
"jasmine-core": "^5.1.1",
|
|
87
90
|
"jasmine-jquery": "^2.1.1",
|
|
88
91
|
"jit-grunt": "~0.10.0",
|
|
89
|
-
"jquery": "^3.
|
|
90
|
-
"karma": "^6.4.
|
|
91
|
-
"karma-chrome-launcher": "^3.
|
|
92
|
-
"karma-coverage": "^2.2.
|
|
92
|
+
"jquery": "^3.7.1",
|
|
93
|
+
"karma": "^6.4.2",
|
|
94
|
+
"karma-chrome-launcher": "^3.2.0",
|
|
95
|
+
"karma-coverage": "^2.2.1",
|
|
93
96
|
"karma-firefox-launcher": "^2.1.2",
|
|
94
97
|
"karma-jasmine": "^5.1.0",
|
|
95
98
|
"karma-jasmine-jquery": "^0.1.1",
|
|
@@ -100,9 +103,9 @@
|
|
|
100
103
|
"karma-verbose-summary-reporter": "0.0.1",
|
|
101
104
|
"load-grunt-tasks": "~5.1.0",
|
|
102
105
|
"lodash": "^4.17.21",
|
|
103
|
-
"minimatch": "^
|
|
104
|
-
"phantomjs": "^
|
|
105
|
-
"prettier": "^
|
|
106
|
+
"minimatch": "^9.0.3",
|
|
107
|
+
"phantomjs": "^1.9.20",
|
|
108
|
+
"prettier": "^3.0.3",
|
|
106
109
|
"requirejs": "^2.3.6",
|
|
107
110
|
"time-grunt": "^2.0.0"
|
|
108
111
|
},
|
package/CHANGELOG.md
DELETED
|
@@ -1,226 +0,0 @@
|
|
|
1
|
-
# Version History
|
|
2
|
-
|
|
3
|
-
- v4.3.6 Fix backwards compatablity of `module.exports`
|
|
4
|
-
|
|
5
|
-
- v4.3.5 Fix path on `module.exports`
|
|
6
|
-
|
|
7
|
-
- v4.3.4 [#990](https://github.com/davidjbradshaw/iframe-resizer/pull/990) Fix readDataFromParent mouseEvents Boolean to strBool [[Tony Living](https://github.com/tonyliving)]
|
|
8
|
-
|
|
9
|
-
- v4.3.3 [#1100](https://github.com/davidjbradshaw/iframe-resizer/issues/1100) Fix jQuery check [[Gabriel Grant](https://github.com/gabrielgrant)]
|
|
10
|
-
|
|
11
|
-
- v4.3.2 [#936](https://github.com/davidjbradshaw/iframe-resizer/issues/936) Allow max/min values for iFrame size to be set using units other than `px` [[Luke Murray](https://github.com/lukesmurray)]
|
|
12
|
-
|
|
13
|
-
- v4.3.1 [#901](https://github.com/davidjbradshaw/iframe-resizer/issues/901) Fix backwards compatability issue with mouse events
|
|
14
|
-
|
|
15
|
-
- v4.3.0 Add `onMouseEnter` and `onMouseLeave` event callbacks [DEPRECATED]
|
|
16
|
-
|
|
17
|
-
- v4.2.11 Remove `unicorn/prefer-number-properties` from eslint rules and revert `Number.parseInt` to `parseInt`
|
|
18
|
-
|
|
19
|
-
- v4.2.10 [#787](https://github.com/davidjbradshaw/iframe-resizer/issues/787) Replace `const` with `var` in index.js for IE10 [[Thomas Jaggi](https://github.com/backflip)]
|
|
20
|
-
|
|
21
|
-
- v4.2.9 [#783](https://github.com/davidjbradshaw/iframe-resizer/issues/783) Bind `requestAnimationFrame` to `window` to fix issue with FireFox Content-Scripts [[Greg Soltis](https://github.com/gsoltis)]
|
|
22
|
-
|
|
23
|
-
- v4.2.8 [#779](https://github.com/davidjbradshaw/iframe-resizer/issues/779) Fix issue with `javascript:void(0)` and `about:blank` URLs [[ceckoslab](https://github.com/ceckoslab)]
|
|
24
|
-
|
|
25
|
-
- v4.2.7 Add support for NPM funding
|
|
26
|
-
|
|
27
|
-
- v4.2.4 [#772](https://github.com/davidjbradshaw/iframe-resizer/issues/772) Fix issue with iframes inside ShaddowDOM elements [[Martin Belanger](https://github.com/martinbelanger)]
|
|
28
|
-
|
|
29
|
-
- v4.2.3 [#683](https://github.com/davidjbradshaw/iframe-resizer/issues/683) Include border top/bottom, plus padding top/bottom, when calculating heights on iframe with `box-sizing: border-box;` [[Jim Doyle](https://github.com//superelement)]. [#768](https://github.com/davidjbradshaw/iframe-resizer/issues/768) Fix issue with hidden iframes [[Tony Living]](https://github.com//tonyliving)
|
|
30
|
-
|
|
31
|
-
- v4.2.2 [#761](https://github.com/davidjbradshaw/iframe-resizer/pull/761) Check for iframe.src when parsing it for remoteHost [[Filip Stollar](https://github.com//SuNaden)]
|
|
32
|
-
|
|
33
|
-
- v4.2.1 [#723](https://github.com/davidjbradshaw/iframe-resizer/pull/723) Fix option to turn off `autoResize` from iframe, when `resizeFrom` is set to `parent` [[Dennis Kronbügel]](https://github.com//deBFM)
|
|
34
|
-
|
|
35
|
-
- v4.2.0 Add `onClose()` event to parent
|
|
36
|
-
|
|
37
|
-
- v4.1.1 [#686](https://github.com/davidjbradshaw/iframe-resizer/pull/694) Fix IE11 regression with Object.values [[Jonathan Lehman](https://github.com//jdlehman)]
|
|
38
|
-
|
|
39
|
-
- v4.1.0 [#686](https://github.com/davidjbradshaw/iframe-resizer/pull/686) Split client(Height/Width) into document and window values [[Bernhard Mäder](https://github.com//nuschk)]
|
|
40
|
-
|
|
41
|
-
- v4.0.4 [#674](https://github.com/davidjbradshaw/iframe-resizer/pull/674) Fix default export
|
|
42
|
-
|
|
43
|
-
- v4.0.3 [#606](https://github.com/davidjbradshaw/iframe-resizer/pull/606) Force height of clearFix div in iframe to 0
|
|
44
|
-
|
|
45
|
-
- v4.0.2 [#671](https://github.com/davidjbradshaw/iframe-resizer/pull/671) Fix issue with window resize
|
|
46
|
-
|
|
47
|
-
- v4.0.1 Fix documentation links in `README.md`
|
|
48
|
-
|
|
49
|
-
- v4.0.0 Drop support for IE8-10 and Andriod 4, renamed event handlers from `fooCallback` to `onFoo` and restructure documentation. Reformat code with Prettier and add eslint to build
|
|
50
|
-
|
|
51
|
-
- v3.6.5 [#658](https://github.com/davidjbradshaw/iframe-resizer/pull/658) Add `.npmignore` to project [[Sebastian Lamelas](https://github.com/smulesoft)]
|
|
52
|
-
|
|
53
|
-
- v3.6.4 [#651](https://github.com/davidjbradshaw/iframe-resizer/pull/651) Fix issue resource leak when iframe removed from the page [[Steffen Eckardt](https://github.com/seckardt)]. [#651](https://github.com/davidjbradshaw/iframe-resizer/pull/651) Make Require.js optional when it is included on the page before iframe-resizer [[Dahmian Owen](https://github.com/dahmian)]
|
|
54
|
-
|
|
55
|
-
- v3.6.3 [#635](https://github.com/davidjbradshaw/iframe-resizer/pull/635) Fix issue with undefined ID [[Henry Schein](https://github.com/ddxdental)]. [#582](https://github.com/davidjbradshaw/iframe-resizer/pull/582) Add `omit` option to `scrolling` config [[Matt Ryan](https://github.com/mryand)]
|
|
56
|
-
|
|
57
|
-
- v3.6.2 [#596](https://github.com/davidjbradshaw/iframe-resizer/pull/596) Add Passive Event Listener for Performance [[Henrik Vendelbo](https://github.com/thepian)]. [#613](https://github.com/davidjbradshaw/iframe-resizer/pull/613) Check if the iFrameResize function is attached to the prototype of jQuery [[Paul Antal](https://github.com/paul-antal)]. [#620](https://github.com/davidjbradshaw/iframe-resizer/pull/620) Fixed an issue where host page fires init before iframe receiver setup [[Mark Zhou](https://github.com/mrmarktyy)]. [#620](https://github.com/davidjbradshaw/iframe-resizer/pull/620) Add `removeListeners` method to better support React [[Khang Nguyen](https://github.com/khangiskhan)]
|
|
58
|
-
|
|
59
|
-
- v3.6.1 [#576](https://github.com/davidjbradshaw/iframe-resizer/pull/576) Fix race condition caused by react-iframe-resizer removing the domNode and calling `close()`
|
|
60
|
-
|
|
61
|
-
- v3.6.0 [#562](https://github.com/davidjbradshaw/iframe-resizer/pull/562) Fix issue with debounce getPageInfo when their is more than one iFrame on the page [[Thomas Pringle](https://github.com/thomaspringle)]. [#568](https://github.com/davidjbradshaw/iframe-resizer/pull/568) Fix bug in Chrome 65 when iframe parent element has `display:none` set [[Steve Hong](https://github.com/aniude)]
|
|
62
|
-
|
|
63
|
-
- v3.5.16 [#554](https://github.com/davidjbradshaw/iframe-resizer/issues/554) Fix throttling of init event [[SHOTA](https://github.com/senta)]. [#553](https://github.com/davidjbradshaw/iframe-resizer/issues/553) Prevents unhandled exception in IE11 [[vitoss](https://github.com/vitoss)]. [#555](https://github.com/davidjbradshaw/iframe-resizer/issues/555) Fix IE PolyFil and make grunt-cli local [[Jan Schmidle](https://github.com/bitcloud)]
|
|
64
|
-
|
|
65
|
-
- v3.5.15 [#498](https://github.com/davidjbradshaw/iframe-resizer/issues/498) Fix bug "Cannot read property 'firstRun' of undefined" [[Shaun Johansen](https://github.com/shaunjohansen)]. [#517] Fix readyState issue in iFrame [[lostincomputer](https://github.com/lostincomputer)]
|
|
66
|
-
|
|
67
|
-
- v3.5.14 [#477](https://github.com/davidjbradshaw/iframe-resizer/issues/477) Fix bug when iFrame closed before first resize
|
|
68
|
-
|
|
69
|
-
- v3.5.13 [#473](https://github.com/davidjbradshaw/iframe-resizer/issues/473) Improve no response from iFrame warning message
|
|
70
|
-
|
|
71
|
-
- v3.5.12 [#475](https://github.com/davidjbradshaw/iframe-resizer/issues/475) Delay onResize until after the iFrame has resized [[Codener](https://github.com/codener)]
|
|
72
|
-
|
|
73
|
-
- v3.5.11 [#470](https://github.com/davidjbradshaw/iframe-resizer/issues/470) Fix jQuery reference error [[Russell Schick](https://github.com/rschick)]
|
|
74
|
-
|
|
75
|
-
- v3.5.10 [#461](https://github.com/davidjbradshaw/iframe-resizer/issues/461) Don't run for server-side render
|
|
76
|
-
|
|
77
|
-
- v3.5.9 Show warning message if no response from iFrame. [#463](https://github.com/davidjbradshaw/iframe-resizer/issues/463) Suppress warning message when code loaded via module [[Sergey Pereskokov](https://github.com/SerjoPepper)]
|
|
78
|
-
|
|
79
|
-
- v3.5.8 [#315](https://github.com/davidjbradshaw/iframe-resizer/issues/315) Allow Scrolling to be set to 'auto'
|
|
80
|
-
|
|
81
|
-
- v3.5.7 [#438](https://github.com/davidjbradshaw/iframe-resizer/issues/438) Check jQuery pluging wrapper not already loaded. [#423](https://github.com/davidjbradshaw/iframe-resizer/issues/423) Properly remove event listeners [[Aaron Hardy](https://github.com/Aaronius)]. [#401](https://github.com/davidjbradshaw/iframe-resizer/issues/401) Make tagged element fall back to all elements if tag not found. [#381](https://github.com/davidjbradshaw/iframe-resizer/issues/381) Fixing disconnect when iframe is missing temporarly [[Jeff Hicken](https://github.com/jhicken)]. Added warnings for missing iFrame and deprecated options
|
|
82
|
-
|
|
83
|
-
- v3.5.5 [#373](https://github.com/davidjbradshaw/iframe-resizer/issues/373) Add option for custom size calculation methods in iFrame. [#374](https://github.com/davidjbradshaw/iframe-resizer/issues/374) Fix bug with in page links called from parent page
|
|
84
|
-
|
|
85
|
-
- v3.5.4 [#362](https://github.com/davidjbradshaw/iframe-resizer/issues/362) Handle jQuery being loaded in odd ways. [#297](https://github.com/davidjbradshaw/iframe-resizer/issues/297) Ensure document ready before resizing
|
|
86
|
-
|
|
87
|
-
- v3.5.3 [#283](https://github.com/davidjbradshaw/iframe-resizer/issues/283) Added _readystatechange_ event listener
|
|
88
|
-
|
|
89
|
-
- v3.5.2 [#314](https://github.com/davidjbradshaw/iframe-resizer/pull/314) Add iframeHeight and iframeWidth properties to pageInfo [[Pierre Olivier](https://github.com/pomartel)]. [#303](https://github.com/davidjbradshaw/iframe-resizer/issues/303) Fix issue with IE8 polyFils
|
|
90
|
-
|
|
91
|
-
- v3.5.1 [#286](https://github.com/davidjbradshaw/iframe-resizer/issues/286) Fixed _taggedElement / lowestElement / rightMostElement_ to calculate correct margin [[Dan Ballance](https://github.com/danballance)]
|
|
92
|
-
|
|
93
|
-
- v3.5.0 Recall getPageInfo callback when parent page position changes. Added _Array.prototype.forEach_ to IE8 polyfils
|
|
94
|
-
|
|
95
|
-
- v3.4.2 Only teardown events on close if currently enabled
|
|
96
|
-
|
|
97
|
-
- v3.4.1 [#271](https://github.com/davidjbradshaw/iframe-resizer/issues/271) Fix bower.json to point to _js_ folder, rather then _src_ [[Yachi](https://github.com/yachi)]
|
|
98
|
-
|
|
99
|
-
- v3.4.0 [#262](https://github.com/davidjbradshaw/iframe-resizer/issues/262) Add _getPageInfo_ method to _parentIFrame_ [[Pierre Olivier](https://github.com/pomartel)]. [#263](https://github.com/davidjbradshaw/iframe-resizer/issues/263) Change _leftMostElement_ to rightMostElement [[Luiz Panariello](https://github.com/LuizPanariello)]. [#265](https://github.com/davidjbradshaw/iframe-resizer/issues/265) Fix issue when no options being passed and added test for this
|
|
100
|
-
|
|
101
|
-
- v3.3.1 Point index.js to the JS folder, instead of the src folder. Added touch event listeners. _AutoResize_ method now returns current state
|
|
102
|
-
|
|
103
|
-
- v3.3.0 [#97](https://github.com/davidjbradshaw/iframe-resizer/issues/97) Add _autoResize_ method to _parentIFrame_. Fix bug when _setHeightCalculationMethod_ is called with invalid value. Add interval timer to event teardown. Log targetOrigin\*. [#253](https://github.com/davidjbradshaw/iframe-resizer/issues/253) Work around bug with MooTools interfering with system objects
|
|
104
|
-
|
|
105
|
-
- v3.2.0 Added calculation of margin to _LowestElement_, _LeftMostElement_ and _taggedElement_ calculation modes. Check callback function is a function before calling it. [#246](https://github.com/davidjbradshaw/iframe-resizer/issues/246) Fixed issue when _onScroll_ changes the page position. [#247](https://github.com/davidjbradshaw/iframe-resizer/issues/247) Fix rounding issue when page is zoomed in Chrome [[thenewguy](https://github.com/thenewguy)]
|
|
106
|
-
|
|
107
|
-
- v3.1.1 Added _onReady_ to iFrame. Create _iFrameResizer_ object on iFrame during setup, rather than waiting for init message to be returned from iFrame. Add ref to iFrame in host page log messages. [#245](https://github.com/davidjbradshaw/iframe-resizer/issues/245) Fix issue with iFrame not correctly resizing when multiple images are injected into the page [[mdgbayly](https://github.com/mdgbayly)]. [#246](https://github.com/davidjbradshaw/iframe-resizer/issues/246) Fix issue with including ':' in messages passed to iFrames
|
|
108
|
-
|
|
109
|
-
- v3.1.0 [#101](https://github.com/davidjbradshaw/iframe-resizer/issues/101) Support async loading of iFrame script. [#239](https://github.com/davidjbradshaw/iframe-resizer/issues/239) Throttle size checking to once per screen refresh (16ms). Fixed issue with hidden iFrames in FireFox. Improved handling of parent page events. [#236](https://github.com/davidjbradshaw/iframe-resizer/issues/236) Cope with iFrames that don't have a _src_ value. [#242](https://github.com/davidjbradshaw/iframe-resizer/issues/242) Fix issue where iFrame is removed and then put back with same ID [[Alban Mouton](https://github.com/albanm)]
|
|
110
|
-
|
|
111
|
-
- v3.0.0 Added _taggedElement_ size calculation method. [#199](https://github.com/davidjbradshaw/iframe-resizer/issues/199) Added in page options to iFrame. [#70](https://github.com/davidjbradshaw/iframe-resizer/issues/70) Added width calculation method options. Added methods to bound iFrames to comunicate from parent to iFrame. Ignore calls to setup an already bound iFrame. Improved event handling. Refactored MutationObserver functions. Moved IE8 polyfil from docs to own JS file and added _Funtion.prototype.bind()_. Added detection for tab focus. Fixed bug with nested inPageLinks. Public methods in iFrame now always enabled and option removed. Renamed enableInPageLinks to inPageLinks. Added double iFrame example
|
|
112
|
-
|
|
113
|
-
- v2.8.10 Fixed bug with resizeFrom option not having default value in iFrame, if called from old version in parent page
|
|
114
|
-
|
|
115
|
-
- v2.8.9 [#220](https://github.com/davidjbradshaw/iframe-resizer/issues/220) Switched from using _deviceorientation_ to _orientationchange_ event listner [[Brandon Kobel]/https://github.com/kobelb)]
|
|
116
|
-
|
|
117
|
-
- v2.8.8 [#213](https://github.com/davidjbradshaw/iframe-resizer/issues/213) Ensure onInit fires when iFrame not sized during initialisation. Check autoResize option before resizing from parent. Lower message about resize before initialisation from 'warn' to 'log'. Updated hover example
|
|
118
|
-
|
|
119
|
-
- v2.8.7 [#205](https://github.com/davidjbradshaw/iframe-resizer/issues/205) Fix race condition when page resized during page init [[Ian Caunce](https://github.com/IanCaunce)]. [#203](https://github.com/davidjbradshaw/iframe-resizer/issues/203) Added option for _checkOrigin_ to have list of allowed domains for the iFrame [[Andrej Golcov](https://github.com/andrej2k)]. [#202](https://github.com/davidjbradshaw/iframe-resizer/issues/202) Handle script being loaded more than once [[Nickolay Ribal](https://github.com/elektronik2k5)].
|
|
120
|
-
[#167](https://github.com/davidjbradshaw/iframe-resizer/issues/167) Added WebPack support [[Stephan Salat](https://github.com/ssalat)]
|
|
121
|
-
|
|
122
|
-
- v2.8.6 [#163](https://github.com/davidjbradshaw/iframe-resizer/issues/163) Moved window resize event detection from iFrame to parent page. [#160](https://github.com/davidjbradshaw/iframe-resizer/issues/160) Warn, rather than error, if iFrame has been unexpectantly removed from page. The _parentIFrame.close()_ method nolonger calls _onResized()_
|
|
123
|
-
|
|
124
|
-
- v2.8.5 [#173](https://github.com/davidjbradshaw/iframe-resizer/issues/173) Scope settings to iFrame. [#171](https://github.com/davidjbradshaw/iframe-resizer/issues/171) Fixed _parentIFrame.close()_ to work with 0 height iframes [Both [Reed Dadoune](https://github.com/ReedD)]
|
|
125
|
-
|
|
126
|
-
- v2.8.4 Added switch for inPageLinking support
|
|
127
|
-
|
|
128
|
-
- v2.8.3 Throw error if passed a non-DOM object
|
|
129
|
-
|
|
130
|
-
- v2.8.2 [#145](https://github.com/davidjbradshaw/iframe-resizer/issues/145) Fixed in page links, to work with HTML IDs that are not valid CSS IDs [[Erin Millard](https://github.com/ezzatron)]. Moved map files from src to js folder. Added to NPM
|
|
131
|
-
|
|
132
|
-
- v2.8.1 [#138](https://github.com/davidjbradshaw/iframe-resizer/issues/138) Added option to pass in iFrame object, instead of selector
|
|
133
|
-
|
|
134
|
-
- v2.8.0 [#68](https://github.com/davidjbradshaw/iframe-resizer/issues/68) Added support for in page links and _onScroll()_ function. [#140](https://github.com/davidjbradshaw/iframe-resizer/issues/140) Added listener for _transitionend_ event [[Mat Brown](https://github.com/outoftime)]. Added listeners for animation events. Added listener for _deviceorientation_ event. Improved logging for nested iFrames
|
|
135
|
-
|
|
136
|
-
- v2.7.1 [#131](https://github.com/davidjbradshaw/iframe-resizer/issues/131) Fix code that works out position of iFrame on host page
|
|
137
|
-
|
|
138
|
-
- v2.7.0 [#129](https://github.com/davidjbradshaw/iframe-resizer/issues/129) Parse data passed to _parentIFrame.sendMessage()_ into JSON to allow complex data types to be sent to _onMessage()_
|
|
139
|
-
|
|
140
|
-
- v2.6.5 [#107](https://github.com/davidjbradshaw/iframe-resizer/issues/107) Added Node support for use with Browserify
|
|
141
|
-
|
|
142
|
-
- v2.6.4 [#115](https://github.com/davidjbradshaw/iframe-resizer/issues/115) Added _parentIFrame.scrollToOffset()_ method
|
|
143
|
-
|
|
144
|
-
- v2.6.3 [#115](https://github.com/davidjbradshaw/iframe-resizer/issues/115) Fixed issue with the range check sometimes causing non-resizing messages to be rejected
|
|
145
|
-
|
|
146
|
-
- v2.6.2 [#104](https://github.com/davidjbradshaw/iframe-resizer/issues/104) Fixed issue with jQuery.noConflict [[Dmitry Mukhutdinov](https://github.com/flyingleafe)]
|
|
147
|
-
|
|
148
|
-
- v2.6.1 [#91](https://github.com/davidjbradshaw/iframe-resizer/issues/91) Fixed issue with jQuery version requiring empty object if no options are being set
|
|
149
|
-
|
|
150
|
-
- v2.6.0 Added _parentIFrame.scrollTo()_ method. Added _Tolerance_ option. [#85](https://github.com/davidjbradshaw/iframe-resizer/issues/85) Update troubleshooting guide [[Kevin Sproles](https://github.com/kevinsproles)]
|
|
151
|
-
|
|
152
|
-
- v2.5.2 [#67](https://github.com/davidjbradshaw/iframe-resizer/issues/67) Allow lowercase `<iframe>` tags for XHTML complience [[SlimerDude](https://github.com/SlimerDude)]. [#69](https://github.com/davidjbradshaw/iframe-resizer/issues/69) Fix watch task typo in gruntfile.js [[Matthew Hupman](https://github.com/mhupman)]. Remove trailing comma in heightCalcMethods array [#76](https://github.com/davidjbradshaw/iframe-resizer/issues/76) [[Fabio Scala](https://github.com/fabioscala)]
|
|
153
|
-
|
|
154
|
-
- v2.5.1 [#58](https://github.com/davidjbradshaw/iframe-resizer/issues/58) Fixed endless loop and margin issues with an unnested mid-tier iframe. [#59](https://github.com/davidjbradshaw/iframe-resizer/issues/59) Fixed main property of [Bower](https://github.com/http://bower.io/) config file
|
|
155
|
-
|
|
156
|
-
- v2.5.0 Added _minHeight_, _maxHeight_, _minWidth_ and _maxWidth_ options. Added _onInit_ and _onClosed_ functions (Close event calling _onResized_ is deprecated). Added **grow** and **lowestElement** _heightCalculationMethods_. Added AMD support. [#52](https://github.com/davidjbradshaw/iframe-resizer/issues/52) Added _sendMessage_ example. [#54](https://github.com/davidjbradshaw/iframe-resizer/issues/54) Work around IE8's borked JS execution stack. [#55](https://github.com/davidjbradshaw/iframe-resizer/issues/55) Check datatype of passed in options
|
|
157
|
-
|
|
158
|
-
- v2.4.8 Fix issue when message passed to onMessage contains a colon
|
|
159
|
-
|
|
160
|
-
- v2.4.7 [#49](https://github.com/davidjbradshaw/iframe-resizer/issues/49) Deconflict requestAnimationFrame
|
|
161
|
-
|
|
162
|
-
- v2.4.6 [#46](https://github.com/davidjbradshaw/iframe-resizer/issues/46) Fix iFrame event listener in IE8
|
|
163
|
-
|
|
164
|
-
- v2.4.5 [#41](https://github.com/davidjbradshaw/iframe-resizer/issues/41) Prevent error in FireFox when body is hidden by CSS [[Scott Otis](https://github.com//Scotis)]
|
|
165
|
-
|
|
166
|
-
- v2.4.4 Enable nested iFrames ([#31](https://github.com/davidjbradshaw/iframe-resizer/issues/31) Filter incoming iFrame message in host-page script. [#33](https://github.com/davidjbradshaw/iframe-resizer/issues/33) Squash unexpected message warning when using nested iFrames. Improved logging for nested iFrames). [#38](https://github.com/davidjbradshaw/iframe-resizer/issues/38) Detect late image loads that cause a resize due to async image loading in WebKit [[Yassin](https://github.com//ynh)]. Fixed :Hover example in FireFox. Increased trigger timeout lock to 64ms
|
|
167
|
-
|
|
168
|
-
- v2.4.3 Simplified handling of double fired events. Fixed test coverage
|
|
169
|
-
|
|
170
|
-
- v2.4.2 Fix missing 'px' unit when resetting height
|
|
171
|
-
|
|
172
|
-
- v2.4.1 Fix screen flicker issue with scroll height calculation methods in v2.4.0
|
|
173
|
-
|
|
174
|
-
- v2.4.0 Improved handling of alternate sizing methods, so that they will now shrink on all trigger events, except _Interval_. Prevent error when incoming message to iFrame is an object
|
|
175
|
-
|
|
176
|
-
- v2.3.2 Fix backwards compatibility issue between V2 iFrame and V1 host-page scripts
|
|
177
|
-
|
|
178
|
-
- v2.3.1 Added setHeightCalculationMethod() method in iFrame. Added _min_ option to the height calculation methods. Invalid value for _heightCalculationMethod_ is now a warning rather than an error and now falls back to the default value
|
|
179
|
-
|
|
180
|
-
- v2.3.0 Added extra _heightCalculationMethod_ options. Inject clearFix into 'body' to work around CSS floats preventing the height being correctly calculated. Added meaningful error message for non-valid values in _heightCalculationMethod_. Stop **click** events firing for 50ms after **size** events. Fixed hover example in old IE
|
|
181
|
-
|
|
182
|
-
- v2.2.3 [#26](https://github.com/davidjbradshaw/iframe-resizer/issues/26) Locally scope jQuery to \$, so there is no dependancy on it being defined globally
|
|
183
|
-
|
|
184
|
-
- v2.2.2 [#25](https://github.com/davidjbradshaw/iframe-resizer/issues/25) Added click listener to Window, to detect CSS checkbox resize events
|
|
185
|
-
|
|
186
|
-
- v2.2.1 [#24](https://github.com/davidjbradshaw/iframe-resizer/issues/24) Prevent error when incoming message to host page is an object [[Torjus Eidet](https://github.com/torjue)]
|
|
187
|
-
|
|
188
|
-
- v2.2.0 Added targetOrigin option to sendMessage function. Added bodyBackground option. Expanded troubleshooting section
|
|
189
|
-
|
|
190
|
-
- v2.1.1 [#16](https://github.com/davidjbradshaw/iframe-resizer/issues/16) Option to change the height calculation method in the iFrame from offsetHeight to scrollHeight. Troubleshooting section added to docs
|
|
191
|
-
|
|
192
|
-
- v2.1.0 Added sendMessage() and getId() to window.parentIFrame. Changed width calculation to use scrollWidth. Removed deprecated object name in iFrame
|
|
193
|
-
|
|
194
|
-
- v2.0.0 Added native JS public function, renamed script filename to reflect that jQuery is now optional. Renamed _do(Heigh/Width)_ to _size(Height/Width)_, renamed _contentWindowBodyMargin_ to _bodyMargin_ and renamed _callback_ _onResized_. Improved logging messages. Stop _resize_ event firing for 50ms after _interval_ event. Added multiple page example. Workout unsized margins inside the iFrame. The _bodyMargin_ property now accepts any valid value for a CSS margin. Check message origin is iFrame. Removed deprecated methods
|
|
195
|
-
|
|
196
|
-
- v1.4.4 Fixed _bodyMargin_ bug
|
|
197
|
-
|
|
198
|
-
- v1.4.3 CodeCoverage fixes. Documentation improvements
|
|
199
|
-
|
|
200
|
-
- v1.4.2 Fixed size(250) example in IE8
|
|
201
|
-
|
|
202
|
-
- v1.4.1 Setting `interval` to a negative number now forces the interval test to run instead of [MutationObserver](https://developer.mozilla.org/en/docs/Web/API/MutationObserver)
|
|
203
|
-
|
|
204
|
-
- v1.4.0 [#12](https://github.com/davidjbradshaw/iframe-resizer/issues/12) Option to enable scrolling in iFrame, off by default. [#13](https://github.com/davidjbradshaw/iframe-resizer/issues/13) Bower dependancies updated
|
|
205
|
-
|
|
206
|
-
- v1.3.7 Stop _resize_ event firing for 50ms after _size_ event. Added size(250) to example
|
|
207
|
-
|
|
208
|
-
- v1.3.6 [#11](https://github.com/davidjbradshaw/iframe-resizer/issues/11) Updated jQuery to v1.11.0 in example due to IE11 having issues with jQuery v1.10.1
|
|
209
|
-
|
|
210
|
-
- v1.3.5 Documentation improvements. Added Grunt-Bump to build script
|
|
211
|
-
|
|
212
|
-
- v1.3.0 IFrame code now uses default values if called with an old version of the host page script. Improved function naming. Old names have been deprecated and removed from docs
|
|
213
|
-
|
|
214
|
-
- v1.2.5 Fix publish to [plugins.jquery.com](https://plugins.jquery.com)
|
|
215
|
-
|
|
216
|
-
- v1.2.0 Added autoResize option, added height/width values to iFrame public size function, set HTML tag height to auto, improved documentation [All [Jure Mav](https://github.com/jmav)]. Plus setInterval now only runs in browsers that don't support [MutationObserver](https://developer.mozilla.org/en/docs/Web/API/MutationObserver) and is on by default, sourceMaps added and close() method introduced to parentIFrame object in iFrame
|
|
217
|
-
|
|
218
|
-
- v1.1.1 Added event type to messageData object
|
|
219
|
-
|
|
220
|
-
- v1.1.0 Added DOM [MutationObserver](https://developer.mozilla.org/en/docs/Web/API/MutationObserver) trigger to better detect content changes in iFrame, [#7](https://github.com/davidjbradshaw/iframe-resizer/issues/7) Set height of iFrame body element to auto to prevent resizing loop, if it's set to a percentage
|
|
221
|
-
|
|
222
|
-
- v1.0.3 [#6](https://github.com/davidjbradshaw/iframe-resizer/issues/6) Force incoming messages to string. Migrated to Grunt 4.x. Published to Bower
|
|
223
|
-
|
|
224
|
-
- v1.0.2 [#2](https://github.com/davidjbradshaw/iframe-resizer/issues/2) mime-type changed for IE8-10
|
|
225
|
-
|
|
226
|
-
- v1.0.0 Initial pubic release.
|
package/CONTRIBUTING.md
DELETED
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
# Contributing to iframe-resizer
|
|
2
|
-
|
|
3
|
-
Looking to contribute something? **Here's how you can help.**
|
|
4
|
-
|
|
5
|
-
Please take a moment to review this document in order to make the contribution
|
|
6
|
-
process easy and effective for everyone involved.
|
|
7
|
-
|
|
8
|
-
## Using the issue tracker
|
|
9
|
-
|
|
10
|
-
The [issue tracker](https://github.com/davidjbradshaw/iframe-resizer/issues) is
|
|
11
|
-
the preferred channel for [bug reports](#bug-reports), [features requests](#feature-requests)
|
|
12
|
-
and [submitting pull requests](#pull-requests).
|
|
13
|
-
|
|
14
|
-
**Please do not use the issue tracker for personal support requests. These should be raised on
|
|
15
|
-
Stack Overflow ([`iframe-resizer`](http://stackoverflow.com/questions/tagged/iframe-resizer) tag).**
|
|
16
|
-
|
|
17
|
-
## Bug reports
|
|
18
|
-
|
|
19
|
-
A bug is a _demonstrable problem_ that is caused by the code in the repository.
|
|
20
|
-
Good bug reports are extremely helpful, so thanks!
|
|
21
|
-
|
|
22
|
-
Guidelines for bug reports:
|
|
23
|
-
|
|
24
|
-
0. **Lint your code** — Use [jshint](http://jshint.com/)
|
|
25
|
-
to ensure your problem isn't caused by a simple error in your own code.
|
|
26
|
-
|
|
27
|
-
1. **Use the GitHub issue search** — check if the issue has already been
|
|
28
|
-
reported.
|
|
29
|
-
|
|
30
|
-
1. **Check if the issue has been fixed** — try to reproduce it using the
|
|
31
|
-
latest `master` or development branch in the repository.
|
|
32
|
-
|
|
33
|
-
1. **Isolate the problem** — ideally create a [reduced test
|
|
34
|
-
case](https://css-tricks.com/reduced-test-cases/) and a live example.
|
|
35
|
-
|
|
36
|
-
A good bug report shouldn't leave others needing to chase you up for more
|
|
37
|
-
information. Please try to be as detailed as possible in your report. What is
|
|
38
|
-
your environment? What steps will reproduce the issue? What browser(s) and OS
|
|
39
|
-
experience the problem? Do other browsers show the bug differently? What
|
|
40
|
-
would you expect to be the outcome? All these details will help people to fix
|
|
41
|
-
any potential bugs.
|
|
42
|
-
|
|
43
|
-
Example:
|
|
44
|
-
|
|
45
|
-
> Short and descriptive example bug report title
|
|
46
|
-
>
|
|
47
|
-
> A summary of the issue and the browser/OS environment in which it occurs. If
|
|
48
|
-
> suitable, include the steps required to reproduce the bug.
|
|
49
|
-
>
|
|
50
|
-
> 1. This is the first step
|
|
51
|
-
> 2. This is the second step
|
|
52
|
-
> 3. Further steps, etc.
|
|
53
|
-
>
|
|
54
|
-
> `<url>` - a link to the reduced test case
|
|
55
|
-
>
|
|
56
|
-
> Any other information you want to share that is relevant to the issue being
|
|
57
|
-
> reported. This might include the lines of code that you have identified as
|
|
58
|
-
> causing the bug, and potential solutions (and your opinions on their
|
|
59
|
-
> merits).
|
|
60
|
-
|
|
61
|
-
## Feature requests
|
|
62
|
-
|
|
63
|
-
Feature requests are welcome. But take a moment to find out whether your idea
|
|
64
|
-
fits with the scope and aims of the project.
|
|
65
|
-
|
|
66
|
-
## Pull requests
|
|
67
|
-
|
|
68
|
-
Good pull requests—patches, improvements, new features—are a fantastic
|
|
69
|
-
help. They should remain focused in scope and avoid containing unrelated
|
|
70
|
-
commits.
|
|
71
|
-
|
|
72
|
-
**Please ask first** before embarking on any significant pull request (e.g.
|
|
73
|
-
implementing features or refactoring code),
|
|
74
|
-
otherwise you risk spending a lot of time working on something that the
|
|
75
|
-
project's developers might not want to merge into the project.
|
|
76
|
-
|
|
77
|
-
In lieu of a formal style-guide, take care to maintain the existing coding
|
|
78
|
-
style. Add unit tests for any new or changed functionality. Lint and test
|
|
79
|
-
your code using [Grunt](http://gruntjs.com/).
|
|
80
|
-
|
|
81
|
-
## License
|
|
82
|
-
|
|
83
|
-
By contributing your code, you agree to license your contribution under the [MIT License](LICENSE).
|
package/FUNDING.md
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
# Donate to Iframe-Resizer
|
|
2
|
-
|
|
3
|
-
Iframe-resizer is the result of many 100s of hours of work, if you would like to join others in showing support for the development of this project, then please feel free to buy me a coffee.
|
|
4
|
-
|
|
5
|
-
<a href="https://www.buymeacoffee.com/davidjbradshaw " target="_blank"><img src="https://www.buymeacoffee.com/assets/img/custom_images/yellow_img.png" alt="Buy Me A Coffee" style="height: auto !important;width: auto !important;" ></a>
|
package/SECURITY.md
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
# Security Policy
|
|
2
|
-
|
|
3
|
-
## Supported Versions
|
|
4
|
-
|
|
5
|
-
Security updates are supported of the latest version.
|
|
6
|
-
|
|
7
|
-
## Reporting a Vulnerability
|
|
8
|
-
|
|
9
|
-
To report a security vulnerability, please use the [Tidelift security contact](https://tidelift.com/security).
|
|
10
|
-
Tidelift will coordinate the fix and disclosure.
|