@juo/blocks 1.8.1 → 1.8.2
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/editor/components.d.ts.map +1 -1
- package/dist/editor.js +10 -4
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"components.d.ts","sourceRoot":"","sources":["../../src/editor/components.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"components.d.ts","sourceRoot":"","sources":["../../src/editor/components.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAygB9C,qBAAa,YAAa,SAAQ,WAAW;IAC3C,OAAO,CAAC,KAAK,CAA8B;IAC3C,OAAO,CAAC,YAAY,CAAwB;IAC5C,OAAO,CAAC,WAAW,CAA4B;IAC/C,OAAO,CAAC,WAAW,CAA4B;IAC/C,OAAO,CAAC,UAAU,CAAS;IAC3B,OAAO,CAAC,uBAAuB,CAA0C;IACzE,OAAO,CAAC,UAAU,CAA2B;IAC7C,OAAO,CAAC,OAAO,CAA4B;IAE3C,MAAM,KAAK,kBAAkB,aAE5B;;IASD,OAAO,CAAC,WAAW;IAMnB,OAAO,CAAC,aAAa;IA8GrB,OAAO,CAAC,eAAe;IAsCvB,OAAO,CAAC,cAAc;IAgCtB,OAAO,CAAC,uBAAuB;IAO/B,iBAAiB;IAuCjB;;;;;;;;;;;;;OAaG;IACH,OAAO,CAAC,MAAM,CAAC,oBAAoB;IAuBnC,OAAO,CAAC,kBAAkB,CAA4B;IAEtD,OAAO,CAAC,gBAAgB,CAUtB;IAEF,OAAO,CAAC,gBAAgB,CAKtB;IAEF,oBAAoB;IAUpB,OAAO,CAAC,UAAU;IAQlB,OAAO,CAAC,QAAQ;IAahB,OAAO,CAAC,SAAS;IAWjB,QAAQ,CAAC,KAAK,EAAE,aAAa;IAQ7B,OAAO,CAAC,iBAAiB;IAazB;;OAEG;IACH,OAAO,CAAC,gBAAgB;IAaxB,OAAO,CAAC,iBAAiB;CAmD1B;AAMD,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,0BAA0B,EAAE,YAAY,CAAC;KAC1C;CACF"}
|
package/dist/editor.js
CHANGED
|
@@ -717,7 +717,7 @@ const styles = `
|
|
|
717
717
|
:host(.active:hover) .block-wrapper__add-btn:hover .block-wrapper__add-btn-surface,
|
|
718
718
|
:host(.active) .block-wrapper__add-btn--menu-open .block-wrapper__add-btn-surface {
|
|
719
719
|
width: 60px;
|
|
720
|
-
border-radius:
|
|
720
|
+
border-radius: 2px;
|
|
721
721
|
padding: 0 6px;
|
|
722
722
|
}
|
|
723
723
|
|
|
@@ -769,8 +769,14 @@ const styles = `
|
|
|
769
769
|
</style>
|
|
770
770
|
`;
|
|
771
771
|
const blockIconSvg = `
|
|
772
|
-
<svg width="
|
|
773
|
-
<path d="
|
|
772
|
+
<svg width="14" height="12" viewBox="0 0 14 13" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
773
|
+
<path d="M2 9.34521H1V10.3452C1 11.4497 1.89453 12.3452 3 12.3452H4V11.3452H3C2.44727 11.3452 2 10.8979 2 10.3452V9.34521Z" fill="currentColor"/>
|
|
774
|
+
<path d="M2 3.34521H1V2.34521C1 1.24072 1.89453 0.345215 3 0.345215H4V1.34521H3C2.44727 1.34521 2 1.79248 2 2.34521V3.34521Z" fill="currentColor"/>
|
|
775
|
+
<path d="M10 1.34521V0.345215H11C12.1055 0.345215 13 1.24072 13 2.34521V3.34521H12V2.34521C12 2.24072 11.9844 2.14014 11.9551 2.04541C11.9023 1.87842 11.8066 1.72998 11.6816 1.61377C11.5039 1.44775 11.2637 1.34521 11 1.34521H10Z" fill="currentColor"/>
|
|
776
|
+
<path d="M12 9.34521H13V10.3452C13 11.4497 12.1055 12.3452 11 12.3452H10V11.3452H11C11.5527 11.3452 12 10.8979 12 10.3452V9.34521Z" fill="currentColor"/>
|
|
777
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M0 5.34521C0 4.79248 0.447266 4.34521 1 4.34521H13C13.5527 4.34521 14 4.79248 14 5.34521V7.34521C14 7.89795 13.5527 8.34521 13 8.34521H1C0.880859 8.34521 0.765625 8.32471 0.658203 8.28564C0.574219 8.25537 0.496094 8.21338 0.423828 8.1626C0.167969 7.98193 0 7.68311 0 7.34521V5.34521ZM1 5.34521H13V7.34521H1V5.34521Z" fill="currentColor"/>
|
|
778
|
+
<path d="M5.5 0.345215H8.5V1.34521H5.5V0.345215Z" fill="currentColor"/>
|
|
779
|
+
<path d="M8.5 11.3452H5.5V12.3452H8.5V11.3452Z" fill="currentColor"/>
|
|
774
780
|
</svg>
|
|
775
781
|
|
|
776
782
|
`;
|
|
@@ -1167,7 +1173,7 @@ async function serializeBlock(block) {
|
|
|
1167
1173
|
locales
|
|
1168
1174
|
};
|
|
1169
1175
|
}
|
|
1170
|
-
const EDITOR_BODY_TOP_PADDING_PX =
|
|
1176
|
+
const EDITOR_BODY_TOP_PADDING_PX = 48;
|
|
1171
1177
|
async function setupEditorMode(deps) {
|
|
1172
1178
|
const { routerService, themeState } = deps;
|
|
1173
1179
|
const padStyle = document.createElement("style");
|