@iframe-resizer/vue 5.4.5 → 5.4.6-beta.2

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  Iframe Resizer Version 5
2
2
 
3
- This JavaScript library is Copyright © 2013-2024 David J. Bradshaw and is distributed under the GPL V3 for non-commercial use. A commercial license is available upon request.
3
+ This JavaScript library is Copyright © 2013-2025 David J. Bradshaw and is distributed under the GPL V3 for non-commercial use. A commercial license is available upon request.
4
4
 
5
5
  For more information on commercial licensing see https://iframe-resizer.com/pricing/
6
6
 
package/README.md CHANGED
@@ -22,4 +22,4 @@ yarn add @iframe-resizer/vue
22
22
 
23
23
  ---
24
24
 
25
- _iframe-resizer version 5.4.5 2025-04-16 - 12:55:17.004Z_
25
+ _iframe-resizer version 5.4.6-beta.2 2025-04-23 - 10:55:29.285Z_
@@ -6,7 +6,9 @@
6
6
  import connectResizer from '@iframe-resizer/core'
7
7
  import acg from 'auto-console-group'
8
8
 
9
- import { esModuleInterop } from '../common/utils'
9
+ const esModuleInterop = (mod) =>
10
+ // eslint-disable-next-line no-underscore-dangle
11
+ mod?.__esModule ? mod.default : mod
10
12
 
11
13
  // Deal with UMD not converting default exports to named exports
12
14
  const createAutoConsoleGroup = esModuleInterop(acg)
@@ -38,7 +40,7 @@
38
40
  type: String,
39
41
  },
40
42
  log: {
41
- type: String || Boolean,
43
+ type: [String, Boolean],
42
44
  default: false,
43
45
  },
