@iframe-resizer/vue 5.5.8-beta.3 → 5.5.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/README.md CHANGED
@@ -25,4 +25,4 @@ yarn add @iframe-resizer/vue
25
25
 
26
26
  ---
27
27
 
28
- _iframe-resizer version 5.5.8-beta.3 2026-01-24 - 11:34:59.735Z_
28
+ _iframe-resizer version 5.5.8 2026-01-26 - 16:51:16.179Z_
@@ -6,8 +6,8 @@
6
6
  import connectResizer from '@iframe-resizer/core'
7
7
  import acg from 'auto-console-group'
8
8
 
9
- export const EXPAND = 'expanded'
10
- export const COLLAPSE = 'collapsed'
9
+ const EXPAND = 'expanded'
10
+ const COLLAPSE = 'collapsed'
11
11
 
12
12
  const esModuleInterop = (mod) =>
13
13
  // eslint-disable-next-line no-underscore-dangle
package/index.cjs.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * @preserve
3
3
  *
4
- * @module iframe-resizer/vue 5.5.8-beta.3 (cjs) - 2026-01-24
4
+ * @module iframe-resizer/vue 5.5.8 (cjs) - 2026-01-26
5
5
  *
6
6
  * @license GPL-3.0 for non-commercial use only.
7
7
  * For commercial use, you must purchase a license from
package/index.esm.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * @preserve
3
3
  *
4
- * @module iframe-resizer/vue 5.5.8-beta.3 (esm) - 2026-01-24
4
+ * @module iframe-resizer/vue 5.5.8 (esm) - 2026-01-26
5
5
  *
6
6
  * @license GPL-3.0 for non-commercial use only.
7
7
  * For commercial use, you must purchase a license from
package/index.umd.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * @preserve
3
3
  *
4
- * @module iframe-resizer/vue 5.5.8-beta.3 (umd) - 2026-01-24
4
+ * @module iframe-resizer/vue 5.5.8 (umd) - 2026-01-26
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,4 +18,3 @@
18
18
 
19
19
 
20
20
  !function(e,r){"object"==typeof exports&&"undefined"!=typeof module?module.exports=r(require("@iframe-resizer/core"),require("auto-console-group"),require("vue")):"function"==typeof define&&define.amd?define(["@iframe-resizer/core","auto-console-group","vue"],r):(e="undefined"!=typeof globalThis?globalThis:e||self).IframeResizer=r(e.connectResizer,e.acg,e.Vue)}(this,function(e,r,o){"use strict";const t="expanded",n="collapsed",i=(s=r,s?.__esModule?s.default:s);var s;const a={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,Number],validator:e=>{switch(e){case n:case t:case!1:case!0:case-1:return!0;default:return!1}},default:void 0},inPageLinks:{type:Boolean},offset:{type:Number},scrolling:{type:Boolean},tolerance:{type:Number},warningTimeout:{type:Number}},mounted(){const r=this,{iframe:o}=this.$refs,s={...Object.fromEntries(Object.entries(this.$props).filter(([e,r])=>void 0!==r)),waitForLoad:!0,onBeforeClose:()=>(l.event("Blocked Close Event"),l.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)},a=e(s);r.resizer=a(o);const d={label:`vue(${o.id})`,expand:s.logExpand},l=i(d);l.event("setup"),[n,t,!0].includes(s.log)&&l.log("Created Vue component")},beforeUnmount(){this.resizer?.disconnect()},methods:{moveToAnchor(e){this.resizer.moveToAnchor(e)},resize(){this.resizer.resize()},sendMessage(e,r){this.resizer.sendMessage(e,r)}}};a.render=function(e,r,t,n,i,s){return o.openBlock(),o.createElementBlock("iframe",o.mergeProps({ref:"iframe"},e.$attrs),null,16)},a.__file="./iframe-resizer.vue";return{install(e){e.component("IframeResizer",a)}}});
21
- //# sourceMappingURL=index.umd.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@iframe-resizer/vue",
3
- "version": "5.5.8-beta.3",
3
+ "version": "5.5.8",
4
4
  "license": "GPL-3.0",
5
5
  "homepage": "https://iframe-resizer.com",
6
6
  "author": {
@@ -39,7 +39,7 @@
39
39
  "vue"
40
40
  ],
41
41
  "dependencies": {
42
- "@iframe-resizer/core": "5.5.8-beta.3",
42
+ "@iframe-resizer/core": "5.5.8",
43
43
  "auto-console-group": "1.3.0"
44
44
  }
