diff --git a/docs/assets/Paragraph.163a67b8.js b/docs/assets/Paragraph.784d4153.js similarity index 78% rename from docs/assets/Paragraph.163a67b8.js rename to docs/assets/Paragraph.784d4153.js index 26cb333..3a0211d 100644 --- a/docs/assets/Paragraph.163a67b8.js +++ b/docs/assets/Paragraph.784d4153.js @@ -1,2 +1,2 @@ -import{d as a,g as l,r,a as e,o as s,c as p,b as n}from"./index.1b27d369.js";var t=a({name:"sb-paragraph-edit",props:{blockId:{type:String,required:!0},data:{type:null,default:l}},setup(a){const l=r({value:a.data.value,align:a.data.align}),t=e(null);s((()=>{t.value&&(t.value.innerHTML=l.value)}));const u=p((()=>({"sb-paragraph":!0,[`sb-paragraph_align-${l.align}`]:!0})));return()=>n("div",{class:u.value},[n("p",{class:"sb-paragraph__input",ref:t},null)])}});export default t; -//# sourceMappingURL=Paragraph.163a67b8.js.map +import{d as a,g as l,r,a as e,o as s,c as p,b as n}from"./index.08715002.js";var t=a({name:"sb-paragraph-edit",props:{blockId:{type:String,required:!0},data:{type:null,default:l}},setup(a){const l=r({value:a.data.value,align:a.data.align}),t=e(null);s((()=>{t.value&&(t.value.innerHTML=l.value)}));const u=p((()=>({"sb-paragraph":!0,[`sb-paragraph_align-${l.align}`]:!0})));return()=>n("div",{class:u.value},[n("p",{class:"sb-paragraph__input",ref:t},null)])}});export default t; +//# sourceMappingURL=Paragraph.784d4153.js.map diff --git a/docs/assets/Paragraph.163a67b8.js.map b/docs/assets/Paragraph.784d4153.js.map similarity index 92% rename from docs/assets/Paragraph.163a67b8.js.map rename to docs/assets/Paragraph.784d4153.js.map index ea34da7..aedbeb1 100644 --- a/docs/assets/Paragraph.163a67b8.js.map +++ b/docs/assets/Paragraph.784d4153.js.map @@ -1 +1 @@ -{"version":3,"file":"Paragraph.163a67b8.js","sources":["../../src/components/paragraph/Paragraph.jsx"],"sourcesContent":["import {\n defineComponent,\n reactive,\n computed,\n ref,\n onMounted,\n} from 'vue';\nimport { getDefaultData } from './util';\n\nimport './Paragraph.scss';\n\nexport default defineComponent({\n name: 'sb-paragraph-edit',\n\n props: {\n blockId: { type: String, required: true },\n data: {\n type: null,\n default: getDefaultData,\n },\n },\n\n setup(props) {\n const localData = reactive({\n value: props.data.value,\n align: props.data.align,\n });\n\n const inputEl = ref(null);\n onMounted(() => {\n if (inputEl.value) {\n inputEl.value.innerHTML = localData.value;\n }\n });\n\n const classes = computed(() => ({\n 'sb-paragraph': true,\n [`sb-paragraph_align-${localData.align}`]: true,\n }));\n\n return () => (\n