44
46
  inPageLinks: {
package/index.cjs.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * @preserve
3
3
  *
4
- * @module iframe-resizer/vue 5.4.5 (cjs) - 2025-04-16
4
+ * @module iframe-resizer/vue 5.4.6-beta.2 (cjs) - 2025-04-23
5
5
  *
6
6
  * @license GPL-3.0 for non-commercial use only.
7
7
  * For commercial use, you must purchase a license from
@@ -24,10 +24,10 @@ const acg = require('auto-console-group');
24
24
  const vue = require('vue');
25
25
 
26
26
  const esModuleInterop = (mod) =>
27
- // eslint-disable-next-line no-underscore-dangle
28
- mod?.__esModule ? mod.default : mod;
27
+ // eslint-disable-next-line no-underscore-dangle
28
+ mod?.__esModule ? mod.default : mod;
29
29
 
30
- // Deal with UMD not converting default exports to named exports
30
+ // Deal with UMD not converting default exports to named exports
31
31
  const createAutoConsoleGroup = esModuleInterop(acg);
32
32
 
33
33
  const script = {
@@ -55,7 +55,7 @@ const esModuleInterop = (mod) =>
55
55
  type: String,
56
56
  },
57
57
  log: {
58
- type: String || Boolean,
58
+ type: [String, Boolean],
59
59
  default: false,
60
60
  },
61
61
  inPageLinks: {
package/index.esm.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * @preserve
3
3
  *
4
- * @module iframe-resizer/vue 5.4.5 (esm) - 2025-04-16
4
+ * @module iframe-resizer/vue 5.4.6-beta.2 (esm) - 2025-04-23
5
5
  *
6
6
  * @license GPL-3.0 for non-commercial use only.
7
7
  * For commercial use, you must purchase a license from
@@ -22,10 +22,10 @@ import acg from 'auto-console-group';
22
22
  import { createElementBlock, openBlock, mergeProps } from 'vue';
23
23
 
24
24
  const esModuleInterop = (mod) =>
25
- // eslint-disable-next-line no-underscore-dangle
26
- mod?.__esModule ? mod.default : mod;
25
+ // eslint-disable-next-line no-underscore-dangle
26
+ mod?.__esModule ? mod.default : mod;
27
27
 
28
- // Deal with UMD not converting default exports to named exports
28
+ // Deal with UMD not converting default exports to named exports
29
29
  const createAutoConsoleGroup = esModuleInterop(acg);
30
30
 
31
31
  const script = {
@@ -53,7 +53,7 @@ const esModuleInterop = (mod) =>
53
53
  type: String,
54
54
  },
55
55
  log: {
56
- type: String || Boolean,
56
+ type: [String, Boolean],
57
57
  default: false,
58
58
  },
59
59
  inPageLinks: {
package/index.umd.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * @preserve
3
3
  *
4
- * @module iframe-resizer/vue 5.4.5 (umd) - 2025-04-16
4
+ * @module iframe-resizer/vue 5.4.6-beta.2 (umd) - 2025-04-23
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,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.acg,e.Vue)}(this,(function(e,o,r){"use strict";const t=(n=o,n?.__esModule?n.default:n);var n;const i={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 o=this,{iframe:r}=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)=>o.$emit("onReady",...e),onMessage:(...e)=>o.$emit("onMessage",...e),onResized:(...e)=>o.$emit("onResized",...e)};""===n.log&&(n.log=!0);const i=e(n);o.resizer=i(r);const s={label:`vue(${r.id})`,expand:n.logExpand},a=t(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)}}};i.render=function(e,o,t,n,i,s){return r.openBlock(),r.createElementBlock("iframe",r.mergeProps({ref:"iframe"},e.$attrs),null,16)},i.__file="./iframe-resizer.vue";return{install(e){e.component("IframeResizer",i)}}}));
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.acg,e.Vue)}(this,(function(e,o,r){"use strict";const t=(n=o,n?.__esModule?n.default:n);var n;const i={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 o=this,{iframe:r}=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)=>o.$emit("onReady",...e),onMessage:(...e)=>o.$emit("onMessage",...e),onResized:(...e)=>o.$emit("onResized",...e)};""===n.log&&(n.log=!0);const i=e(n);o.resizer=i(r);const s={label:`vue(${r.id})`,expand:n.logExpand},a=t(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)}}};i.render=function(e,o,t,n,i,s){return r.openBlock(),r.createElementBlock("iframe",r.mergeProps({ref:"iframe"},e.$attrs),null,16)},i.__file="./iframe-resizer.vue";return{install(e){e.component("IframeResizer",i)}}}));
21
+ //# sourceMappingURL=index.umd.js.map
@@ -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 acg from 'auto-console-group'\n\n const esModuleInterop = (mod) =>\n // eslint-disable-next-line no-underscore-dangle\n mod?.__esModule ? mod.default : mod\n\n // Deal with UMD not converting default exports to named exports\n const createAutoConsoleGroup = esModuleInterop(acg)\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 = createAutoConsoleGroup(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 acg from 'auto-console-group'\n\n const esModuleInterop = (mod) =>\n // eslint-disable-next-line no-underscore-dangle\n mod?.__esModule ? mod.default : mod\n\n // Deal with UMD not converting default exports to named exports\n const createAutoConsoleGroup = esModuleInterop(acg)\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 = createAutoConsoleGroup(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":["createAutoConsoleGroup","mod","acg","__esModule","default","script","name","props","license","type","String","required","bodyBackground","bodyMargin","bodyPadding","checkOrigin","Boolean","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","beforeUnmount","disconnect","methods","moveToAnchor","anchor","resize","sendMessage","msg","target","_openBlock","openBlock","_createElementBlock","_mergeProps","mergeProps","ref","_ctx","$attrs","install","Vue","component","IframeResizer"],"mappings":";;;;;;;;;;;;;;;;;;;+YAQE,MAKMA,GALmBC,EAKsBC,EAH7CD,GAAKE,WAAaF,EAAIG,QAAUH,GAFV,IAACA,EASzB,MAAeI,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,QACNZ,SAAS,GAEXa,UAAW,CACTR,KAAMC,QAERQ,IAAK,CACHT,KAAM,CAACC,OAAQM,SACfZ,SAAS,GAEXe,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,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,EAAezC,EAAuBoD,GAC5CX,EAAaC,MAAM,SACfZ,EAAQZ,KAAKuB,EAAavB,IAAI,wBACnC,EAED,aAAAuC,GACE9B,KAAKwB,SAASO,YACf,EAEDC,QAAS,CACP,YAAAC,CAAaC,GACXlC,KAAKwB,QAAQS,aAAaC,EAC3B,EACD,MAAAC,GACEnC,KAAKwB,QAAQW,QACd,EACD,WAAAC,CAAYC,EAAKC,GACftC,KAAKwB,QAAQY,YAAYC,EAAKC,EAC/B,mCC9GL,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.5",
3
+ "version": "5.4.6-beta.2",
4
4
  "license": "GPL-3.0",
5
5
  "homepage": "https://iframe-resizer.com",
6
6
  "author": {
@@ -44,7 +44,7 @@
44
44
  "vue"
45
45
  ],
46
46
  "dependencies": {
47
- "@iframe-resizer/core": "5.4.5",
47
+ "@iframe-resizer/core": "5.4.6-beta.2",
48
48
  "auto-console-group": "1.2.9"
49
49
  }
50
50
  }