@bagelink/vue 0.0.1064 → 0.0.1066
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/dist/components/Image.vue.d.ts.map +1 -1
- package/dist/index.cjs +2 -3
- package/dist/index.mjs +2 -3
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/src/components/Image.vue +2 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Image.vue.d.ts","sourceRoot":"","sources":["../../src/components/Image.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Image.vue.d.ts","sourceRoot":"","sources":["../../src/components/Image.vue"],"names":[],"mappings":"AA2GA,OAAO,CAAC,MAAM,CAAC;IACd,UAAU,MAAM;QACf,QAAQ,EAAE,GAAG,CAAA;KACb;CACD;AAED,KAAK,WAAW,GAAG;IAClB,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IACvB,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IACxB,OAAO,CAAC,EAAE,MAAM,CAAA;CAChB,CAAC;;AA0IF,wBAMG"}
|
package/dist/index.cjs
CHANGED
|
@@ -19389,8 +19389,7 @@ const _sfc_main$I = /* @__PURE__ */ vue.defineComponent({
|
|
|
19389
19389
|
},
|
|
19390
19390
|
setup(__props) {
|
|
19391
19391
|
let imageSrc = vue.ref(null);
|
|
19392
|
-
const
|
|
19393
|
-
const fileBaseUrl = vue.computed(() => (bagel.fileBaseUrl || "https://files.bagel.design").replace(/\/$/, ""));
|
|
19392
|
+
const fileBaseUrl = vue.computed(() => "https://files.bagel.design".replace(/\/$/, ""));
|
|
19394
19393
|
const pathToUrl = () => `${fileBaseUrl.value}/${__props.pathKey}`;
|
|
19395
19394
|
async function loadImage() {
|
|
19396
19395
|
var _a2;
|
|
@@ -19469,7 +19468,7 @@ const _sfc_main$I = /* @__PURE__ */ vue.defineComponent({
|
|
|
19469
19468
|
};
|
|
19470
19469
|
}
|
|
19471
19470
|
});
|
|
19472
|
-
const Image$1 = /* @__PURE__ */ _export_sfc(_sfc_main$I, [["__scopeId", "data-v-
|
|
19471
|
+
const Image$1 = /* @__PURE__ */ _export_sfc(_sfc_main$I, [["__scopeId", "data-v-3aff6eb2"]]);
|
|
19473
19472
|
const _hoisted_1$y = { class: "bagel-input" };
|
|
19474
19473
|
const _hoisted_2$n = {
|
|
19475
19474
|
key: 0,
|
package/dist/index.mjs
CHANGED
|
@@ -19387,8 +19387,7 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
|
|
|
19387
19387
|
},
|
|
19388
19388
|
setup(__props) {
|
|
19389
19389
|
let imageSrc = ref(null);
|
|
19390
|
-
const
|
|
19391
|
-
const fileBaseUrl = computed(() => (bagel.fileBaseUrl || "https://files.bagel.design").replace(/\/$/, ""));
|
|
19390
|
+
const fileBaseUrl = computed(() => "https://files.bagel.design".replace(/\/$/, ""));
|
|
19392
19391
|
const pathToUrl = () => `${fileBaseUrl.value}/${__props.pathKey}`;
|
|
19393
19392
|
async function loadImage() {
|
|
19394
19393
|
var _a2;
|
|
@@ -19467,7 +19466,7 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
|
|
|
19467
19466
|
};
|
|
19468
19467
|
}
|
|
19469
19468
|
});
|
|
19470
|
-
const Image$1 = /* @__PURE__ */ _export_sfc(_sfc_main$I, [["__scopeId", "data-v-
|
|
19469
|
+
const Image$1 = /* @__PURE__ */ _export_sfc(_sfc_main$I, [["__scopeId", "data-v-3aff6eb2"]]);
|
|
19471
19470
|
const _hoisted_1$y = { class: "bagel-input" };
|
|
19472
19471
|
const _hoisted_2$n = {
|
|
19473
19472
|
key: 0,
|
package/dist/style.css
CHANGED
package/package.json
CHANGED
package/src/components/Image.vue
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
|
-
import { Skeleton, normalizeDimension, appendScript
|
|
2
|
+
import { Skeleton, normalizeDimension, appendScript } from '@bagelink/vue'
|
|
3
3
|
import { watch } from 'vue'
|
|
4
4
|
|
|
5
5
|
declare global {
|
|
@@ -19,8 +19,7 @@ const { height, width, alt = '', src, pathKey } = defineProps<{
|
|
|
19
19
|
|
|
20
20
|
let imageSrc = $ref<string | null>(null)
|
|
21
21
|
|
|
22
|
-
const
|
|
23
|
-
const fileBaseUrl = $computed(() => (bagel.fileBaseUrl || 'https://files.bagel.design').replace(/\/$/, ''))
|
|
22
|
+
const fileBaseUrl = $computed(() => ('https://files.bagel.design').replace(/\/$/, ''))
|
|
24
23
|
const pathToUrl = () => `${fileBaseUrl}/${pathKey}`
|
|
25
24
|
|
|
26
25
|
async function loadImage() {
|