@tailor-cms/ce-image-display 1.0.4 → 1.1.0

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.
@@ -1,7 +1,6 @@
1
- import { ElementData } from '@tailor-cms/ce-image-manifest';
1
+ import { Element } from '@tailor-cms/ce-image-manifest';
2
2
  type __VLS_Props = {
3
- id: number;
4
- data: ElementData;
3
+ element: Element;
5
4
  userState: any;
6
5
  };
7
6
  declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
package/dist/index.cjs CHANGED
@@ -26,13 +26,12 @@ var manifest$1 = {
26
26
  ui
27
27
  };
28
28
  var index_default = manifest$1;
29
- const _hoisted_1 = { class: "tce-root" };
29
+ const _hoisted_1 = { class: "tce-image-root" };
30
30
  const _hoisted_2 = { class: "d-flex align-center justify-center fill-height" };
31
31
  const _sfc_main = /* @__PURE__ */ vue.defineComponent({
32
32
  __name: "Display",
33
33
  props: {
34
- id: {},
35
- data: {},
34
+ element: {},
36
35
  userState: {}
37
36
  },
38
37
  setup(__props) {
@@ -42,10 +41,10 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
42
41
  const _component_VIcon = vue.resolveComponent("VIcon");
43
42
  const _component_VSheet = vue.resolveComponent("VSheet");
44
43
  return vue.openBlock(), vue.createElementBlock("div", _hoisted_1, [
45
- _ctx.data.url ? (vue.openBlock(), vue.createBlock(_component_VImg, {
44
+ _ctx.element.data.url ? (vue.openBlock(), vue.createBlock(_component_VImg, {
46
45
  key: 0,
47
- alt: _ctx.data.alt,
48
- src: _ctx.data.url,
46
+ alt: _ctx.element.data.alt,
47
+ src: _ctx.element.data.url,
49
48
  class: "mx-auto"
50
49
  }, {
51
50
  placeholder: vue.withCtx(() => [
@@ -84,7 +83,7 @@ const _export_sfc = (sfc, props) => {
84
83
  }
85
84
  return target;
86
85
  };
87
- const Display = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-3caceda2"]]);
86
+ const Display = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-10a58138"]]);
88
87
  const manifest = {
89
88
  ...index_default,
90
89
  Display
package/dist/index.css CHANGED
@@ -1,5 +1,3 @@
1
1
 
2
- .tce-root[data-v-3caceda2] {
3
- font-family: Arial, Helvetica, sans-serif;
4
- font-size: 1rem;
2
+ .tce-image-root[data-v-10a58138] {
5
3
  }
package/dist/index.js CHANGED
@@ -24,13 +24,12 @@ var manifest$1 = {
24
24
  ui
25
25
  };
26
26
  var index_default = manifest$1;
27
- const _hoisted_1 = { class: "tce-root" };
27
+ const _hoisted_1 = { class: "tce-image-root" };
28
28
  const _hoisted_2 = { class: "d-flex align-center justify-center fill-height" };
29
29
  const _sfc_main = /* @__PURE__ */ defineComponent({
30
30
  __name: "Display",
31
31
  props: {
32
- id: {},
33
- data: {},
32
+ element: {},
34
33
  userState: {}
35
34
  },
36
35
  setup(__props) {
@@ -40,10 +39,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
40
39
  const _component_VIcon = resolveComponent("VIcon");
41
40
  const _component_VSheet = resolveComponent("VSheet");
42
41
  return openBlock(), createElementBlock("div", _hoisted_1, [
43
- _ctx.data.url ? (openBlock(), createBlock(_component_VImg, {
42
+ _ctx.element.data.url ? (openBlock(), createBlock(_component_VImg, {
44
43
  key: 0,
45
- alt: _ctx.data.alt,
46
- src: _ctx.data.url,
44
+ alt: _ctx.element.data.alt,
45
+ src: _ctx.element.data.url,
47
46
  class: "mx-auto"
48
47
  }, {
49
48
  placeholder: withCtx(() => [
@@ -82,7 +81,7 @@ const _export_sfc = (sfc, props) => {
82
81
  }
83
82
  return target;
84
83
  };
85
- const Display = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-3caceda2"]]);
84
+ const Display = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-10a58138"]]);
86
85
  const manifest = {
87
86
  ...index_default,
88
87
  Display
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "description": "Tailor CMS image element end-user component",
4
4
  "author": "Studion <info@gostudion.com> (https://github.com/tailor-cms)",
5
5
  "type": "module",
6
- "version": "1.0.4",
6
+ "version": "1.1.0",
7
7
  "exports": {
8
8
  ".": {
9
9
  "import": "./dist/index.js",
@@ -19,20 +19,23 @@
19
19
  "vue": "^3.5.13"
20
20
  },
21
21
  "devDependencies": {
22
- "@tailor-cms/eslint-config": "0.0.2",
23
- "@vitejs/plugin-vue": "^5.2.1",
24
- "typescript": "^5.7.3",
25
- "vite": "^6.1.0",
26
- "vue-tsc": "^2.2.0",
27
- "@tailor-cms/ce-image-manifest": "1.0.4"
22
+ "@tailor-cms/eslint-config": "1.1.2",
23
+ "@vitejs/plugin-vue": "^6.0.0",
24
+ "typescript": "^5.8.3",
25
+ "vite": "^7.0.3",
26
+ "vue-tsc": "^3.0.1",
27
+ "@tailor-cms/ce-image-manifest": "1.1.0"
28
28
  },
29
29
  "publishConfig": {
30
30
  "access": "public"
31
31
  },
32
32
  "scripts": {
33
33
  "dev": "vite build --watch",
34
- "build": "vue-tsc && vite build",
35
- "lint": "eslint --ext .js,.ts,.vue ./src",
36
- "lint:fix": "pnpm lint --fix"
34
+ "build": "pnpm nuke:dist && vue-tsc && vite build",
35
+ "lint": "eslint ./src",
36
+ "lint:fix": "pnpm lint --fix",
37
+ "nuke": "pnpm dlx del-cli dist node_modules",
38
+ "nuke:dist": "pnpm dlx del-cli dist",
39
+ "prepublish": "pnpm build"
37
40
  }
38
41
  }