@tailor-cms/ce-quill-html-display 0.0.6 → 0.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-quill-html-manifest';
1
+ import { Element } from '@tailor-cms/ce-quill-html-manifest';
2
2
  type __VLS_Props = {
3
- id: number;
4
- data: ElementData;
3
+ element: Element;
5
4
  };
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, {}, HTMLDivElement>;
5
+ 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>;
7
6
  export default _default;
package/dist/index.cjs CHANGED
@@ -22,19 +22,18 @@ var manifest$1 = {
22
22
  ui
23
23
  };
24
24
  var index_default = manifest$1;
25
- const _hoisted_1 = { class: "ce-html-root" };
25
+ const _hoisted_1 = { class: "ce-quill-html-root" };
26
26
  const _hoisted_2 = ["innerHTML"];
27
27
  const _sfc_main = /* @__PURE__ */ vue.defineComponent({
28
28
  __name: "Display",
29
29
  props: {
30
- id: {},
31
- data: {}
30
+ element: {}
32
31
  },
33
32
  setup(__props) {
34
33
  return (_ctx, _cache) => {
35
34
  return vue.openBlock(), vue.createElementBlock("div", _hoisted_1, [
36
35
  vue.createElementVNode("span", {
37
- innerHTML: _ctx.data.content
36
+ innerHTML: _ctx.element.data.content
38
37
  }, null, 8, _hoisted_2)
39
38
  ]);
40
39
  };
@@ -47,7 +46,7 @@ const _export_sfc = (sfc, props) => {
47
46
  }
48
47
  return target;
49
48
  };
50
- const Display = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-47cf2e3d"]]);
49
+ const Display = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-f95022b8"]]);
51
50
  const manifest = {
52
51
  ...index_default,
53
52
  Display
package/dist/index.css CHANGED
@@ -1,4 +1,81 @@
1
- .ce-html-root[data-v-47cf2e3d] {
2
- font-family: Arial, Helvetica, sans-serif;
3
- font-size: 1rem;
1
+ .ce-quill-html-root[data-v-f95022b8] span * {
2
+ word-break: break-word;
3
+ }
4
+ .ce-quill-html-root[data-v-f95022b8] span > * + * {
5
+ margin-top: 0.75em;
6
+ }
7
+ .ce-quill-html-root[data-v-f95022b8] span h1,
8
+ .ce-quill-html-root[data-v-f95022b8] span h2,
9
+ .ce-quill-html-root[data-v-f95022b8] span h3,
10
+ .ce-quill-html-root[data-v-f95022b8] span h4,
11
+ .ce-quill-html-root[data-v-f95022b8] span h5,
12
+ .ce-quill-html-root[data-v-f95022b8] span h6 {
13
+ line-height: 1;
14
+ }
15
+ .ce-quill-html-root[data-v-f95022b8] span h1 {
16
+ font-size: 2.5rem;
17
+ }
18
+ .ce-quill-html-root[data-v-f95022b8] span h2 {
19
+ font-size: 2.25rem;
20
+ }
21
+ .ce-quill-html-root[data-v-f95022b8] span h3 {
22
+ font-size: 2rem;
23
+ }
24
+ .ce-quill-html-root[data-v-f95022b8] span h4 {
25
+ font-size: 1.75rem;
26
+ }
27
+ .ce-quill-html-root[data-v-f95022b8] span h5 {
28
+ font-size: 1.5rem;
29
+ }
30
+ .ce-quill-html-root[data-v-f95022b8] span h6 {
31
+ font-size: 1.25rem;
32
+ }
33
+ .ce-quill-html-root[data-v-f95022b8] span blockquote {
34
+ padding: 0.25rem 1rem;
35
+ border-left: 2px solid rgba(13, 13, 13, 0.1);
36
+ font-family: Georgia, "Times New Roman", Times, serif;
37
+ font-style: italic;
38
+ }
39
+ .ce-quill-html-root[data-v-f95022b8] span ul,
40
+ .ce-quill-html-root[data-v-f95022b8] span ol {
41
+ padding: 0 1.25rem;
42
+ }
43
+ .ce-quill-html-root[data-v-f95022b8] span code {
44
+ font-family: "Source Code Pro", monospace !important;
45
+ background: #eee;
46
+ padding: 0.125rem 0.5rem;
47
+ border-radius: 8px;
48
+ }
49
+ .ce-quill-html-root[data-v-f95022b8] span pre {
50
+ border-radius: 8px;
51
+ padding: 0.5rem 1rem;
52
+ background: #eee;
53
+ }
54
+ .ce-quill-html-root[data-v-f95022b8] span pre code {
55
+ padding: 0;
56
+ font-size: 0.875rem;
57
+ background: none;
58
+ }
59
+ .ce-quill-html-root[data-v-f95022b8] span hr {
60
+ border: none;
61
+ border-top: 2px solid rgba(13, 13, 13, 0.1);
62
+ margin: 2rem 0;
63
+ }
64
+ .ce-quill-html-root[data-v-f95022b8] span table {
65
+ width: 100%;
66
+ border-spacing: 0;
67
+ border-radius: 4px;
68
+ overflow: hidden;
69
+ border: 1px solid rgba(0, 0, 0, 0.12);
70
+ text-align: left;
71
+ }
72
+ .ce-quill-html-root[data-v-f95022b8] span table th,
73
+ .ce-quill-html-root[data-v-f95022b8] span table td {
74
+ padding: 0.75rem;
75
+ }
76
+ .ce-quill-html-root[data-v-f95022b8] span table th {
77
+ background-color: #fafafa;
78
+ }
79
+ .ce-quill-html-root[data-v-f95022b8] span table td {
80
+ border-top: 1px solid rgba(0, 0, 0, 0.12);
4
81
  }
package/dist/index.js CHANGED
@@ -20,19 +20,18 @@ var manifest$1 = {
20
20
  ui
21
21
  };
22
22
  var index_default = manifest$1;
23
- const _hoisted_1 = { class: "ce-html-root" };
23
+ const _hoisted_1 = { class: "ce-quill-html-root" };
24
24
  const _hoisted_2 = ["innerHTML"];
25
25
  const _sfc_main = /* @__PURE__ */ defineComponent({
26
26
  __name: "Display",
27
27
  props: {
28
- id: {},
29
- data: {}
28
+ element: {}
30
29
  },
31
30
  setup(__props) {
32
31
  return (_ctx, _cache) => {
33
32
  return openBlock(), createElementBlock("div", _hoisted_1, [
34
33
  createElementVNode("span", {
35
- innerHTML: _ctx.data.content
34
+ innerHTML: _ctx.element.data.content
36
35
  }, null, 8, _hoisted_2)
37
36
  ]);
38
37
  };
@@ -45,7 +44,7 @@ const _export_sfc = (sfc, props) => {
45
44
  }
46
45
  return target;
47
46
  };
48
- const Display = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-47cf2e3d"]]);
47
+ const Display = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-f95022b8"]]);
49
48
  const manifest = {
50
49
  ...index_default,
51
50
  Display
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "description": "Tailor CMS Quill HTML editor end-user component",
4
4
  "author": "Studion <info@gostudion.com> (https://github.com/tailor-cms)",
5
5
  "type": "module",
6
- "version": "0.0.6",
6
+ "version": "0.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-quill-html-manifest": "0.0.6"
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-quill-html-manifest": "0.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
  }