@iframe-resizer/vue 5.2.2-beta.2 → 5.2.2-beta.3
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/README.md +1 -1
- package/index.cjs.js +7 -7
- package/index.esm.js +7 -7
- package/index.umd.js +109 -9
- package/package.json +2 -2
- package/index.umd.js.map +0 -1
package/README.md
CHANGED
package/index.cjs.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* @preserve
|
|
3
3
|
*
|
|
4
|
-
* @module
|
|
4
|
+
* @module iframe-resizer/vue 5.2.2-beta.3 (cjs) - 2024-07-25
|
|
5
5
|
*
|
|
6
|
-
* @license
|
|
7
|
-
*
|
|
8
|
-
*
|
|
6
|
+
* @license GPL-3.0 for non-commercial use only.
|
|
7
|
+
* For commercial use, you must purchase a license from
|
|
8
|
+
* https://iframe-resizer.com/pricing
|
|
9
9
|
*
|
|
10
|
-
* @
|
|
10
|
+
* @description Keep same and cross domain iFrames sized to their content
|
|
11
11
|
*
|
|
12
|
-
* @author
|
|
12
|
+
* @author David J. Bradshaw <info@iframe-resizer.com>
|
|
13
13
|
*
|
|
14
|
-
* @see
|
|
14
|
+
* @see {@link https://iframe-resizer.com}
|
|
15
15
|
*
|
|
16
16
|
* @copyright (c) 2013 - 2024, David J. Bradshaw. All rights reserved.
|
|
17
17
|
*/
|
package/index.esm.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* @preserve
|
|
3
3
|
*
|
|
4
|
-
* @module
|
|
4
|
+
* @module iframe-resizer/vue 5.2.2-beta.3 (esm) - 2024-07-25
|
|
5
5
|
*
|
|
6
|
-
* @license
|
|
7
|
-
*
|
|
8
|
-
*
|
|
6
|
+
* @license GPL-3.0 for non-commercial use only.
|
|
7
|
+
* For commercial use, you must purchase a license from
|
|
8
|
+
* https://iframe-resizer.com/pricing
|
|
9
9
|
*
|
|
10
|
-
* @
|
|
10
|
+
* @description Keep same and cross domain iFrames sized to their content
|
|
11
11
|
*
|
|
12
|
-
* @author
|
|
12
|
+
* @author David J. Bradshaw <info@iframe-resizer.com>
|
|
13
13
|
*
|
|
14
|
-
* @see
|
|
14
|
+
* @see {@link https://iframe-resizer.com}
|
|
15
15
|
*
|
|
16
16
|
* @copyright (c) 2013 - 2024, David J. Bradshaw. All rights reserved.
|
|
17
17
|
*/
|
package/index.umd.js
CHANGED
|
@@ -1,21 +1,121 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* @preserve
|
|
3
3
|
*
|
|
4
|
-
* @module
|
|
4
|
+
* @module iframe-resizer/vue 5.2.2-beta.3 (umd) - 2024-07-25
|
|
5
5
|
*
|
|
6
|
-
* @license
|
|
7
|
-
*
|
|
8
|
-
*
|
|
6
|
+
* @license GPL-3.0 for non-commercial use only.
|
|
7
|
+
* For commercial use, you must purchase a license from
|
|
8
|
+
* https://iframe-resizer.com/pricing
|
|
9
9
|
*
|
|
10
|
-
* @
|
|
10
|
+
* @description Keep same and cross domain iFrames sized to their content
|
|
11
11
|
*
|
|
12
|
-
* @author
|
|
12
|
+
* @author David J. Bradshaw <info@iframe-resizer.com>
|
|
13
13
|
*
|
|
14
|
-
* @see
|
|
14
|
+
* @see {@link https://iframe-resizer.com}
|
|
15
15
|
*
|
|
16
16
|
* @copyright (c) 2013 - 2024, David J. Bradshaw. All rights reserved.
|
|
17
17
|
*/
|
|
18
18
|
|
|
19
19
|
|
|
20
|
-
|
|
21
|
-
|
|
20
|
+
(function (global, factory) {
|
|
21
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('@iframe-resizer/core'), require('vue')) :
|
|
22
|
+
typeof define === 'function' && define.amd ? define(['@iframe-resizer/core', 'vue'], factory) :
|
|
23
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.IframeResizer = factory(global.connectResizer, global.vue));
|
|
24
|
+
})(this, (function (connectResizer, vue) { 'use strict';
|
|
25
|
+
|
|
26
|
+
const script = {
|
|
27
|
+
name: 'IframeResizer',
|
|
28
|
+
|
|
29
|
+
props: {
|
|
30
|
+
license: {
|
|
31
|
+
type: String,
|
|
32
|
+
required: true
|
|
33
|
+
},
|
|
34
|
+
bodyBackground: {
|
|
35
|
+
type: String,
|
|
36
|
+
},
|
|
37
|
+
bodyMargin: {
|
|
38
|
+
type: String,
|
|
39
|
+
},
|
|
40
|
+
bodyPadding: {
|
|
41
|
+
type: String,
|
|
42
|
+
},
|
|
43
|
+
checkOrigin: {
|
|
44
|
+
type: Boolean,
|
|
45
|
+
default: true,
|
|
46
|
+
},
|
|
47
|
+
direction: {
|
|
48
|
+
type: String,
|
|
49
|
+
},
|
|
50
|
+
inPageLinks: {
|
|
51
|
+
type: Boolean,
|
|
52
|
+
},
|
|
53
|
+
offset: {
|
|
54
|
+
type: Number,
|
|
55
|
+
},
|
|
56
|
+
scrolling: {
|
|
57
|
+
type: Boolean,
|
|
58
|
+
},
|
|
59
|
+
tolerance: {
|
|
60
|
+
type: Number,
|
|
61
|
+
},
|
|
62
|
+
warningTimeout: {
|
|
63
|
+
type: Number,
|
|
64
|
+
},
|
|
65
|
+
},
|
|
66
|
+
|
|
67
|
+
mounted() {
|
|
68
|
+
const self = this;
|
|
69
|
+
const { iframe } = this.$refs;
|
|
70
|
+
const options = {
|
|
71
|
+
...Object.fromEntries(
|
|
72
|
+
Object
|
|
73
|
+
.entries(this.$props)
|
|
74
|
+
.filter(([key, value]) => value !== undefined)
|
|
75
|
+
),
|
|
76
|
+
waitForLoad: true,
|
|
77
|
+
|
|
78
|
+
onClosed: () => false, // Disable close methods, use Vue to remove iframe
|
|
79
|
+
onReady: (...args) => self.$emit('onReady', ...args),
|
|
80
|
+
onMessage: (...args) => self.$emit('onMessage', ...args),
|
|
81
|
+
onResized: (...args) => self.$emit('onResized', ...args),
|
|
82
|
+
};
|
|
83
|
+
|
|
84
|
+
const connectWithOptions = connectResizer(options);
|
|
85
|
+
|
|
86
|
+
self.resizer = connectWithOptions(iframe);
|
|
87
|
+
},
|
|
88
|
+
|
|
89
|
+
beforeUnmount() {
|
|
90
|
+
this.resizer?.disconnect();
|
|
91
|
+
},
|
|
92
|
+
|
|
93
|
+
methods: {
|
|
94
|
+
moveToAnchor(anchor) {
|
|
95
|
+
this.resizer.moveToAnchor(anchor);
|
|
96
|
+
},
|
|
97
|
+
resize() {
|
|
98
|
+
this.resizer.resize();
|
|
99
|
+
},
|
|
100
|
+
sendMessage(msg, target) {
|
|
101
|
+
this.resizer.sendMessage(msg, target);
|
|
102
|
+
},
|
|
103
|
+
},
|
|
104
|
+
};
|
|
105
|
+
|
|
106
|
+
function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
107
|
+
return (vue.openBlock(), vue.createElementBlock("iframe", vue.mergeProps({ ref: "iframe" }, _ctx.$attrs), null, 16 /* FULL_PROPS */))
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
script.render = render;
|
|
111
|
+
script.__file = "./iframe-resizer.vue";
|
|
112
|
+
|
|
113
|
+
const index = {
|
|
114
|
+
install(Vue) {
|
|
115
|
+
Vue.component('IframeResizer', script);
|
|
116
|
+
},
|
|
117
|
+
};
|
|
118
|
+
|
|
119
|
+
return index;
|
|
120
|
+
|
|
121
|
+
}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@iframe-resizer/vue",
|
|
3
|
-
"version": "5.2.2-beta.
|
|
3
|
+
"version": "5.2.2-beta.3",
|
|
4
4
|
"license": "GPL-3.0",
|
|
5
5
|
"homepage": "https://iframe-resizer.com",
|
|
6
6
|
"author": {
|
|
@@ -44,6 +44,6 @@
|
|
|
44
44
|
"vue"
|
|
45
45
|
],
|
|
46
46
|
"dependencies": {
|
|
47
|
-
"@iframe-resizer/core": "5.2.2-beta.
|
|
47
|
+
"@iframe-resizer/core": "5.2.2-beta.3"
|
|
48
48
|
}
|
|
49
49
|
}
|
package/index.umd.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.umd.js","sources":["../../packages/vue/iframe-resizer.vue","../../packages/vue/iframe-resizer.vue?vue&type=template&id=722fe402&lang.js","../../packages/vue/index.js"],"sourcesContent":["<template>\n <iframe ref=\"iframe\" v-bind=\"$attrs\"></iframe>\n</template>\n\n<script>\n import connectResizer from '@iframe-resizer/core'\n\n export default {\n name: 'IframeResizer',\n\n props: {\n license: {\n type: String,\n required: true\n },\n bodyBackground: {\n type: String,\n },\n bodyMargin: {\n type: String,\n },\n bodyPadding: {\n type: String,\n },\n checkOrigin: {\n type: Boolean,\n default: true,\n },\n direction: {\n type: String,\n },\n inPageLinks: {\n type: Boolean,\n },\n offset: {\n type: Number,\n },\n scrolling: {\n type: Boolean,\n },\n tolerance: {\n type: Number,\n },\n warningTimeout: {\n type: Number,\n },\n },\n \n mounted() {\n const self = this\n const { iframe } = this.$refs\n const options = {\n ...Object.fromEntries(\n Object\n .entries(this.$props)\n .filter(([key, value]) => value !== undefined)\n ),\n waitForLoad: true,\n\n onClosed: () => false, // Disable close methods, use Vue to remove iframe\n onReady: (...args) => self.$emit('onReady', ...args),\n onMessage: (...args) => self.$emit('onMessage', ...args),\n onResized: (...args) => self.$emit('onResized', ...args),\n }\n\n const connectWithOptions = connectResizer(options)\n\n self.resizer = connectWithOptions(iframe)\n },\n \n beforeUnmount() {\n this.resizer?.disconnect()\n },\n\n methods: {\n moveToAnchor(anchor) {\n this.resizer.moveToAnchor(anchor)\n },\n resize() {\n this.resizer.resize()\n },\n sendMessage(msg, target) {\n this.resizer.sendMessage(msg, target)\n },\n },\n }\n\n</script>\n","<template>\n <iframe ref=\"iframe\" v-bind=\"$attrs\"></iframe>\n</template>\n\n<script>\n import connectResizer from '@iframe-resizer/core'\n\n export default {\n name: 'IframeResizer',\n\n props: {\n license: {\n type: String,\n required: true\n },\n bodyBackground: {\n type: String,\n },\n bodyMargin: {\n type: String,\n },\n bodyPadding: {\n type: String,\n },\n checkOrigin: {\n type: Boolean,\n default: true,\n },\n direction: {\n type: String,\n },\n inPageLinks: {\n type: Boolean,\n },\n offset: {\n type: Number,\n },\n scrolling: {\n type: Boolean,\n },\n tolerance: {\n type: Number,\n },\n warningTimeout: {\n type: Number,\n },\n },\n \n mounted() {\n const self = this\n const { iframe } = this.$refs\n const options = {\n ...Object.fromEntries(\n Object\n .entries(this.$props)\n .filter(([key, value]) => value !== undefined)\n ),\n waitForLoad: true,\n\n onClosed: () => false, // Disable close methods, use Vue to remove iframe\n onReady: (...args) => self.$emit('onReady', ...args),\n onMessage: (...args) => self.$emit('onMessage', ...args),\n onResized: (...args) => self.$emit('onResized', ...args),\n }\n\n const connectWithOptions = connectResizer(options)\n\n self.resizer = connectWithOptions(iframe)\n },\n \n beforeUnmount() {\n this.resizer?.disconnect()\n },\n\n methods: {\n moveToAnchor(anchor) {\n this.resizer.moveToAnchor(anchor)\n },\n resize() {\n this.resizer.resize()\n },\n sendMessage(msg, target) {\n this.resizer.sendMessage(msg, target)\n },\n },\n }\n\n</script>\n","import IframeResizer from './iframe-resizer.vue'\n\nexport default {\n install(Vue) {\n Vue.component('IframeResizer', IframeResizer)\n },\n}\n"],"names":["script","name","props","license","type","String","required","bodyBackground","bodyMargin","bodyPadding","checkOrigin","Boolean","default","direction","inPageLinks","offset","Number","scrolling","tolerance","warningTimeout","mounted","self","this","iframe","$refs","options","Object","fromEntries","entries","$props","filter","key","value","undefined","waitForLoad","onClosed","onReady","args","$emit","onMessage","onResized","connectWithOptions","connectResizer","resizer","beforeUnmount","disconnect","methods","moveToAnchor","anchor","resize","sendMessage","msg","target","_openBlock","openBlock","_createElementBlock","_mergeProps","mergeProps","ref","_ctx","$attrs","install","Vue","component","IframeResizer"],"mappings":";;;;;;;;;;;;;;;;;;;oVAOiB,MAAAA,EAAA,CACbC,KAAM,gBAENC,MAAO,CACLC,QAAS,CACPC,KAAMC,OACNC,UAAU,GAEZC,eAAgB,CACdH,KAAMC,QAERG,WAAY,CACVJ,KAAMC,QAERI,YAAa,CACXL,KAAMC,QAERK,YAAa,CACXN,KAAMO,QACNC,SAAS,GAEXC,UAAW,CACTT,KAAMC,QAERS,YAAa,CACXV,KAAMO,SAERI,OAAQ,CACNX,KAAMY,QAERC,UAAW,CACTb,KAAMO,SAERO,UAAW,CACTd,KAAMY,QAERG,eAAgB,CACdf,KAAMY,SAIV,OAAAI,GACE,MAAMC,EAAOC,MACPC,OAAEA,GAAWD,KAAKE,MAClBC,EAAU,IACXC,OAAOC,YACRD,OACGE,QAAQN,KAAKO,QACbC,QAAO,EAAEC,EAAKC,UAAqBC,IAAVD,KAE9BE,aAAa,EAEbC,SAAU,KAAM,EAChBC,QAAS,IAAIC,IAAShB,EAAKiB,MAAM,aAAcD,GAC/CE,UAAW,IAAIF,IAAShB,EAAKiB,MAAM,eAAgBD,GACnDG,UAAW,IAAIH,IAAShB,EAAKiB,MAAM,eAAgBD,IAG/CI,EAAqBC,EAAejB,GAE1CJ,EAAKsB,QAAUF,EAAmBlB,EACnC,EAED,aAAAqB,GACEtB,KAAKqB,SAASE,YACf,EAEDC,QAAS,CACP,YAAAC,CAAaC,GACX1B,KAAKqB,QAAQI,aAAaC,EAC3B,EACD,MAAAC,GACE3B,KAAKqB,QAAQM,QACd,EACD,WAAAC,CAAYC,EAAKC,GACf9B,KAAKqB,QAAQO,YAAYC,EAAKC,EAC/B,mCClFL,OAAAC,EAAAC,YAAAC,EAAAA,mBAA6C,SAA7CC,EAA6CC,WAAA,CAArCC,IAAI,UAAiBC,EAAMC,QAAA,KAAA,sDCCtB,CACb,OAAAC,CAAQC,GACNA,EAAIC,UAAU,gBAAiBC,EAChC"}
|