Skip to content

Commit

Permalink
chore(release): 3.1.0-rc.2
Browse files Browse the repository at this point in the history
## [3.1.0-rc.2](v3.1.0-rc.1...v3.1.0-rc.2) (2023-05-09)

### Bug Fixes

* **vite:** update config entry file ([2383d06](2383d06))
  • Loading branch information
imgix-git-robot committed May 9, 2023
1 parent 2383d06 commit 373f619
Show file tree
Hide file tree
Showing 5 changed files with 36 additions and 658 deletions.
228 changes: 9 additions & 219 deletions dist/imgix-vue.esm.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*! licenses: /vendor.LICENSE.txt */
import { defineComponent, h, openBlock, createElementBlock, resolveComponent, createElementVNode, createVNode, withCtx, createApp } from "vue";
import { defineComponent, h } from "vue";
const version = "3.7.3";
const VERSION$2 = version;
const _hasatob = typeof atob === "function";
Expand Down Expand Up @@ -940,7 +940,7 @@ const IxImg = defineComponent({
});
}
});
const VERSION = "3.0.4";
const VERSION = "3.1.0-rc.1";
const clientOptionDefaults = {
includeLibraryParam: true
};
Expand Down Expand Up @@ -1008,6 +1008,12 @@ class VueImgixClient {
}
}
}
const buildImgixClient = (options) => {
const client = new VueImgixClient({
...options
});
return client;
};
let vueImgixClientSingleton = void 0;
const initVueImgix = (options) => {
vueImgixClientSingleton = new VueImgixClient(options);
Expand Down Expand Up @@ -1088,220 +1094,4 @@ install.installed = false;
const plugin = {
install
};
var _export_sfc = (sfc, props) => {
const target = sfc.__vccOpts || sfc;
for (const [key, val] of props) {
target[key] = val;
}
return target;
};
const _sfc_main$7 = {
name: "advanced-build-url-object",
computed: {
advancedSrcObject: () => buildUrlObject("examples/pione.jpg", {
auto: "format"
})
}
};
const _hoisted_1$7 = ["src", "srcset"];
function _sfc_render$7(_ctx, _cache, $props, $setup, $data, $options) {
return openBlock(), createElementBlock("img", {
src: $options.advancedSrcObject.src,
srcset: $options.advancedSrcObject.srcset,
sizes: "50vw",
"data-testid": "advanced-basic-image"
}, null, 8, _hoisted_1$7);
}
var advancedBuildUrlObject = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["render", _sfc_render$7]]);
const _sfc_main$6 = {
name: "advanced-build-url",
computed: {
advancedUrl: () => buildUrl("examples/pione.jpg", {
auto: "format",
w: 400
})
}
};
const _hoisted_1$6 = ["src"];
function _sfc_render$6(_ctx, _cache, $props, $setup, $data, $options) {
return openBlock(), createElementBlock("img", {
src: $options.advancedUrl,
"data-testid": "advanced-build-url"
}, null, 8, _hoisted_1$6);
}
var advancedBuildUrl = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["render", _sfc_render$6]]);
const _sfc_main$5 = {
name: "advanced-build-srcset",
computed: {
advancedSrc: () => buildUrl("examples/pione.jpg", {
auto: "format"
}),
advancedSrcSet: () => buildSrcSet("examples/pione.jpg", {
auto: "format"
})
}
};
const _hoisted_1$5 = ["src", "srcset"];
function _sfc_render$5(_ctx, _cache, $props, $setup, $data, $options) {
return openBlock(), createElementBlock("img", {
src: $options.advancedSrc,
srcset: $options.advancedSrcSet,
"data-testid": "advanced-build-src-set"
}, null, 8, _hoisted_1$5);
}
var advancedBuildSrcSet = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["render", _sfc_render$5]]);
const _sfc_main$4 = {
name: "static-build-src-set",
computed: {
advancedSrc: () => buildUrl("https://sdk-test.imgix.net/amsterdam.jpg", {
auto: "format"
}),
advancedSrcSet: () => buildSrcSet("https://sdk-test.imgix.net/amsterdam.jpg", {
auto: "format"
})
}
};
const _hoisted_1$4 = ["src", "srcset"];
function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
return openBlock(), createElementBlock("img", {
src: $options.advancedSrc,
srcset: $options.advancedSrcSet,
"data-testid": "static-build-src-set"
}, null, 8, _hoisted_1$4);
}
var staticBuildSrcSet = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["render", _sfc_render$4]]);
const _sfc_main$3 = {
name: "advance-api"
};
const _hoisted_1$3 = /* @__PURE__ */ createElementVNode("h2", null, "attributeConfig", -1);
const _hoisted_2$2 = { "data-testid": "advanced-attribute-config" };
function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
const _component_ix_img = resolveComponent("ix-img");
return openBlock(), createElementBlock("div", null, [
_hoisted_1$3,
createElementVNode("div", _hoisted_2$2, [
createVNode(_component_ix_img, {
src: "examples/pione.jpg",
attributeConfig: {
src: "data-src",
srcset: "data-srcset"
}
})
])
]);
}
var advancedApi = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["render", _sfc_render$3]]);
const _sfc_main$2 = {
name: "simple-api"
};
const _hoisted_1$2 = /* @__PURE__ */ createElementVNode("h2", null, "Simple", -1);
const _hoisted_2$1 = /* @__PURE__ */ createElementVNode("h2", null, "Fixed", -1);
const _hoisted_3$1 = /* @__PURE__ */ createElementVNode("h2", null, "Picture", -1);
const _hoisted_4$1 = { "data-testid": "simple-picture" };
function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
const _component_ix_img = resolveComponent("ix-img");
const _component_ix_source = resolveComponent("ix-source");
const _component_ix_picture = resolveComponent("ix-picture");
return openBlock(), createElementBlock("div", null, [
_hoisted_1$2,
createVNode(_component_ix_img, {
src: "examples/pione.jpg",
sizes: "20vw",
"data-testid": "simple-fluid"
}),
_hoisted_2$1,
createVNode(_component_ix_img, {
src: "examples/pione.jpg",
width: "100",
fixed: "",
"data-testid": "simple-fixed-width"
}),
_hoisted_3$1,
createElementVNode("div", _hoisted_4$1, [
createVNode(_component_ix_picture, null, {
default: withCtx(() => [
createVNode(_component_ix_source, { src: "blog/unsplash-kiss.jpg" }),
createVNode(_component_ix_img, { src: "blog/unsplash-kiss.jpg" })
]),
_: 1
})
])
]);
}
var simple = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["render", _sfc_render$2]]);
const _sfc_main$1 = {
name: "static-api"
};
const _hoisted_1$1 = /* @__PURE__ */ createElementVNode("h2", null, "Absolute URL Static API Example", -1);
function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
const _component_ix_img = resolveComponent("ix-img");
return openBlock(), createElementBlock("div", null, [
_hoisted_1$1,
createVNode(_component_ix_img, {
src: "/examples/pione.jpg",
width: "100",
"data-testid": "static-api-relative"
}),
createVNode(_component_ix_img, {
src: "https://sdk-test.imgix.net/amsterdam.jpg",
width: "100",
"data-testid": "static-api-absolute"
})
]);
}
var staticApi = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render$1]]);
const _sfc_main = {
name: "App",
components: {
advancedBuildUrlObject,
advancedBuildUrl,
advancedBuildSrcSet,
staticBuildSrcSet,
advancedApi,
simple,
staticApi
},
computed: {}
};
const _hoisted_1 = { id: "app" };
const _hoisted_2 = /* @__PURE__ */ createElementVNode("h1", null, "Simple Usage", -1);
const _hoisted_3 = /* @__PURE__ */ createElementVNode("h1", null, "Static Usage", -1);
const _hoisted_4 = /* @__PURE__ */ createElementVNode("h1", null, "Advanced Usage", -1);
const _hoisted_5 = /* @__PURE__ */ createElementVNode("h2", null, "buildUrlObject", -1);
const _hoisted_6 = /* @__PURE__ */ createElementVNode("h2", null, "buildUrl", -1);
const _hoisted_7 = /* @__PURE__ */ createElementVNode("h2", null, "buildSrcSet", -1);
const _hoisted_8 = /* @__PURE__ */ createElementVNode("h2", null, "_buildSrcSet", -1);
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
const _component_simple = resolveComponent("simple");
const _component_static_api = resolveComponent("static-api");
const _component_advanced_api = resolveComponent("advanced-api");
const _component_advanced_build_url_object = resolveComponent("advanced-build-url-object");
const _component_advanced_build_url = resolveComponent("advanced-build-url");
const _component_advanced_build_src_set = resolveComponent("advanced-build-src-set");
const _component_static_build_src_set = resolveComponent("static-build-src-set");
return openBlock(), createElementBlock("div", _hoisted_1, [
_hoisted_2,
createVNode(_component_simple),
_hoisted_3,
createVNode(_component_static_api),
_hoisted_4,
createVNode(_component_advanced_api),
_hoisted_5,
createVNode(_component_advanced_build_url_object),
_hoisted_6,
createVNode(_component_advanced_build_url),
_hoisted_7,
createVNode(_component_advanced_build_src_set),
_hoisted_8,
createVNode(_component_static_build_src_set)
]);
}
var App = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
const app = createApp(App);
app.use(plugin, {
domain: "assets.imgix.net",
defaultIxParams: {
auto: "format"
}
}).mount("#app");
export { app };
export { IxImg, buildImgixClient, buildSrcSet, buildUrl, buildUrlObject, plugin as default, ensureVueImgixClientSingleton, initVueImgix, install };
Loading

0 comments on commit 373f619

Please sign in to comment.