45
45
  }
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 import acg from 'auto-console-group'\n\n export const EXPAND = 'expanded'\n export const COLLAPSE = 'collapsed'\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 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, Number],\n validator: (value) => {\n switch (value) {\n case COLLAPSE:\n case EXPAND:\n case false:\n case true:\n case -1:\n return true\n default:\n return false\n }\n },\n default: undefined,\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 onBeforeClose: () => {\n consoleGroup.event('Blocked Close Event')\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 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\n if ([COLLAPSE, EXPAND, true].includes(options.log)) {\n consoleGroup.log('Created Vue component')\n }\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 export const EXPAND = 'expanded'\n export const COLLAPSE = 'collapsed'\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 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, Number],\n validator: (value) => {\n switch (value) {\n case COLLAPSE:\n case EXPAND:\n case false:\n case true:\n case -1:\n return true\n default:\n return false\n }\n },\n default: undefined,\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 onBeforeClose: () => {\n consoleGroup.event('Blocked Close Event')\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 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\n if ([COLLAPSE, EXPAND, true].includes(options.log)) {\n consoleGroup.log('Created Vue component')\n }\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":["EXPAND","COLLAPSE","createAutoConsoleGroup","mod","acg","__esModule","default","script","name","props","license","type","String","required","bodyBackground","bodyMargin","bodyPadding","checkOrigin","Boolean","direction","log","Number","validator","value","undefined","inPageLinks","offset","scrolling","tolerance","warningTimeout","mounted","self","this","iframe","$refs","options","Object","fromEntries","entries","$props","filter","key","waitForLoad","onBeforeClose","consoleGroup","event","warn","onReady","args","$emit","onMessage","onResized","connectWithOptions","connectResizer","resizer","consoleOptions","label","id","expand","logExpand","includes","beforeUnmount","disconnect","methods","moveToAnchor","anchor","resize","sendMessage","msg","target","_openBlock","_createElementBlock","_mergeProps","ref","_ctx","$attrs","install","Vue","component","IframeResizer"],"mappings":";;;;;;;;;;;;;;;;;;;8YAQS,MAAMA,EAAS,WACTC,EAAW,YAOlBC,GALmBC,EAKsBC,EAH7CD,GAAKE,WAAaF,EAAIG,QAAUH,GAFV,IAACA,EAOzB,MAAAI,EAAe,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,QAASG,QACxBC,UAAYC,IACV,OAAQA,GACN,KAAKtB,EACL,KAAKD,EACL,KAAK,EACL,KAAK,EACL,KAAK,EACH,OAAO,EACT,QACE,OAAO,IAGbM,aAASkB,GAEXC,YAAa,CACXd,KAAMO,SAERQ,OAAQ,CACNf,KAAMU,QAERM,UAAW,CACThB,KAAMO,SAERU,UAAW,CACTjB,KAAMU,QAERQ,eAAgB,CACdlB,KAAMU,SAIV,OAAAS,GACE,MAAMC,EAAOC,MACPC,OAAEA,GAAWD,KAAKE,MAClBC,EAAU,IACXC,OAAOC,YACRD,OACGE,QAAQN,KAAKO,QACbC,OAAO,EAAEC,EAAKlB,UAAqBC,IAAVD,IAE9BmB,aAAa,EAEbC,cAAe,KACbC,EAAaC,MAAM,uBACnBD,EAAaE,KAAK,uDACX,GAETC,QAAS,IAAIC,IAASjB,EAAKkB,MAAM,aAAcD,GAC/CE,UAAW,IAAIF,IAASjB,EAAKkB,MAAM,eAAgBD,GACnDG,UAAW,IAAIH,IAASjB,EAAKkB,MAAM,eAAgBD,IAG/CI,EAAqBC,EAAelB,GAC1CJ,EAAKuB,QAAUF,EAAmBnB,GAElC,MAAMsB,EAAiB,CACrBC,MAAO,OAAOvB,EAAOwB,MACrBC,OAAQvB,EAAQwB,WAGZf,EAAe1C,EAAuBqD,GAC5CX,EAAaC,MAAM,SAEf,CAAC5C,EAAUD,GAAQ,GAAM4D,SAASzB,EAAQf,MAC5CwB,EAAaxB,IAAI,wBAErB,EAEA,aAAAyC,GACE7B,KAAKsB,SAASQ,YAChB,EAEAC,QAAS,CACP,YAAAC,CAAaC,GACXjC,KAAKsB,QAAQU,aAAaC,EAC5B,EACA,MAAAC,GACElC,KAAKsB,QAAQY,QACf,EACA,WAAAC,CAAYC,EAAKC,GACfrC,KAAKsB,QAAQa,YAAYC,EAAKC,EAChC,mCC5HJ,OAAAC,EAAAA,YAAAC,EAAAA,mBAA6C,SAA7CC,EAAAA,WAA6C,CAArCC,IAAI,UAAiBC,EAAAC,QAAM,KAAA,sDCCtB,CACb,OAAAC,CAAQC,GACNA,EAAIC,UAAU,gBAAiBC,EACjC"}