@iframe-resizer/vue 5.4.4 → 5.4.5-beta.10
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/iframe-resizer.vue +23 -2
- package/index.cjs.js +22 -3
- package/index.esm.js +22 -3
- package/index.umd.js +3 -2
- package/index.umd.js.map +1 -0
- package/package.json +3 -2
package/README.md
CHANGED
package/iframe-resizer.vue
CHANGED
|
@@ -4,6 +4,9 @@
|
|
|
4
4
|
|
|
5
5
|
<script>
|
|
6
6
|
import connectResizer from '@iframe-resizer/core'
|
|
7
|
+
import autoConsoleGroup from 'auto-console-group'
|
|
8
|
+
|
|
9
|
+
const EXPAND = 'expanded'
|
|
7
10
|
|
|
8
11
|
export default {
|
|
9
12
|
name: 'IframeResizer',
|
|
@@ -29,6 +32,10 @@
|
|
|
29
32
|
direction: {
|
|
30
33
|
type: String,
|
|
31
34
|
},
|
|
35
|
+
log: {
|
|
36
|
+
type: String || Boolean,
|
|
37
|
+
default: false,
|
|
38
|
+
},
|
|
32
39
|
inPageLinks: {
|
|
33
40
|
type: Boolean,
|
|
34
41
|
},
|
|
@@ -57,15 +64,29 @@
|
|
|
57
64
|
),
|
|
58
65
|
waitForLoad: true,
|
|
59
66
|
|
|
60
|
-
|
|
67
|
+
onClose: () => {
|
|
68
|
+
consoleGroup.event('onClose')
|
|
69
|
+
consoleGroup.warn('Close method is disabled, use Vue to remove iframe')
|
|
70
|
+
return false
|
|
71
|
+
},
|
|
61
72
|
onReady: (...args) => self.$emit('onReady', ...args),
|
|
62
73
|
onMessage: (...args) => self.$emit('onMessage', ...args),
|
|
63
74
|
onResized: (...args) => self.$emit('onResized', ...args),
|
|
64
75
|
}
|
|
65
76
|
|
|
66
|
-
|
|
77
|
+
if (options.log === '') options.log = true
|
|
67
78
|
|
|
79
|
+
const connectWithOptions = connectResizer(options)
|
|
68
80
|
self.resizer = connectWithOptions(iframe)
|
|
81
|
+
|
|
82
|
+
const consoleOptions = {
|
|
83
|
+
label: `vue(${iframe.id})`,
|
|
84
|
+
expand: options.logExpand, // set inside connectResizer
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
const consoleGroup = autoConsoleGroup(consoleOptions)
|
|
88
|
+
consoleGroup.event('setup')
|
|
89
|
+
if (options.log) consoleGroup.log('Created Vue competent')
|
|
69
90
|
},
|
|
70
91
|
|
|
71
92
|
beforeUnmount() {
|
package/index.cjs.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* @preserve
|
|
3
3
|
*
|
|
4
|
-
* @module iframe-resizer/vue 5.4.
|
|
4
|
+
* @module iframe-resizer/vue 5.4.5-beta.10 (cjs) - 2025-04-14
|
|
5
5
|
*
|
|
6
6
|
* @license GPL-3.0 for non-commercial use only.
|
|
7
7
|
* For commercial use, you must purchase a license from
|
|
@@ -20,6 +20,7 @@
|
|
|
20
20
|
'use strict';
|
|
21
21
|
|
|
22
22
|
const connectResizer = require('@iframe-resizer/core');
|
|
23
|
+
const autoConsoleGroup = require('auto-console-group');
|
|
23
24
|
const vue = require('vue');
|
|
24
25
|
|
|
25
26
|
const script = {
|
|
@@ -46,6 +47,10 @@ const script = {
|
|
|
46
47
|
direction: {
|
|
47
48
|
type: String,
|
|
48
49
|
},
|
|
50
|
+
log: {
|
|
51
|
+
type: String || Boolean,
|
|
52
|
+
default: false,
|
|
53
|
+
},
|
|
49
54
|
inPageLinks: {
|
|
50
55
|
type: Boolean,
|
|
51
56
|
},
|
|
@@ -74,15 +79,29 @@ const script = {
|
|
|
74
79
|
),
|
|
75
80
|
waitForLoad: true,
|
|
76
81
|
|
|
77
|
-
|
|
82
|
+
onClose: () => {
|
|
83
|
+
consoleGroup.event('onClose');
|
|
84
|
+
consoleGroup.warn('Close method is disabled, use Vue to remove iframe');
|
|
85
|
+
return false
|
|
86
|
+
},
|
|
78
87
|
onReady: (...args) => self.$emit('onReady', ...args),
|
|
79
88
|
onMessage: (...args) => self.$emit('onMessage', ...args),
|
|
80
89
|
onResized: (...args) => self.$emit('onResized', ...args),
|
|
81
90
|
};
|
|
82
91
|
|
|
83
|
-
|
|
92
|
+
if (options.log === '') options.log = true;
|
|
84
93
|
|
|
94
|
+
const connectWithOptions = connectResizer(options);
|
|
85
95
|
self.resizer = connectWithOptions(iframe);
|
|
96
|
+
|
|
97
|
+
const consoleOptions = {
|
|
98
|
+
label: `vue(${iframe.id})`,
|
|
99
|
+
expand: options.logExpand, // set inside connectResizer
|
|
100
|
+
};
|
|
101
|
+
|
|
102
|
+
const consoleGroup = autoConsoleGroup(consoleOptions);
|
|
103
|
+
consoleGroup.event('setup');
|
|
104
|
+
if (options.log) consoleGroup.log('Created Vue competent');
|
|
86
105
|
},
|
|
87
106
|
|
|
88
107
|
beforeUnmount() {
|
package/index.esm.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* @preserve
|
|
3
3
|
*
|
|
4
|
-
* @module iframe-resizer/vue 5.4.
|
|
4
|
+
* @module iframe-resizer/vue 5.4.5-beta.10 (esm) - 2025-04-14
|
|
5
5
|
*
|
|
6
6
|
* @license GPL-3.0 for non-commercial use only.
|
|
7
7
|
* For commercial use, you must purchase a license from
|
|
@@ -18,6 +18,7 @@
|
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
import connectResizer from '@iframe-resizer/core';
|
|
21
|
+
import autoConsoleGroup from 'auto-console-group';
|
|
21
22
|
import { createElementBlock, openBlock, mergeProps } from 'vue';
|
|
22
23
|
|
|
23
24
|
const script = {
|
|
@@ -44,6 +45,10 @@ const script = {
|
|
|
44
45
|
direction: {
|
|
45
46
|
type: String,
|
|
46
47
|
},
|
|
48
|
+
log: {
|
|
49
|
+
type: String || Boolean,
|
|
50
|
+
default: false,
|
|
51
|
+
},
|
|
47
52
|
inPageLinks: {
|
|
48
53
|
type: Boolean,
|
|
49
54
|
},
|
|
@@ -72,15 +77,29 @@ const script = {
|
|
|
72
77
|
),
|
|
73
78
|
waitForLoad: true,
|
|
74
79
|
|
|
75
|
-
|
|
80
|
+
onClose: () => {
|
|
81
|
+
consoleGroup.event('onClose');
|
|
82
|
+
consoleGroup.warn('Close method is disabled, use Vue to remove iframe');
|
|
83
|
+
return false
|
|
84
|
+
},
|
|
76
85
|
onReady: (...args) => self.$emit('onReady', ...args),
|
|
77
86
|
onMessage: (...args) => self.$emit('onMessage', ...args),
|
|
78
87
|
onResized: (...args) => self.$emit('onResized', ...args),
|
|
79
88
|
};
|
|
80
89
|
|
|
81
|
-
|
|
90
|
+
if (options.log === '') options.log = true;
|
|
82
91
|
|
|
92
|
+
const connectWithOptions = connectResizer(options);
|
|
83
93
|
self.resizer = connectWithOptions(iframe);
|
|
94
|
+
|
|
95
|
+
const consoleOptions = {
|
|
96
|
+
label: `vue(${iframe.id})`,
|
|
97
|
+
expand: options.logExpand, // set inside connectResizer
|
|
98
|
+
};
|
|
99
|
+
|
|
100
|
+
const consoleGroup = autoConsoleGroup(consoleOptions);
|
|
101
|
+
consoleGroup.event('setup');
|
|
102
|
+
if (options.log) consoleGroup.log('Created Vue competent');
|
|
84
103
|
},
|
|
85
104
|
|
|
86
105
|
beforeUnmount() {
|
package/index.umd.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* @preserve
|
|
3
3
|
*
|
|
4
|
-
* @module iframe-resizer/vue 5.4.
|
|
4
|
+
* @module iframe-resizer/vue 5.4.5-beta.10 (umd) - 2025-04-14
|
|
5
5
|
*
|
|
6
6
|
* @license GPL-3.0 for non-commercial use only.
|
|
7
7
|
* For commercial use, you must purchase a license from
|
|
@@ -17,4 +17,5 @@
|
|
|
17
17
|
*/
|
|
18
18
|
|
|
19
19
|
|
|
20
|
-
!function(e,
|
|
20
|
+
!function(e,o){"object"==typeof exports&&"undefined"!=typeof module?module.exports=o(require("@iframe-resizer/core"),require("auto-console-group"),require("vue")):"function"==typeof define&&define.amd?define(["@iframe-resizer/core","auto-console-group","vue"],o):(e="undefined"!=typeof globalThis?globalThis:e||self).IframeResizer=o(e.connectResizer,e.createConsoleGroup,e.Vue)}(this,(function(e,o,r){"use strict";const t={name:"IframeResizer",props:{license:{type:String,required:!0},bodyBackground:{type:String},bodyMargin:{type:String},bodyPadding:{type:String},checkOrigin:{type:Boolean,default:!0},direction:{type:String},log:{type:String||Boolean,default:!1},inPageLinks:{type:Boolean},offset:{type:Number},scrolling:{type:Boolean},tolerance:{type:Number},warningTimeout:{type:Number}},mounted(){const r=this,{iframe:t}=this.$refs,n={...Object.fromEntries(Object.entries(this.$props).filter((([e,o])=>void 0!==o))),waitForLoad:!0,onClose:()=>(a.event("onClose"),a.warn("Close method is disabled, use Vue to remove iframe"),!1),onReady:(...e)=>r.$emit("onReady",...e),onMessage:(...e)=>r.$emit("onMessage",...e),onResized:(...e)=>r.$emit("onResized",...e)};""===n.log&&(n.log=!0);const i=e(n);r.resizer=i(t);const s={label:`vue(${t.id})`,expand:n.logExpand},a=o(s);a.event("setup"),n.log&&a.log("Created Vue competent")},beforeUnmount(){this.resizer?.disconnect()},methods:{moveToAnchor(e){this.resizer.moveToAnchor(e)},resize(){this.resizer.resize()},sendMessage(e,o){this.resizer.sendMessage(e,o)}}};t.render=function(e,o,t,n,i,s){return r.openBlock(),r.createElementBlock("iframe",r.mergeProps({ref:"iframe"},e.$attrs),null,16)},t.__file="./iframe-resizer.vue";return{install(e){e.component("IframeResizer",t)}}}));
|
|
21
|
+
//# sourceMappingURL=index.umd.js.map
|
package/index.umd.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
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 import autoConsoleGroup from 'auto-console-group'\n\n const EXPAND = 'expanded'\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 log: {\n type: String || Boolean,\n default: false,\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 onClose: () => {\n consoleGroup.event('onClose')\n consoleGroup.warn('Close method is disabled, use Vue to remove iframe')\n return false\n },\n onReady: (...args) => self.$emit('onReady', ...args),\n onMessage: (...args) => self.$emit('onMessage', ...args),\n onResized: (...args) => self.$emit('onResized', ...args),\n }\n\n if (options.log === '') options.log = true\n\n const connectWithOptions = connectResizer(options)\n self.resizer = connectWithOptions(iframe)\n\n const consoleOptions = {\n label: `vue(${iframe.id})`,\n expand: options.logExpand, // set inside connectResizer\n }\n\n const consoleGroup = autoConsoleGroup(consoleOptions)\n consoleGroup.event('setup')\n if (options.log) consoleGroup.log('Created Vue competent')\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 import autoConsoleGroup from 'auto-console-group'\n\n const EXPAND = 'expanded'\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 log: {\n type: String || Boolean,\n default: false,\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 onClose: () => {\n consoleGroup.event('onClose')\n consoleGroup.warn('Close method is disabled, use Vue to remove iframe')\n return false\n },\n onReady: (...args) => self.$emit('onReady', ...args),\n onMessage: (...args) => self.$emit('onMessage', ...args),\n onResized: (...args) => self.$emit('onResized', ...args),\n }\n\n if (options.log === '') options.log = true\n\n const connectWithOptions = connectResizer(options)\n self.resizer = connectWithOptions(iframe)\n\n const consoleOptions = {\n label: `vue(${iframe.id})`,\n expand: options.logExpand, // set inside connectResizer\n }\n\n const consoleGroup = autoConsoleGroup(consoleOptions)\n consoleGroup.event('setup')\n if (options.log) consoleGroup.log('Created Vue competent')\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","log","inPageLinks","offset","Number","scrolling","tolerance","warningTimeout","mounted","self","this","iframe","$refs","options","Object","fromEntries","entries","$props","filter","key","value","undefined","waitForLoad","onClose","consoleGroup","event","warn","onReady","args","$emit","onMessage","onResized","connectWithOptions","connectResizer","resizer","consoleOptions","label","id","expand","logExpand","autoConsoleGroup","beforeUnmount","disconnect","methods","moveToAnchor","anchor","resize","sendMessage","msg","target","_openBlock","openBlock","_createElementBlock","_mergeProps","mergeProps","ref","_ctx","$attrs","install","Vue","component","IframeResizer"],"mappings":";;;;;;;;;;;;;;;;;;;8ZAUiB,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,IAAK,CACHV,KAAMC,QAAUM,QAChBC,SAAS,GAEXG,YAAa,CACXX,KAAMO,SAERK,OAAQ,CACNZ,KAAMa,QAERC,UAAW,CACTd,KAAMO,SAERQ,UAAW,CACTf,KAAMa,QAERG,eAAgB,CACdhB,KAAMa,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,QAAS,KACPC,EAAaC,MAAM,WACnBD,EAAaE,KAAK,uDACX,GAETC,QAAS,IAAIC,IAASnB,EAAKoB,MAAM,aAAcD,GAC/CE,UAAW,IAAIF,IAASnB,EAAKoB,MAAM,eAAgBD,GACnDG,UAAW,IAAIH,IAASnB,EAAKoB,MAAM,eAAgBD,IAGjC,KAAhBf,EAAQZ,MAAYY,EAAQZ,KAAM,GAEtC,MAAM+B,EAAqBC,EAAepB,GAC1CJ,EAAKyB,QAAUF,EAAmBrB,GAElC,MAAMwB,EAAiB,CACrBC,MAAO,OAAOzB,EAAO0B,MACrBC,OAAQzB,EAAQ0B,WAGZf,EAAegB,EAAiBL,GACtCX,EAAaC,MAAM,SACfZ,EAAQZ,KAAKuB,EAAavB,IAAI,wBACnC,EAED,aAAAwC,GACE/B,KAAKwB,SAASQ,YACf,EAEDC,QAAS,CACP,YAAAC,CAAaC,GACXnC,KAAKwB,QAAQU,aAAaC,EAC3B,EACD,MAAAC,GACEpC,KAAKwB,QAAQY,QACd,EACD,WAAAC,CAAYC,EAAKC,GACfvC,KAAKwB,QAAQa,YAAYC,EAAKC,EAC/B,mCCvGL,OAAAC,EAAAC,YAAAC,EAAAA,mBAA6C,SAA7CC,EAA6CC,WAAA,CAArCC,IAAI,UAAiBC,EAAMC,QAAA,KAAA,sDCCtB,CACb,OAAAC,CAAQC,GACNA,EAAIC,UAAU,gBAAiBC,EAChC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@iframe-resizer/vue",
|
|
3
|
-
"version": "5.4.
|
|
3
|
+
"version": "5.4.5-beta.10",
|
|
4
4
|
"license": "GPL-3.0",
|
|
5
5
|
"homepage": "https://iframe-resizer.com",
|
|
6
6
|
"author": {
|
|
@@ -44,6 +44,7 @@
|
|
|
44
44
|
"vue"
|
|
45
45
|
],
|
|
46
46
|
"dependencies": {
|
|
47
|
-
"@iframe-resizer/core": "5.4.
|
|
47
|
+
"@iframe-resizer/core": "5.4.5-beta.10",
|
|
48
|
+
"auto-console-group": "1.2.8"
|
|
48
49
|
}
|
|
49
50
|
}
|