@burger-editor/local 4.0.0-alpha.53 → 4.0.0-alpha.54
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/client.js +250 -17
- package/dist/client.js.map +1 -1
- package/package.json +7 -7
package/dist/client.js
CHANGED
|
@@ -1296,7 +1296,7 @@ var style$b = "/* No Styling */\n";
|
|
|
1296
1296
|
var template$b = "<a href=\"\" data-kind=\"primary\" data-before-icon=\"none\" data-after-icon=\"none\" data-bge=\"link:href, target:target, kind:data-kind, before-icon:data-before-icon, after-icon:data-after-icon\">\n\t<div>\n\t\t<span data-bge=\"text\">ボタン</span>\n\t\t<span data-bge=\"subtext\">サブテキスト</span>\n\t</div>\n</a>\n";
|
|
1297
1297
|
|
|
1298
1298
|
var button = createItem$1({
|
|
1299
|
-
version: "4.0.0-alpha.
|
|
1299
|
+
version: "4.0.0-alpha.53",
|
|
1300
1300
|
name: "button",
|
|
1301
1301
|
template: template$b,
|
|
1302
1302
|
style: style$b,
|
|
@@ -1352,7 +1352,7 @@ var style$a = "/* No Styling */\n";
|
|
|
1352
1352
|
var template$a = "<details data-bge=\"open:open\">\n\t<summary data-bge=\"summary\">折りたたみコンテンツ</summary>\n\t<div data-bge=\"content\"><p>内容を入力してください</p></div>\n</details>\n";
|
|
1353
1353
|
|
|
1354
1354
|
var details = createItem$1({
|
|
1355
|
-
version: "4.0.0-alpha.
|
|
1355
|
+
version: "4.0.0-alpha.53",
|
|
1356
1356
|
name: "details",
|
|
1357
1357
|
template: template$a,
|
|
1358
1358
|
style: style$a,
|
|
@@ -1366,7 +1366,7 @@ var style$9 = "[data-bgi='download-file'] {\n\t[data-bge*='size'] {\n\t\t&::befo
|
|
|
1366
1366
|
var template$9 = "<a href=\"./files/bgeditor/bg-sample.pdf\" target=\"_blank\" data-bge=\"path:href, download:download\">\n\t<div>\n\t\t<span data-bge=\"name\">サンプルダウンロードファイル</span>\n\t\t<span data-bge=\"formated-size, size:data-size\" data-size=\"138158\">134.92kB</span>\n\t</div>\n</a>\n";
|
|
1367
1367
|
|
|
1368
1368
|
var downloadFile = createItem$1({
|
|
1369
|
-
version: "4.0.0-alpha.
|
|
1369
|
+
version: "4.0.0-alpha.53",
|
|
1370
1370
|
name: "download-file",
|
|
1371
1371
|
template: template$9,
|
|
1372
1372
|
style: style$9,
|
|
@@ -1405,7 +1405,7 @@ var style$8 = "[data-bgi='google-maps'] {\n\tdiv {\n\t\tinline-size: 100%;\n\t\t
|
|
|
1405
1405
|
var template$8 = "<div data-lat=\"35.681382\" data-lng=\"139.766084\" data-zoom=\"16\" data-bge=\"lat:data-lat, lng:data-lng, zoom:data-zoom\">\n\t<img data-bge=\"img:src\" src=\"https://maps.google.com/maps/api/staticmap?center=35.681382,139.766084&zoom=16&size=640x400&markers=color:red|color:red|35.681382,139.766084&scale=2&key=%googleMapsApiKey%\" width=\"8\" height=\"5\" alt=\"Google Maps\" />\n</div>\n<a href=\"https://maps.apple.com/?q=35.681382,139.766084\" data-bge=\"url:href\" target=\"_blank\"><span>アプリで開く</span></a>\n";
|
|
1406
1406
|
|
|
1407
1407
|
var googleMaps = createItem$1({
|
|
1408
|
-
version: "4.0.0-alpha.
|
|
1408
|
+
version: "4.0.0-alpha.53",
|
|
1409
1409
|
name: "google-maps",
|
|
1410
1410
|
template: template$8,
|
|
1411
1411
|
style: style$8,
|
|
@@ -1540,7 +1540,7 @@ var style$7 = "[data-bgi='hr'] {\n\t--inline-size: 100%;\n\t--border-color: #000
|
|
|
1540
1540
|
var template$7 = "<div data-bgi-hr-kind=\"primary\" data-bge=\"kind:data-bgi-hr-kind\">\n\t<hr />\n</div>\n";
|
|
1541
1541
|
|
|
1542
1542
|
var hr = createItem$1({
|
|
1543
|
-
version: "4.0.0-alpha.
|
|
1543
|
+
version: "4.0.0-alpha.53",
|
|
1544
1544
|
name: "hr",
|
|
1545
1545
|
template: template$7,
|
|
1546
1546
|
style: style$7,
|
|
@@ -1630,7 +1630,7 @@ function createWidthState() {
|
|
|
1630
1630
|
|
|
1631
1631
|
const ORIGIN = "__org";
|
|
1632
1632
|
var image = createItem$1({
|
|
1633
|
-
version: "4.0.0-alpha.
|
|
1633
|
+
version: "4.0.0-alpha.53",
|
|
1634
1634
|
name: "image",
|
|
1635
1635
|
template: template$6,
|
|
1636
1636
|
style: style$6,
|
|
@@ -1828,7 +1828,7 @@ var style$5 = "[data-bgi='import'] {\n\tbge-import {\n\t\t&::before {\n\t\t\tfon
|
|
|
1828
1828
|
var template$5 = "<bge-import data-bge=\":src\" src=\"\"></bge-import>\n";
|
|
1829
1829
|
|
|
1830
1830
|
var importItem = createItem$1({
|
|
1831
|
-
version: "4.0.0-alpha.
|
|
1831
|
+
version: "4.0.0-alpha.53",
|
|
1832
1832
|
name: "import",
|
|
1833
1833
|
template: template$5,
|
|
1834
1834
|
style: style$5,
|
|
@@ -1842,7 +1842,7 @@ var style$4 = "/* No Styling */\n";
|
|
|
1842
1842
|
var template$4 = "<div data-bge=\":scrollable\" data-bge-scrollable=\"false\">\n\t<table>\n\t\t<caption data-bge=\"caption\">\n\t\t\tキャプションを入力してください\n\t\t</caption>\n\t\t<tbody data-bge-list>\n\t\t\t<tr>\n\t\t\t\t<th data-bge=\"th\">表組の見出し</th>\n\t\t\t\t<td data-bge=\"td\">表組の内容を入力してください</td>\n\t\t\t</tr>\n\t\t</tbody>\n\t</table>\n</div>\n";
|
|
1843
1843
|
|
|
1844
1844
|
var table = createItem$1({
|
|
1845
|
-
version: "4.0.0-alpha.
|
|
1845
|
+
version: "4.0.0-alpha.53",
|
|
1846
1846
|
name: "table",
|
|
1847
1847
|
template: template$4,
|
|
1848
1848
|
style: style$4,
|
|
@@ -1870,7 +1870,7 @@ var style$3 = "/* No Styling */\n";
|
|
|
1870
1870
|
var template$3 = "<h2 data-bge=\"title-h2\">見出しを入力してください</h2>\n";
|
|
1871
1871
|
|
|
1872
1872
|
var titleH2 = createItem$1({
|
|
1873
|
-
version: "4.0.0-alpha.
|
|
1873
|
+
version: "4.0.0-alpha.53",
|
|
1874
1874
|
name: "title-h2",
|
|
1875
1875
|
template: template$3,
|
|
1876
1876
|
style: style$3,
|
|
@@ -1884,7 +1884,7 @@ var style$2 = "/* No Styling */\n";
|
|
|
1884
1884
|
var template$2 = "<h3 data-bge=\"title-h3\">見出しを入力してください</h3>\n";
|
|
1885
1885
|
|
|
1886
1886
|
var titleH3 = createItem$1({
|
|
1887
|
-
version: "4.0.0-alpha.
|
|
1887
|
+
version: "4.0.0-alpha.53",
|
|
1888
1888
|
name: "title-h3",
|
|
1889
1889
|
template: template$2,
|
|
1890
1890
|
style: style$2,
|
|
@@ -1898,7 +1898,7 @@ var style$1 = "/* No Styling */\n";
|
|
|
1898
1898
|
var template$1 = "<div data-bge=\"wysiwyg\"><p>本文を入力してください</p></div>\n";
|
|
1899
1899
|
|
|
1900
1900
|
var wysiwyg = createItem$1({
|
|
1901
|
-
version: "4.0.0-alpha.
|
|
1901
|
+
version: "4.0.0-alpha.53",
|
|
1902
1902
|
name: "wysiwyg",
|
|
1903
1903
|
template: template$1,
|
|
1904
1904
|
style: style$1,
|
|
@@ -1913,7 +1913,7 @@ var template = "<div data-id=\"3KtWfp0UopM\" data-title=\"YouTube動画\" data-w
|
|
|
1913
1913
|
|
|
1914
1914
|
const FALLBACK_TITLE = "YouTube\u52D5\u753B";
|
|
1915
1915
|
var youtube = createItem$1({
|
|
1916
|
-
version: "4.0.0-alpha.
|
|
1916
|
+
version: "4.0.0-alpha.53",
|
|
1917
1917
|
name: "youtube",
|
|
1918
1918
|
template,
|
|
1919
1919
|
style: style$c,
|
|
@@ -1968,7 +1968,7 @@ const items = {
|
|
|
1968
1968
|
youtube
|
|
1969
1969
|
};
|
|
1970
1970
|
|
|
1971
|
-
var general = "[data-bge-container] {\n\t--bge-auto-repeat-base-width: calc(800 / 16 * 1rem);\n\n\t/* Custom max-width */\n\t--bge-options-max-width--normal: calc(800 / 16 * 1rem);\n\t--bge-options-max-width--small: calc(400 / 16 * 1rem);\n\t--bge-options-max-width--large: calc(1200 / 16 * 1rem);\n\t--bge-options-max-width--full: 100dvi;\n\t--bge-options-max-width: var(--bge-options-max-width--normal);\n\n\t/* Custom margin */\n\t--bge-options-margin--normal: 3rem;\n\t--bge-options-margin--none: 0;\n\t--bge-options-margin--small: 1rem;\n\t--bge-options-margin--large: 8rem;\n\t--bge-options-margin: var(--bge-options-margin--normal);\n\n\t/* Custom background color */\n\t--bge-options-bg-color--transparent: transparent;\n\t--bge-options-bg-color--white: #fff;\n\t--bge-options-bg-color--gray: #dfdfdf;\n\t--bge-options-bg-color--blue: #eaf3f8;\n\t--bge-options-bg-color--red: #fcc;\n\t--bge-options-bg-color: var(--bge-options-bg-color--transparent);\n\n\t/* Custom padding-block */\n\t--bge-options-padding-block--none: 0;\n\t--bge-options-padding-block--small: 1rem;\n\t--bge-options-padding-block--medium: 3rem;\n\t--bge-options-padding-block--large: 5rem;\n\t--bge-options-padding-block: var(--bge-options-padding-block--none);\n\n\t/* Custom padding-inline */\n\t--bge-options-padding-inline--default-gutter: 2rem;\n\t--bge-options-padding-inline--none: 0;\n\t--bge-options-padding-inline--small: 1rem;\n\t--bge-options-padding-inline--medium: 3rem;\n\t--bge-options-padding-inline--large: 5rem;\n\t--bge-options-padding-inline: var(--bge-options-padding-inline--default-gutter);\n\n\t/* Custom column gap */\n\t--bge-options-column-gap--normal: 1rem;\n\t--bge-options-column-gap--none: 0;\n\t--bge-options-column-gap--small: 0.5rem;\n\t--bge-options-column-gap--large: 5rem;\n\t--bge-options-column-gap: var(--bge-options-column-gap--normal);\n\n\t/* Custom row gap */\n\t--bge-options-row-gap--normal: 1rem;\n\t--bge-options-row-gap--none: 0;\n\t--bge-options-row-gap--small: 0.5rem;\n\t--bge-options-row-gap--large: 5rem;\n\t--bge-options-row-gap: var(--bge-options-row-gap--normal);\n\n\t/* Custom subgrid gap factor (grid type only) */\n\t--bge-options-_grid_subgrid-gap--normal: 1rem;\n\t--bge-options-_grid_subgrid-gap--none: 0;\n\t--bge-options-_grid_subgrid-gap--small: 0.5rem;\n\t--bge-options-_grid_subgrid-gap--large: 1rem;\n\t--bge-options-_grid_subgrid-gap: var(--bge-options-_grid_subgrid-gap--normal);\n}\n\n:where([data-bge-container]) {\n\t--_margin-block-end: var(--bge-options-margin);\n\t--_margin-block-end_when-last: 0;\n\tinline-size: 100%;\n\tmax-inline-size: var(--bge-options-max-width);\n\tpadding-block: var(--bge-options-padding-block);\n\tpadding-inline: var(--bge-options-padding-inline);\n\tmargin-block-end: var(--_margin-block-end);\n\tmargin-inline: auto;\n\tcontainer-name: bge-container;\n\tcontainer-type: inline-size;\n\tbackground-color: var(--bge-options-bg-color);\n\n\t&:where(:last-child) {\n\t\t--_margin-block-end: var(--_margin-block-end_when-last);\n\t}\n}\n\n:where([data-bge-container-frame]) {\n\tinline-size: 100%;\n\n\t/* Reset list styles for semantic container frames */\n\t&:is(ul, ol) {\n\t\tpadding: 0;\n\t\tmargin: 0;\n\t\tlist-style: none;\n\t}\n}\n\n:where([data-bge-container='grid'], [data-bge-container^='grid:']) {\n\t--_gap-block: var(--bge-options-row-gap, var(--bge-options-gap));\n\t--_gap-inline: var(--bge-options-column-gap, var(--bge-options-gap));\n\t--_subgrid-gap: var(--bge-options-_grid_subgrid-gap, var(--_gap-block));\n\n\t&:where([data-bge-container$=':2'], [data-bge-container*=':2:'])\n\t\t:where([data-bge-container-frame]) {\n\t\t--bge-grid-col: 2;\n\t}\n\n\t&:where([data-bge-container$=':3'], [data-bge-container*=':3:'])\n\t\t:where([data-bge-container-frame]) {\n\t\t--bge-grid-col: 3;\n\t}\n\n\t&:where([data-bge-container$=':4'], [data-bge-container*=':4:'])\n\t\t:where([data-bge-container-frame]) {\n\t\t--bge-grid-col: 4;\n\t}\n\n\t&:where([data-bge-container$=':5'], [data-bge-container*=':5:'])\n\t\t:where([data-bge-container-frame]) {\n\t\t--bge-grid-col: 5;\n\t}\n\n\t:where([data-bge-container-frame]) {\n\t\t--_grid-col: var(--bge-grid-col, 1);\n\t\t--_repeat-base-width: calc(var(--bge-auto-repeat-base-width) / var(--_grid-col));\n\t\tdisplay: grid;\n\t\tgrid-template-columns: repeat(var(--_grid-col), minmax(0, 1fr));\n\t\tgap: var(--_gap-block) var(--_gap-inline);\n\n\t\t&:is([data-bge-container*=':auto-fit:'] *) {\n\t\t\tgrid-template-columns: repeat(\n\t\t\t\tauto-fit,\n\t\t\t\tminmax(min(100%, var(--_repeat-base-width)), 1fr)\n\t\t\t);\n\t\t}\n\n\t\t&:is([data-bge-container*=':auto-fill:'] *) {\n\t\t\tgrid-template-columns: repeat(\n\t\t\t\tauto-fill,\n\t\t\t\tminmax(min(100%, var(--_repeat-base-width)), 1fr)\n\t\t\t);\n\t\t}\n\t}\n\n\t:where([data-bge-group]) {\n\t\t--item-count: 1;\n\t\tdisplay: grid;\n\t\tgrid-template-rows: subgrid;\n\t\tgrid-row: span var(--item-count);\n\t\tgap: var(--_subgrid-gap) 0;\n\n\t\t/* Reset list styles for semantic groups */\n\t\t&:is(li) {\n\t\t\tlist-style: none;\n\t\t}\n\n\t\t/* Subgrid hack 2 items */\n\t\t&[data-bge-group]:has([data-bge-item]:nth-child(2):last-child) {\n\t\t\t--item-count: 2;\n\t\t}\n\n\t\t/* Subgrid hack 3 items */\n\t\t&[data-bge-group]:has([data-bge-item]:nth-child(3):last-child) {\n\t\t\t--item-count: 3;\n\t\t}\n\n\t\t/* Subgrid hack 4 items */\n\t\t&[data-bge-group]:has([data-bge-item]:nth-child(4):last-child) {\n\t\t\t--item-count: 4;\n\t\t}\n\n\t\t/* Subgrid hack 5 items */\n\t\t&[data-bge-group]:has([data-bge-item]:nth-child(5):last-child) {\n\t\t\t--item-count: 5;\n\t\t}\n\n\t\t/* Subgrid hack 6 items */\n\t\t&[data-bge-group]:has([data-bge-item]:nth-child(6):last-child) {\n\t\t\t--item-count: 6;\n\t\t}\n\n\t\t/* Subgrid hack 7 items */\n\t\t&[data-bge-group]:has([data-bge-item]:nth-child(7):last-child) {\n\t\t\t--item-count: 7;\n\t\t}\n\n\t\t/* Subgrid hack 8 items */\n\t\t&[data-bge-group]:has([data-bge-item]:nth-child(8):last-child) {\n\t\t\t--item-count: 8;\n\t\t}\n\t}\n\n\t:where([data-bge-item]) {\n\t\tdisplay: flex;\n\t\talign-items: stretch;\n\t\talign-self: stretch;\n\t\tjustify-content: start;\n\t\tcontainer-name: bge-item;\n\t\tcontainer-type: inline-size;\n\n\t\t> * {\n\t\t\tflex: 0 0 100%;\n\t\t}\n\t}\n}\n\n:where([data-bge-container='inline'], [data-bge-container^='inline:']) {\n\t--_gap-block: var(--bge-options-row-gap, var(--bge-options-gap));\n\t--_gap-inline: var(--bge-options-column-gap, var(--bge-options-gap));\n\n\t:where([data-bge-container-frame]) {\n\t\tdisplay: flex;\n\t\tflex-wrap: wrap;\n\t\tgap: var(--_gap-block) var(--_gap-inline);\n\t\talign-items: stretch;\n\t\tjustify-content: center;\n\n\t\t&:where(:is([data-bge-container$=':center'], [data-bge-container*=':center:']) *) {\n\t\t\tjustify-content: center;\n\t\t}\n\n\t\t&:where(:is([data-bge-container$=':start'], [data-bge-container*=':start:']) *) {\n\t\t\tjustify-content: start;\n\t\t}\n\n\t\t&:where(:is([data-bge-container$=':end'], [data-bge-container*=':end:']) *) {\n\t\t\tjustify-content: end;\n\t\t}\n\n\t\t&:where(:is([data-bge-container$=':between'], [data-bge-container*=':between:']) *) {\n\t\t\tjustify-content: space-between;\n\t\t}\n\n\t\t&:where(:is([data-bge-container$=':around'], [data-bge-container*=':around:']) *) {\n\t\t\tjustify-content: space-around;\n\t\t}\n\n\t\t&:where(:is([data-bge-container$=':evenly'], [data-bge-container*=':evenly:']) *) {\n\t\t\tjustify-content: space-evenly;\n\t\t}\n\n\t\t&:where(\n\t\t\t:is([data-bge-container$=':align-center'], [data-bge-container*=':align-center:']) *\n\t\t) {\n\t\t\talign-items: center;\n\t\t}\n\n\t\t&:where(\n\t\t\t:is([data-bge-container$=':align-start'], [data-bge-container*=':align-start:']) *\n\t\t) {\n\t\t\talign-items: start;\n\t\t}\n\n\t\t&:where(\n\t\t\t:is([data-bge-container$=':align-end'], [data-bge-container*=':align-end:']) *\n\t\t) {\n\t\t\talign-items: end;\n\t\t}\n\n\t\t&:where(\n\t\t\t:is([data-bge-container$=':align-stretch'], [data-bge-container*=':align-stretch:'])\n\t\t\t\t*\n\t\t) {\n\t\t\talign-items: stretch;\n\t\t}\n\n\t\t&:where(\n\t\t\t:is(\n\t\t\t\t\t[data-bge-container$=':align-baseline'],\n\t\t\t\t\t[data-bge-container*=':align-baseline:']\n\t\t\t\t)\n\t\t\t\t*\n\t\t) {\n\t\t\t--align: baseline;\n\t\t}\n\n\t\t&:where(:is([data-bge-container$=':wrap'], [data-bge-container*=':wrap:']) *) {\n\t\t\tflex-wrap: wrap;\n\t\t}\n\n\t\t&:where(:is([data-bge-container$=':nowrap'], [data-bge-container*=':nowrap:']) *) {\n\t\t\tflex-wrap: nowrap;\n\t\t}\n\t}\n\n\t&:where([data-bge-container$=':immutable'], [data-bge-container*=':immutable:']) {\n\t\t/* Left-right split box with resizable item (has `[data-bge-scale]`) on one side */\n\t\t&:has([data-bge-group]:nth-child(2):last-child) {\n\t\t\t:where([data-bge-group]) {\n\t\t\t\t&:has([data-bge-scale]) {\n\t\t\t\t\tflex-grow: 0;\n\t\t\t\t\tflex-shrink: 0;\n\t\t\t\t}\n\n\t\t\t\t&:not(:has([data-bge-scale])) {\n\t\t\t\t\tflex-grow: 1;\n\t\t\t\t\tflex-shrink: 1;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t/* Standard with immutable container */\n\t\t:where([data-bge-group]) {\n\t\t\tflex: 1 1 auto;\n\t\t}\n\t}\n}\n\n:where([data-bge-container='float'], [data-bge-container^='float:']) {\n\t--_gap-block: var(--bge-options-row-gap, var(--bge-options-gap));\n\t--_gap-inline: var(--bge-options-column-gap, var(--bge-options-gap));\n\t--bge-grid-float: none;\n\t--margin-inline: 0;\n\n\t&:where([data-bge-container$=':start'], [data-bge-container*=':start:']) {\n\t\t--bge-grid-float: inline-start;\n\t\t--margin-inline: 0 var(--_gap-inline);\n\t}\n\n\t&:where([data-bge-container$=':end'], [data-bge-container*=':end:']) {\n\t\t--bge-grid-float: inline-end;\n\t\t--margin-inline: var(--_gap-inline) 0;\n\t}\n\n\t:where([data-bge-container-frame]) {\n\t\t&::after {\n\t\t\tclear: both;\n\t\t\tdisplay: block;\n\t\t\tcontent: '';\n\t\t}\n\n\t\t& > :where(:first-child) {\n\t\t\tfloat: var(--bge-grid-float, none);\n\t\t\tinline-size: fit-content;\n\t\t\tmargin-inline: var(--margin-inline);\n\t\t}\n\t}\n}\n\n/**\n * MARK: Wysiwyg内 横並び(フレックス)ボックス\n */\n:where([data-bgc-flex-box]) {\n\t--_gap-block: var(--bge-options-row-gap, var(--bge-options-gap));\n\t--_gap-inline: var(--bge-options-column-gap, var(--bge-options-gap));\n\tdisplay: flex;\n\tflex-wrap: wrap;\n\tgap: var(--_gap-block) var(--_gap-inline);\n\talign-items: center;\n\n\t&[data-bgc-flex-box='start'] {\n\t\tjustify-content: start;\n\t}\n\n\t&[data-bgc-flex-box='end'] {\n\t\tjustify-content: end;\n\t}\n\n\t&[data-bgc-flex-box='center'] {\n\t\tjustify-content: center;\n\t}\n\n\t&[data-bgc-flex-box='between'] {\n\t\tjustify-content: space-between;\n\t}\n\n\t&[data-bgc-flex-box='around'] {\n\t\tjustify-content: space-around;\n\t}\n\n\t&[data-bgc-flex-box='evenly'] {\n\t\tjustify-content: space-evenly;\n\t}\n}\n";
|
|
1971
|
+
var general = "[data-bge-container] {\n\t--bge-auto-repeat-base-width: calc(800 / 16 * 1rem);\n\n\t/* Custom max-width */\n\t--bge-options-max-width--normal: calc(800 / 16 * 1rem);\n\t--bge-options-max-width--small: calc(400 / 16 * 1rem);\n\t--bge-options-max-width--large: calc(1200 / 16 * 1rem);\n\t--bge-options-max-width--full: 100dvi;\n\t--bge-options-max-width: var(--bge-options-max-width--normal);\n\n\t/* Custom margin */\n\t--bge-options-margin--normal: 3rem;\n\t--bge-options-margin--none: 0;\n\t--bge-options-margin--small: 1rem;\n\t--bge-options-margin--large: 8rem;\n\t--bge-options-margin: var(--bge-options-margin--normal);\n\n\t/* Custom background color */\n\t--bge-options-bg-color--transparent: transparent;\n\t--bge-options-bg-color--white: #fff;\n\t--bge-options-bg-color--gray: #dfdfdf;\n\t--bge-options-bg-color--blue: #eaf3f8;\n\t--bge-options-bg-color--red: #fcc;\n\t--bge-options-bg-color: var(--bge-options-bg-color--transparent);\n\n\t/* Custom padding-block */\n\t--bge-options-padding-block--none: 0;\n\t--bge-options-padding-block--small: 1rem;\n\t--bge-options-padding-block--medium: 3rem;\n\t--bge-options-padding-block--large: 5rem;\n\t--bge-options-padding-block: var(--bge-options-padding-block--none);\n\n\t/* Custom padding-inline */\n\t--bge-options-padding-inline--default-gutter: 2rem;\n\t--bge-options-padding-inline--none: 0;\n\t--bge-options-padding-inline--small: 1rem;\n\t--bge-options-padding-inline--medium: 3rem;\n\t--bge-options-padding-inline--large: 5rem;\n\t--bge-options-padding-inline: var(--bge-options-padding-inline--default-gutter);\n\n\t/* Custom column gap */\n\t--bge-options-column-gap--normal: 1rem;\n\t--bge-options-column-gap--none: 0;\n\t--bge-options-column-gap--small: 0.5rem;\n\t--bge-options-column-gap--large: 5rem;\n\t--bge-options-column-gap: var(--bge-options-column-gap--normal);\n\n\t/* Custom row gap */\n\t--bge-options-row-gap--normal: 1rem;\n\t--bge-options-row-gap--none: 0;\n\t--bge-options-row-gap--small: 0.5rem;\n\t--bge-options-row-gap--large: 5rem;\n\t--bge-options-row-gap: var(--bge-options-row-gap--normal);\n\n\t/* Custom subgrid gap factor (grid type only) */\n\t--bge-options-_grid_subgrid-gap--normal: 1rem;\n\t--bge-options-_grid_subgrid-gap--none: 0;\n\t--bge-options-_grid_subgrid-gap--small: 0.5rem;\n\t--bge-options-_grid_subgrid-gap--large: 1rem;\n\t--bge-options-_grid_subgrid-gap: var(--bge-options-_grid_subgrid-gap--normal);\n}\n\n:where([data-bge-container]) {\n\t--_margin-block-end: var(--bge-options-margin);\n\t--_margin-block-end_when-last: 0;\n\tinline-size: 100%;\n\tmax-inline-size: var(--bge-options-max-width);\n\tpadding-block: var(--bge-options-padding-block);\n\tpadding-inline: var(--bge-options-padding-inline);\n\tmargin-block-end: var(--_margin-block-end);\n\tmargin-inline: auto;\n\tcontainer-name: bge-container;\n\tcontainer-type: inline-size;\n\tbackground-color: var(--bge-options-bg-color);\n\n\t&:where(:last-child) {\n\t\t--_margin-block-end: var(--_margin-block-end_when-last);\n\t}\n}\n\n:where([data-bge-container-frame]) {\n\tinline-size: 100%;\n\n\t/* Reset list styles for semantic container frames */\n\t&:is(ul, ol) {\n\t\tpadding: 0;\n\t\tmargin: 0;\n\t\tlist-style: none;\n\t}\n}\n\n:where([data-bge-container='grid'], [data-bge-container^='grid:']) {\n\t--_gap-block: var(--bge-options-row-gap, var(--bge-options-gap));\n\t--_gap-inline: var(--bge-options-column-gap, var(--bge-options-gap));\n\t--_subgrid-gap: var(--bge-options-_grid_subgrid-gap, var(--_gap-block));\n\n\t&:where([data-bge-container$=':2'], [data-bge-container*=':2:'])\n\t\t:where([data-bge-container-frame]) {\n\t\t--bge-grid-col: 2;\n\t}\n\n\t&:where([data-bge-container$=':3'], [data-bge-container*=':3:'])\n\t\t:where([data-bge-container-frame]) {\n\t\t--bge-grid-col: 3;\n\t}\n\n\t&:where([data-bge-container$=':4'], [data-bge-container*=':4:'])\n\t\t:where([data-bge-container-frame]) {\n\t\t--bge-grid-col: 4;\n\t}\n\n\t&:where([data-bge-container$=':5'], [data-bge-container*=':5:'])\n\t\t:where([data-bge-container-frame]) {\n\t\t--bge-grid-col: 5;\n\t}\n\n\t:where([data-bge-container-frame]) {\n\t\t--_grid-col: var(--bge-grid-col, 1);\n\t\t--_repeat-base-width: calc(var(--bge-auto-repeat-base-width) / var(--_grid-col));\n\t\tdisplay: grid;\n\t\tgrid-template-columns: repeat(var(--_grid-col), minmax(0, 1fr));\n\t\tgap: var(--_gap-block) var(--_gap-inline);\n\n\t\t&:is([data-bge-container*=':auto-fit:'] *) {\n\t\t\tgrid-template-columns: repeat(\n\t\t\t\tauto-fit,\n\t\t\t\tminmax(min(100%, var(--_repeat-base-width)), 1fr)\n\t\t\t);\n\t\t}\n\n\t\t&:is([data-bge-container*=':auto-fill:'] *) {\n\t\t\tgrid-template-columns: repeat(\n\t\t\t\tauto-fill,\n\t\t\t\tminmax(min(100%, var(--_repeat-base-width)), 1fr)\n\t\t\t);\n\t\t}\n\t}\n\n\t:where([data-bge-group]) {\n\t\t--item-count: 1;\n\t\tdisplay: grid;\n\t\tgrid-template-rows: subgrid;\n\t\tgrid-row: span var(--item-count);\n\t\tgap: var(--_subgrid-gap) 0;\n\n\t\t/* Reset list styles for semantic groups */\n\t\t&:is(li) {\n\t\t\tlist-style: none;\n\t\t}\n\n\t\t/* Subgrid hack 2 items */\n\t\t&[data-bge-group]:has([data-bge-item]:nth-child(2):last-child) {\n\t\t\t--item-count: 2;\n\t\t}\n\n\t\t/* Subgrid hack 3 items */\n\t\t&[data-bge-group]:has([data-bge-item]:nth-child(3):last-child) {\n\t\t\t--item-count: 3;\n\t\t}\n\n\t\t/* Subgrid hack 4 items */\n\t\t&[data-bge-group]:has([data-bge-item]:nth-child(4):last-child) {\n\t\t\t--item-count: 4;\n\t\t}\n\n\t\t/* Subgrid hack 5 items */\n\t\t&[data-bge-group]:has([data-bge-item]:nth-child(5):last-child) {\n\t\t\t--item-count: 5;\n\t\t}\n\n\t\t/* Subgrid hack 6 items */\n\t\t&[data-bge-group]:has([data-bge-item]:nth-child(6):last-child) {\n\t\t\t--item-count: 6;\n\t\t}\n\n\t\t/* Subgrid hack 7 items */\n\t\t&[data-bge-group]:has([data-bge-item]:nth-child(7):last-child) {\n\t\t\t--item-count: 7;\n\t\t}\n\n\t\t/* Subgrid hack 8 items */\n\t\t&[data-bge-group]:has([data-bge-item]:nth-child(8):last-child) {\n\t\t\t--item-count: 8;\n\t\t}\n\t}\n\n\t:where([data-bge-item]) {\n\t\tdisplay: flex;\n\t\talign-items: stretch;\n\t\talign-self: stretch;\n\t\tjustify-content: start;\n\t\tcontainer-name: bge-item;\n\t\tcontainer-type: inline-size;\n\n\t\t> * {\n\t\t\tflex: 0 0 100%;\n\t\t}\n\t}\n}\n\n:where([data-bge-container='inline'], [data-bge-container^='inline:']) {\n\t--_gap-block: var(--bge-options-row-gap, var(--bge-options-gap));\n\t--_gap-inline: var(--bge-options-column-gap, var(--bge-options-gap));\n\n\t:where([data-bge-container-frame]) {\n\t\tdisplay: flex;\n\t\tflex-wrap: wrap;\n\t\tgap: var(--_gap-block) var(--_gap-inline);\n\t\talign-items: stretch;\n\t\tjustify-content: center;\n\n\t\t&:where(:is([data-bge-container$=':center'], [data-bge-container*=':center:']) *) {\n\t\t\tjustify-content: center;\n\t\t}\n\n\t\t&:where(:is([data-bge-container$=':start'], [data-bge-container*=':start:']) *) {\n\t\t\tjustify-content: start;\n\t\t}\n\n\t\t&:where(:is([data-bge-container$=':end'], [data-bge-container*=':end:']) *) {\n\t\t\tjustify-content: end;\n\t\t}\n\n\t\t&:where(:is([data-bge-container$=':between'], [data-bge-container*=':between:']) *) {\n\t\t\tjustify-content: space-between;\n\t\t}\n\n\t\t&:where(:is([data-bge-container$=':around'], [data-bge-container*=':around:']) *) {\n\t\t\tjustify-content: space-around;\n\t\t}\n\n\t\t&:where(:is([data-bge-container$=':evenly'], [data-bge-container*=':evenly:']) *) {\n\t\t\tjustify-content: space-evenly;\n\t\t}\n\n\t\t&:where(\n\t\t\t:is([data-bge-container$=':align-center'], [data-bge-container*=':align-center:']) *\n\t\t) {\n\t\t\talign-items: center;\n\t\t}\n\n\t\t&:where(\n\t\t\t:is([data-bge-container$=':align-start'], [data-bge-container*=':align-start:']) *\n\t\t) {\n\t\t\talign-items: start;\n\t\t}\n\n\t\t&:where(\n\t\t\t:is([data-bge-container$=':align-end'], [data-bge-container*=':align-end:']) *\n\t\t) {\n\t\t\talign-items: end;\n\t\t}\n\n\t\t&:where(\n\t\t\t:is([data-bge-container$=':align-stretch'], [data-bge-container*=':align-stretch:'])\n\t\t\t\t*\n\t\t) {\n\t\t\talign-items: stretch;\n\t\t}\n\n\t\t&:where(\n\t\t\t:is(\n\t\t\t\t\t[data-bge-container$=':align-baseline'],\n\t\t\t\t\t[data-bge-container*=':align-baseline:']\n\t\t\t\t)\n\t\t\t\t*\n\t\t) {\n\t\t\t--align: baseline;\n\t\t}\n\n\t\t&:where(:is([data-bge-container$=':wrap'], [data-bge-container*=':wrap:']) *) {\n\t\t\tflex-wrap: wrap;\n\t\t}\n\n\t\t&:where(:is([data-bge-container$=':nowrap'], [data-bge-container*=':nowrap:']) *) {\n\t\t\tflex-wrap: nowrap;\n\t\t}\n\t}\n\n\t&:where([data-bge-container$=':immutable'], [data-bge-container*=':immutable:']) {\n\t\t/* Left-right split box with resizable item (has `[data-bge-scale]`) on one side */\n\t\t&:has([data-bge-group]:nth-child(2):last-child) {\n\t\t\t:where([data-bge-group]) {\n\t\t\t\t&:has([data-bge-scale]) {\n\t\t\t\t\tflex-grow: 0;\n\t\t\t\t\tflex-shrink: 0;\n\t\t\t\t}\n\n\t\t\t\t&:not(:has([data-bge-scale])) {\n\t\t\t\t\tflex-grow: 1;\n\t\t\t\t\tflex-shrink: 1;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t/* Standard with immutable container */\n\t\t:where([data-bge-group]) {\n\t\t\tflex: 1 1 auto;\n\t\t}\n\t}\n}\n\n:where([data-bge-container='float'], [data-bge-container^='float:']) {\n\t--_gap-block: var(--bge-options-row-gap, var(--bge-options-gap));\n\t--_gap-inline: var(--bge-options-column-gap, var(--bge-options-gap));\n\t--bge-grid-float: none;\n\t--margin-inline: 0;\n\n\t&:where([data-bge-container$=':start'], [data-bge-container*=':start:']) {\n\t\t--bge-grid-float: inline-start;\n\t\t--margin-inline: 0 var(--_gap-inline);\n\t}\n\n\t&:where([data-bge-container$=':end'], [data-bge-container*=':end:']) {\n\t\t--bge-grid-float: inline-end;\n\t\t--margin-inline: var(--_gap-inline) 0;\n\t}\n\n\t:where([data-bge-container-frame]) {\n\t\t&::after {\n\t\t\tclear: both;\n\t\t\tdisplay: block;\n\t\t\tcontent: '';\n\t\t}\n\n\t\t& > :where(:first-child) {\n\t\t\tfloat: var(--bge-grid-float, none);\n\t\t\tinline-size: fit-content;\n\t\t\tmargin-inline: var(--margin-inline);\n\t\t}\n\t}\n}\n\n/**\n * MARK: Wysiwyg内 横並び(フレックス)ボックス\n */\n:where([data-bgc-flex-box]) {\n\t--_gap-block: var(--bge-options-row-gap, var(--bge-options-gap));\n\t--_gap-inline: var(--bge-options-column-gap, var(--bge-options-gap));\n\tdisplay: flex;\n\tflex-wrap: wrap;\n\tgap: var(--_gap-block) var(--_gap-inline);\n\talign-items: center;\n\n\t&[data-bgc-flex-box='start'] {\n\t\tjustify-content: start;\n\t}\n\n\t&[data-bgc-flex-box='end'] {\n\t\tjustify-content: end;\n\t}\n\n\t&[data-bgc-flex-box='center'] {\n\t\tjustify-content: center;\n\t}\n\n\t&[data-bgc-flex-box='between'] {\n\t\tjustify-content: space-between;\n\t}\n\n\t&[data-bgc-flex-box='around'] {\n\t\tjustify-content: space-around;\n\t}\n\n\t&[data-bgc-flex-box='evenly'] {\n\t\tjustify-content: space-evenly;\n\t}\n}\n\n/**\n * MARK: Wysiwyg内 段落整列\n */\n:where([data-bgc-align]) {\n\t&[data-bgc-align='start'] {\n\t\ttext-align: start;\n\t}\n\n\t&[data-bgc-align='center'] {\n\t\ttext-align: center;\n\t}\n\n\t&[data-bgc-align='end'] {\n\t\ttext-align: end;\n\t}\n}\n";
|
|
1972
1972
|
|
|
1973
1973
|
function changeFrameSemantics(el, frameSemantics) {
|
|
1974
1974
|
const containerFrame = el.querySelector("[data-bge-container-frame]");
|
|
@@ -6796,7 +6796,8 @@ class BurgerEditorEngine {
|
|
|
6796
6796
|
const res = await fetch(sheet.path);
|
|
6797
6797
|
return res.text();
|
|
6798
6798
|
}));
|
|
6799
|
-
|
|
6799
|
+
const stylesheets = [this.css.generalCSS, ...css];
|
|
6800
|
+
this.#contentStylesheetCache = stylesheets.join("\n");
|
|
6800
6801
|
return this.#contentStylesheetCache;
|
|
6801
6802
|
}
|
|
6802
6803
|
});
|
|
@@ -7023,6 +7024,9 @@ class BurgerEditorEngine {
|
|
|
7023
7024
|
}
|
|
7024
7025
|
}
|
|
7025
7026
|
const IconAlignBoxCenterStretch = '<svg\n xmlns="http://www.w3.org/2000/svg"\n width="24"\n height="24"\n viewBox="0 0 24 24"\n fill="none"\n stroke="currentColor"\n stroke-width="2"\n stroke-linecap="round"\n stroke-linejoin="round"\n class="icon icon-tabler icons-tabler-outline icon-tabler-align-box-center-stretch"\n>\n <path stroke="none" d="M0 0h24v24H0z" fill="none"/>\n <path d="M3 19v-14a2 2 0 0 1 2 -2h14a2 2 0 0 1 2 2v14a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2" />\n <path d="M11 17h2" />\n <path d="M9 12h6" />\n <path d="M10 7h4" />\n</svg>';
|
|
7027
|
+
const IconAlignCenter = '<svg\n xmlns="http://www.w3.org/2000/svg"\n width="24"\n height="24"\n viewBox="0 0 24 24"\n fill="none"\n stroke="currentColor"\n stroke-width="2"\n stroke-linecap="round"\n stroke-linejoin="round"\n class="icon icon-tabler icons-tabler-outline icon-tabler-align-center"\n>\n <path stroke="none" d="M0 0h24v24H0z" fill="none"/>\n <path d="M4 6l16 0" />\n <path d="M8 12l8 0" />\n <path d="M6 18l12 0" />\n</svg>';
|
|
7028
|
+
const IconAlignLeft = '<svg\n xmlns="http://www.w3.org/2000/svg"\n width="24"\n height="24"\n viewBox="0 0 24 24"\n fill="none"\n stroke="currentColor"\n stroke-width="2"\n stroke-linecap="round"\n stroke-linejoin="round"\n class="icon icon-tabler icons-tabler-outline icon-tabler-align-left"\n>\n <path stroke="none" d="M0 0h24v24H0z" fill="none"/>\n <path d="M4 6l16 0" />\n <path d="M4 12l10 0" />\n <path d="M4 18l14 0" />\n</svg>';
|
|
7029
|
+
const IconAlignRight = '<svg\n xmlns="http://www.w3.org/2000/svg"\n width="24"\n height="24"\n viewBox="0 0 24 24"\n fill="none"\n stroke="currentColor"\n stroke-width="2"\n stroke-linecap="round"\n stroke-linejoin="round"\n class="icon icon-tabler icons-tabler-outline icon-tabler-align-right"\n>\n <path stroke="none" d="M0 0h24v24H0z" fill="none"/>\n <path d="M4 6l16 0" />\n <path d="M10 12l10 0" />\n <path d="M6 18l14 0" />\n</svg>';
|
|
7026
7030
|
const IconBlockquote = '<svg\n xmlns="http://www.w3.org/2000/svg"\n width="24"\n height="24"\n viewBox="0 0 24 24"\n fill="none"\n stroke="currentColor"\n stroke-width="2"\n stroke-linecap="round"\n stroke-linejoin="round"\n class="icon icon-tabler icons-tabler-outline icon-tabler-blockquote"\n>\n <path stroke="none" d="M0 0h24v24H0z" fill="none"/>\n <path d="M6 15h15" />\n <path d="M21 19h-15" />\n <path d="M15 11h6" />\n <path d="M21 7h-6" />\n <path d="M9 9h1a1 1 0 1 1 -1 1v-2.5a2 2 0 0 1 2 -2" />\n <path d="M3 9h1a1 1 0 1 1 -1 1v-2.5a2 2 0 0 1 2 -2" />\n</svg>';
|
|
7027
7031
|
const IconBold = '<svg\n xmlns="http://www.w3.org/2000/svg"\n width="24"\n height="24"\n viewBox="0 0 24 24"\n fill="none"\n stroke="currentColor"\n stroke-width="2"\n stroke-linecap="round"\n stroke-linejoin="round"\n class="icon icon-tabler icons-tabler-outline icon-tabler-bold"\n>\n <path stroke="none" d="M0 0h24v24H0z" fill="none"/>\n <path d="M7 5h6a3.5 3.5 0 0 1 0 7h-6l0 -7" />\n <path d="M13 12h1a3.5 3.5 0 0 1 0 7h-7v-7" />\n</svg>';
|
|
7028
7032
|
const IconCloud = '<svg\n xmlns="http://www.w3.org/2000/svg"\n width="24"\n height="24"\n viewBox="0 0 24 24"\n fill="none"\n stroke="currentColor"\n stroke-width="2"\n stroke-linecap="round"\n stroke-linejoin="round"\n class="icon icon-tabler icons-tabler-outline icon-tabler-cloud"\n>\n <path stroke="none" d="M0 0h24v24H0z" fill="none"/>\n <path d="M6.657 18c-2.572 0 -4.657 -2.007 -4.657 -4.483c0 -2.475 2.085 -4.482 4.657 -4.482c.393 -1.762 1.794 -3.2 3.675 -3.773c1.88 -.572 3.956 -.193 5.444 1c1.488 1.19 2.162 3.007 1.77 4.769h.99c1.913 0 3.464 1.56 3.464 3.486c0 1.927 -1.551 3.487 -3.465 3.487h-11.878" />\n</svg>';
|
|
@@ -7039,6 +7043,8 @@ const IconOrderedList = '<svg\n xmlns="http://www.w3.org/2000/svg"\n width="24
|
|
|
7039
7043
|
const IconBulletList = '<svg\n xmlns="http://www.w3.org/2000/svg"\n width="24"\n height="24"\n viewBox="0 0 24 24"\n fill="none"\n stroke="currentColor"\n stroke-width="2"\n stroke-linecap="round"\n stroke-linejoin="round"\n class="icon icon-tabler icons-tabler-outline icon-tabler-list"\n>\n <path stroke="none" d="M0 0h24v24H0z" fill="none"/>\n <path d="M9 6l11 0" />\n <path d="M9 12l11 0" />\n <path d="M9 18l11 0" />\n <path d="M5 6l0 .01" />\n <path d="M5 12l0 .01" />\n <path d="M5 18l0 .01" />\n</svg>';
|
|
7040
7044
|
const IconNotes = '<svg\n xmlns="http://www.w3.org/2000/svg"\n width="24"\n height="24"\n viewBox="0 0 24 24"\n fill="none"\n stroke="currentColor"\n stroke-width="2"\n stroke-linecap="round"\n stroke-linejoin="round"\n class="icon icon-tabler icons-tabler-outline icon-tabler-notes"\n>\n <path stroke="none" d="M0 0h24v24H0z" fill="none"/>\n <path d="M5 5a2 2 0 0 1 2 -2h10a2 2 0 0 1 2 2v14a2 2 0 0 1 -2 2h-10a2 2 0 0 1 -2 -2l0 -14" />\n <path d="M9 7l6 0" />\n <path d="M9 11l6 0" />\n <path d="M9 15l4 0" />\n</svg>';
|
|
7041
7045
|
const IconStrikethrough = '<svg\n xmlns="http://www.w3.org/2000/svg"\n width="24"\n height="24"\n viewBox="0 0 24 24"\n fill="none"\n stroke="currentColor"\n stroke-width="2"\n stroke-linecap="round"\n stroke-linejoin="round"\n class="icon icon-tabler icons-tabler-outline icon-tabler-strikethrough"\n>\n <path stroke="none" d="M0 0h24v24H0z" fill="none"/>\n <path d="M5 12l14 0" />\n <path d="M16 6.5a4 2 0 0 0 -4 -1.5h-1a3.5 3.5 0 0 0 0 7h2a3.5 3.5 0 0 1 0 7h-1.5a4 2 0 0 1 -4 -1.5" />\n</svg>';
|
|
7046
|
+
const IconSubscript = '<svg\n xmlns="http://www.w3.org/2000/svg"\n width="24"\n height="24"\n viewBox="0 0 24 24"\n fill="none"\n stroke="currentColor"\n stroke-width="2"\n stroke-linecap="round"\n stroke-linejoin="round"\n class="icon icon-tabler icons-tabler-outline icon-tabler-subscript"\n>\n <path stroke="none" d="M0 0h24v24H0z" fill="none"/>\n <path d="M5 7l8 10m-8 0l8 -10" />\n <path d="M21 20h-4l3.5 -4a1.73 1.73 0 0 0 -3.5 -2" />\n</svg>';
|
|
7047
|
+
const IconSuperscript = '<svg\n xmlns="http://www.w3.org/2000/svg"\n width="24"\n height="24"\n viewBox="0 0 24 24"\n fill="none"\n stroke="currentColor"\n stroke-width="2"\n stroke-linecap="round"\n stroke-linejoin="round"\n class="icon icon-tabler icons-tabler-outline icon-tabler-superscript"\n>\n <path stroke="none" d="M0 0h24v24H0z" fill="none"/>\n <path d="M5 7l8 10m-8 0l8 -10" />\n <path d="M21 11h-4l3.5 -4a1.73 1.73 0 0 0 -3.5 -2" />\n</svg>';
|
|
7042
7048
|
const IconUnderline = '<svg\n xmlns="http://www.w3.org/2000/svg"\n width="24"\n height="24"\n viewBox="0 0 24 24"\n fill="none"\n stroke="currentColor"\n stroke-width="2"\n stroke-linecap="round"\n stroke-linejoin="round"\n class="icon icon-tabler icons-tabler-outline icon-tabler-underline"\n>\n <path stroke="none" d="M0 0h24v24H0z" fill="none"/>\n <path d="M7 5v5a5 5 0 0 0 10 0v-5" />\n <path d="M5 19h14" />\n</svg>';
|
|
7043
7049
|
function OrderedMap(content) {
|
|
7044
7050
|
this.content = content;
|
|
@@ -28280,6 +28286,7 @@ var Paragraph = Node3.create({
|
|
|
28280
28286
|
};
|
|
28281
28287
|
}
|
|
28282
28288
|
});
|
|
28289
|
+
var index_default$3 = Paragraph;
|
|
28283
28290
|
var inputRegex$1 = /(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))$/;
|
|
28284
28291
|
var pasteRegex = /(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))/g;
|
|
28285
28292
|
var Strike = Mark2.create({
|
|
@@ -29724,7 +29731,99 @@ var StarterKit = Extension.create({
|
|
|
29724
29731
|
return extensions;
|
|
29725
29732
|
}
|
|
29726
29733
|
});
|
|
29727
|
-
var index_default = StarterKit;
|
|
29734
|
+
var index_default$2 = StarterKit;
|
|
29735
|
+
var Subscript = Mark2.create({
|
|
29736
|
+
name: "subscript",
|
|
29737
|
+
addOptions() {
|
|
29738
|
+
return {
|
|
29739
|
+
HTMLAttributes: {}
|
|
29740
|
+
};
|
|
29741
|
+
},
|
|
29742
|
+
parseHTML() {
|
|
29743
|
+
return [
|
|
29744
|
+
{
|
|
29745
|
+
tag: "sub"
|
|
29746
|
+
},
|
|
29747
|
+
{
|
|
29748
|
+
style: "vertical-align",
|
|
29749
|
+
getAttrs(value) {
|
|
29750
|
+
if (value !== "sub") {
|
|
29751
|
+
return false;
|
|
29752
|
+
}
|
|
29753
|
+
return null;
|
|
29754
|
+
}
|
|
29755
|
+
}
|
|
29756
|
+
];
|
|
29757
|
+
},
|
|
29758
|
+
renderHTML({ HTMLAttributes }) {
|
|
29759
|
+
return ["sub", mergeAttributes(this.options.HTMLAttributes, HTMLAttributes), 0];
|
|
29760
|
+
},
|
|
29761
|
+
addCommands() {
|
|
29762
|
+
return {
|
|
29763
|
+
setSubscript: () => ({ commands }) => {
|
|
29764
|
+
return commands.setMark(this.name);
|
|
29765
|
+
},
|
|
29766
|
+
toggleSubscript: () => ({ commands }) => {
|
|
29767
|
+
return commands.toggleMark(this.name);
|
|
29768
|
+
},
|
|
29769
|
+
unsetSubscript: () => ({ commands }) => {
|
|
29770
|
+
return commands.unsetMark(this.name);
|
|
29771
|
+
}
|
|
29772
|
+
};
|
|
29773
|
+
},
|
|
29774
|
+
addKeyboardShortcuts() {
|
|
29775
|
+
return {
|
|
29776
|
+
"Mod-,": () => this.editor.commands.toggleSubscript()
|
|
29777
|
+
};
|
|
29778
|
+
}
|
|
29779
|
+
});
|
|
29780
|
+
var index_default$1 = Subscript;
|
|
29781
|
+
var Superscript = Mark2.create({
|
|
29782
|
+
name: "superscript",
|
|
29783
|
+
addOptions() {
|
|
29784
|
+
return {
|
|
29785
|
+
HTMLAttributes: {}
|
|
29786
|
+
};
|
|
29787
|
+
},
|
|
29788
|
+
parseHTML() {
|
|
29789
|
+
return [
|
|
29790
|
+
{
|
|
29791
|
+
tag: "sup"
|
|
29792
|
+
},
|
|
29793
|
+
{
|
|
29794
|
+
style: "vertical-align",
|
|
29795
|
+
getAttrs(value) {
|
|
29796
|
+
if (value !== "super") {
|
|
29797
|
+
return false;
|
|
29798
|
+
}
|
|
29799
|
+
return null;
|
|
29800
|
+
}
|
|
29801
|
+
}
|
|
29802
|
+
];
|
|
29803
|
+
},
|
|
29804
|
+
renderHTML({ HTMLAttributes }) {
|
|
29805
|
+
return ["sup", mergeAttributes(this.options.HTMLAttributes, HTMLAttributes), 0];
|
|
29806
|
+
},
|
|
29807
|
+
addCommands() {
|
|
29808
|
+
return {
|
|
29809
|
+
setSuperscript: () => ({ commands }) => {
|
|
29810
|
+
return commands.setMark(this.name);
|
|
29811
|
+
},
|
|
29812
|
+
toggleSuperscript: () => ({ commands }) => {
|
|
29813
|
+
return commands.toggleMark(this.name);
|
|
29814
|
+
},
|
|
29815
|
+
unsetSuperscript: () => ({ commands }) => {
|
|
29816
|
+
return commands.unsetMark(this.name);
|
|
29817
|
+
}
|
|
29818
|
+
};
|
|
29819
|
+
},
|
|
29820
|
+
addKeyboardShortcuts() {
|
|
29821
|
+
return {
|
|
29822
|
+
"Mod-.": () => this.editor.commands.toggleSuperscript()
|
|
29823
|
+
};
|
|
29824
|
+
}
|
|
29825
|
+
});
|
|
29826
|
+
var index_default = Superscript;
|
|
29728
29827
|
var inputRegex = /(?:^|\s)(!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\))$/;
|
|
29729
29828
|
var Image$2 = Node3.create({
|
|
29730
29829
|
name: "image",
|
|
@@ -32392,6 +32491,50 @@ const Note = Node3.create({
|
|
|
32392
32491
|
};
|
|
32393
32492
|
}
|
|
32394
32493
|
});
|
|
32494
|
+
const ParagraphWithAlign = index_default$3.extend({
|
|
32495
|
+
name: "paragraph",
|
|
32496
|
+
addAttributes() {
|
|
32497
|
+
return {
|
|
32498
|
+
...this.parent?.(),
|
|
32499
|
+
"data-bgc-align": {
|
|
32500
|
+
default: null,
|
|
32501
|
+
parseHTML: (element2) => {
|
|
32502
|
+
const align = element2.dataset.bgcAlign;
|
|
32503
|
+
if (align && ["start", "center", "end"].includes(align)) {
|
|
32504
|
+
return align;
|
|
32505
|
+
}
|
|
32506
|
+
return null;
|
|
32507
|
+
},
|
|
32508
|
+
renderHTML: (attributes) => {
|
|
32509
|
+
if (!attributes["data-bgc-align"]) {
|
|
32510
|
+
return {};
|
|
32511
|
+
}
|
|
32512
|
+
return {
|
|
32513
|
+
"data-bgc-align": attributes["data-bgc-align"]
|
|
32514
|
+
};
|
|
32515
|
+
}
|
|
32516
|
+
}
|
|
32517
|
+
};
|
|
32518
|
+
},
|
|
32519
|
+
addCommands() {
|
|
32520
|
+
return {
|
|
32521
|
+
setAlign: (alignment) => ({ commands }) => {
|
|
32522
|
+
return commands.updateAttributes("paragraph", {
|
|
32523
|
+
"data-bgc-align": alignment
|
|
32524
|
+
});
|
|
32525
|
+
},
|
|
32526
|
+
unsetAlign: () => ({ commands }) => {
|
|
32527
|
+
return commands.resetAttributes("paragraph", "data-bgc-align");
|
|
32528
|
+
},
|
|
32529
|
+
toggleAlign: (alignment) => ({ commands, editor }) => {
|
|
32530
|
+
if (editor.isActive("paragraph", { "data-bgc-align": alignment })) {
|
|
32531
|
+
return commands.unsetAlign();
|
|
32532
|
+
}
|
|
32533
|
+
return commands.setAlign(alignment);
|
|
32534
|
+
}
|
|
32535
|
+
};
|
|
32536
|
+
}
|
|
32537
|
+
});
|
|
32395
32538
|
const TableBody = Node3.create({
|
|
32396
32539
|
name: "tableBody",
|
|
32397
32540
|
content: "tableRow+",
|
|
@@ -32473,6 +32616,12 @@ const BgeWysiwygEditorKit = Extension.create({
|
|
|
32473
32616
|
name: "bge-wysiwyg-editor-kit",
|
|
32474
32617
|
addExtensions() {
|
|
32475
32618
|
return [
|
|
32619
|
+
// Marks
|
|
32620
|
+
index_default$1,
|
|
32621
|
+
index_default,
|
|
32622
|
+
// Paragraph拡張(StarterKitのParagraphを上書き)
|
|
32623
|
+
ParagraphWithAlign,
|
|
32624
|
+
// Nodes
|
|
32476
32625
|
Image$1,
|
|
32477
32626
|
FlexBox,
|
|
32478
32627
|
DescriptionList,
|
|
@@ -32708,7 +32857,7 @@ const _BgeWysiwygElement = class _BgeWysiwygElement2 extends HTMLElement {
|
|
|
32708
32857
|
`#${messageId}`
|
|
32709
32858
|
));
|
|
32710
32859
|
const extensions = [
|
|
32711
|
-
index_default.configure({
|
|
32860
|
+
index_default$2.configure({
|
|
32712
32861
|
link: {
|
|
32713
32862
|
HTMLAttributes: {
|
|
32714
32863
|
target: null,
|
|
@@ -32845,6 +32994,9 @@ const _BgeWysiwygElement = class _BgeWysiwygElement2 extends HTMLElement {
|
|
|
32845
32994
|
html2 = html2.replaceAll("<p></p>", "");
|
|
32846
32995
|
__privateMethod(this, _BgeWysiwygElement_instances, setToTextarea_fn).call(this, html2);
|
|
32847
32996
|
}
|
|
32997
|
+
toggleAlign(alignment) {
|
|
32998
|
+
this.editor.chain().focus().toggleAlign(alignment).run();
|
|
32999
|
+
}
|
|
32848
33000
|
toggleBlockquote() {
|
|
32849
33001
|
this.editor.chain().focus().toggleBlockquote().run();
|
|
32850
33002
|
}
|
|
@@ -32881,6 +33033,12 @@ const _BgeWysiwygElement = class _BgeWysiwygElement2 extends HTMLElement {
|
|
|
32881
33033
|
toggleStrike() {
|
|
32882
33034
|
this.editor.chain().focus().toggleStrike().run();
|
|
32883
33035
|
}
|
|
33036
|
+
toggleSubscript() {
|
|
33037
|
+
this.editor.chain().focus().toggleSubscript().run();
|
|
33038
|
+
}
|
|
33039
|
+
toggleSuperscript() {
|
|
33040
|
+
this.editor.chain().focus().toggleSuperscript().run();
|
|
33041
|
+
}
|
|
32884
33042
|
toggleUnderline() {
|
|
32885
33043
|
this.editor.chain().focus().toggleUnderline().run();
|
|
32886
33044
|
}
|
|
@@ -32942,6 +33100,14 @@ transaction_fn = function(editor) {
|
|
|
32942
33100
|
disabled: !editor.can().chain().focus().toggleStrike().run(),
|
|
32943
33101
|
active: editor.isActive("strike")
|
|
32944
33102
|
},
|
|
33103
|
+
subscript: {
|
|
33104
|
+
disabled: !editor.can().chain().focus().toggleSubscript().run(),
|
|
33105
|
+
active: editor.isActive("subscript")
|
|
33106
|
+
},
|
|
33107
|
+
superscript: {
|
|
33108
|
+
disabled: !editor.can().chain().focus().toggleSuperscript().run(),
|
|
33109
|
+
active: editor.isActive("superscript")
|
|
33110
|
+
},
|
|
32945
33111
|
code: {
|
|
32946
33112
|
disabled: !editor.can().chain().focus().toggleCode().run(),
|
|
32947
33113
|
active: editor.isActive("code")
|
|
@@ -33001,6 +33167,18 @@ transaction_fn = function(editor) {
|
|
|
33001
33167
|
image: {
|
|
33002
33168
|
disabled: !editor.can().chain().focus().setImage({ src: "" }).run(),
|
|
33003
33169
|
active: editor.isActive("image")
|
|
33170
|
+
},
|
|
33171
|
+
alignStart: {
|
|
33172
|
+
disabled: !editor.can().chain().focus().toggleAlign("start").run(),
|
|
33173
|
+
active: editor.isActive("paragraph", { "data-bgc-align": "start" })
|
|
33174
|
+
},
|
|
33175
|
+
alignCenter: {
|
|
33176
|
+
disabled: !editor.can().chain().focus().toggleAlign("center").run(),
|
|
33177
|
+
active: editor.isActive("paragraph", { "data-bgc-align": "center" })
|
|
33178
|
+
},
|
|
33179
|
+
alignEnd: {
|
|
33180
|
+
disabled: !editor.can().chain().focus().toggleAlign("end").run(),
|
|
33181
|
+
active: editor.isActive("paragraph", { "data-bgc-align": "end" })
|
|
33004
33182
|
}
|
|
33005
33183
|
}
|
|
33006
33184
|
};
|
|
@@ -33061,6 +33239,8 @@ const _BgeWysiwygEditorElement = class _BgeWysiwygEditorElement2 extends HTMLEle
|
|
|
33061
33239
|
${commands.includes("italic") ? `<button type="button" data-bge-toolbar-button="italic">${IconItalic}</button>` : ""}
|
|
33062
33240
|
${commands.includes("strikethrough") ? `<button type="button" data-bge-toolbar-button="strikethrough">${IconStrikethrough}</button>` : ""}
|
|
33063
33241
|
${commands.includes("underline") ? `<button type="button" data-bge-toolbar-button="underline">${IconUnderline}</button>` : ""}
|
|
33242
|
+
${commands.includes("subscript") ? `<button type="button" data-bge-toolbar-button="subscript">${IconSubscript}</button>` : ""}
|
|
33243
|
+
${commands.includes("superscript") ? `<button type="button" data-bge-toolbar-button="superscript">${IconSuperscript}</button>` : ""}
|
|
33064
33244
|
${commands.includes("code") ? `<button type="button" data-bge-toolbar-button="code">${IconCode}</button>` : ""}
|
|
33065
33245
|
${commands.includes("link") ? `<button type="button" data-bge-toolbar-button="link">${IconLink}</button>` : ""}
|
|
33066
33246
|
${commands.includes("button-like-link") ? `<button type="button" data-bge-toolbar-button="button-like-link">${IconCloud}</button>` : ""}
|
|
@@ -33075,6 +33255,9 @@ const _BgeWysiwygEditorElement = class _BgeWysiwygEditorElement2 extends HTMLEle
|
|
|
33075
33255
|
${commands.includes("h5") ? `<button type="button" data-bge-toolbar-button="h5">${IconH5}</button>` : ""}
|
|
33076
33256
|
${commands.includes("h6") ? `<button type="button" data-bge-toolbar-button="h6">${IconH6}</button>` : ""}
|
|
33077
33257
|
${commands.includes("flex-box") ? `<button type="button" data-bge-toolbar-button="flex-box"><span data-bge-rotate>${IconAlignBoxCenterStretch}</span></button>` : ""}
|
|
33258
|
+
${commands.includes("align-start") ? `<button type="button" data-bge-toolbar-button="align-start">${IconAlignLeft}</button>` : ""}
|
|
33259
|
+
${commands.includes("align-center") ? `<button type="button" data-bge-toolbar-button="align-center">${IconAlignCenter}</button>` : ""}
|
|
33260
|
+
${commands.includes("align-end") ? `<button type="button" data-bge-toolbar-button="align-end">${IconAlignRight}</button>` : ""}
|
|
33078
33261
|
</div>
|
|
33079
33262
|
<div data-bge-toolbar-group>
|
|
33080
33263
|
<button type="button" data-bge-toolbar-button="html-mode">HTML Mode</button>
|
|
@@ -33185,6 +33368,8 @@ __publicField(_BgeWysiwygEditorElement, "defaultCommands", [
|
|
|
33185
33368
|
"italic",
|
|
33186
33369
|
"underline",
|
|
33187
33370
|
"strikethrough",
|
|
33371
|
+
"subscript",
|
|
33372
|
+
"superscript",
|
|
33188
33373
|
"link",
|
|
33189
33374
|
"button-like-link",
|
|
33190
33375
|
"blockquote",
|
|
@@ -33195,7 +33380,10 @@ __publicField(_BgeWysiwygEditorElement, "defaultCommands", [
|
|
|
33195
33380
|
"h4",
|
|
33196
33381
|
"h5",
|
|
33197
33382
|
"h6",
|
|
33198
|
-
"flex-box"
|
|
33383
|
+
"flex-box",
|
|
33384
|
+
"align-start",
|
|
33385
|
+
"align-center",
|
|
33386
|
+
"align-end"
|
|
33199
33387
|
]);
|
|
33200
33388
|
let BgeWysiwygEditorElement = _BgeWysiwygEditorElement;
|
|
33201
33389
|
function bindToggle(button, wysiwygElement) {
|
|
@@ -33289,6 +33477,26 @@ function bindToggle(button, wysiwygElement) {
|
|
|
33289
33477
|
wysiwygElement.toggleFlexBox();
|
|
33290
33478
|
break;
|
|
33291
33479
|
}
|
|
33480
|
+
case "subscript": {
|
|
33481
|
+
wysiwygElement.toggleSubscript();
|
|
33482
|
+
break;
|
|
33483
|
+
}
|
|
33484
|
+
case "superscript": {
|
|
33485
|
+
wysiwygElement.toggleSuperscript();
|
|
33486
|
+
break;
|
|
33487
|
+
}
|
|
33488
|
+
case "align-start": {
|
|
33489
|
+
wysiwygElement.toggleAlign("start");
|
|
33490
|
+
break;
|
|
33491
|
+
}
|
|
33492
|
+
case "align-center": {
|
|
33493
|
+
wysiwygElement.toggleAlign("center");
|
|
33494
|
+
break;
|
|
33495
|
+
}
|
|
33496
|
+
case "align-end": {
|
|
33497
|
+
wysiwygElement.toggleAlign("end");
|
|
33498
|
+
break;
|
|
33499
|
+
}
|
|
33292
33500
|
}
|
|
33293
33501
|
}
|
|
33294
33502
|
function updateButtonState(button, state2) {
|
|
@@ -33379,6 +33587,31 @@ function updateButtonState(button, state2) {
|
|
|
33379
33587
|
button.ariaPressed = state2.flexBox.active ? "true" : "false";
|
|
33380
33588
|
break;
|
|
33381
33589
|
}
|
|
33590
|
+
case "subscript": {
|
|
33591
|
+
button.disabled = state2.subscript.disabled;
|
|
33592
|
+
button.ariaPressed = state2.subscript.active ? "true" : "false";
|
|
33593
|
+
break;
|
|
33594
|
+
}
|
|
33595
|
+
case "superscript": {
|
|
33596
|
+
button.disabled = state2.superscript.disabled;
|
|
33597
|
+
button.ariaPressed = state2.superscript.active ? "true" : "false";
|
|
33598
|
+
break;
|
|
33599
|
+
}
|
|
33600
|
+
case "align-start": {
|
|
33601
|
+
button.disabled = state2.alignStart.disabled;
|
|
33602
|
+
button.ariaPressed = state2.alignStart.active ? "true" : "false";
|
|
33603
|
+
break;
|
|
33604
|
+
}
|
|
33605
|
+
case "align-center": {
|
|
33606
|
+
button.disabled = state2.alignCenter.disabled;
|
|
33607
|
+
button.ariaPressed = state2.alignCenter.active ? "true" : "false";
|
|
33608
|
+
break;
|
|
33609
|
+
}
|
|
33610
|
+
case "align-end": {
|
|
33611
|
+
button.disabled = state2.alignEnd.disabled;
|
|
33612
|
+
button.ariaPressed = state2.alignEnd.active ? "true" : "false";
|
|
33613
|
+
break;
|
|
33614
|
+
}
|
|
33382
33615
|
}
|
|
33383
33616
|
}
|
|
33384
33617
|
const PUBLIC_VERSION = "5";
|