@forgedevstack/ink 1.1.6 → 1.1.8
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/CHANGELOG.md +57 -1
- package/README.md +9 -1
- package/bin/ink.const.mjs +26 -0
- package/bin/ink.mjs +58 -0
- package/dist/common-components/icons/BulletListIcon.cjs +1 -0
- package/dist/common-components/icons/BulletListIcon.d.ts +3 -0
- package/dist/common-components/icons/BulletListIcon.d.ts.map +1 -0
- package/dist/common-components/icons/BulletListIcon.js +11 -0
- package/dist/common-components/icons/ChecklistIcon.cjs +1 -0
- package/dist/common-components/icons/ChecklistIcon.d.ts +3 -0
- package/dist/common-components/icons/ChecklistIcon.d.ts.map +1 -0
- package/dist/common-components/icons/ChecklistIcon.js +10 -0
- package/dist/common-components/icons/ImageToolIcon.cjs +1 -0
- package/dist/common-components/icons/ImageToolIcon.d.ts +3 -0
- package/dist/common-components/icons/ImageToolIcon.d.ts.map +1 -0
- package/dist/common-components/icons/ImageToolIcon.js +10 -0
- package/dist/common-components/icons/LinkToolIcon.cjs +1 -0
- package/dist/common-components/icons/LinkToolIcon.d.ts +3 -0
- package/dist/common-components/icons/LinkToolIcon.d.ts.map +1 -0
- package/dist/common-components/icons/LinkToolIcon.js +9 -0
- package/dist/common-components/icons/OrderedListIcon.cjs +1 -0
- package/dist/common-components/icons/OrderedListIcon.d.ts +3 -0
- package/dist/common-components/icons/OrderedListIcon.d.ts.map +1 -0
- package/dist/common-components/icons/OrderedListIcon.js +9 -0
- package/dist/common-components/icons/QuoteIcon.cjs +1 -0
- package/dist/common-components/icons/QuoteIcon.d.ts +3 -0
- package/dist/common-components/icons/QuoteIcon.d.ts.map +1 -0
- package/dist/common-components/icons/QuoteIcon.js +6 -0
- package/dist/common-components/icons/TableToolIcon.cjs +1 -0
- package/dist/common-components/icons/TableToolIcon.d.ts +3 -0
- package/dist/common-components/icons/TableToolIcon.d.ts.map +1 -0
- package/dist/common-components/icons/TableToolIcon.js +9 -0
- package/dist/common-components/icons/index.d.ts +7 -0
- package/dist/common-components/icons/index.d.ts.map +1 -1
- package/dist/common-components/index.d.ts +1 -1
- package/dist/common-components/index.d.ts.map +1 -1
- package/dist/components/InkEditor/InkEditor.cjs +1 -1
- package/dist/components/InkEditor/InkEditor.d.ts.map +1 -1
- package/dist/components/InkEditor/InkEditor.js +1230 -778
- package/dist/components/InkEditor/components/AiPanel/AiPanel.cjs +1 -1
- package/dist/components/InkEditor/components/AiPanel/AiPanel.d.ts.map +1 -1
- package/dist/components/InkEditor/components/AiPanel/AiPanel.js +58 -52
- package/dist/components/InkEditor/components/ExcelSheetPanel/ExcelSheetPanel.cjs +1 -0
- package/dist/components/InkEditor/components/ExcelSheetPanel/ExcelSheetPanel.d.ts +4 -0
- package/dist/components/InkEditor/components/ExcelSheetPanel/ExcelSheetPanel.d.ts.map +1 -0
- package/dist/components/InkEditor/components/ExcelSheetPanel/ExcelSheetPanel.js +209 -0
- package/dist/components/InkEditor/components/ExcelSheetPanel/ExcelSheetPanel.types.d.ts +10 -0
- package/dist/components/InkEditor/components/ExcelSheetPanel/ExcelSheetPanel.types.d.ts.map +1 -0
- package/dist/components/InkEditor/components/ExcelSheetPanel/index.d.ts +3 -0
- package/dist/components/InkEditor/components/ExcelSheetPanel/index.d.ts.map +1 -0
- package/dist/components/InkEditor/components/GraphEditModal/GraphEditModal.cjs +1 -0
- package/dist/components/InkEditor/components/GraphEditModal/GraphEditModal.d.ts +4 -0
- package/dist/components/InkEditor/components/GraphEditModal/GraphEditModal.d.ts.map +1 -0
- package/dist/components/InkEditor/components/GraphEditModal/GraphEditModal.js +91 -0
- package/dist/components/InkEditor/components/GraphEditModal/GraphEditModal.types.d.ts +11 -0
- package/dist/components/InkEditor/components/GraphEditModal/GraphEditModal.types.d.ts.map +1 -0
- package/dist/components/InkEditor/components/GraphEditModal/index.d.ts +3 -0
- package/dist/components/InkEditor/components/GraphEditModal/index.d.ts.map +1 -0
- package/dist/components/InkEditor/components/GraphPicker/GraphPicker.cjs +1 -0
- package/dist/components/InkEditor/components/GraphPicker/GraphPicker.d.ts +4 -0
- package/dist/components/InkEditor/components/GraphPicker/GraphPicker.d.ts.map +1 -0
- package/dist/components/InkEditor/components/GraphPicker/GraphPicker.js +98 -0
- package/dist/components/InkEditor/components/GraphPicker/GraphPicker.types.d.ts +10 -0
- package/dist/components/InkEditor/components/GraphPicker/GraphPicker.types.d.ts.map +1 -0
- package/dist/components/InkEditor/components/GraphPicker/index.d.ts +3 -0
- package/dist/components/InkEditor/components/GraphPicker/index.d.ts.map +1 -0
- package/dist/components/InkEditor/components/HtmlSourcePanel/HtmlSourcePanel.cjs +1 -0
- package/dist/components/InkEditor/components/HtmlSourcePanel/HtmlSourcePanel.d.ts +4 -0
- package/dist/components/InkEditor/components/HtmlSourcePanel/HtmlSourcePanel.d.ts.map +1 -0
- package/dist/components/InkEditor/components/HtmlSourcePanel/HtmlSourcePanel.js +27 -0
- package/dist/components/InkEditor/components/HtmlSourcePanel/HtmlSourcePanel.types.d.ts +7 -0
- package/dist/components/InkEditor/components/HtmlSourcePanel/HtmlSourcePanel.types.d.ts.map +1 -0
- package/dist/components/InkEditor/components/HtmlSourcePanel/index.d.ts +3 -0
- package/dist/components/InkEditor/components/HtmlSourcePanel/index.d.ts.map +1 -0
- package/dist/components/InkEditor/components/OutlineRail/OutlineRail.cjs +1 -0
- package/dist/components/InkEditor/components/OutlineRail/OutlineRail.d.ts +4 -0
- package/dist/components/InkEditor/components/OutlineRail/OutlineRail.d.ts.map +1 -0
- package/dist/components/InkEditor/components/OutlineRail/OutlineRail.js +36 -0
- package/dist/components/InkEditor/components/OutlineRail/OutlineRail.types.d.ts +8 -0
- package/dist/components/InkEditor/components/OutlineRail/OutlineRail.types.d.ts.map +1 -0
- package/dist/components/InkEditor/components/OutlineRail/index.d.ts +3 -0
- package/dist/components/InkEditor/components/OutlineRail/index.d.ts.map +1 -0
- package/dist/components/InkEditor/components/SlashMenu/SlashMenu.cjs +1 -1
- package/dist/components/InkEditor/components/SlashMenu/SlashMenu.d.ts +1 -0
- package/dist/components/InkEditor/components/SlashMenu/SlashMenu.d.ts.map +1 -1
- package/dist/components/InkEditor/components/SlashMenu/SlashMenu.js +62 -17
- package/dist/components/InkEditor/components/TableSizePicker/TableSizePicker.cjs +1 -0
- package/dist/components/InkEditor/components/TableSizePicker/TableSizePicker.const.cjs +1 -0
- package/dist/components/InkEditor/components/TableSizePicker/TableSizePicker.const.d.ts +10 -0
- package/dist/components/InkEditor/components/TableSizePicker/TableSizePicker.const.d.ts.map +1 -0
- package/dist/components/InkEditor/components/TableSizePicker/TableSizePicker.const.js +18 -0
- package/dist/components/InkEditor/components/TableSizePicker/TableSizePicker.d.ts +4 -0
- package/dist/components/InkEditor/components/TableSizePicker/TableSizePicker.d.ts.map +1 -0
- package/dist/components/InkEditor/components/TableSizePicker/TableSizePicker.js +95 -0
- package/dist/components/InkEditor/components/TableSizePicker/TableSizePicker.types.d.ts +11 -0
- package/dist/components/InkEditor/components/TableSizePicker/TableSizePicker.types.d.ts.map +1 -0
- package/dist/components/InkEditor/components/TableSizePicker/index.d.ts +3 -0
- package/dist/components/InkEditor/components/TableSizePicker/index.d.ts.map +1 -0
- package/dist/components/InkEditor/components/ThemePicker/ThemePicker.cjs +1 -0
- package/dist/components/InkEditor/components/ThemePicker/ThemePicker.d.ts +4 -0
- package/dist/components/InkEditor/components/ThemePicker/ThemePicker.d.ts.map +1 -0
- package/dist/components/InkEditor/components/ThemePicker/ThemePicker.js +81 -0
- package/dist/components/InkEditor/components/ThemePicker/ThemePicker.types.d.ts +12 -0
- package/dist/components/InkEditor/components/ThemePicker/ThemePicker.types.d.ts.map +1 -0
- package/dist/components/InkEditor/components/ThemePicker/index.d.ts +3 -0
- package/dist/components/InkEditor/components/ThemePicker/index.d.ts.map +1 -0
- package/dist/components/InkEditor/components/TitleGallery/TitleGallery.cjs +1 -0
- package/dist/components/InkEditor/components/TitleGallery/TitleGallery.d.ts +4 -0
- package/dist/components/InkEditor/components/TitleGallery/TitleGallery.d.ts.map +1 -0
- package/dist/components/InkEditor/components/TitleGallery/TitleGallery.js +79 -0
- package/dist/components/InkEditor/components/TitleGallery/TitleGallery.types.d.ts +10 -0
- package/dist/components/InkEditor/components/TitleGallery/TitleGallery.types.d.ts.map +1 -0
- package/dist/components/InkEditor/components/TitleGallery/index.d.ts +3 -0
- package/dist/components/InkEditor/components/TitleGallery/index.d.ts.map +1 -0
- package/dist/components/InkEditor/components/ToolbarButton/ToolbarButton.cjs +1 -1
- package/dist/components/InkEditor/components/ToolbarButton/ToolbarButton.d.ts.map +1 -1
- package/dist/components/InkEditor/components/ToolbarButton/ToolbarButton.js +41 -17
- package/dist/components/InkEditor/components/ToolbarDropdown/ToolbarDropdown.cjs +1 -1
- package/dist/components/InkEditor/components/ToolbarDropdown/ToolbarDropdown.d.ts.map +1 -1
- package/dist/components/InkEditor/components/ToolbarDropdown/ToolbarDropdown.js +93 -18
- package/dist/components/InkEditor/components/ToolbarDropdown/ToolbarDropdown.types.d.ts +6 -0
- package/dist/components/InkEditor/components/ToolbarDropdown/ToolbarDropdown.types.d.ts.map +1 -0
- package/dist/components/InkEditor/components/ToolbarDropdown/ToolbarDropdown.utils.cjs +1 -0
- package/dist/components/InkEditor/components/ToolbarDropdown/ToolbarDropdown.utils.d.ts +3 -0
- package/dist/components/InkEditor/components/ToolbarDropdown/ToolbarDropdown.utils.d.ts.map +1 -0
- package/dist/components/InkEditor/components/ToolbarDropdown/ToolbarDropdown.utils.js +15 -0
- package/dist/components/InkEditor/components/ToolbarDropdown/index.d.ts +2 -0
- package/dist/components/InkEditor/components/ToolbarDropdown/index.d.ts.map +1 -1
- package/dist/components/InkEditor/components/index.d.ts +16 -0
- package/dist/components/InkEditor/components/index.d.ts.map +1 -1
- package/dist/components/InkEditor/helpers/format.utils.cjs +2 -2
- package/dist/components/InkEditor/helpers/format.utils.d.ts +1 -1
- package/dist/components/InkEditor/helpers/format.utils.d.ts.map +1 -1
- package/dist/components/InkEditor/helpers/format.utils.js +72 -72
- package/dist/constants/colorMode.const.cjs +1 -1
- package/dist/constants/colorMode.const.d.ts +1 -1
- package/dist/constants/colorMode.const.d.ts.map +1 -1
- package/dist/constants/colorMode.const.js +4 -4
- package/dist/constants/contextMenu.const.cjs +1 -1
- package/dist/constants/contextMenu.const.d.ts +2 -0
- package/dist/constants/contextMenu.const.d.ts.map +1 -1
- package/dist/constants/contextMenu.const.js +17 -15
- package/dist/constants/defaultIcons.cjs +1 -1
- package/dist/constants/defaultIcons.d.ts.map +1 -1
- package/dist/constants/defaultIcons.js +35 -18
- package/dist/constants/defaults.const.cjs +1 -1
- package/dist/constants/defaults.const.d.ts +95 -1
- package/dist/constants/defaults.const.d.ts.map +1 -1
- package/dist/constants/defaults.const.js +323 -57
- package/dist/constants/generals.const.cjs +1 -1
- package/dist/constants/generals.const.d.ts +90 -0
- package/dist/constants/generals.const.d.ts.map +1 -1
- package/dist/constants/generals.const.js +75 -4
- package/dist/constants/index.d.ts +1 -0
- package/dist/constants/index.d.ts.map +1 -1
- package/dist/constants/keyboard.const.cjs +1 -1
- package/dist/constants/keyboard.const.d.ts +1 -0
- package/dist/constants/keyboard.const.d.ts.map +1 -1
- package/dist/constants/keyboard.const.js +2 -1
- package/dist/constants/lists.const.cjs +1 -1
- package/dist/constants/lists.const.d.ts +1 -0
- package/dist/constants/lists.const.d.ts.map +1 -1
- package/dist/constants/lists.const.js +10 -9
- package/dist/constants/numbers.cjs +1 -1
- package/dist/constants/numbers.d.ts +19 -1
- package/dist/constants/numbers.d.ts.map +1 -1
- package/dist/constants/numbers.js +46 -27
- package/dist/constants/plugins.const.cjs +1 -0
- package/dist/constants/plugins.const.d.ts +13 -0
- package/dist/constants/plugins.const.d.ts.map +1 -0
- package/dist/constants/plugins.const.js +45 -0
- package/dist/constants/premium.const.cjs +1 -1
- package/dist/constants/premium.const.d.ts.map +1 -1
- package/dist/constants/premium.const.js +10 -9
- package/dist/constants/table.const.cjs +1 -1
- package/dist/constants/table.const.d.ts +4 -0
- package/dist/constants/table.const.d.ts.map +1 -1
- package/dist/constants/table.const.js +10 -6
- package/dist/constants/toolbar.const.cjs +1 -1
- package/dist/constants/toolbar.const.d.ts +8 -0
- package/dist/constants/toolbar.const.d.ts.map +1 -1
- package/dist/constants/toolbar.const.js +16 -8
- package/dist/constants/toolbarMenu.const.cjs +1 -1
- package/dist/constants/toolbarMenu.const.d.ts +2 -0
- package/dist/constants/toolbarMenu.const.d.ts.map +1 -1
- package/dist/constants/toolbarMenu.const.js +80 -18
- package/dist/hooks/index.d.ts +2 -0
- package/dist/hooks/index.d.ts.map +1 -0
- package/dist/hooks/useToolbarOverflow.cjs +1 -0
- package/dist/hooks/useToolbarOverflow.d.ts +8 -0
- package/dist/hooks/useToolbarOverflow.d.ts.map +1 -0
- package/dist/hooks/useToolbarOverflow.js +29 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +6 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +126 -93
- package/dist/plugins/excel/excel.utils.cjs +1 -0
- package/dist/plugins/excel/excel.utils.d.ts +13 -0
- package/dist/plugins/excel/excel.utils.d.ts.map +1 -0
- package/dist/plugins/excel/excel.utils.js +40 -0
- package/dist/plugins/excel/index.d.ts +3 -0
- package/dist/plugins/excel/index.d.ts.map +1 -0
- package/dist/plugins/graph/graph.const.cjs +1 -0
- package/dist/plugins/graph/graph.const.d.ts +14 -0
- package/dist/plugins/graph/graph.const.d.ts.map +1 -0
- package/dist/plugins/graph/graph.const.js +24 -0
- package/dist/plugins/graph/graph.types.d.ts +7 -0
- package/dist/plugins/graph/graph.types.d.ts.map +1 -0
- package/dist/plugins/graph/graph.utils.cjs +1 -0
- package/dist/plugins/graph/graph.utils.d.ts +11 -0
- package/dist/plugins/graph/graph.utils.d.ts.map +1 -0
- package/dist/plugins/graph/graph.utils.js +76 -0
- package/dist/plugins/graph/index.d.ts +4 -0
- package/dist/plugins/graph/index.d.ts.map +1 -0
- package/dist/plugins/host/index.d.ts +2 -0
- package/dist/plugins/host/index.d.ts.map +1 -0
- package/dist/plugins/host/inkPlugins.cjs +1 -0
- package/dist/plugins/host/inkPlugins.d.ts +16 -0
- package/dist/plugins/host/inkPlugins.d.ts.map +1 -0
- package/dist/plugins/host/inkPlugins.js +20 -0
- package/dist/plugins/index.d.ts +5 -0
- package/dist/plugins/index.d.ts.map +1 -0
- package/dist/plugins/theme/index.d.ts +4 -0
- package/dist/plugins/theme/index.d.ts.map +1 -0
- package/dist/plugins/theme/inkTheme.cjs +1 -0
- package/dist/plugins/theme/inkTheme.d.ts +5 -0
- package/dist/plugins/theme/inkTheme.d.ts.map +1 -0
- package/dist/plugins/theme/inkTheme.js +30 -0
- package/dist/plugins/theme/theme.const.cjs +1 -0
- package/dist/plugins/theme/theme.const.d.ts +9 -0
- package/dist/plugins/theme/theme.const.d.ts.map +1 -0
- package/dist/plugins/theme/theme.const.js +15 -0
- package/dist/plugins/theme/theme.types.d.ts +12 -0
- package/dist/plugins/theme/theme.types.d.ts.map +1 -0
- package/dist/plugins/titles/index.d.ts +4 -0
- package/dist/plugins/titles/index.d.ts.map +1 -0
- package/dist/plugins/titles/titles.const.cjs +1 -0
- package/dist/plugins/titles/titles.const.d.ts +4 -0
- package/dist/plugins/titles/titles.const.d.ts.map +1 -0
- package/dist/plugins/titles/titles.const.js +15 -0
- package/dist/plugins/titles/titles.types.d.ts +2 -0
- package/dist/plugins/titles/titles.types.d.ts.map +1 -0
- package/dist/plugins/titles/titles.utils.cjs +1 -0
- package/dist/plugins/titles/titles.utils.d.ts +3 -0
- package/dist/plugins/titles/titles.utils.d.ts.map +1 -0
- package/dist/plugins/titles/titles.utils.js +14 -0
- package/dist/styles.css +1 -1
- package/dist/types/features.types.d.ts +1 -1
- package/dist/types/features.types.d.ts.map +1 -1
- package/dist/types/index.d.ts +3 -1
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/ink.types.d.ts +15 -2
- package/dist/types/ink.types.d.ts.map +1 -1
- package/dist/types/outline.types.d.ts +6 -0
- package/dist/types/outline.types.d.ts.map +1 -0
- package/dist/types/plugin.types.d.ts +8 -0
- package/dist/types/plugin.types.d.ts.map +1 -0
- package/dist/types/premium.types.d.ts +2 -2
- package/dist/types/premium.types.d.ts.map +1 -1
- package/dist/utils/index.d.ts +5 -2
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/outline.utils.cjs +1 -0
- package/dist/utils/outline.utils.d.ts +8 -0
- package/dist/utils/outline.utils.d.ts.map +1 -0
- package/dist/utils/outline.utils.js +49 -0
- package/dist/utils/slash.utils.cjs +1 -1
- package/dist/utils/slash.utils.d.ts +5 -0
- package/dist/utils/slash.utils.d.ts.map +1 -1
- package/dist/utils/slash.utils.js +24 -7
- package/dist/utils/table.utils.cjs +1 -1
- package/dist/utils/table.utils.d.ts +4 -0
- package/dist/utils/table.utils.d.ts.map +1 -1
- package/dist/utils/table.utils.js +84 -45
- package/dist/utils/words.utils.cjs +1 -0
- package/dist/utils/words.utils.d.ts +2 -0
- package/dist/utils/words.utils.d.ts.map +1 -0
- package/dist/utils/words.utils.js +14 -0
- package/package.json +7 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"graph.types.d.ts","sourceRoot":"","sources":["../../../src/plugins/graph/graph.types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,SAAS,GAAG,KAAK,GAAG,MAAM,GAAG,KAAK,CAAC;AAE/C,MAAM,MAAM,UAAU,GAAG;IACvB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,MAAM,MAAM,WAAW,GAAG,MAAM,EAAE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../constants/numbers.cjs"),h=require("../../constants/generals.const.cjs"),l=require("../../constants/defaults.const.cjs");require("../../constants/openai.const.cjs");require("react/jsx-runtime");require("../../utils/paste.utils.cjs");require("react");require("react-dom");const r=require("./graph.const.cjs"),u=t=>Math.max(...t.map(_=>_.value),e.NUMBER_ONE),i=(t,_)=>t[_%t.length]??r.GRAPH_COLORS[_%r.GRAPH_COLORS.length]??r.GRAPH_COLORS[e.NUMBER_ZERO],$=t=>t&&t.length>e.NUMBER_ZERO?t:r.GRAPH_COLORS,S=(t,_=r.GRAPH_COLORS)=>{const n=$(_),R=e.INK_GRAPH_WIDTH-e.INK_GRAPH_PAD*2,c=e.INK_GRAPH_HEIGHT-e.INK_GRAPH_PAD*2,A=u(t),o=(R-r.GRAPH_BAR_GAP_PX*(t.length-e.NUMBER_ONE))/t.length,a=t.map((I,P)=>{const G=I.value/A*c,s=e.INK_GRAPH_PAD+P*(o+r.GRAPH_BAR_GAP_PX),H=e.INK_GRAPH_PAD+c-G,N=i(n,P);return`<rect x="${s}" y="${H}" width="${o}" height="${G}" fill="${N}" rx="${r.GRAPH_CORNER}"/><text x="${s+o/2}" y="${e.INK_GRAPH_HEIGHT-r.GRAPH_LABEL_OFFSET}" text-anchor="middle" font-size="${r.GRAPH_LABEL_SIZE}" fill="#5C5E56">${I.label}</text>`}).join(h.EMPTY_STRING);return`<svg class="${l.INK_CLASS_GRAPH_WRAP}" viewBox="0 0 ${e.INK_GRAPH_WIDTH} ${e.INK_GRAPH_HEIGHT}" width="${e.INK_GRAPH_WIDTH}" height="${e.INK_GRAPH_HEIGHT}">${a}</svg>`},T=(t,_=r.GRAPH_COLORS)=>{const n=$(_),R=i(n,e.NUMBER_ZERO),c=e.INK_GRAPH_WIDTH-e.INK_GRAPH_PAD*2,A=e.INK_GRAPH_HEIGHT-e.INK_GRAPH_PAD*2,o=u(t),a=t.length>e.NUMBER_ONE?c/(t.length-e.NUMBER_ONE):c,I=t.map((s,H)=>{const N=e.INK_GRAPH_PAD+H*a,E=e.INK_GRAPH_PAD+A-s.value/o*A;return{x:N,y:E,label:s.label}}),P=I.map((s,H)=>`${H===0?"M":"L"}${s.x} ${s.y}`).join(" "),G=I.map((s,H)=>`<circle cx="${s.x}" cy="${s.y}" r="${r.GRAPH_DOT_RADIUS}" fill="${i(n,H)}"/><text x="${s.x}" y="${e.INK_GRAPH_HEIGHT-r.GRAPH_LABEL_OFFSET}" text-anchor="middle" font-size="${r.GRAPH_LABEL_SIZE}" fill="#5C5E56">${s.label}</text>`).join(h.EMPTY_STRING);return`<svg class="${l.INK_CLASS_GRAPH_WRAP}" viewBox="0 0 ${e.INK_GRAPH_WIDTH} ${e.INK_GRAPH_HEIGHT}" width="${e.INK_GRAPH_WIDTH}" height="${e.INK_GRAPH_HEIGHT}"><path d="${P}" fill="none" stroke="${R}" stroke-width="${r.GRAPH_STROKE_PX}"/>${G}</svg>`},g=(t,_=r.GRAPH_COLORS)=>{const n=$(_),R=t.reduce((P,G)=>P+G.value,e.NUMBER_ZERO)||e.NUMBER_ONE,c=e.INK_GRAPH_WIDTH/2,A=e.INK_GRAPH_HEIGHT/2,o=r.GRAPH_PIE_RADIUS;let a=-Math.PI/2;const I=t.map((P,G)=>{const s=P.value/R*Math.PI*2,H=a;a+=s;const N=c+o*Math.cos(H),E=A+o*Math.sin(H),L=c+o*Math.cos(a),d=A+o*Math.sin(a),B=s>Math.PI?e.NUMBER_ONE:e.NUMBER_ZERO;return`<path d="M ${c} ${A} L ${N} ${E} A ${o} ${o} 0 ${B} 1 ${L} ${d} Z" fill="${i(n,G)}"/>`}).join(h.EMPTY_STRING);return`<svg class="${l.INK_CLASS_GRAPH_WRAP}" viewBox="0 0 ${e.INK_GRAPH_WIDTH} ${e.INK_GRAPH_HEIGHT}" width="${e.INK_GRAPH_WIDTH}" height="${e.INK_GRAPH_HEIGHT}">${I}</svg>`},O=t=>encodeURIComponent(JSON.stringify(t)),C=t=>{if(!t)return[];try{const _=JSON.parse(decodeURIComponent(t));return Array.isArray(_)?_.filter(n=>!!n&&typeof n=="object"&&typeof n.label=="string"&&typeof n.value=="number"):[]}catch{return[]}},K=t=>{if(!t)return[...r.GRAPH_COLORS];try{const _=JSON.parse(decodeURIComponent(t));if(!Array.isArray(_))return[...r.GRAPH_COLORS];const n=_.filter(R=>typeof R=="string"&&R.length>e.NUMBER_ZERO);return n.length>e.NUMBER_ZERO?n:[...r.GRAPH_COLORS]}catch{return[...r.GRAPH_COLORS]}},p=(t,_,n=r.GRAPH_COLORS)=>{const R=$(n),c=t==="line"?T(_,R):t==="pie"?g(_,R):S(_,R);return`<p class="${l.INK_CLASS_GRAPH_BLOCK}" ${l.INK_ATTR_GRAPH}="${t}" ${l.INK_ATTR_GRAPH_POINTS}="${O(_)}" ${l.INK_ATTR_GRAPH_COLORS}="${O(R)}">${c}</p><p><br></p>`},M=(t,_,n,R)=>{const c=R??K(t.getAttribute(l.INK_ATTR_GRAPH_COLORS)),A=document.createElement("div");A.innerHTML=p(_,n,c);const o=A.firstElementChild;o&&t.replaceWith(o)},f=t=>{if(!(t instanceof Node))return null;const _=t instanceof HTMLElement?t:t.parentElement;return(_==null?void 0:_.closest(`[${l.INK_ATTR_GRAPH}]`))??null};exports.buildBarSvg=S;exports.buildGraphHtml=p;exports.buildLineSvg=T;exports.buildPieSvg=g;exports.getGraphBlock=f;exports.parseGraphColors=K;exports.parseGraphPoints=C;exports.replaceGraphBlock=M;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { GraphColors, GraphKind, GraphPoint } from './graph.types';
|
|
2
|
+
export declare const buildBarSvg: (points: GraphPoint[], colors?: GraphColors) => string;
|
|
3
|
+
export declare const buildLineSvg: (points: GraphPoint[], colors?: GraphColors) => string;
|
|
4
|
+
export declare const buildPieSvg: (points: GraphPoint[], colors?: GraphColors) => string;
|
|
5
|
+
export declare const parseGraphPoints: (value: string | null) => GraphPoint[];
|
|
6
|
+
export declare const parseGraphColors: (value: string | null) => GraphColors;
|
|
7
|
+
export declare const parseGraphValuesText: (text: string) => GraphPoint[];
|
|
8
|
+
export declare const buildGraphHtml: (kind: GraphKind, points: GraphPoint[], colors?: GraphColors) => string;
|
|
9
|
+
export declare const replaceGraphBlock: (block: HTMLElement, kind: GraphKind, points: GraphPoint[], colors?: GraphColors) => void;
|
|
10
|
+
export declare const getGraphBlock: (node: EventTarget | null) => HTMLElement | null;
|
|
11
|
+
//# sourceMappingURL=graph.utils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"graph.utils.d.ts","sourceRoot":"","sources":["../../../src/plugins/graph/graph.utils.ts"],"names":[],"mappings":"AAuBA,OAAO,KAAK,EAAE,WAAW,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAWxE,eAAO,MAAM,WAAW,GAAI,QAAQ,UAAU,EAAE,EAAE,SAAQ,WAA0B,KAAG,MAgBtF,CAAC;AAEF,eAAO,MAAM,YAAY,GAAI,QAAQ,UAAU,EAAE,EAAE,SAAQ,WAA0B,KAAG,MAoBvF,CAAC;AAEF,eAAO,MAAM,WAAW,GAAI,QAAQ,UAAU,EAAE,EAAE,SAAQ,WAA0B,KAAG,MAqBtF,CAAC;AAIF,eAAO,MAAM,gBAAgB,GAAI,OAAO,MAAM,GAAG,IAAI,KAAG,UAAU,EAejE,CAAC;AAEF,eAAO,MAAM,gBAAgB,GAAI,OAAO,MAAM,GAAG,IAAI,KAAG,WAUvD,CAAC;AAEF,eAAO,MAAM,oBAAoB,GAAI,MAAM,MAAM,KAAG,UAAU,EAQxD,CAAC;AAEP,eAAO,MAAM,cAAc,GACzB,MAAM,SAAS,EACf,QAAQ,UAAU,EAAE,EACpB,SAAQ,WAA0B,KACjC,MASF,CAAC;AAEF,eAAO,MAAM,iBAAiB,GAC5B,OAAO,WAAW,EAClB,MAAM,SAAS,EACf,QAAQ,UAAU,EAAE,EACpB,SAAS,WAAW,KACnB,IAQF,CAAC;AAEF,eAAO,MAAM,aAAa,GAAI,MAAM,WAAW,GAAG,IAAI,KAAG,WAAW,GAAG,IAItE,CAAC"}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { NUMBER_ZERO as g, NUMBER_ONE as m, INK_GRAPH_PAD as R, INK_GRAPH_HEIGHT as $, INK_GRAPH_WIDTH as h } from "../../constants/numbers.js";
|
|
2
|
+
import { EMPTY_STRING as G } from "../../constants/generals.const.js";
|
|
3
|
+
import { INK_CLASS_GRAPH_BLOCK as b, INK_ATTR_GRAPH as v, INK_ATTR_GRAPH_POINTS as L, INK_ATTR_GRAPH_COLORS as E, INK_CLASS_GRAPH_WRAP as H } from "../../constants/defaults.const.js";
|
|
4
|
+
import "../../constants/openai.const.js";
|
|
5
|
+
import "react/jsx-runtime";
|
|
6
|
+
import "../../utils/paste.utils.js";
|
|
7
|
+
import "react";
|
|
8
|
+
import "react-dom";
|
|
9
|
+
import { GRAPH_COLORS as l, GRAPH_DOT_RADIUS as B, GRAPH_LABEL_SIZE as S, GRAPH_LABEL_OFFSET as N, GRAPH_STROKE_PX as K, GRAPH_PIE_RADIUS as w, GRAPH_BAR_GAP_PX as y, GRAPH_CORNER as U } from "./graph.const.js";
|
|
10
|
+
const T = (t) => Math.max(...t.map((e) => e.value), m), P = (t, e) => t[e % t.length] ?? l[e % l.length] ?? l[g], x = (t) => t && t.length > g ? t : l, W = (t, e = l) => {
|
|
11
|
+
const n = x(e), o = h - R * 2, c = $ - R * 2, a = T(t), s = (o - y * (t.length - m)) / t.length, p = t.map((u, _) => {
|
|
12
|
+
const A = u.value / a * c, r = R + _ * (s + y), i = R + c - A, f = P(n, _);
|
|
13
|
+
return `<rect x="${r}" y="${i}" width="${s}" height="${A}" fill="${f}" rx="${U}"/><text x="${r + s / 2}" y="${$ - N}" text-anchor="middle" font-size="${S}" fill="#5C5E56">${u.label}</text>`;
|
|
14
|
+
}).join(G);
|
|
15
|
+
return `<svg class="${H}" viewBox="0 0 ${h} ${$}" width="${h}" height="${$}">${p}</svg>`;
|
|
16
|
+
}, j = (t, e = l) => {
|
|
17
|
+
const n = x(e), o = P(n, g), c = h - R * 2, a = $ - R * 2, s = T(t), p = t.length > m ? c / (t.length - m) : c, u = t.map((r, i) => {
|
|
18
|
+
const f = R + i * p, d = R + a - r.value / s * a;
|
|
19
|
+
return { x: f, y: d, label: r.label };
|
|
20
|
+
}), _ = u.map((r, i) => `${i === 0 ? "M" : "L"}${r.x} ${r.y}`).join(" "), A = u.map(
|
|
21
|
+
(r, i) => `<circle cx="${r.x}" cy="${r.y}" r="${B}" fill="${P(n, i)}"/><text x="${r.x}" y="${$ - N}" text-anchor="middle" font-size="${S}" fill="#5C5E56">${r.label}</text>`
|
|
22
|
+
).join(G);
|
|
23
|
+
return `<svg class="${H}" viewBox="0 0 ${h} ${$}" width="${h}" height="${$}"><path d="${_}" fill="none" stroke="${o}" stroke-width="${K}"/>${A}</svg>`;
|
|
24
|
+
}, D = (t, e = l) => {
|
|
25
|
+
const n = x(e), o = t.reduce((_, A) => _ + A.value, g) || m, c = h / 2, a = $ / 2, s = w;
|
|
26
|
+
let p = -Math.PI / 2;
|
|
27
|
+
const u = t.map((_, A) => {
|
|
28
|
+
const r = _.value / o * Math.PI * 2, i = p;
|
|
29
|
+
p += r;
|
|
30
|
+
const f = c + s * Math.cos(i), d = a + s * Math.sin(i), C = c + s * Math.cos(p), M = a + s * Math.sin(p), O = r > Math.PI ? m : g;
|
|
31
|
+
return `<path d="M ${c} ${a} L ${f} ${d} A ${s} ${s} 0 ${O} 1 ${C} ${M} Z" fill="${P(n, A)}"/>`;
|
|
32
|
+
}).join(G);
|
|
33
|
+
return `<svg class="${H}" viewBox="0 0 ${h} ${$}" width="${h}" height="${$}">${u}</svg>`;
|
|
34
|
+
}, I = (t) => encodeURIComponent(JSON.stringify(t)), et = (t) => {
|
|
35
|
+
if (!t) return [];
|
|
36
|
+
try {
|
|
37
|
+
const e = JSON.parse(decodeURIComponent(t));
|
|
38
|
+
return Array.isArray(e) ? e.filter(
|
|
39
|
+
(n) => !!n && typeof n == "object" && typeof n.label == "string" && typeof n.value == "number"
|
|
40
|
+
) : [];
|
|
41
|
+
} catch {
|
|
42
|
+
return [];
|
|
43
|
+
}
|
|
44
|
+
}, k = (t) => {
|
|
45
|
+
if (!t) return [...l];
|
|
46
|
+
try {
|
|
47
|
+
const e = JSON.parse(decodeURIComponent(t));
|
|
48
|
+
if (!Array.isArray(e)) return [...l];
|
|
49
|
+
const n = e.filter((o) => typeof o == "string" && o.length > g);
|
|
50
|
+
return n.length > g ? n : [...l];
|
|
51
|
+
} catch {
|
|
52
|
+
return [...l];
|
|
53
|
+
}
|
|
54
|
+
}, J = (t, e, n = l) => {
|
|
55
|
+
const o = x(n), c = t === "line" ? j(e, o) : t === "pie" ? D(e, o) : W(e, o);
|
|
56
|
+
return `<p class="${b}" ${v}="${t}" ${L}="${I(e)}" ${E}="${I(o)}">${c}</p><p><br></p>`;
|
|
57
|
+
}, nt = (t, e, n, o) => {
|
|
58
|
+
const c = o ?? k(t.getAttribute(E)), a = document.createElement("div");
|
|
59
|
+
a.innerHTML = J(e, n, c);
|
|
60
|
+
const s = a.firstElementChild;
|
|
61
|
+
s && t.replaceWith(s);
|
|
62
|
+
}, rt = (t) => {
|
|
63
|
+
if (!(t instanceof Node)) return null;
|
|
64
|
+
const e = t instanceof HTMLElement ? t : t.parentElement;
|
|
65
|
+
return (e == null ? void 0 : e.closest(`[${v}]`)) ?? null;
|
|
66
|
+
};
|
|
67
|
+
export {
|
|
68
|
+
W as buildBarSvg,
|
|
69
|
+
J as buildGraphHtml,
|
|
70
|
+
j as buildLineSvg,
|
|
71
|
+
D as buildPieSvg,
|
|
72
|
+
rt as getGraphBlock,
|
|
73
|
+
k as parseGraphColors,
|
|
74
|
+
et as parseGraphPoints,
|
|
75
|
+
nt as replaceGraphBlock
|
|
76
|
+
};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export { GRAPH_KIND_DEFAULT, GRAPH_KIND_LABELS, GRAPH_KINDS, GRAPH_SAMPLE } from './graph.const';
|
|
2
|
+
export { buildGraphHtml, getGraphBlock, parseGraphColors, parseGraphPoints, parseGraphValuesText, replaceGraphBlock, } from './graph.utils';
|
|
3
|
+
export type { GraphColors, GraphKind, GraphPoint } from './graph.types';
|
|
4
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/plugins/graph/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AACjG,OAAO,EACL,cAAc,EACd,aAAa,EACb,gBAAgB,EAChB,gBAAgB,EAChB,oBAAoB,EACpB,iBAAiB,GAClB,MAAM,eAAe,CAAC;AACvB,YAAY,EAAE,WAAW,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/plugins/host/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("../../constants/plugins.const.cjs"),e=new Map,l=()=>{n.BUNDLED_HOST_PLUGINS.forEach(t=>{e.has(t.id)||e.set(t.id,t)})},s=()=>(l(),{install:t=>{e.set(t.id,t)},uninstall:t=>{e.delete(t)},isInstalled:t=>e.has(t),get:t=>e.get(t),list:()=>Array.from(e.values())}),i=s();exports.createInkPluginHost=s;exports.inkPlugins=i;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { InkHostPlugin, InkHostPluginId } from '../../types/plugin.types';
|
|
2
|
+
export declare const createInkPluginHost: () => {
|
|
3
|
+
install: (plugin: InkHostPlugin) => void;
|
|
4
|
+
uninstall: (id: InkHostPluginId) => void;
|
|
5
|
+
isInstalled: (id: InkHostPluginId) => boolean;
|
|
6
|
+
get: (id: InkHostPluginId) => InkHostPlugin | undefined;
|
|
7
|
+
list: () => InkHostPlugin[];
|
|
8
|
+
};
|
|
9
|
+
export declare const inkPlugins: {
|
|
10
|
+
install: (plugin: InkHostPlugin) => void;
|
|
11
|
+
uninstall: (id: InkHostPluginId) => void;
|
|
12
|
+
isInstalled: (id: InkHostPluginId) => boolean;
|
|
13
|
+
get: (id: InkHostPluginId) => InkHostPlugin | undefined;
|
|
14
|
+
list: () => InkHostPlugin[];
|
|
15
|
+
};
|
|
16
|
+
//# sourceMappingURL=inkPlugins.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"inkPlugins.d.ts","sourceRoot":"","sources":["../../../src/plugins/host/inkPlugins.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAY/E,eAAO,MAAM,mBAAmB;sBAGV,aAAa,KAAG,IAAI;oBAGtB,eAAe,KAAG,IAAI;sBAGpB,eAAe,KAAG,OAAO;cACjC,eAAe,KAAG,aAAa,GAAG,SAAS;gBAC3C,aAAa,EAAE;CAE5B,CAAC;AAEF,eAAO,MAAM,UAAU;sBAZD,aAAa,KAAG,IAAI;oBAGtB,eAAe,KAAG,IAAI;sBAGpB,eAAe,KAAG,OAAO;cACjC,eAAe,KAAG,aAAa,GAAG,SAAS;gBAC3C,aAAa,EAAE;CAIkB,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { BUNDLED_HOST_PLUGINS as e } from "../../constants/plugins.const.js";
|
|
2
|
+
const s = /* @__PURE__ */ new Map(), n = () => {
|
|
3
|
+
e.forEach((t) => {
|
|
4
|
+
s.has(t.id) || s.set(t.id, t);
|
|
5
|
+
});
|
|
6
|
+
}, l = () => (n(), {
|
|
7
|
+
install: (t) => {
|
|
8
|
+
s.set(t.id, t);
|
|
9
|
+
},
|
|
10
|
+
uninstall: (t) => {
|
|
11
|
+
s.delete(t);
|
|
12
|
+
},
|
|
13
|
+
isInstalled: (t) => s.has(t),
|
|
14
|
+
get: (t) => s.get(t),
|
|
15
|
+
list: () => Array.from(s.values())
|
|
16
|
+
}), i = l();
|
|
17
|
+
export {
|
|
18
|
+
l as createInkPluginHost,
|
|
19
|
+
i as inkPlugins
|
|
20
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/plugins/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export { INK_THEMES, THEME_ATTR, THEME_DEFAULT, THEME_ID_DARK, THEME_ID_INK, THEME_ID_PAPER, THEME_ID_SNOW } from './theme.const';
|
|
2
|
+
export { applyInkTheme, createInkThemePlugin, inkTheme } from './inkTheme';
|
|
3
|
+
export type { InkThemeDefinition, InkThemeId, InkThemePlugin } from './theme.types';
|
|
4
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/plugins/theme/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,aAAa,EAAE,aAAa,EAAE,YAAY,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAClI,OAAO,EAAE,aAAa,EAAE,oBAAoB,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAC3E,YAAY,EAAE,kBAAkB,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("../../constants/plugins.const.cjs"),s=require("../host/inkPlugins.cjs"),e=require("./theme.const.cjs");let i=e.THEME_DEFAULT;const T=(t,n)=>{if(i=n,!!t){if(n===e.THEME_ID_PAPER){t.removeAttribute(e.THEME_ATTR);return}t.setAttribute(e.THEME_ATTR,n)}},l=()=>({install:()=>{s.inkPlugins.install({id:r.PLUGIN_ID_THEME,label:"Theme",color:r.PLUGIN_COLOR_THEME,hint:"Paper theme for the editor"})},apply:T,list:()=>e.INK_THEMES,current:()=>i}),u=l();exports.applyInkTheme=T;exports.createInkThemePlugin=l;exports.inkTheme=u;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { InkThemeId, InkThemePlugin } from './theme.types';
|
|
2
|
+
export declare const applyInkTheme: (root: HTMLElement | null, id: InkThemeId) => void;
|
|
3
|
+
export declare const createInkThemePlugin: () => InkThemePlugin;
|
|
4
|
+
export declare const inkTheme: InkThemePlugin;
|
|
5
|
+
//# sourceMappingURL=inkTheme.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"inkTheme.d.ts","sourceRoot":"","sources":["../../../src/plugins/theme/inkTheme.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAIhE,eAAO,MAAM,aAAa,GAAI,MAAM,WAAW,GAAG,IAAI,EAAE,IAAI,UAAU,KAAG,IAQxE,CAAC;AAEF,eAAO,MAAM,oBAAoB,QAAO,cAYtC,CAAC;AAEH,eAAO,MAAM,QAAQ,gBAAyB,CAAC"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { PLUGIN_COLOR_THEME as i, PLUGIN_ID_THEME as E } from "../../constants/plugins.const.js";
|
|
2
|
+
import { inkPlugins as T } from "../host/inkPlugins.js";
|
|
3
|
+
import { THEME_DEFAULT as l, INK_THEMES as m, THEME_ID_PAPER as o, THEME_ATTR as r } from "./theme.const.js";
|
|
4
|
+
let n = l;
|
|
5
|
+
const p = (e, t) => {
|
|
6
|
+
if (n = t, !!e) {
|
|
7
|
+
if (t === o) {
|
|
8
|
+
e.removeAttribute(r);
|
|
9
|
+
return;
|
|
10
|
+
}
|
|
11
|
+
e.setAttribute(r, t);
|
|
12
|
+
}
|
|
13
|
+
}, _ = () => ({
|
|
14
|
+
install: () => {
|
|
15
|
+
T.install({
|
|
16
|
+
id: E,
|
|
17
|
+
label: "Theme",
|
|
18
|
+
color: i,
|
|
19
|
+
hint: "Paper theme for the editor"
|
|
20
|
+
});
|
|
21
|
+
},
|
|
22
|
+
apply: p,
|
|
23
|
+
list: () => m,
|
|
24
|
+
current: () => n
|
|
25
|
+
}), a = _();
|
|
26
|
+
export {
|
|
27
|
+
p as applyInkTheme,
|
|
28
|
+
_ as createInkThemePlugin,
|
|
29
|
+
a as inkTheme
|
|
30
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const E="paper",_="snow",T="ink",e="dark",t="data-ink-theme",M=E,n=[{id:E,label:"Paper"},{id:_,label:"Snow"},{id:T,label:"Ink"},{id:e,label:"Dark"}];exports.INK_THEMES=n;exports.THEME_ATTR=t;exports.THEME_DEFAULT=M;exports.THEME_ID_DARK=e;exports.THEME_ID_INK=T;exports.THEME_ID_PAPER=E;exports.THEME_ID_SNOW=_;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { InkThemeDefinition, InkThemeId } from './theme.types';
|
|
2
|
+
export declare const THEME_ID_PAPER: InkThemeId;
|
|
3
|
+
export declare const THEME_ID_SNOW: InkThemeId;
|
|
4
|
+
export declare const THEME_ID_INK: InkThemeId;
|
|
5
|
+
export declare const THEME_ID_DARK: InkThemeId;
|
|
6
|
+
export declare const THEME_ATTR = "data-ink-theme";
|
|
7
|
+
export declare const THEME_DEFAULT: InkThemeId;
|
|
8
|
+
export declare const INK_THEMES: InkThemeDefinition[];
|
|
9
|
+
//# sourceMappingURL=theme.const.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"theme.const.d.ts","sourceRoot":"","sources":["../../../src/plugins/theme/theme.const.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAEpE,eAAO,MAAM,cAAc,EAAE,UAAoB,CAAC;AAClD,eAAO,MAAM,aAAa,EAAE,UAAmB,CAAC;AAChD,eAAO,MAAM,YAAY,EAAE,UAAkB,CAAC;AAC9C,eAAO,MAAM,aAAa,EAAE,UAAmB,CAAC;AAChD,eAAO,MAAM,UAAU,mBAAmB,CAAC;AAC3C,eAAO,MAAM,aAAa,EAAE,UAA2B,CAAC;AAExD,eAAO,MAAM,UAAU,EAAE,kBAAkB,EAK1C,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
const E = "paper", _ = "snow", T = "ink", n = "dark", a = "data-ink-theme", o = E, t = [
|
|
2
|
+
{ id: E, label: "Paper" },
|
|
3
|
+
{ id: _, label: "Snow" },
|
|
4
|
+
{ id: "ink", label: "Ink" },
|
|
5
|
+
{ id: n, label: "Dark" }
|
|
6
|
+
];
|
|
7
|
+
export {
|
|
8
|
+
t as INK_THEMES,
|
|
9
|
+
a as THEME_ATTR,
|
|
10
|
+
o as THEME_DEFAULT,
|
|
11
|
+
n as THEME_ID_DARK,
|
|
12
|
+
T as THEME_ID_INK,
|
|
13
|
+
E as THEME_ID_PAPER,
|
|
14
|
+
_ as THEME_ID_SNOW
|
|
15
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export type InkThemeId = 'paper' | 'snow' | 'ink' | 'dark';
|
|
2
|
+
export type InkThemeDefinition = {
|
|
3
|
+
id: InkThemeId;
|
|
4
|
+
label: string;
|
|
5
|
+
};
|
|
6
|
+
export type InkThemePlugin = {
|
|
7
|
+
install: () => void;
|
|
8
|
+
apply: (root: HTMLElement | null, id: InkThemeId) => void;
|
|
9
|
+
list: () => InkThemeDefinition[];
|
|
10
|
+
current: () => InkThemeId;
|
|
11
|
+
};
|
|
12
|
+
//# sourceMappingURL=theme.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"theme.types.d.ts","sourceRoot":"","sources":["../../../src/plugins/theme/theme.types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,UAAU,GAAG,OAAO,GAAG,MAAM,GAAG,KAAK,GAAG,MAAM,CAAC;AAE3D,MAAM,MAAM,kBAAkB,GAAG;IAC/B,EAAE,EAAE,UAAU,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG;IAC3B,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,KAAK,EAAE,CAAC,IAAI,EAAE,WAAW,GAAG,IAAI,EAAE,EAAE,EAAE,UAAU,KAAK,IAAI,CAAC;IAC1D,IAAI,EAAE,MAAM,kBAAkB,EAAE,CAAC;IACjC,OAAO,EAAE,MAAM,UAAU,CAAC;CAC3B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/plugins/titles/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAC1F,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAChD,YAAY,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const T=require("../../constants/numbers.cjs");require("../../constants/openai.const.cjs");require("react/jsx-runtime");require("../../utils/paste.utils.cjs");require("react");require("react-dom");const t=2,E=Array.from({length:T.INK_TITLE_STYLE_COUNT},(n,r)=>{const e=r+T.NUMBER_ONE;return`t${String(e).padStart(t,"0")}`}),_="Aa",L=E[T.NUMBER_ZERO]??"t01";exports.TITLE_PREVIEW_TEXT=_;exports.TITLE_STYLE_DEFAULT=L;exports.TITLE_STYLE_IDS=E;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"titles.const.d.ts","sourceRoot":"","sources":["../../../src/plugins/titles/titles.const.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,eAAe,UAG1B,CAAC;AAEH,eAAO,MAAM,kBAAkB,OAAO,CAAC;AACvC,eAAO,MAAM,mBAAmB,QAAwC,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { INK_TITLE_STYLE_COUNT as T, NUMBER_ZERO as r, NUMBER_ONE as o } from "../../constants/numbers.js";
|
|
2
|
+
import "../../constants/openai.const.js";
|
|
3
|
+
import "react/jsx-runtime";
|
|
4
|
+
import "../../utils/paste.utils.js";
|
|
5
|
+
import "react";
|
|
6
|
+
import "react-dom";
|
|
7
|
+
const _ = 2, n = Array.from({ length: T }, (L, t) => {
|
|
8
|
+
const E = t + o;
|
|
9
|
+
return `t${String(E).padStart(_, "0")}`;
|
|
10
|
+
}), c = "Aa", s = n[r] ?? "t01";
|
|
11
|
+
export {
|
|
12
|
+
c as TITLE_PREVIEW_TEXT,
|
|
13
|
+
s as TITLE_STYLE_DEFAULT,
|
|
14
|
+
n as TITLE_STYLE_IDS
|
|
15
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"titles.types.d.ts","sourceRoot":"","sources":["../../../src/plugins/titles/titles.types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,YAAY,GAAG,MAAM,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("../../constants/generals.const.cjs"),T=require("../../constants/defaults.const.cjs");require("../../constants/openai.const.cjs");require("react/jsx-runtime");require("../../utils/paste.utils.cjs");require("react");require("react-dom");const s="&",_="<",l=">",i=""",o=e=>e.replace(/&/g,s).replace(/</g,_).replace(/>/g,l).replace(/"/g,i),n=(e,r=t.INK_TITLES_DEFAULT_TEXT)=>{const c=o(r.trim()||t.INK_TITLES_DEFAULT_TEXT);return`<p class="${T.INK_CLASS_TITLE} ${T.INK_CLASS_TITLE}--${e}" ${T.INK_ATTR_TITLE}="${e}">${c}</p><p><br></p>`};exports.buildTitleHtml=n;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"titles.utils.d.ts","sourceRoot":"","sources":["../../../src/plugins/titles/titles.utils.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAcnD,eAAO,MAAM,cAAc,GAAI,SAAS,YAAY,EAAE,aAA8B,KAAG,MAGtF,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { INK_TITLES_DEFAULT_TEXT as t } from "../../constants/generals.const.js";
|
|
2
|
+
import { INK_CLASS_TITLE as o, INK_ATTR_TITLE as e } from "../../constants/defaults.const.js";
|
|
3
|
+
import "../../constants/openai.const.js";
|
|
4
|
+
import "react/jsx-runtime";
|
|
5
|
+
import "../../utils/paste.utils.js";
|
|
6
|
+
import "react";
|
|
7
|
+
import "react-dom";
|
|
8
|
+
const c = "&", m = "<", i = ">", _ = """, s = (T) => T.replace(/&/g, c).replace(/</g, m).replace(/>/g, i).replace(/"/g, _), $ = (T, p = t) => {
|
|
9
|
+
const r = s(p.trim() || t);
|
|
10
|
+
return `<p class="${o} ${o}--${T}" ${e}="${T}">${r}</p><p><br></p>`;
|
|
11
|
+
};
|
|
12
|
+
export {
|
|
13
|
+
$ as buildTitleHtml
|
|
14
|
+
};
|
package/dist/styles.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
:root{--ink-color-border: #e5e7eb;--ink-color-bg: #ffffff;--ink-color-toolbar: #f8fafc;--ink-color-text: #0f172a;--ink-color-muted: #64748b;--ink-color-accent: #0d9488;--ink-color-accent-soft: #ccfbf1}.Ink-Button{border:0;background:rgba(0,0,0,0);color:inherit;border-radius:.45rem;cursor:pointer;min-width:2rem;height:2rem;padding:0 .4rem;font-weight:650;font-size:.85rem}.Ink-Button:hover{background:rgba(15,23,42,.05)}.Ink-Button--active{background:var(--ink-accent-soft);color:var(--ink-accent)}.Ink-Button:disabled{opacity:.45;cursor:not-allowed}.Ink-Box{display:block;box-sizing:border-box}.Ink-Field{display:flex;flex-direction:column;flex-wrap:nowrap;gap:.25rem;font-size:.875rem;color:var(--ink-muted)}.Ink-Field input{border:1px solid var(--ink-border);border-radius:.4rem;padding:.4rem .55rem;background:var(--ink-bg);color:var(--ink-text);font:inherit}.Ink-Field__label{display:block;box-sizing:border-box;font-size:.8rem;color:var(--ink-muted)}.Ink-Canvas{display:block;max-width:100%;touch-action:none;cursor:crosshair;border:1px dashed var(--ink-border);border-radius:.5rem;background:var(--ink-bg)}.Ink-ContextMenu{position:fixed;z-index:50;min-width:11rem;padding:.3rem;border:1px solid #e5e7eb;border-radius:.65rem;background:#fff;color:#0f172a;box-shadow:0 10px 40px rgba(15,23,42,.12)}.Ink-ContextMenu[data-color-mode=dark]{border-color:#3f3f46;background:#18181b;color:#f4f4f5;box-shadow:0 10px 40px rgba(0,0,0,.35)}@media(prefers-color-scheme: dark){.Ink-ContextMenu:not([data-color-mode]){border-color:#3f3f46;background:#18181b;color:#f4f4f5;box-shadow:0 10px 40px rgba(0,0,0,.35)}}.Ink-ContextMenu__item{border:0;background:rgba(0,0,0,0);color:inherit;border-radius:.45rem;cursor:pointer;min-width:2rem;height:2rem;padding:0 .4rem;font-weight:650;font-size:.85rem}.Ink-ContextMenu__item:hover{background:rgba(15,23,42,.05)}.Ink-ContextMenu__item--active{background:var(--ink-accent-soft);color:var(--ink-accent)}.Ink-ContextMenu__item:disabled{opacity:.45;cursor:not-allowed}.Ink-ContextMenu__item{display:block;width:100%;min-width:0;height:auto;padding:.45rem .6rem;text-align:left;font-weight:500}.Ink-ContextMenu__item:hover{background:var(--ink-accent-soft);color:var(--ink-accent)}.Ink-Icon{display:inline-flex;width:1rem;height:1rem;align-items:center;justify-content:center}.Ink-Icon svg{width:100%;height:100%;fill:none;stroke:currentColor;stroke-width:1.75;stroke-linecap:round;stroke-linejoin:round}.Ink-Icon--grip svg{fill:currentColor;stroke:none}.Ink-InlineToolbar{position:fixed;z-index:12;display:flex;align-items:center;gap:.1rem;padding:.25rem .3rem;border:1px solid rgba(15,23,42,.08);border-radius:.5rem;background:#fff;box-shadow:0 3px 15px rgba(15,23,42,.12),0 0 0 1px rgba(15,23,42,.03);color:var(--ink-text)}.Ink-InlineToolbar__item{min-width:1.85rem;height:1.85rem;padding:0 .35rem;border-radius:.35rem;font-size:.8rem;font-weight:650}.Ink-InlineToolbar__divider{width:1px;height:1.1rem;margin:0 .2rem;background:rgba(15,23,42,.12)}.Ink-Editor{--ink-border: #e5e7eb;--ink-bg: #ffffff;--ink-toolbar: #f8fafc;--ink-text: #0f172a;--ink-muted: #64748b;--ink-accent: #0d9488;--ink-accent-soft: #ccfbf1;--ink-shadow: 0 10px 40px rgba(15, 23, 42, 0.08);--ink-table-header: #f1f5f9;--ink-radius: 1rem;--ink-font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;--ink-ai-accent: var(--ink-accent);--ink-ai-surface: var(--ink-toolbar);--ink-ai-border: var(--ink-border);border:1px solid var(--ink-border);border-radius:var(--ink-radius);overflow:hidden;background:var(--ink-bg);color:var(--ink-text);box-shadow:var(--ink-shadow);font-family:var(--ink-font-family)}.Ink-Editor[data-wysiwyg=true] .Ink-Editor__content{font-family:inherit;line-height:1.65}.Ink-Editor[data-wysiwyg=true] .Ink-Editor__content img{max-width:100%;height:auto}.Ink-Editor[data-wysiwyg=true] .Ink-Editor__content table{border-collapse:collapse;width:100%}.Ink-Editor[data-wysiwyg=true] .Ink-Editor__content th,.Ink-Editor[data-wysiwyg=true] .Ink-Editor__content td{border:1px solid var(--ink-border);padding:.4rem .6rem}.Ink-Editor[data-variant=document],.Ink-Editor[data-variant=docx]{--ink-toolbar: #ffffff;box-shadow:0 4px 24px rgba(15,23,42,.06)}.Ink-Editor[data-variant=docx]{--ink-accent: #2b579a;border-color:#d0d7de;background:#f3f3f3}.Ink-Editor[data-variant=docx] .Ink-Editor__toolbar{background:linear-gradient(180deg, #ffffff 0%, #f0f3f7 100%);border-bottom:1px solid #c8d0d8}.Ink-Editor[data-variant=docx] .Ink-Editor__content{max-width:48rem;margin:1rem auto;min-height:22rem;background:#fff;border:1px solid #d8dee6;box-shadow:0 1px 2px rgba(15,23,42,.04);padding:2.5rem 3rem}.Ink-Editor[data-variant=simple]{--ink-toolbar: transparent;border:none;box-shadow:none;background:rgba(0,0,0,0)}.Ink-Editor[data-variant=simple] .Ink-Editor__toolbar{border-bottom:none;padding-inline:0;gap:.25rem}.Ink-Editor[data-variant=simple] .Ink-Editor__content{padding:.5rem 0;font-size:1rem}.Ink-Editor[data-variant=notion-like]{--ink-toolbar: transparent;--ink-accent: #111827;border:none;box-shadow:none;border-radius:0;background:#fff}.Ink-Editor[data-variant=notion-like] .Ink-Editor__toolbar{border-bottom:none;background:rgba(0,0,0,0);opacity:.85}.Ink-Editor[data-variant=notion-like] .Ink-Editor__content{max-width:42rem;margin-inline:auto;padding-block:2rem;font-size:1.125rem;line-height:1.75}.Ink-Editor[data-variant=agent]{--ink-toolbar: #f8fafc;--ink-accent: #0f766e;box-shadow:0 8px 28px rgba(15,23,42,.08);border-color:rgba(15,118,110,.25)}.Ink-Editor[data-variant=agent] .Ink-Editor__shell{position:relative}.Ink-Editor[data-variant=agent] .Ink-Editor__toolbar{background:linear-gradient(180deg, #f0fdfa 0%, #f8fafc 100%)}.Ink-Editor__agent-bar{display:flex;align-items:center;gap:.65rem;margin:.75rem 1rem 1rem;padding:.65rem .85rem;border:1px solid rgba(15,118,110,.25);border-radius:999px;background:linear-gradient(90deg, #ecfdf5 0%, #ffffff 55%);box-shadow:0 8px 20px rgba(15,118,110,.08);color:#0f766e;font-size:.9rem}.Ink-Editor[data-disabled=true]{opacity:.6;pointer-events:none}.Ink-Editor[data-chrome=borderless]{border:none;box-shadow:none;border-radius:0}.Ink-Editor[data-chrome=borderless] .Ink-Editor__toolbar{border-bottom:none;background:rgba(0,0,0,0)}.Ink-Editor__toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:.2rem;padding:.55rem .65rem;border-bottom:1px solid var(--ink-border);background:var(--ink-toolbar)}.Ink-Editor__toolbar-show{display:flex;align-items:center;padding:.35rem .65rem;border-bottom:1px solid var(--ink-border);background:var(--ink-toolbar)}.Ink-ToolbarCustomize{display:flex;flex-direction:column;flex-wrap:nowrap;gap:.5rem;padding:.75rem;border-bottom:1px solid var(--ink-border);background:var(--ink-toolbar);color:var(--ink-text)}.Ink-ToolbarCustomize__title{margin:0;font-size:.875rem;font-weight:650}.Ink-ToolbarCustomize__list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:.35rem;max-height:14rem;overflow:auto}.Ink-ToolbarCustomize__item label{display:flex;align-items:center;gap:.5rem;font-size:.875rem;color:var(--ink-text);cursor:pointer}.Ink-ToolbarCustomize__actions{display:flex;flex-wrap:wrap;gap:.35rem}.Ink-Editor__button{border:0;background:rgba(0,0,0,0);color:inherit;border-radius:.45rem;cursor:pointer;min-width:2rem;height:2rem;padding:0 .4rem;font-weight:650;font-size:.85rem}.Ink-Editor__button:hover{background:rgba(15,23,42,.05)}.Ink-Editor__button--active{background:var(--ink-accent-soft);color:var(--ink-accent)}.Ink-Editor__button:disabled{opacity:.45;cursor:not-allowed}.Ink-Editor__select{border:0;background:rgba(0,0,0,0);color:inherit;border-radius:.45rem;cursor:pointer}.Ink-Editor__select:hover{background:rgba(15,23,42,.05)}.Ink-Editor__select{height:2rem;padding:0 .5rem;border:1px solid rgba(0,0,0,0)}.Ink-Editor__select:focus{outline:none;border-color:var(--ink-accent);background:#fff}.Ink-Editor__divider{width:1px;height:1.25rem;margin:0 .3rem;background:var(--ink-border)}.Ink-Editor__color{position:relative;display:inline-flex;align-items:center;justify-content:center;width:2rem;height:2rem;cursor:pointer}.Ink-Editor__color input{position:absolute;inset:0;opacity:0;cursor:pointer}.Ink-Editor__color-swatch{width:1rem;height:1rem;border-radius:999px;border:1px solid var(--ink-border)}.Ink-Editor__shell{position:relative;display:flex;align-items:stretch;min-height:0}.Ink-Editor__body{position:relative;flex:1 1 auto;min-width:0}.Ink-Editor__content{min-height:150px;padding:1.1rem 1.25rem 1.1rem 2.5rem;outline:none;overflow:auto;line-height:1.65}.Ink-Editor[data-variant=document] .Ink-Editor__content{padding:2rem 2.5rem 2rem 3rem;max-width:48rem;margin:0 auto}.Ink-Editor__content:empty::before{content:attr(data-placeholder);color:var(--ink-muted);pointer-events:none}.Ink-Editor__content img{max-width:100%;height:auto;border-radius:.35rem}.Ink-Editor__content h1,.Ink-Editor__content h2,.Ink-Editor__content h3,.Ink-Editor__content h4,.Ink-Editor__content h5,.Ink-Editor__content h6{margin:.85rem 0 .45rem;line-height:1.25}.Ink-Editor__content p,.Ink-Editor__content ul,.Ink-Editor__content ol,.Ink-Editor__content blockquote,.Ink-Editor__content pre{margin:.55rem 0}.Ink-Editor__content ul{list-style:disc;padding-inline-start:1.5rem}.Ink-Editor__content ol{list-style:decimal;padding-inline-start:1.5rem}.Ink-Editor__content ul.Ink-list--dash{list-style-type:"– "}.Ink-Editor__content ol.Ink-list--alpha{list-style-type:lower-alpha}.Ink-Editor__content .Ink-block--active{outline:1px solid rgba(13,148,136,.35);border-radius:.35rem;background:rgba(13,148,136,.03)}.Ink-Editor__content .Ink-block--dragging{opacity:.45}.Ink-Editor__content .Ink-block--drop-before{box-shadow:inset 0 2px 0 0 var(--ink-accent)}.Ink-Editor__content .Ink-block--drop-after{box-shadow:inset 0 -2px 0 0 var(--ink-accent)}.Ink-Editor__content .Ink-table{width:100%;border-collapse:collapse;margin:.75rem 0;font-size:.95rem}.Ink-Editor__content .Ink-table th,.Ink-Editor__content .Ink-table td{border:1px solid var(--ink-border);padding:.45rem .6rem;min-width:4rem}.Ink-Editor__content .Ink-table th{background:var(--ink-table-header, var(--ink-toolbar));color:var(--ink-text);font-weight:650;text-align:left}.Ink-Editor__content .Ink-tc-insert{background:rgba(34,197,94,.18);text-decoration:none;color:inherit}.Ink-Editor__content .Ink-tc-delete{background:rgba(239,68,68,.14);color:#991b1b}.Ink-Editor__content .Ink-comment-mark{background:#fde047;border-radius:.15rem;padding:0 .1rem}.Ink-Editor__footer{padding:.35rem .75rem;border-top:1px solid var(--ink-border);font-size:.75rem;color:var(--ink-muted);text-align:right}.Ink-BlockHandles{position:absolute;left:.2rem;z-index:2;display:flex;flex-direction:column;align-items:center;gap:.2rem}.Ink-BlockHandles__plus,.Ink-BlockHandles__grip,.Ink-BlockHandles__btn{width:1.5rem;height:1.5rem;border:0;border-radius:999px;background:#fff;box-shadow:0 1px 4px rgba(15,23,42,.14);color:var(--ink-muted);cursor:pointer;font-size:.85rem;line-height:1;display:inline-flex;align-items:center;justify-content:center;padding:0}.Ink-BlockHandles__plus{font-weight:500;font-size:1rem}.Ink-BlockHandles__grip{cursor:grab}.Ink-BlockHandles__grip .Ink-Icon{width:.85rem;height:.85rem}.Ink-BlockHandles__grip:active{cursor:grabbing}.Ink-BlockHandles__btn{width:1.35rem;height:1.35rem;font-size:.65rem;opacity:.85}.Ink-BlockHandles__plus:hover,.Ink-BlockHandles__btn:hover,.Ink-BlockHandles__grip:hover{color:var(--ink-accent);background:var(--ink-accent-soft)}.Ink-Slash{position:absolute;z-index:5;min-width:12rem;background:#fff;border:1px solid rgba(15,23,42,.08);border-radius:.55rem;box-shadow:0 4px 18px rgba(15,23,42,.12),0 0 0 1px rgba(15,23,42,.03);padding:.35rem}.Ink-Slash__item{display:block;width:100%;text-align:left;border:0;background:rgba(0,0,0,0);padding:.45rem .6rem;border-radius:.4rem;cursor:pointer;color:inherit}.Ink-Slash__item:hover{background:var(--ink-accent-soft);color:var(--ink-accent)}.Ink-TrackBar{display:flex;flex-wrap:wrap;align-items:center;gap:.5rem;padding:.45rem .75rem;border-bottom:1px solid var(--ink-border);background:#fffbeb;font-size:.8rem}.Ink-TrackBar__label{font-weight:650;color:#92400e}.Ink-TrackBar__actions{display:flex;gap:.25rem}.Ink-TrackBar__list{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:.35rem;width:100%}.Ink-TrackBar__list li{display:flex;align-items:center;gap:.25rem;background:#fff;border:1px solid #fde68a;border-radius:.45rem;padding:.2rem .35rem}.Ink-Comments{width:300px;flex:0 0 300px;border-left:1px solid var(--ink-border);background:#fcfcfd;display:flex;flex-direction:column;max-height:100%}.Ink-Comments__header,.Ink-Ai__header{display:flex;align-items:center;justify-content:space-between;padding:.65rem .75rem;border-bottom:1px solid var(--ink-border);font-size:.9rem}.Ink-Comments__list{overflow:auto;padding:.65rem;display:flex;flex-direction:column;gap:.65rem}.Ink-Comments__empty,.Ink-Ai__empty,.Ink-Ai__hint{color:var(--ink-muted);font-size:.85rem;line-height:1.45}.Ink-Comments__thread{border:1px solid var(--ink-border);border-radius:.65rem;padding:.65rem;background:#fff;box-shadow:0 1px 2px rgba(15,23,42,.04)}.Ink-Comments__thread--resolved{opacity:.65}.Ink-Comments__meta{display:flex;justify-content:space-between;gap:.5rem;font-size:.72rem;color:var(--ink-muted);margin-bottom:.35rem}.Ink-Comments__body{margin:0;font-size:.88rem}.Ink-Comments__reply{margin-top:.5rem;padding-left:.65rem;border-left:2px solid var(--ink-accent-soft)}.Ink-Comments__form{display:flex;flex-wrap:wrap;gap:.3rem;margin-top:.55rem}.Ink-Comments__form input,.Ink-Ai__form input,.Ink-Ai__translate select{flex:1 1 auto;min-width:0;border:1px solid var(--ink-border);border-radius:.45rem;padding:.4rem .5rem;font:inherit}.Ink-Comments__resolved{margin:.4rem 0 0;font-size:.75rem;color:var(--ink-muted)}.Ink-Ai{width:320px;flex:0 0 320px;border-left:1px solid var(--ink-ai-border, var(--ink-border));background:var(--ink-ai-surface, #f8fafc);display:flex;flex-direction:column;max-height:100%}.Ink-Ai[data-placement=floating]{position:absolute;right:1rem;top:3.5rem;z-index:6;border:1px solid var(--ink-ai-border, var(--ink-border));border-radius:.85rem;box-shadow:0 16px 40px rgba(15,23,42,.14);max-height:min(28rem,70vh)}.Ink-Ai[data-placement=drawer]{position:absolute;inset:0 0 0 auto;z-index:6;box-shadow:-8px 0 24px rgba(15,23,42,.08)}.Ink-Ai__tabs{display:flex;flex-wrap:wrap;gap:.2rem;padding:.4rem .55rem;border-bottom:1px solid var(--ink-ai-border, var(--ink-border))}.Ink-Ai__body{flex:1 1 auto;overflow:auto;padding:.65rem;display:flex;flex-direction:column;gap:.65rem}.Ink-Ai__history{display:flex;flex-direction:column;gap:.45rem;min-height:8rem}.Ink-Ai__turn{border-radius:.55rem;padding:.5rem .6rem;background:#fff;border:1px solid var(--ink-border);font-size:.85rem}.Ink-Ai__turn span{display:block;font-size:.68rem;text-transform:uppercase;letter-spacing:.04em;color:var(--ink-muted);margin-bottom:.2rem}.Ink-Ai__turn p{margin:0}.Ink-Ai__turn--user{border-color:rgba(13,148,136,.35);background:rgba(13,148,136,.06)}.Ink-Ai__form,.Ink-Ai__diff-actions,.Ink-Ai__actions{display:flex;flex-wrap:wrap;gap:.35rem}.Ink-Ai__action{width:100%;justify-content:flex-start;text-align:left;background:#fff;border:1px solid var(--ink-border) !important}.Ink-Ai__suggestion{border:1px solid var(--ink-border);border-radius:.55rem;padding:.55rem;background:#fff;font-size:.85rem}.Ink-Ai__suggestion--warning{border-color:#fbbf24}.Ink-Ai__suggestion--error{border-color:#f87171}.Ink-Ai__suggestion p{margin:.25rem 0}.Ink-Ai__suggestion code{display:block;font-size:.75rem;color:var(--ink-muted)}.Ink-Ai__translate label{display:flex;flex-direction:column;gap:.3rem;font-size:.8rem;color:var(--ink-muted)}.Ink-Ai__diff{border:1px solid rgba(13,148,136,.35);border-radius:.65rem;padding:.65rem;background:#fff}.Ink-Ai__diff-preview{margin:.4rem 0;padding:.45rem;border-radius:.4rem;background:rgba(13,148,136,.06);font-size:.85rem}.Ink-Ai__footer{padding:.4rem .75rem;border-top:1px solid var(--ink-ai-border, var(--ink-border));font-size:.7rem;color:var(--ink-muted)}.Ink-AiAutocomplete{position:absolute;z-index:4;pointer-events:none;color:var(--ink-muted);font-style:italic;white-space:pre-wrap;opacity:.65;user-select:none}@media(max-width: 900px){.Ink-Editor__shell{flex-direction:column}.Ink-Comments,.Ink-Ai{width:100%;flex:none;border-left:0;border-top:1px solid var(--ink-border);max-height:16rem}.Ink-Ai[data-placement=floating],.Ink-Ai[data-placement=drawer]{position:static;box-shadow:none;max-height:16rem}}.Ink-Editor[data-color-mode=light]{--ink-border: #e5e7eb;--ink-bg: #ffffff;--ink-toolbar: #f8fafc;--ink-text: #0f172a;--ink-muted: #64748b;--ink-accent: #0d9488;--ink-accent-soft: #ccfbf1;--ink-shadow: 0 10px 40px rgba(15, 23, 42, 0.08);--ink-table-header: #f1f5f9}.Ink-Editor[data-color-mode=dark]{--ink-border: #3f3f46;--ink-bg: #18181b;--ink-toolbar: #27272a;--ink-text: #f4f4f5;--ink-muted: #a1a1aa;--ink-accent: #2dd4bf;--ink-accent-soft: rgba(45, 212, 191, 0.15);--ink-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);--ink-table-header: #27272a}@media(prefers-color-scheme: dark){.Ink-Editor:not([data-color-mode]){--ink-border: #3f3f46;--ink-bg: #18181b;--ink-toolbar: #27272a;--ink-text: #f4f4f5;--ink-muted: #a1a1aa;--ink-accent: #2dd4bf;--ink-accent-soft: rgba(45, 212, 191, 0.15);--ink-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);--ink-table-header: #27272a}}.ink-theme-snow .Ink-Editor,.Ink-Editor.ink-theme-snow{--ink-border: #e5e7eb;--ink-bg: #ffffff;--ink-toolbar: #f9fafb;--ink-text: #111827;--ink-muted: #6b7280;--ink-accent: #0f766e;--ink-accent-soft: #ccfbf1;border-radius:.75rem}.ink-theme-bubble .Ink-Editor,.Ink-Editor.ink-theme-bubble{--ink-border: transparent;--ink-bg: #ffffff;--ink-toolbar: #ffffff;--ink-text: #111827;--ink-muted: #6b7280;--ink-accent: #0f766e;--ink-accent-soft: #ccfbf1;box-shadow:0 4px 24px rgba(15,23,42,.1);border-radius:1rem}.ink-theme-dark .Ink-Editor,.Ink-Editor.ink-theme-dark{--ink-border: #3f3f46;--ink-bg: #18181b;--ink-toolbar: #27272a;--ink-text: #f4f4f5;--ink-muted: #a1a1aa;--ink-accent: #2dd4bf;--ink-accent-soft: rgb(45 212 191 / 0.15);--ink-table-header: #27272a}.ink-theme-minimal .Ink-Editor,.Ink-Editor.ink-theme-minimal{--ink-border: #e7e5e4;--ink-bg: #ffffff;--ink-toolbar: #ffffff;--ink-text: #1c1917;--ink-muted: #78716c;--ink-accent: #0f766e;--ink-accent-soft: #f0fdfa;box-shadow:none;border-radius:0}.ink-theme-minimal .Ink-Editor__toolbar,.ink-theme-minimal.Ink-Editor .Ink-Editor__toolbar{border-bottom:1px solid var(--ink-border)}.Ink-SignPad,.Ink-FindReplace{border-bottom-color:var(--ink-border);background:var(--ink-toolbar);color:var(--ink-text)}.Ink-SignPad__title,.Ink-FindReplace__title{color:var(--ink-text)}.Ink-SignPad__canvas{max-width:480px;height:180px;border-color:var(--ink-border);touch-action:none}.Ink-FindReplace__field{display:flex;flex-direction:column;flex-wrap:nowrap;gap:.25rem;font-size:.875rem;color:var(--ink-muted)}.Ink-FindReplace__field input{border:1px solid var(--ink-border);border-radius:.4rem;padding:.4rem .55rem;background:var(--ink-bg);color:var(--ink-text);font:inherit}.flex{display:flex}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.gap-1{gap:.25rem}.gap-2{gap:.5rem}.p-3{padding:.75rem}.m-0{margin:0}.w-full{width:100%}.max-w-xl{max-width:36rem}.h-44{height:11rem}.border{border-width:1px;border-style:solid}.border-b{border-bottom-width:1px;border-bottom-style:solid}.border-dashed{border-style:dashed}.rounded-lg{border-radius:.5rem}.bg-white{background-color:#fff}.cursor-crosshair{cursor:crosshair}.text-sm{font-size:.875rem}.font-semibold{font-weight:600}
|
|
1
|
+
:root{--ink-color-border: #e1e4ea;--ink-color-bg: #ffffff;--ink-color-toolbar: #ffffff;--ink-color-text: #171b24;--ink-color-muted: #667085;--ink-color-accent: #2951c4;--ink-color-accent-soft: #eaf0fe}.Ink-Button{border:0;background:rgba(0,0,0,0);color:var(--ink-muted);border-radius:.3125rem;cursor:pointer;min-width:1.75rem;width:1.75rem;height:1.75rem;padding:0;font-weight:500;font-size:.8125rem;display:inline-flex;align-items:center;justify-content:center}.Ink-Button svg{width:.9375rem;height:.9375rem;display:block}.Ink-Button:hover{background:rgba(15,23,42,.05);color:var(--ink-text)}.Ink-Button--active{background:var(--ink-accent-soft);color:var(--ink-accent);box-shadow:inset 0 0 0 1px var(--ink-accent)}.Ink-Button:disabled{opacity:.45;cursor:not-allowed}.Ink-Box{display:block;box-sizing:border-box}.Ink-Field{display:flex;flex-direction:column;flex-wrap:nowrap;gap:.25rem;font-size:.875rem;color:var(--ink-muted)}.Ink-Field input{border:1px solid var(--ink-border);border-radius:.4rem;padding:.4rem .55rem;background:var(--ink-bg);color:var(--ink-text);font:inherit}.Ink-Field__label{display:block;box-sizing:border-box;font-size:.8rem;color:var(--ink-muted)}.Ink-Canvas{display:block;max-width:100%;touch-action:none;cursor:crosshair;border:1px dashed var(--ink-border);border-radius:.5rem;background:var(--ink-bg)}.Ink-ContextMenu{position:fixed;z-index:50;min-width:11rem;padding:.3rem;border:1px solid #e5e7eb;border-radius:.65rem;background:#fff;color:#0f172a;box-shadow:0 10px 40px rgba(15,23,42,.12)}.Ink-ContextMenu[data-color-mode=dark]{border-color:#3f3f46;background:#18181b;color:#f4f4f5;box-shadow:0 10px 40px rgba(0,0,0,.35)}@media(prefers-color-scheme: dark){.Ink-ContextMenu:not([data-color-mode]){border-color:#3f3f46;background:#18181b;color:#f4f4f5;box-shadow:0 10px 40px rgba(0,0,0,.35)}}.Ink-ContextMenu__item{border:0;background:rgba(0,0,0,0);color:var(--ink-muted);border-radius:.3125rem;cursor:pointer;min-width:1.75rem;width:1.75rem;height:1.75rem;padding:0;font-weight:500;font-size:.8125rem;display:inline-flex;align-items:center;justify-content:center}.Ink-ContextMenu__item svg{width:.9375rem;height:.9375rem;display:block}.Ink-ContextMenu__item:hover{background:rgba(15,23,42,.05);color:var(--ink-text)}.Ink-ContextMenu__item--active{background:var(--ink-accent-soft);color:var(--ink-accent);box-shadow:inset 0 0 0 1px var(--ink-accent)}.Ink-ContextMenu__item:disabled{opacity:.45;cursor:not-allowed}.Ink-ContextMenu__item{display:block;width:100%;min-width:0;height:auto;padding:.45rem .6rem;text-align:left;font-weight:500}.Ink-ContextMenu__item:hover{background:var(--ink-accent-soft);color:var(--ink-accent)}.Ink-Icon{display:inline-flex;width:.9375rem;height:.9375rem;align-items:center;justify-content:center}.Ink-Icon svg{width:100%;height:100%;fill:none;stroke:currentColor;stroke-width:1.75;stroke-linecap:round;stroke-linejoin:round}.Ink-Icon--grip svg{fill:currentColor;stroke:none}.Ink-InlineToolbar{position:fixed;z-index:12;display:flex;align-items:center;gap:.1rem;padding:.25rem .3rem;border:1px solid rgba(15,23,42,.08);border-radius:.5rem;background:#fff;box-shadow:0 3px 15px rgba(15,23,42,.12),0 0 0 1px rgba(15,23,42,.03);color:var(--ink-text)}.Ink-InlineToolbar__item{min-width:1.85rem;height:1.85rem;padding:0 .35rem;border-radius:.35rem;font-size:.8rem;font-weight:650}.Ink-InlineToolbar__divider{width:1px;height:1.1rem;margin:0 .2rem;background:rgba(15,23,42,.12)}.Ink-Editor{color-scheme:light;--ink-border: #e1e4ea;--ink-bg: #ffffff;--ink-toolbar: #ffffff;--ink-text: #171b24;--ink-muted: #667085;--ink-accent: #2951c4;--ink-accent-soft: #eaf0fe;--ink-shadow: 0 4px 16px rgba(23, 27, 36, 0.08);--ink-table-header: #f1f5f9;--ink-ai: #0e8a6e;--ink-ai-soft: #e7f6f1;--ink-canvas: #f5f6f8;--ink-border-strong: #c9ceda;--ink-text-tertiary: #98a2b3;--ink-font-mono: IBM Plex Mono, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;--ink-radius: 0.375rem;--ink-font-family: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;--ink-ai-accent: var(--ink-ai);--ink-ai-surface: var(--ink-ai-soft);--ink-ai-border: var(--ink-border);border:1px solid var(--ink-border);border-radius:var(--ink-radius);overflow:hidden;background:var(--ink-bg);color:var(--ink-text);box-shadow:var(--ink-shadow);font-family:var(--ink-font-family)}.Ink-Editor[data-wysiwyg=true] .Ink-Editor__content{font-family:inherit;line-height:1.65}.Ink-Editor[data-wysiwyg=true] .Ink-Editor__content img{max-width:100%;height:auto}.Ink-Editor[data-wysiwyg=true] .Ink-Editor__content table{border-collapse:collapse;width:100%}.Ink-Editor[data-wysiwyg=true] .Ink-Editor__content th,.Ink-Editor[data-wysiwyg=true] .Ink-Editor__content td{border:1px solid var(--ink-border);padding:.4rem .6rem}.Ink-Editor[data-variant=document],.Ink-Editor[data-variant=docx]{--ink-toolbar: #ffffff;box-shadow:0 4px 16px rgba(23,27,36,.08)}.Ink-Editor[data-variant=document]{background:#f5f6f8;border-radius:.625rem}.Ink-Editor[data-variant=document] .Ink-Editor__shell{min-height:28rem}.Ink-Editor[data-variant=document] .Ink-Editor__body{background:#f5f6f8;display:flex;justify-content:center;padding:2.75rem 2.5rem 3.75rem}.Ink-Editor[data-variant=document] .Ink-Editor__content{width:100%;max-width:40rem;margin:0;padding:0 0 2rem;background:rgba(0,0,0,0)}.Ink-Editor[data-variant=document] .Ink-Editor__content h1{font-size:1.625rem;font-weight:700;letter-spacing:-0.01em;margin:0 0 .875rem}.Ink-Editor[data-variant=document] .Ink-Editor__toolbar{padding:.375rem 1rem;background:var(--ink-bg)}.Ink-Editor[data-variant=docx]{--ink-accent: #2b579a;border-color:#d0d7de;background:#f3f3f3}.Ink-Editor[data-variant=docx] .Ink-Editor__toolbar{background:linear-gradient(180deg, #ffffff 0%, #f0f3f7 100%);border-bottom:1px solid #c8d0d8}.Ink-Editor[data-variant=docx] .Ink-Editor__content{max-width:48rem;margin:1rem auto;min-height:22rem;background:#fff;border:1px solid #d8dee6;box-shadow:0 1px 2px rgba(15,23,42,.04);padding:2.5rem 3rem}.Ink-Editor[data-variant=simple]{--ink-toolbar: transparent;border:none;box-shadow:none;background:rgba(0,0,0,0)}.Ink-Editor[data-variant=simple] .Ink-Editor__toolbar{border-bottom:none;padding-inline:0;gap:.25rem}.Ink-Editor[data-variant=simple] .Ink-Editor__content{padding:.5rem 0;font-size:1rem}.Ink-Editor[data-variant=notion-like]{--ink-toolbar: transparent;--ink-accent: #111827;border:none;box-shadow:none;border-radius:0;background:#fff}.Ink-Editor[data-variant=notion-like] .Ink-Editor__toolbar{border-bottom:none;background:rgba(0,0,0,0);opacity:.85}.Ink-Editor[data-variant=notion-like] .Ink-Editor__content{max-width:42rem;margin-inline:auto;padding-block:2rem;font-size:1.125rem;line-height:1.75}.Ink-Editor[data-variant=agent]{--ink-toolbar: #f8fafc;--ink-accent: #0f766e;box-shadow:0 8px 28px rgba(15,23,42,.08);border-color:rgba(15,118,110,.25)}.Ink-Editor[data-variant=agent] .Ink-Editor__shell{position:relative}.Ink-Editor[data-variant=agent] .Ink-Editor__toolbar{background:linear-gradient(180deg, #f0fdfa 0%, #f8fafc 100%)}.Ink-Editor__agent-bar{display:flex;align-items:center;gap:.65rem;margin:.75rem 1rem 1rem;padding:.65rem .85rem;border:1px solid rgba(15,118,110,.25);border-radius:999px;background:linear-gradient(90deg, #ecfdf5 0%, #ffffff 55%);box-shadow:0 8px 20px rgba(15,118,110,.08);color:#0f766e;font-size:.9rem}.Ink-Editor[data-disabled=true]{opacity:.6;pointer-events:none}.Ink-Editor[data-chrome=borderless]{border:none;box-shadow:none;border-radius:0}.Ink-Editor[data-chrome=borderless] .Ink-Editor__toolbar{border-bottom:none;background:rgba(0,0,0,0)}.Ink-Editor__toolbar{position:relative;display:flex;flex-direction:column;align-items:stretch;gap:.2rem;padding:.35rem .65rem;border-bottom:1px solid var(--ink-border);background:var(--ink-toolbar);overflow:visible;min-height:2.35rem}.Ink-Editor__toolbar-row{display:flex;flex-wrap:nowrap;align-items:center;gap:.35rem .4rem;min-width:0}.Ink-Editor__toolbar-measure{position:absolute;visibility:hidden;pointer-events:none;display:flex;flex-wrap:nowrap;align-items:center;gap:.35rem .4rem;height:0;overflow:hidden}.Ink-Editor__toolbar-overflow{display:flex;flex-wrap:wrap;align-items:center;gap:.35rem .4rem;padding-top:.15rem}.Ink-Editor__toolbar-hint{position:absolute;left:.65rem;right:.65rem;bottom:-1.05rem;z-index:3;width:auto;margin:0;padding:.1rem .25rem;border-radius:.25rem;background:var(--ink-bg);box-shadow:0 1px 4px rgba(15,23,42,.08);font-size:.6875rem;line-height:1.2;color:var(--ink-text-tertiary);pointer-events:none}.Ink-Editor__tool{position:relative;display:inline-flex}.Ink-Editor__plugin-pip{position:absolute;top:.1rem;right:.1rem;width:.375rem;height:.375rem;border-radius:999px;box-shadow:0 0 0 1px var(--ink-bg)}.Ink-Editor__toolbar-show{display:flex;align-items:center;padding:.35rem .65rem;border-bottom:1px solid var(--ink-border);background:var(--ink-toolbar)}.Ink-ToolbarCustomize{display:flex;flex-direction:column;flex-wrap:nowrap;gap:.5rem;padding:.75rem;border-bottom:1px solid var(--ink-border);background:var(--ink-toolbar);color:var(--ink-text)}.Ink-ToolbarCustomize__title{margin:0;font-size:.875rem;font-weight:650}.Ink-ToolbarCustomize__list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:.35rem;max-height:14rem;overflow:auto}.Ink-ToolbarCustomize__item label{display:flex;align-items:center;gap:.5rem;font-size:.875rem;color:var(--ink-text);cursor:pointer}.Ink-ToolbarCustomize__actions{display:flex;flex-wrap:wrap;gap:.35rem}.Ink-Editor__button{border:0;background:rgba(0,0,0,0);color:var(--ink-muted);border-radius:.3125rem;cursor:pointer;min-width:1.75rem;width:1.75rem;height:1.75rem;padding:0;font-weight:500;font-size:.8125rem;display:inline-flex;align-items:center;justify-content:center}.Ink-Editor__button svg{width:.9375rem;height:.9375rem;display:block}.Ink-Editor__button:hover{background:rgba(15,23,42,.05);color:var(--ink-text)}.Ink-Editor__button--active{background:var(--ink-accent-soft);color:var(--ink-accent);box-shadow:inset 0 0 0 1px var(--ink-accent)}.Ink-Editor__button:disabled{opacity:.45;cursor:not-allowed}.Ink-Editor__style-dd{position:relative;display:inline-flex;align-items:center}.Ink-Editor__style-dd-trigger{display:inline-flex;align-items:center;gap:.375rem;border:1px solid var(--ink-border);border-radius:.3125rem;padding:.25rem .5rem .25rem .625rem;background:var(--ink-bg);color:var(--ink-text);font-family:inherit;font-size:.78125rem;font-weight:500;line-height:1.2;cursor:pointer;height:1.75rem;min-width:7.25rem}.Ink-Editor__style-dd-trigger:hover{border-color:var(--ink-border-strong)}.Ink-Editor__style-dd-trigger:disabled{opacity:.45;cursor:not-allowed}.Ink-Editor__style-dd-trigger:focus{outline:none;box-shadow:0 0 0 2px var(--ink-accent-soft)}.Ink-Editor__select-chev{width:.5625rem;height:.5625rem;opacity:.6;pointer-events:none;flex-shrink:0}.Ink-Editor__style-menu{position:absolute;top:calc(100% + .35rem);left:0;z-index:30;min-width:11.25rem;padding:.3rem;background:#fff;border:1px solid #e1e4ea;border-radius:.5rem;box-shadow:0 .75rem 2rem rgba(23,27,36,.12);overflow:hidden;color:#171b24}.Ink-Editor__style-menu--forced-light{color-scheme:light;isolation:isolate;background:#fff;color:#171b24}.Ink-Editor__style-menu--portal{position:fixed;top:0;left:0;z-index:4000}.Ink-Editor__style-menu--rich{min-width:11.25rem}.Ink-Editor__style-option{display:flex;align-items:center;position:relative;width:100%;border:0;background:rgba(0,0,0,0);text-align:left;padding:.45rem .85rem .45rem 1.85rem;font-family:inherit;font-size:.8125rem;font-weight:500;color:#171b24;cursor:pointer;border-radius:.375rem}.Ink-Editor__style-option:hover{background:#eaf0fe;color:#171b24}.Ink-Editor__style-option--sel{background:#2951c4;color:#fff}.Ink-Editor__style-option--sel:hover{background:#2951c4;color:#fff}.Ink-Editor__style-check{position:absolute;left:.55rem;font-size:.7rem;font-weight:600;color:inherit}.Ink-Editor__glyph{font-size:.8125rem;line-height:1;font-weight:500;color:inherit}.Ink-Editor__glyph--bold{font-weight:700}.Ink-Editor__glyph--italic{font-style:italic}.Ink-Editor__glyph--underline{text-decoration:underline}.Ink-Editor__glyph--strike{text-decoration:line-through}.Ink-Editor__divider{width:1px;height:1.125rem;margin:0 .5rem;background:var(--ink-border);align-self:center}.Ink-Editor__color{position:relative;display:inline-flex;align-items:center;justify-content:center;width:2rem;height:2rem;cursor:pointer}.Ink-Editor__color input{position:absolute;inset:0;opacity:0;cursor:pointer}.Ink-Editor__color-swatch{width:1rem;height:1rem;border-radius:999px;border:1px solid var(--ink-border)}.Ink-Editor__shell{position:relative;display:flex;align-items:stretch;min-height:0}.Ink-Editor__body{position:relative;flex:1 1 auto;min-width:0}.Ink-Editor__content{min-height:150px;padding:1.1rem 1.25rem 1.1rem 2.5rem;outline:none;overflow:auto;line-height:1.65}.Ink-Editor__content:empty::before{content:attr(data-placeholder);color:var(--ink-text-tertiary);font-size:.90625rem;pointer-events:none}.Ink-Editor__content img{max-width:100%;height:auto;border-radius:.35rem}.Ink-Editor__content h1,.Ink-Editor__content h2,.Ink-Editor__content h3,.Ink-Editor__content h4,.Ink-Editor__content h5,.Ink-Editor__content h6{margin:.85rem 0 .45rem;line-height:1.25}.Ink-Editor__content p,.Ink-Editor__content ul,.Ink-Editor__content ol,.Ink-Editor__content blockquote,.Ink-Editor__content pre{margin:.55rem 0}.Ink-Editor__content ul{list-style:disc;padding-inline-start:1.5rem}.Ink-Editor__content ol{list-style:decimal;padding-inline-start:1.5rem}.Ink-Editor__content ul.Ink-list--dash{list-style-type:"– "}.Ink-Editor__content ol.Ink-list--alpha{list-style-type:lower-alpha}.Ink-Editor__content ul.Ink-list--check{list-style:none;padding-inline-start:.25rem}.Ink-Editor__content ul.Ink-list--check li{position:relative;padding-left:1.5rem}.Ink-Editor__content ul.Ink-list--check li::before{content:"";position:absolute;left:0;top:.3rem;width:.8125rem;height:.8125rem;border:1px solid var(--ink-border-strong);border-radius:.1875rem;background:var(--ink-bg)}.Ink-Editor__content .Ink-callout{display:flex;gap:.625rem;align-items:flex-start;border-left:.15625rem solid var(--ink-ai);background:var(--ink-ai-soft);border-radius:0 .375rem .375rem 0;padding:.625rem .875rem;margin:1.25rem 0 .5rem}.Ink-Editor__content .Ink-callout p{font-size:.84375rem;font-style:italic;color:var(--ink-ai);line-height:1.6;margin:0}.Ink-AiPill{margin-left:auto;display:inline-flex;align-items:center;gap:.375rem;background:var(--ink-ai-soft);color:var(--ink-ai);border:0;border-radius:.3125rem;padding:.3125rem .625rem;font-family:inherit;font-size:.78125rem;font-weight:600;line-height:1.2;cursor:pointer;height:auto}.Ink-AiPill:hover,.Ink-AiPill:focus{background:var(--ink-ai-soft);color:var(--ink-ai);outline:none}.Ink-AiPill:disabled{opacity:.45;cursor:not-allowed}.Ink-AiPill__dot{width:.3125rem;height:.3125rem;border-radius:999px;background:var(--ink-ai);flex-shrink:0}.Ink-AiPill--installed{box-shadow:inset 0 -2px 0 var(--ink-plugin-color, var(--ink-ai))}.Ink-Editor__button--wide{width:auto;min-width:0;padding:0 .5rem;gap:.3125rem}.Ink-Editor__button-label{font-size:.75rem;font-weight:500;color:var(--ink-muted)}.Ink-Editor__content .Ink-block--dragging{opacity:.45}.Ink-Editor__content .Ink-block--drop-before{box-shadow:inset 0 2px 0 0 var(--ink-accent)}.Ink-Editor__content .Ink-block--drop-after{box-shadow:inset 0 -2px 0 0 var(--ink-accent)}.Ink-Editor__content .Ink-table{width:100%;border-collapse:collapse;margin:.75rem 0;font-size:.95rem}.Ink-Editor__content .Ink-table th,.Ink-Editor__content .Ink-table td{border:1px solid var(--ink-border);padding:.45rem .6rem;min-width:4rem}.Ink-Editor__content .Ink-table th{background:var(--ink-table-header, var(--ink-toolbar));color:var(--ink-text);font-weight:650;text-align:left}.Ink-Editor__content .Ink-table th,.Ink-Editor__content .Ink-table td{cursor:text}.Ink-Editor__content .Ink-table--resizing,.Ink-Editor__content .Ink-table--resizing th,.Ink-Editor__content .Ink-table--resizing td{cursor:col-resize}.Ink-Editor__source{display:block;width:100%;min-height:12rem;box-sizing:border-box;resize:vertical;border:0;padding:1rem 1.15rem;background:var(--ink-canvas, #f5f6f8);color:var(--ink-text);font-family:"IBM Plex Mono",ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;font-size:.8125rem;line-height:1.55;outline:none}.Ink-Editor__content--hidden{display:none}.Ink-Editor__table-picker-grid{display:grid;gap:.2rem;padding:.35rem}.Ink-Editor__table-picker-cell{width:1rem;height:1rem;border:1px solid #e1e4ea;background:#fff;border-radius:.125rem;padding:0;cursor:pointer}.Ink-Editor__table-picker-cell--on{background:#eaf0fe;border-color:#2951c4}.Ink-Editor__table-picker-label{padding:.25rem .45rem .45rem;text-align:center;font-size:.75rem;font-weight:600;color:#171b24}.Ink-Editor__content .Ink-tc-insert{background:rgba(34,197,94,.18);text-decoration:none;color:inherit}.Ink-Editor__content .Ink-tc-delete{background:rgba(239,68,68,.14);color:#991b1b}.Ink-Editor__content .Ink-comment-mark{background:#fde047;border-radius:.15rem;padding:0 .1rem}.Ink-Editor__footer{display:flex;align-items:center;justify-content:space-between;padding:.45rem 1.25rem;border-top:1px solid var(--ink-border);font-family:var(--ink-font-mono);font-size:.65625rem;color:var(--ink-text-tertiary)}.Ink-Editor__footer-meta{display:flex;gap:.875rem}.Ink-Editor__footer-sync{display:inline-flex;align-items:center;gap:.375rem}.Ink-Editor__footer-sync::before{content:"";width:.375rem;height:.375rem;border-radius:999px;background:#0e8a6e}.Ink-Outline{width:15rem;flex-shrink:0;background:#fafbfc;border-right:1px solid var(--ink-border);padding:1rem .75rem;display:flex;flex-direction:column;gap:.125rem;overflow:auto}.Ink-Outline__label{display:flex;align-items:center;justify-content:space-between;gap:.35rem;font-family:"IBM Plex Mono",ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;font-size:.625rem;letter-spacing:.06em;text-transform:uppercase;color:#98a2b3;padding:0 .375rem;margin-bottom:.25rem}.Ink-Outline__toggle{border:0;background:rgba(0,0,0,0);color:inherit;cursor:pointer;font:inherit;padding:.1rem .25rem}.Ink-Outline__item{display:flex;align-items:center;gap:.375rem;width:100%;border:0;background:rgba(0,0,0,0);color:var(--ink-muted);text-align:left;font-size:.78125rem;line-height:1.3;padding:.375rem .5rem;border-radius:.3125rem;cursor:pointer}.Ink-Outline__item--h1{font-weight:600;color:var(--ink-text)}.Ink-Outline__item--h2{padding-left:1.25rem}.Ink-Outline__item--h3{padding-left:1.75rem}.Ink-Outline__item--active{background:var(--ink-accent-soft);color:var(--ink-accent);font-weight:500}.Ink-Outline__item-dot{width:.25rem;height:.25rem;border-radius:999px;background:#c9ceda;flex-shrink:0}.Ink-BlockHandles{position:absolute;left:.2rem;z-index:2;display:flex;flex-direction:column;align-items:center;gap:.2rem}.Ink-BlockHandles__plus,.Ink-BlockHandles__grip,.Ink-BlockHandles__btn{width:1.5rem;height:1.5rem;border:0;border-radius:999px;background:#fff;box-shadow:0 1px 4px rgba(15,23,42,.14);color:var(--ink-muted);cursor:pointer;font-size:.85rem;line-height:1;display:inline-flex;align-items:center;justify-content:center;padding:0}.Ink-BlockHandles__plus{font-weight:500;font-size:1rem}.Ink-BlockHandles__grip{cursor:grab}.Ink-BlockHandles__grip .Ink-Icon{width:.85rem;height:.85rem}.Ink-BlockHandles__grip:active{cursor:grabbing}.Ink-BlockHandles__btn{width:1.35rem;height:1.35rem;font-size:.65rem;opacity:.85}.Ink-BlockHandles__plus:hover,.Ink-BlockHandles__btn:hover,.Ink-BlockHandles__grip:hover{color:var(--ink-accent);background:var(--ink-accent-soft)}.Ink-Slash{position:absolute;z-index:5;width:17.5rem;background:var(--ink-bg);border:1px solid var(--ink-border-strong);border-radius:.5rem;box-shadow:var(--ink-shadow);overflow:hidden}.Ink-Slash__search{display:flex;align-items:center;gap:.5rem;padding:.55rem .75rem;border-bottom:1px solid var(--ink-border);font-family:var(--ink-font-mono);font-size:.75rem;color:var(--ink-text-tertiary)}.Ink-Slash__cat{font-family:var(--ink-font-mono);font-size:.625rem;letter-spacing:.06em;text-transform:uppercase;color:var(--ink-text-tertiary);padding:.5rem .75rem .25rem}.Ink-Slash__item{display:flex;align-items:center;gap:.625rem;width:100%;text-align:left;border:0;background:rgba(0,0,0,0);padding:.45rem .75rem;cursor:pointer;color:inherit}.Ink-Slash__item:hover,.Ink-Slash__item--sel{background:var(--ink-accent-soft)}.Ink-Slash__mark{width:1.625rem;height:1.625rem;border-radius:.3rem;background:var(--ink-canvas);border:1px solid var(--ink-border);display:flex;align-items:center;justify-content:center;color:var(--ink-muted);font-size:.6875rem;flex-shrink:0;font-weight:600}.Ink-Slash__item:hover .Ink-Slash__mark,.Ink-Slash__item--sel .Ink-Slash__mark{background:var(--ink-bg);border-color:var(--ink-accent);color:var(--ink-accent)}.Ink-Slash__mark--ai{background:var(--ink-ai-soft);border-color:var(--ink-ai);color:var(--ink-ai)}.Ink-Slash__item:hover .Ink-Slash__mark--ai,.Ink-Slash__item--sel .Ink-Slash__mark--ai{background:var(--ink-bg);border-color:var(--ink-ai);color:var(--ink-ai)}.Ink-Slash__txt{flex:1;min-width:0;display:flex;flex-direction:column;gap:.1rem}.Ink-Slash__name{font-size:.78125rem;font-weight:600;color:var(--ink-text)}.Ink-Slash__desc{font-size:.6875rem;color:var(--ink-text-tertiary)}.Ink-Slash__key{font-family:var(--ink-font-mono);font-size:.625rem;color:var(--ink-text-tertiary);background:var(--ink-canvas);border-radius:.2rem;padding:.125rem .3rem}.Ink-Slash__hint{display:flex;align-items:center;gap:.125rem;flex-wrap:wrap;padding:.55rem .75rem;border-top:1px solid var(--ink-border);font-size:.6875rem;color:var(--ink-text-tertiary)}.Ink-Slash__caret{width:.09375rem;height:.875rem;background:var(--ink-accent);display:inline-block;animation:ink-slash-caret 1.1s steps(1) infinite}@keyframes ink-slash-caret{50%{opacity:0}}.Ink-TrackBar{display:flex;flex-wrap:wrap;align-items:center;gap:.5rem;padding:.45rem .75rem;border-bottom:1px solid var(--ink-border);background:#fffbeb;font-size:.8rem}.Ink-TrackBar__label{font-weight:650;color:#92400e}.Ink-TrackBar__actions{display:flex;gap:.25rem}.Ink-TrackBar__list{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:.35rem;width:100%}.Ink-TrackBar__list li{display:flex;align-items:center;gap:.25rem;background:#fff;border:1px solid #fde68a;border-radius:.45rem;padding:.2rem .35rem}.Ink-Comments{width:300px;flex:0 0 300px;border-left:1px solid var(--ink-border);background:#fcfcfd;display:flex;flex-direction:column;max-height:100%}.Ink-Comments__header,.Ink-Ai__header{display:flex;align-items:center;justify-content:space-between;padding:.65rem .75rem;border-bottom:1px solid var(--ink-border);font-size:.9rem}.Ink-Comments__list{overflow:auto;padding:.65rem;display:flex;flex-direction:column;gap:.65rem}.Ink-Comments__empty,.Ink-Ai__empty,.Ink-Ai__hint{color:var(--ink-muted);font-size:.85rem;line-height:1.45}.Ink-Comments__thread{border:1px solid var(--ink-border);border-radius:.65rem;padding:.65rem;background:#fff;box-shadow:0 1px 2px rgba(15,23,42,.04)}.Ink-Comments__thread--resolved{opacity:.65}.Ink-Comments__meta{display:flex;justify-content:space-between;gap:.5rem;font-size:.72rem;color:var(--ink-muted);margin-bottom:.35rem}.Ink-Comments__body{margin:0;font-size:.88rem}.Ink-Comments__reply{margin-top:.5rem;padding-left:.65rem;border-left:2px solid var(--ink-accent-soft)}.Ink-Comments__form{display:flex;flex-wrap:wrap;gap:.3rem;margin-top:.55rem}.Ink-Comments__form input,.Ink-Ai__form input,.Ink-Ai__translate select{flex:1 1 auto;min-width:0;border:1px solid var(--ink-border);border-radius:.45rem;padding:.4rem .5rem;font:inherit}.Ink-Comments__resolved{margin:.4rem 0 0;font-size:.75rem;color:var(--ink-muted)}.Ink-Ai{width:22rem;flex:0 0 22rem;border-left:1px solid var(--ink-ai-border, var(--ink-border));background:var(--ink-ai-surface, #f8fafc);display:flex;flex-direction:column;max-height:100%}.Ink-Ai[data-placement=floating]{position:absolute;right:1rem;top:3.5rem;z-index:6;border:1px solid var(--ink-ai-border, var(--ink-border));border-radius:.85rem;box-shadow:0 16px 40px rgba(15,23,42,.14);max-height:min(28rem,70vh)}.Ink-Ai[data-placement=drawer]{position:absolute;inset:0 0 0 auto;z-index:6;box-shadow:-8px 0 24px rgba(15,23,42,.08)}.Ink-Ai__tabs{display:flex;flex-wrap:wrap;gap:.35rem;padding:.45rem .55rem;border-bottom:1px solid var(--ink-ai-border, var(--ink-border))}.Ink-Ai__tab{flex:1 1 4.5rem;min-width:4.5rem;width:auto;height:auto;padding:.35rem .55rem;border:1px solid var(--ink-border);border-radius:.4rem;background:#fff;color:var(--ink-text);font:inherit;font-size:.75rem;font-weight:600;line-height:1.2;cursor:pointer}.Ink-Ai__tab--on{border-color:var(--ink-accent);background:var(--ink-accent-soft);color:var(--ink-accent)}.Ink-Ai__body{flex:1 1 auto;overflow:auto;padding:.65rem;display:flex;flex-direction:column;gap:.65rem}.Ink-Ai__history{display:flex;flex-direction:column;gap:.45rem;min-height:8rem}.Ink-Ai__turn{border-radius:.55rem;padding:.5rem .6rem;background:#fff;border:1px solid var(--ink-border);font-size:.85rem}.Ink-Ai__turn span{display:block;font-size:.68rem;text-transform:uppercase;letter-spacing:.04em;color:var(--ink-muted);margin-bottom:.2rem}.Ink-Ai__turn p{margin:0}.Ink-Ai__turn--user{border-color:rgba(13,148,136,.35);background:rgba(13,148,136,.06)}.Ink-Ai__form,.Ink-Ai__diff-actions,.Ink-Ai__actions{display:flex;flex-wrap:wrap;gap:.35rem}.Ink-Ai__action{width:100%;justify-content:flex-start;text-align:left;background:#fff;border:1px solid var(--ink-border) !important}.Ink-Ai__suggestion{border:1px solid var(--ink-border);border-radius:.55rem;padding:.55rem;background:#fff;font-size:.85rem}.Ink-Ai__suggestion--warning{border-color:#fbbf24}.Ink-Ai__suggestion--error{border-color:#f87171}.Ink-Ai__suggestion p{margin:.25rem 0}.Ink-Ai__suggestion code{display:block;font-size:.75rem;color:var(--ink-muted)}.Ink-Ai__translate label{display:flex;flex-direction:column;gap:.3rem;font-size:.8rem;color:var(--ink-muted)}.Ink-Ai__diff{border:1px solid rgba(13,148,136,.35);border-radius:.65rem;padding:.65rem;background:#fff}.Ink-Ai__diff-preview{margin:.4rem 0;padding:.45rem;border-radius:.4rem;background:rgba(13,148,136,.06);font-size:.85rem}.Ink-Ai__footer{padding:.4rem .75rem;border-top:1px solid var(--ink-ai-border, var(--ink-border));font-size:.7rem;color:var(--ink-muted)}.Ink-AiAutocomplete{position:absolute;z-index:4;pointer-events:none;color:var(--ink-muted);font-style:italic;white-space:pre-wrap;opacity:.65;user-select:none}@media(max-width: 900px){.Ink-Editor__shell{flex-direction:column}.Ink-Comments,.Ink-Ai{width:100%;flex:none;border-left:0;border-top:1px solid var(--ink-border);max-height:16rem}.Ink-Ai[data-placement=floating],.Ink-Ai[data-placement=drawer]{position:static;box-shadow:none;max-height:16rem}}.Ink-Editor[data-color-mode=light]{--ink-border: #e1e4ea;--ink-bg: #ffffff;--ink-toolbar: #ffffff;--ink-text: #171b24;--ink-muted: #667085;--ink-accent: #2951c4;--ink-accent-soft: #eaf0fe;--ink-shadow: 0 4px 16px rgba(23, 27, 36, 0.08);--ink-table-header: #f1f5f9;--ink-ai: #0e8a6e;--ink-ai-soft: #e7f6f1;--ink-canvas: #f5f6f8;--ink-border-strong: #c9ceda;--ink-text-tertiary: #98a2b3;--ink-font-mono: IBM Plex Mono, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace}.Ink-Editor[data-color-mode=dark]{--ink-border: #3f3f46;--ink-bg: #18181b;--ink-toolbar: #27272a;--ink-text: #f4f4f5;--ink-muted: #a1a1aa;--ink-accent: #7b97ea;--ink-accent-soft: rgba(41, 81, 196, 0.22);--ink-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);--ink-table-header: #27272a;--ink-ai: #0e8a6e;--ink-ai-soft: #e7f6f1;--ink-canvas: #f5f6f8;--ink-border-strong: #c9ceda;--ink-text-tertiary: #98a2b3;--ink-font-mono: IBM Plex Mono, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace}.Ink-Editor[data-ink-theme=snow]{--ink-border: #e5e7eb;--ink-bg: #ffffff;--ink-toolbar: #f9fafb;--ink-text: #111827;--ink-muted: #6b7280;--ink-accent: #0f766e;--ink-accent-soft: #ccfbf1}.Ink-Editor[data-ink-theme=ink]{--ink-border: #d7dbe3;--ink-bg: #fbfcfe;--ink-toolbar: #ffffff;--ink-text: #171b24;--ink-muted: #5c6370;--ink-accent: #2951c4;--ink-accent-soft: #eaf0fe}.Ink-Editor[data-ink-theme=dark]{color-scheme:dark;--ink-border: #3f3f46;--ink-bg: #18181b;--ink-toolbar: #27272a;--ink-text: #f4f4f5;--ink-muted: #a1a1aa;--ink-accent: #7b97ea;--ink-accent-soft: rgba(41, 81, 196, 0.22);--ink-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);--ink-table-header: #27272a;--ink-ai: #0e8a6e;--ink-ai-soft: #e7f6f1;--ink-canvas: #f5f6f8;--ink-border-strong: #c9ceda;--ink-text-tertiary: #98a2b3;--ink-font-mono: IBM Plex Mono, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace}.Ink-Editor:fullscreen{width:100%;height:100%;background:var(--ink-bg);padding:1rem 1.25rem;box-sizing:border-box}.ink-theme-snow .Ink-Editor,.Ink-Editor.ink-theme-snow{--ink-border: #e5e7eb;--ink-bg: #ffffff;--ink-toolbar: #f9fafb;--ink-text: #111827;--ink-muted: #6b7280;--ink-accent: #0f766e;--ink-accent-soft: #ccfbf1;border-radius:.75rem}.ink-theme-bubble .Ink-Editor,.Ink-Editor.ink-theme-bubble{--ink-border: transparent;--ink-bg: #ffffff;--ink-toolbar: #ffffff;--ink-text: #111827;--ink-muted: #6b7280;--ink-accent: #0f766e;--ink-accent-soft: #ccfbf1;box-shadow:0 4px 24px rgba(15,23,42,.1);border-radius:1rem}.ink-theme-dark .Ink-Editor,.Ink-Editor.ink-theme-dark{--ink-border: #3f3f46;--ink-bg: #18181b;--ink-toolbar: #27272a;--ink-text: #f4f4f5;--ink-muted: #a1a1aa;--ink-accent: #2dd4bf;--ink-accent-soft: rgb(45 212 191 / 0.15);--ink-table-header: #27272a}.ink-theme-minimal .Ink-Editor,.Ink-Editor.ink-theme-minimal{--ink-border: #e7e5e4;--ink-bg: #ffffff;--ink-toolbar: #ffffff;--ink-text: #1c1917;--ink-muted: #78716c;--ink-accent: #0f766e;--ink-accent-soft: #f0fdfa;box-shadow:none;border-radius:0}.ink-theme-minimal .Ink-Editor__toolbar,.ink-theme-minimal.Ink-Editor .Ink-Editor__toolbar{border-bottom:1px solid var(--ink-border)}.Ink-SignPad,.Ink-FindReplace{border-bottom-color:var(--ink-border);background:var(--ink-toolbar);color:var(--ink-text)}.Ink-SignPad__title,.Ink-FindReplace__title{color:var(--ink-text)}.Ink-SignPad__canvas{max-width:480px;height:180px;border-color:var(--ink-border);touch-action:none}.Ink-FindReplace__field{display:flex;flex-direction:column;flex-wrap:nowrap;gap:.25rem;font-size:.875rem;color:var(--ink-muted)}.Ink-FindReplace__field input{border:1px solid var(--ink-border);border-radius:.4rem;padding:.4rem .55rem;background:var(--ink-bg);color:var(--ink-text);font:inherit}.Ink-Editor__title-grid{display:grid;grid-template-columns:repeat(6, 5.5rem);gap:.35rem;padding:.45rem}.Ink-Editor__title-cell{display:flex;align-items:center;justify-content:center;min-height:3.25rem;padding:.25rem;border:1px solid #e1e4ea;border-radius:.25rem;background:#fff;cursor:pointer;overflow:hidden}.Ink-Editor__title-cell:hover{border-color:#2951c4;background:#eaf0fe}.Ink-Editor__title-cell .Ink-title{font-size:.95rem;margin:0;line-height:1.1}.Ink-Editor__content .Ink-title,.Ink-title{margin:.75rem 0;font-family:Impact,"Arial Black",sans-serif;font-size:2.25rem;font-weight:800;line-height:1.15;letter-spacing:.02em}.Ink-title--t01{color:rgba(0,0,0,0);-webkit-text-stroke:2px #111}.Ink-title--t02{color:#111;transform:skewX(-12deg)}.Ink-title--t03{color:#111;transform:perspective(240px) rotateX(28deg)}.Ink-title--t04{color:#111;display:inline-block;transform:skewY(-8deg) scaleY(1.15)}.Ink-title--t05{color:#111;transform:perspective(240px) rotateX(-28deg)}.Ink-title--t06{writing-mode:vertical-rl;text-orientation:mixed;color:#111;letter-spacing:.12em}.Ink-title--t07{color:#fff;text-shadow:3px 3px 0 #8a8a8a}.Ink-title--t08{color:#7ec8e3;-webkit-text-stroke:2px #1d4e89}.Ink-title--t09{color:#7b2cbf;text-shadow:0 0 8px #4cc9f0}.Ink-title--t10{background:linear-gradient(180deg, #f4f4f4 0%, #9aa0a6 48%, #e8e8e8 100%);-webkit-background-clip:text;background-clip:text;color:rgba(0,0,0,0);text-shadow:1px 1px 0 #6b7280}.Ink-title--t11{color:#0b3d91;text-shadow:4px 4px 0 #c41e3a}.Ink-title--t12{writing-mode:vertical-rl;color:#c41e3a;letter-spacing:.12em}.Ink-title--t13{background:linear-gradient(90deg, #f5d76e 0%, #e67e22 100%);-webkit-background-clip:text;background-clip:text;color:rgba(0,0,0,0)}.Ink-title--t14{background:linear-gradient(90deg, #e91e63 0%, #6a1b9a 100%);-webkit-background-clip:text;background-clip:text;color:rgba(0,0,0,0)}.Ink-title--t15{color:rgba(0,0,0,0);-webkit-text-stroke:2px #2e7d32}.Ink-title--t16{background:linear-gradient(90deg, #e53935, #fb8c00, #fdd835, #43a047, #1e88e5, #8e24aa);-webkit-background-clip:text;background-clip:text;color:rgba(0,0,0,0);transform:skewX(-10deg)}.Ink-title--t17{color:#90caf9;-webkit-text-stroke:1px #1565c0}.Ink-title--t18{writing-mode:vertical-rl;color:#b0b0b0;letter-spacing:.12em}.Ink-title--t19{color:#c9a227;text-shadow:1px 1px 0 #8d6e2f,2px 2px 0 #6d4c1f,3px 3px 0 #4e3423}.Ink-title--t20{color:#1565c0;transform:perspective(180px) rotateY(-28deg);text-shadow:2px 2px 0 #0d47a1,4px 4px 0 #08306b}.Ink-title--t21{color:#ef6c00;transform:perspective(180px) rotateY(32deg);text-shadow:-3px 2px 0 #bf360c}.Ink-title--t22{color:#00acc1;text-shadow:1px 1px 0 #006064,2px 2px 0 #004d40,3px 3px 0 #00363a}.Ink-title--t23{color:#ffee58;text-shadow:4px 4px 0 #1565c0}.Ink-title--t24{writing-mode:vertical-rl;color:#2e7d32;letter-spacing:.12em}.Ink-title--t25{color:#cfd8dc;transform:perspective(200px) rotateX(40deg);text-shadow:0 6px 0 #78909c}.Ink-title--t26{color:#1b5e20;transform:perspective(200px) rotateX(-36deg);text-shadow:0 5px 0 #0d3310}.Ink-title--t27{color:#fff;text-shadow:2px 3px 0 #9e9e9e,4px 6px 8px rgba(0,0,0,.25)}.Ink-title--t28{color:#ff6d00;transform:perspective(160px) rotateX(-18deg) scale(1.08);text-shadow:0 8px 0 #e65100}.Ink-title--t29{color:#1976d2;text-shadow:1px 0 0 #c62828,2px 0 0 #b71c1c,3px 0 0 #8e0000,4px 0 0 #6a0000}.Ink-title--t30{writing-mode:vertical-rl;color:#6d4c41;letter-spacing:.12em}.Ink-Editor__style-menu.Ink-Editor__excel{min-width:22rem;max-width:min(36rem,100vw - 1rem);max-height:none;overflow:visible}.Ink-Editor__excel-title{padding:.35rem .5rem .15rem;font-size:.75rem;font-weight:700;color:#667085}.Ink-Editor__excel-grid{display:grid;gap:.2rem;padding:.35rem .45rem;overflow:visible}.Ink-Editor__excel-cell{min-width:3.5rem;border:1px solid #e1e4ea;border-radius:.2rem;padding:.3rem .4rem;font:inherit;font-size:.75rem;color:#171b24;background:#fff}.Ink-Editor__excel-head,.Ink-Editor__excel-corner{display:flex;align-items:center;justify-content:center;min-height:1.6rem;font-size:.7rem;font-weight:700;color:#667085;background:#fff;border:1px solid #e1e4ea;border-radius:.2rem}.Ink-Editor__excel-cell--col,.Ink-Editor__excel-head.Ink-Editor__excel-cell--col{background:#eaf0fe}.Ink-Editor__excel-cell--row,.Ink-Editor__excel-head.Ink-Editor__excel-cell--row{box-shadow:inset 0 0 0 1px #2951c4}.Ink-GraphModal{display:flex;flex-direction:column;gap:.5rem}.Ink-GraphModal__row{display:flex;align-items:center;gap:.5rem}.Ink-GraphModal__row input{flex:1 1 auto;min-width:0;border:1px solid #e1e4ea;border-radius:.35rem;padding:.35rem .5rem;font:inherit}.Ink-Editor__excel-actions,.Ink-Editor__graph-types{display:flex;flex-wrap:wrap;gap:.35rem;padding:.35rem .45rem .55rem}.Ink-Editor__excel-actions{width:100%}.Ink-Editor__excel-actions button{flex:1 1 calc(50% - .2rem)}.Ink-Editor__excel-actions button:disabled{opacity:.45;cursor:default}.Ink-Editor__excel-actions .Ink-Editor__excel-insert{flex:1 1 100%}.Ink-Editor__excel-actions button,.Ink-Editor__graph-types button,.Ink-Editor__graph button{border:1px solid #e1e4ea;border-radius:.3rem;background:#fff;color:#171b24;font:inherit;font-size:.75rem;font-weight:600;padding:.3rem .55rem;cursor:pointer}.Ink-Editor__excel-actions button:hover,.Ink-Editor__graph-types button:hover,.Ink-Editor__graph button:hover,.Ink-Editor__graph-types button[aria-pressed=true]{border-color:#2951c4;background:#eaf0fe;color:#2951c4}.Ink-Editor__graph{min-width:21rem}.Ink-Editor__graph-preview{padding:.25rem .45rem}.Ink-Editor__content .Ink-graph,.Ink-graph{display:block;max-width:100%;height:auto;margin:.5rem 0}.Ink-graph-block{margin:.75rem 0}.flex{display:flex}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.gap-1{gap:.25rem}.gap-2{gap:.5rem}.p-3{padding:.75rem}.m-0{margin:0}.w-full{width:100%}.max-w-xl{max-width:36rem}.h-44{height:11rem}.border{border-width:1px;border-style:solid}.border-b{border-bottom-width:1px;border-bottom-style:solid}.border-dashed{border-style:dashed}.rounded-lg{border-radius:.5rem}.bg-white{background-color:#fff}.cursor-crosshair{cursor:crosshair}.text-sm{font-size:.875rem}.font-semibold{font-weight:600}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export type InkFeatureName = 'table' | 'trackChanges' | 'comments' | 'ai' | 'blocks' | 'slash' | 'history' | 'typoAutoFix' | 'signature' | 'findReplace' | 'horizontalRule';
|
|
1
|
+
export type InkFeatureName = 'table' | 'trackChanges' | 'comments' | 'ai' | 'blocks' | 'slash' | 'history' | 'typoAutoFix' | 'signature' | 'findReplace' | 'horizontalRule' | 'htmlSource' | 'titles' | 'excel' | 'graph' | 'outline' | 'fullscreen' | 'theme';
|
|
2
2
|
export type InkFeaturesConfig = Partial<Record<InkFeatureName, boolean>>;
|
|
3
3
|
export type InkEditorVariant = 'classic' | 'document' | 'simple' | 'agent' | 'docx' | 'notion-like';
|
|
4
4
|
export type InkEditorChrome = 'boxed' | 'borderless';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"features.types.d.ts","sourceRoot":"","sources":["../../src/types/features.types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,cAAc,GACtB,OAAO,GACP,cAAc,GACd,UAAU,GACV,IAAI,GACJ,QAAQ,GACR,OAAO,GACP,SAAS,GACT,aAAa,GACb,WAAW,GACX,aAAa,GACb,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"features.types.d.ts","sourceRoot":"","sources":["../../src/types/features.types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,cAAc,GACtB,OAAO,GACP,cAAc,GACd,UAAU,GACV,IAAI,GACJ,QAAQ,GACR,OAAO,GACP,SAAS,GACT,aAAa,GACb,WAAW,GACX,aAAa,GACb,gBAAgB,GAChB,YAAY,GACZ,QAAQ,GACR,OAAO,GACP,OAAO,GACP,SAAS,GACT,YAAY,GACZ,OAAO,CAAC;AAEZ,MAAM,MAAM,iBAAiB,GAAG,OAAO,CAAC,MAAM,CAAC,cAAc,EAAE,OAAO,CAAC,CAAC,CAAC;AAEzE,MAAM,MAAM,gBAAgB,GACxB,SAAS,GACT,UAAU,GACV,QAAQ,GACR,OAAO,GACP,MAAM,GACN,aAAa,CAAC;AAElB,MAAM,MAAM,eAAe,GAAG,OAAO,GAAG,YAAY,CAAC;AAErD,MAAM,MAAM,YAAY,GAAG,OAAO,GAAG,MAAM,GAAG,QAAQ,CAAC;AAEvD,MAAM,MAAM,cAAc,GAAG,SAAS,GAAG,QAAQ,GAAG,UAAU,CAAC"}
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
export type { ToolbarOption, InkEditorProps, ToolbarButtonProps, DropdownOption, ToolbarDropdownProps, ToolbarColorPickerProps, TypoFixResult, SlashCommandItem, } from './ink.types';
|
|
1
|
+
export type { ToolbarOption, InkEditorProps, ToolbarButtonProps, DropdownOption, ToolbarDropdownProps, ToolbarColorPickerProps, TypoFixResult, SlashCommandItem, SlashInsert, } from './ink.types';
|
|
2
2
|
export type { InkAiCapability, InkAiRequest, InkAiResponse, InkAiAgent, InkAiPlugin, InkAiChatTurn, InkAiDiffSuggestion, InkAiReviewSuggestion, InkAiContextFile, InkAiDocumentSnapshot, InkAiModelCatalogEntry, InkAiProvider, InkAiCostControlHooks, InkAiModerationHook, InkAiPermissionsHook, InkAiExternalKnowledgeHook, InkAiQualityEvalHook, InkAiFallbackChain, InkAiUiTheme, InkAiConfig, } from './ai.types';
|
|
3
3
|
export type { InkCommentReply, InkCommentThread, InkCommentsChangeHandler, } from './comments.types';
|
|
4
4
|
export type { InkTrackChangeType, InkTrackChange, InkTrackChangesChangeHandler, } from './trackChanges.types';
|
|
5
5
|
export type { InkFeatureName, InkFeaturesConfig, InkEditorVariant, InkEditorChrome, InkColorMode, InkAiPlacement, } from './features.types';
|
|
6
6
|
export type { InkPremiumFeature, InkPasteMode, InkIconKey, InkIconMap, InkThemeTokens, InkPremiumConfig, InkResolvedPremium, InkImageUploadHandler, InkThemeStyle, } from './premium.types';
|
|
7
|
+
export type { OutlineItem } from './outline.types';
|
|
8
|
+
export type { InkHostPlugin, InkHostPluginId } from './plugin.types';
|
|
7
9
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,aAAa,EACb,cAAc,EACd,kBAAkB,EAClB,cAAc,EACd,oBAAoB,EACpB,uBAAuB,EACvB,aAAa,EACb,gBAAgB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,aAAa,EACb,cAAc,EACd,kBAAkB,EAClB,cAAc,EACd,oBAAoB,EACpB,uBAAuB,EACvB,aAAa,EACb,gBAAgB,EAChB,WAAW,GACZ,MAAM,aAAa,CAAC;AAErB,YAAY,EACV,eAAe,EACf,YAAY,EACZ,aAAa,EACb,UAAU,EACV,WAAW,EACX,aAAa,EACb,mBAAmB,EACnB,qBAAqB,EACrB,gBAAgB,EAChB,qBAAqB,EACrB,sBAAsB,EACtB,aAAa,EACb,qBAAqB,EACrB,mBAAmB,EACnB,oBAAoB,EACpB,0BAA0B,EAC1B,oBAAoB,EACpB,kBAAkB,EAClB,YAAY,EACZ,WAAW,GACZ,MAAM,YAAY,CAAC;AAEpB,YAAY,EACV,eAAe,EACf,gBAAgB,EAChB,wBAAwB,GACzB,MAAM,kBAAkB,CAAC;AAE1B,YAAY,EACV,kBAAkB,EAClB,cAAc,EACd,4BAA4B,GAC7B,MAAM,sBAAsB,CAAC;AAE9B,YAAY,EACV,cAAc,EACd,iBAAiB,EACjB,gBAAgB,EAChB,eAAe,EACf,YAAY,EACZ,cAAc,GACf,MAAM,kBAAkB,CAAC;AAE1B,YAAY,EACV,iBAAiB,EACjB,YAAY,EACZ,UAAU,EACV,UAAU,EACV,cAAc,EACd,gBAAgB,EAChB,kBAAkB,EAClB,qBAAqB,EACrB,aAAa,GACd,MAAM,iBAAiB,CAAC;AAEzB,YAAY,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AACnD,YAAY,EAAE,aAAa,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC"}
|