@pixerate/editor 0.236.0 → 0.238.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/agent/index.cjs +40 -39
- package/dist/agent/index.js +9 -8
- package/dist/animation/index.cjs +7 -6
- package/dist/animation/index.js +6 -5
- package/dist/animation-editor/index.cjs +66 -65
- package/dist/animation-editor/index.js +9 -8
- package/dist/{brushstrokeRender-WDTKD54B.cjs → brushstrokeRender-MPOM7BFW.cjs} +7 -5
- package/dist/{brushstrokeRender-MAHOXL7K.js → brushstrokeRender-WB67GMUP.js} +4 -2
- package/dist/canvas/index.cjs +55 -54
- package/dist/canvas/index.js +10 -9
- package/dist/chart/index.cjs +159 -158
- package/dist/chart/index.js +9 -8
- package/dist/{chunk-L6Y7TSQ4.js → chunk-36ZTV7WO.js} +1 -1
- package/dist/{chunk-JVNGCS26.js → chunk-3E36VDMJ.js} +1 -1
- package/dist/{chunk-WRZ6C4TU.cjs → chunk-3R5P3DVY.cjs} +6 -6
- package/dist/{chunk-RUONPPMC.cjs → chunk-44BMJJVA.cjs} +8 -8
- package/dist/{chunk-YBAPT7NL.js → chunk-6ADHGQ73.js} +4 -2
- package/dist/chunk-7AHBW2CQ.cjs +200 -0
- package/dist/{chunk-EUIDTZNQ.cjs → chunk-7PT4RJL5.cjs} +113 -111
- package/dist/{chunk-CU6ANS5L.js → chunk-7YGBSFC6.js} +2 -2
- package/dist/{chunk-ATKKG76G.cjs → chunk-AD7GA3TL.cjs} +23 -23
- package/dist/{chunk-FSLKBQU7.js → chunk-AIS56JOO.js} +3 -3
- package/dist/{chunk-5VQXSS2S.cjs → chunk-BBUE3UJL.cjs} +86 -86
- package/dist/{chunk-7272D3K2.js → chunk-BP6KSGVD.js} +6 -4
- package/dist/{chunk-F6R67I3A.js → chunk-CXXXAZ7H.js} +1 -1
- package/dist/{chunk-5DQPDXOM.cjs → chunk-D2SGV525.cjs} +76 -76
- package/dist/chunk-F67XMVDI.js +200 -0
- package/dist/{chunk-PHYOZK3B.js → chunk-FQVVO5YA.js} +85 -8
- package/dist/{chunk-UXETV2NC.cjs → chunk-GA4EU4P3.cjs} +4 -4
- package/dist/{chunk-UFEDHACQ.js → chunk-GXAK6Q5J.js} +2 -2
- package/dist/{chunk-MHLU6GRJ.js → chunk-JEGJP4OW.js} +7 -196
- package/dist/{chunk-GOBOCZZI.js → chunk-LEQKZGQI.js} +1 -1
- package/dist/{chunk-M5GLQQWG.cjs → chunk-LJZRHVZV.cjs} +2 -2
- package/dist/{chunk-N76AMOKE.cjs → chunk-MOW3JMNG.cjs} +42 -42
- package/dist/{chunk-WKMUBATU.js → chunk-N4DFDI73.js} +1 -1
- package/dist/{chunk-GNZI3KYK.cjs → chunk-NKTNLJUJ.cjs} +49 -9
- package/dist/{chunk-TQOL6CF7.js → chunk-PJYG6FCF.js} +49 -9
- package/dist/{chunk-V3L7U63N.cjs → chunk-PP6BXVRL.cjs} +1 -1
- package/dist/{chunk-TFF2GTGN.cjs → chunk-PPFJHTW5.cjs} +24 -22
- package/dist/{chunk-6ZZKRH7R.js → chunk-QARCM66V.js} +3 -3
- package/dist/{chunk-5UEFBM2M.cjs → chunk-RD7RX52G.cjs} +18 -207
- package/dist/{chunk-CDP2AKMA.js → chunk-RV5DKZHU.js} +1 -1
- package/dist/{chunk-HUAISCUX.cjs → chunk-T7KQEMAE.cjs} +18 -18
- package/dist/{chunk-BQE3Y6ZO.cjs → chunk-THXFU3JB.cjs} +5 -5
- package/dist/{chunk-4ZC5QJE2.cjs → chunk-UTI5IITZ.cjs} +3 -3
- package/dist/{chunk-XSVUNSDJ.js → chunk-UUBO6RB5.js} +1 -1
- package/dist/{chunk-WPWHT4Z6.cjs → chunk-UZU6DIZA.cjs} +221 -144
- package/dist/{chunk-M2TPMYJE.js → chunk-V6DT2CDH.js} +1 -1
- package/dist/{chunk-WV5WTOC6.cjs → chunk-W7GRGGBH.cjs} +16 -16
- package/dist/{chunk-23E5GI2U.js → chunk-WGN7AUKB.js} +2 -2
- package/dist/{chunk-YMREOA67.js → chunk-XK4SST43.js} +2 -2
- package/dist/{chunk-SOSBOS5T.cjs → chunk-XWOLPNBW.cjs} +22 -22
- package/dist/{chunk-ILP77UD6.js → chunk-YGQVCQTG.js} +1 -1
- package/dist/{chunk-GXLZZVR5.cjs → chunk-ZXNO3ZOX.cjs} +37 -37
- package/dist/color/index.cjs +6 -4
- package/dist/color/index.js +9 -7
- package/dist/export/index.cjs +8 -7
- package/dist/export/index.js +7 -6
- package/dist/extensions/index.cjs +13 -10
- package/dist/extensions/index.js +12 -9
- package/dist/extensions/loading-node.d.cts +45 -1
- package/dist/extensions/loading-node.d.ts +45 -1
- package/dist/gradient/index.cjs +29 -28
- package/dist/gradient/index.js +4 -3
- package/dist/image-editor/index.cjs +778 -777
- package/dist/image-editor/index.js +9 -8
- package/dist/index.cjs +19 -16
- package/dist/index.js +13 -10
- package/dist/paint-editor/controller.d.cts +31 -1
- package/dist/paint-editor/controller.d.ts +31 -1
- package/dist/paint-editor/index.cjs +403 -195
- package/dist/paint-editor/index.js +231 -23
- package/dist/paint-editor/sticker-tools.d.cts +1 -1
- package/dist/paint-editor/sticker-tools.d.ts +1 -1
- package/dist/paint-editor/stickers.d.cts +10 -3
- package/dist/paint-editor/stickers.d.ts +10 -3
- package/dist/paint-editor/ui.d.cts +10 -3
- package/dist/paint-editor/ui.d.ts +10 -3
- package/dist/tokens/index.cjs +4 -3
- package/dist/tokens/index.js +3 -2
- package/dist/typography/index.cjs +8 -7
- package/dist/typography/index.js +3 -2
- package/dist/vector/index.cjs +967 -966
- package/dist/vector/index.js +9 -8
- package/dist/video-editor/index.cjs +7 -6
- package/dist/video-editor/index.js +6 -5
- package/package.json +1 -1
- package/skills/pixerate-color/SKILL.md +3 -0
- package/skills/pixerate-image-editor/SKILL.md +1 -0
- package/skills/pixerate-paint-editor/SKILL.md +6 -2
package/dist/color/index.js
CHANGED
|
@@ -29,7 +29,7 @@ import {
|
|
|
29
29
|
setDualColorSide,
|
|
30
30
|
simulateColorVision,
|
|
31
31
|
wheelToHue
|
|
32
|
-
} from "../chunk-
|
|
32
|
+
} from "../chunk-BP6KSGVD.js";
|
|
33
33
|
import {
|
|
34
34
|
deltaEOK,
|
|
35
35
|
formatColor,
|
|
@@ -38,28 +38,30 @@ import {
|
|
|
38
38
|
normalizeColor,
|
|
39
39
|
suggestAccessibleForeground,
|
|
40
40
|
toSrgbGamut
|
|
41
|
-
} from "../chunk-
|
|
41
|
+
} from "../chunk-6ADHGQ73.js";
|
|
42
42
|
import {
|
|
43
43
|
NAMED_COLORS,
|
|
44
44
|
contrastLevel,
|
|
45
45
|
contrastRatio,
|
|
46
|
+
isColor,
|
|
47
|
+
parseColor,
|
|
48
|
+
readableTextColor,
|
|
49
|
+
relativeLuminance
|
|
50
|
+
} from "../chunk-JEGJP4OW.js";
|
|
51
|
+
import {
|
|
46
52
|
displayP3ToLinearSrgb,
|
|
47
53
|
hslToRgb,
|
|
48
54
|
hsvToRgb,
|
|
49
|
-
isColor,
|
|
50
55
|
linearSrgbToDisplayP3,
|
|
51
56
|
linearToSrgb,
|
|
52
57
|
oklabToOklch,
|
|
53
58
|
oklabToRgb,
|
|
54
59
|
oklchToOklab,
|
|
55
|
-
parseColor,
|
|
56
|
-
readableTextColor,
|
|
57
|
-
relativeLuminance,
|
|
58
60
|
rgbToHsl,
|
|
59
61
|
rgbToHsv,
|
|
60
62
|
rgbToOklab,
|
|
61
63
|
srgbToLinear
|
|
62
|
-
} from "../chunk-
|
|
64
|
+
} from "../chunk-F67XMVDI.js";
|
|
63
65
|
import "../chunk-6ONMQ6WF.js";
|
|
64
66
|
export {
|
|
65
67
|
DEFAULT_SCHEME_SURFACES,
|
package/dist/export/index.cjs
CHANGED
|
@@ -12,19 +12,20 @@
|
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
var
|
|
15
|
+
var _chunk44BMJJVAcjs = require('../chunk-44BMJJVA.cjs');
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
var _chunkJLWLX52Lcjs = require('../chunk-JLWLX52L.cjs');
|
|
20
20
|
require('../chunk-YN6JKAUE.cjs');
|
|
21
|
-
require('../chunk-
|
|
22
|
-
require('../chunk-
|
|
21
|
+
require('../chunk-T7KQEMAE.cjs');
|
|
22
|
+
require('../chunk-3R5P3DVY.cjs');
|
|
23
23
|
require('../chunk-ALNIFK5G.cjs');
|
|
24
24
|
require('../chunk-2BSBFBOA.cjs');
|
|
25
|
-
require('../chunk-
|
|
26
|
-
require('../chunk-
|
|
27
|
-
require('../chunk-
|
|
25
|
+
require('../chunk-7PT4RJL5.cjs');
|
|
26
|
+
require('../chunk-PPFJHTW5.cjs');
|
|
27
|
+
require('../chunk-RD7RX52G.cjs');
|
|
28
|
+
require('../chunk-7AHBW2CQ.cjs');
|
|
28
29
|
require('../chunk-IPJ3TEYR.cjs');
|
|
29
30
|
|
|
30
31
|
|
|
@@ -42,4 +43,4 @@ require('../chunk-IPJ3TEYR.cjs');
|
|
|
42
43
|
|
|
43
44
|
|
|
44
45
|
|
|
45
|
-
exports.DOCX_ANONYMOUS_AUTHOR =
|
|
46
|
+
exports.DOCX_ANONYMOUS_AUTHOR = _chunk44BMJJVAcjs.DOCX_ANONYMOUS_AUTHOR; exports.DOCX_EXPORT_MIME_TYPE = _chunk44BMJJVAcjs.DOCX_EXPORT_MIME_TYPE; exports.DocxExportController = _chunk44BMJJVAcjs.DocxExportController; exports.XmlWriter = _chunk44BMJJVAcjs.XmlWriter; exports.createDocxExportController = _chunk44BMJJVAcjs.createDocxExportController; exports.createDocxParts = _chunk44BMJJVAcjs.createDocxParts; exports.deflateRaw = _chunkJLWLX52Lcjs.deflateRaw; exports.docxFileName = _chunk44BMJJVAcjs.docxFileName; exports.downloadBlob = _chunk44BMJJVAcjs.downloadBlob; exports.escapeXmlAttr = _chunk44BMJJVAcjs.escapeXmlAttr; exports.escapeXmlText = _chunk44BMJJVAcjs.escapeXmlText; exports.exportDocx = _chunk44BMJJVAcjs.exportDocx; exports.exportDocxBlob = _chunk44BMJJVAcjs.exportDocxBlob; exports.stripInvalidXmlChars = _chunk44BMJJVAcjs.stripInvalidXmlChars; exports.writeZip = _chunkJLWLX52Lcjs.writeZip;
|
package/dist/export/index.js
CHANGED
|
@@ -12,19 +12,20 @@ import {
|
|
|
12
12
|
exportDocx,
|
|
13
13
|
exportDocxBlob,
|
|
14
14
|
stripInvalidXmlChars
|
|
15
|
-
} from "../chunk-
|
|
15
|
+
} from "../chunk-GXAK6Q5J.js";
|
|
16
16
|
import {
|
|
17
17
|
deflateRaw,
|
|
18
18
|
writeZip
|
|
19
19
|
} from "../chunk-AZCODQO5.js";
|
|
20
20
|
import "../chunk-CXXKJBQZ.js";
|
|
21
|
-
import "../chunk-
|
|
22
|
-
import "../chunk-
|
|
21
|
+
import "../chunk-36ZTV7WO.js";
|
|
22
|
+
import "../chunk-QARCM66V.js";
|
|
23
23
|
import "../chunk-CIQIM2IP.js";
|
|
24
24
|
import "../chunk-HF5QZS7Z.js";
|
|
25
|
-
import "../chunk-
|
|
26
|
-
import "../chunk-
|
|
27
|
-
import "../chunk-
|
|
25
|
+
import "../chunk-BP6KSGVD.js";
|
|
26
|
+
import "../chunk-6ADHGQ73.js";
|
|
27
|
+
import "../chunk-JEGJP4OW.js";
|
|
28
|
+
import "../chunk-F67XMVDI.js";
|
|
28
29
|
import "../chunk-6ONMQ6WF.js";
|
|
29
30
|
export {
|
|
30
31
|
DOCX_ANONYMOUS_AUTHOR,
|
|
@@ -87,7 +87,8 @@
|
|
|
87
87
|
|
|
88
88
|
|
|
89
89
|
|
|
90
|
-
|
|
90
|
+
|
|
91
|
+
var _chunkUZU6DIZAcjs = require('../chunk-UZU6DIZA.cjs');
|
|
91
92
|
|
|
92
93
|
|
|
93
94
|
|
|
@@ -96,7 +97,7 @@ var _chunkWPWHT4Z6cjs = require('../chunk-WPWHT4Z6.cjs');
|
|
|
96
97
|
|
|
97
98
|
|
|
98
99
|
var _chunkYN6JKAUEcjs = require('../chunk-YN6JKAUE.cjs');
|
|
99
|
-
require('../chunk-
|
|
100
|
+
require('../chunk-T7KQEMAE.cjs');
|
|
100
101
|
require('../chunk-HMGWFXEC.cjs');
|
|
101
102
|
|
|
102
103
|
|
|
@@ -171,11 +172,11 @@ require('../chunk-HMGWFXEC.cjs');
|
|
|
171
172
|
|
|
172
173
|
|
|
173
174
|
|
|
174
|
-
var
|
|
175
|
-
require('../chunk-
|
|
175
|
+
var _chunkW7GRGGBHcjs = require('../chunk-W7GRGGBH.cjs');
|
|
176
|
+
require('../chunk-D2SGV525.cjs');
|
|
176
177
|
require('../chunk-TTCJPX4U.cjs');
|
|
177
|
-
require('../chunk-
|
|
178
|
-
require('../chunk-
|
|
178
|
+
require('../chunk-MOW3JMNG.cjs');
|
|
179
|
+
require('../chunk-3R5P3DVY.cjs');
|
|
179
180
|
require('../chunk-VU6WQSMB.cjs');
|
|
180
181
|
require('../chunk-3AJMR7EG.cjs');
|
|
181
182
|
require('../chunk-G43MNQ4C.cjs');
|
|
@@ -216,9 +217,10 @@ require('../chunk-ALNIFK5G.cjs');
|
|
|
216
217
|
require('../chunk-UWEQ55MY.cjs');
|
|
217
218
|
require('../chunk-2BSBFBOA.cjs');
|
|
218
219
|
require('../chunk-FJ2MSI43.cjs');
|
|
219
|
-
require('../chunk-
|
|
220
|
-
require('../chunk-
|
|
221
|
-
require('../chunk-
|
|
220
|
+
require('../chunk-7PT4RJL5.cjs');
|
|
221
|
+
require('../chunk-PPFJHTW5.cjs');
|
|
222
|
+
require('../chunk-RD7RX52G.cjs');
|
|
223
|
+
require('../chunk-7AHBW2CQ.cjs');
|
|
222
224
|
require('../chunk-IPJ3TEYR.cjs');
|
|
223
225
|
|
|
224
226
|
|
|
@@ -415,4 +417,5 @@ require('../chunk-IPJ3TEYR.cjs');
|
|
|
415
417
|
|
|
416
418
|
|
|
417
419
|
|
|
418
|
-
exports.ALLOW_NESTED_TABLES_META = _chunkWV5WTOC6cjs.ALLOW_NESTED_TABLES_META; exports.AgentCaret = _chunkWV5WTOC6cjs.AgentCaret; exports.Autocorrect = _chunkWPWHT4Z6cjs.Autocorrect; exports.BLOCK_CHANGE_ATTRIBUTE = _chunk34RQAGWIcjs.BLOCK_CHANGE_ATTRIBUTE; exports.Bookmark = _chunkWPWHT4Z6cjs.Bookmark; exports.CHARACTER_STYLE_MARK_NAME = _chunkWPWHT4Z6cjs.CHARACTER_STYLE_MARK_NAME; exports.COMMENT_MARK_NAME = _chunkWV5WTOC6cjs.COMMENT_MARK_NAME; exports.CharacterStyle = _chunkWPWHT4Z6cjs.CharacterStyle; exports.Chart = _chunkWV5WTOC6cjs.Chart; exports.ChartNodeView = _chunkWV5WTOC6cjs.ChartNodeView; exports.ColorHighlighter = _chunkWPWHT4Z6cjs.ColorHighlighter; exports.CommentStore = _chunk34RQAGWIcjs.CommentStore; exports.Comments = _chunkWV5WTOC6cjs.Comments; exports.CrossReference = _chunkWPWHT4Z6cjs.CrossReference; exports.DEFAULT_AGENT_CARET_COLOR = _chunkWV5WTOC6cjs.DEFAULT_AGENT_CARET_COLOR; exports.DEFAULT_AGENT_CARET_NAME = _chunkWV5WTOC6cjs.DEFAULT_AGENT_CARET_NAME; exports.DEFAULT_AUTOCORRECT_EXCEPTIONS = _chunkWPWHT4Z6cjs.DEFAULT_AUTOCORRECT_EXCEPTIONS; exports.DEFAULT_STYLES = _chunkYN6JKAUEcjs.DEFAULT_STYLES; exports.DEFAULT_TABLE_OPTIONS = _chunkWV5WTOC6cjs.DEFAULT_TABLE_OPTIONS; exports.DEFAULT_TABLE_TOOLBAR = _chunkWV5WTOC6cjs.DEFAULT_TABLE_TOOLBAR; exports.DELETION_MARK_NAME = _chunk34RQAGWIcjs.DELETION_MARK_NAME; exports.DocumentCompare = _chunkWPWHT4Z6cjs.DocumentCompare; exports.EMPTY_FIND_REPLACE_SNAPSHOT = _chunkWPWHT4Z6cjs.EMPTY_FIND_REPLACE_SNAPSHOT; exports.EMPTY_TABLE_STATE = _chunkWV5WTOC6cjs.EMPTY_TABLE_STATE; exports.FIND_OPTION_TOGGLES = _chunkWPWHT4Z6cjs.FIND_OPTION_TOGGLES; exports.FIND_PARAGRAPH_MARK = _chunkWV5WTOC6cjs.FIND_PARAGRAPH_MARK; exports.FORMAT_CHANGE_MARK_NAME = _chunk34RQAGWIcjs.FORMAT_CHANGE_MARK_NAME; exports.FileImport = _chunkWPWHT4Z6cjs.FileImport; exports.FindReplace = _chunkWPWHT4Z6cjs.FindReplace; exports.FindReplaceStore = _chunkWPWHT4Z6cjs.FindReplaceStore; exports.FontSize = _chunkWPWHT4Z6cjs.FontSize; exports.Footnote = _chunkWPWHT4Z6cjs.Footnote; exports.FootnoteReference = _chunkWPWHT4Z6cjs.FootnoteReference; exports.Footnotes = _chunkWPWHT4Z6cjs.Footnotes; exports.GradientText = _chunkWPWHT4Z6cjs.GradientText; exports.INSERTION_MARK_NAME = _chunk34RQAGWIcjs.INSERTION_MARK_NAME; exports.Image = _chunkWPWHT4Z6cjs.Image; exports.LoadingNode = _chunkWPWHT4Z6cjs.LoadingNode; exports.MAX_FIND_PATTERN_LENGTH = _chunkWV5WTOC6cjs.MAX_FIND_PATTERN_LENGTH; exports.MAX_SPARKLINE_VALUES = _chunkWV5WTOC6cjs.MAX_SPARKLINE_VALUES; exports.MAX_TABLE_COLUMNS = _chunkWV5WTOC6cjs.MAX_TABLE_COLUMNS; exports.MAX_TABLE_ROWS = _chunkWV5WTOC6cjs.MAX_TABLE_ROWS; exports.MOVE_FROM_CLASS = _chunk34RQAGWIcjs.MOVE_FROM_CLASS; exports.MOVE_ID_ATTRIBUTE = _chunk34RQAGWIcjs.MOVE_ID_ATTRIBUTE; exports.MOVE_TO_CLASS = _chunk34RQAGWIcjs.MOVE_TO_CLASS; exports.Markdown = _chunkWPWHT4Z6cjs.Markdown; exports.Mention = _chunkWPWHT4Z6cjs.Mention; exports.NORMAL_STYLE_ID = _chunkYN6JKAUEcjs.NORMAL_STYLE_ID; exports.Outline = _chunkWPWHT4Z6cjs.Outline; exports.ParagraphStyles = _chunkWPWHT4Z6cjs.ParagraphStyles; exports.RichClipboard = _chunkWPWHT4Z6cjs.RichClipboard; exports.SMILIE_REPLACEMENTS = _chunkWPWHT4Z6cjs.SMILIE_REPLACEMENTS; exports.SPARKLINE_KINDS = _chunkWV5WTOC6cjs.SPARKLINE_KINDS; exports.STYLE_ID_ATTRIBUTE = _chunkWPWHT4Z6cjs.STYLE_ID_ATTRIBUTE; exports.SlashCommands = _chunkWPWHT4Z6cjs.SlashCommands; exports.SmilieReplacer = _chunkWPWHT4Z6cjs.SmilieReplacer; exports.Sparkline = _chunkWV5WTOC6cjs.Sparkline; exports.StyleRegistry = _chunkYN6JKAUEcjs.StyleRegistry; exports.TABLE_ACTIONS = _chunkWV5WTOC6cjs.TABLE_ACTIONS; exports.TRACK_CHANGES_SKIP_META = _chunk34RQAGWIcjs.TRACK_CHANGES_SKIP_META; exports.Table = _chunkWV5WTOC6cjs.Table; exports.TableCell = _chunkWV5WTOC6cjs.TableCell; exports.TableHeader = _chunkWV5WTOC6cjs.TableHeader; exports.TableOfContents = _chunkWPWHT4Z6cjs.TableOfContents; exports.TableRow = _chunkWV5WTOC6cjs.TableRow; exports.TemplateSuggestions = _chunkWPWHT4Z6cjs.TemplateSuggestions; exports.TrackChanges = _chunk34RQAGWIcjs.TrackChanges; exports.TrackChangesStore = _chunk34RQAGWIcjs.TrackChangesStore; exports.TrackedDeletion = _chunk34RQAGWIcjs.TrackedDeletion; exports.TrackedFormatChange = _chunk34RQAGWIcjs.TrackedFormatChange; exports.TrackedInsertion = _chunk34RQAGWIcjs.TrackedInsertion; exports.agentCaretPluginKey = _chunkWV5WTOC6cjs.agentCaretPluginKey; exports.applyDocumentComparison = _chunkWPWHT4Z6cjs.applyDocumentComparison; exports.applyReplacements = _chunkWV5WTOC6cjs.applyReplacements; exports.autocorrectPluginKey = _chunkWPWHT4Z6cjs.autocorrectPluginKey; exports.buildOutlineTree = _chunkWPWHT4Z6cjs.buildOutlineTree; exports.capitalizeSentenceRules = _chunkWPWHT4Z6cjs.capitalizeSentenceRules; exports.captureSelectionFormat = _chunkWPWHT4Z6cjs.captureSelectionFormat; exports.chartPluginKey = _chunkWV5WTOC6cjs.chartPluginKey; exports.clearAgentCaret = _chunkWV5WTOC6cjs.clearAgentCaret; exports.commentsPluginKey = _chunkWV5WTOC6cjs.commentsPluginKey; exports.compareInEditor = _chunkWPWHT4Z6cjs.compareInEditor; exports.compileFindPattern = _chunkWV5WTOC6cjs.compileFindPattern; exports.computeOutline = _chunkWPWHT4Z6cjs.computeOutline; exports.createAgentCaretPlugin = _chunkWV5WTOC6cjs.createAgentCaretPlugin; exports.createChartNodeView = _chunkWV5WTOC6cjs.createChartNodeView; exports.createCommentStore = _chunk34RQAGWIcjs.createCommentStore; exports.createFindReplaceCommands = _chunkWPWHT4Z6cjs.createFindReplaceCommands; exports.createMentionExtension = _chunkWPWHT4Z6cjs.createMentionExtension; exports.createOutlineStore = _chunkWPWHT4Z6cjs.createOutlineStore; exports.createParagraphStylesStore = _chunkWPWHT4Z6cjs.createParagraphStylesStore; exports.createReviewId = _chunk34RQAGWIcjs.createReviewId; exports.createRichTextPreset = _chunkWPWHT4Z6cjs.createRichTextPreset; exports.createSearchBudget = _chunkWV5WTOC6cjs.createSearchBudget; exports.createStyleRegistry = _chunkYN6JKAUEcjs.createStyleRegistry; exports.createTableCommands = _chunkWPWHT4Z6cjs.createTableCommands; exports.createTableExtensions = _chunkWV5WTOC6cjs.createTableExtensions; exports.createTableNestingPlugin = _chunkWV5WTOC6cjs.createTableNestingPlugin; exports.createTableStore = _chunkWV5WTOC6cjs.createTableStore; exports.crossReferencePluginKey = _chunkWPWHT4Z6cjs.crossReferencePluginKey; exports.defaultAutocorrectRules = _chunkWPWHT4Z6cjs.defaultAutocorrectRules; exports.describeBlockChange = _chunk34RQAGWIcjs.describeBlockChange; exports.describeFormatChange = _chunk34RQAGWIcjs.describeFormatChange; exports.documentStructureCommandItems = _chunkWPWHT4Z6cjs.documentStructureCommandItems; exports.ensureAgentCaret = _chunkWV5WTOC6cjs.ensureAgentCaret; exports.expandReplacement = _chunkWV5WTOC6cjs.expandReplacement; exports.fileImportPluginKey = _chunkWPWHT4Z6cjs.fileImportPluginKey; exports.findAllMatches = _chunkWV5WTOC6cjs.findAllMatches; exports.findAutocorrection = _chunkWPWHT4Z6cjs.findAutocorrection; exports.findCommentRanges = _chunkWV5WTOC6cjs.findCommentRanges; exports.findHexColors = _chunkWPWHT4Z6cjs.findHexColors; exports.findReplacePluginKey = _chunkWPWHT4Z6cjs.findReplacePluginKey; exports.foldCodePoint = _chunkWV5WTOC6cjs.foldCodePoint; exports.footnotesMarkdownIt = _chunkWPWHT4Z6cjs.footnotesMarkdownIt; exports.footnotesPluginKey = _chunkWPWHT4Z6cjs.footnotesPluginKey; exports.formatFindStatus = _chunkWPWHT4Z6cjs.formatFindStatus; exports.formatReviewTime = _chunk34RQAGWIcjs.formatReviewTime; exports.fractionRules = _chunkWPWHT4Z6cjs.fractionRules; exports.getActiveHeading = _chunkWPWHT4Z6cjs.getActiveHeading; exports.getAgentCarets = _chunkWV5WTOC6cjs.getAgentCarets; exports.getBookmarks = _chunkWPWHT4Z6cjs.getBookmarks; exports.getCommentAnchors = _chunkWV5WTOC6cjs.getCommentAnchors; exports.getCommentAuthor = _chunkWV5WTOC6cjs.getCommentAuthor; exports.getCommentIdsAt = _chunkWV5WTOC6cjs.getCommentIdsAt; exports.getCommentStore = _chunkWV5WTOC6cjs.getCommentStore; exports.getCrossReferenceTargets = _chunkWPWHT4Z6cjs.getCrossReferenceTargets; exports.getDocumentCharts = _chunkWV5WTOC6cjs.getDocumentCharts; exports.getDocumentStructureCommandItems = _chunkWPWHT4Z6cjs.getDocumentStructureCommandItems; exports.getFindReplaceState = _chunkWPWHT4Z6cjs.getFindReplaceState; exports.getFindReplaceStore = _chunkWPWHT4Z6cjs.getFindReplaceStore; exports.getFootnotes = _chunkWPWHT4Z6cjs.getFootnotes; exports.getMentionNodes = _chunkWPWHT4Z6cjs.getMentionNodes; exports.getOutline = _chunkWPWHT4Z6cjs.getOutline; exports.getParagraphStyleAt = _chunkWPWHT4Z6cjs.getParagraphStyleAt; exports.getStyleRegistry = _chunkWPWHT4Z6cjs.getStyleRegistry; exports.getTableActionState = _chunkWV5WTOC6cjs.getTableActionState; exports.getTableOfContentsEntries = _chunkWPWHT4Z6cjs.getTableOfContentsEntries; exports.getTableState = _chunkWV5WTOC6cjs.getTableState; exports.getTrackChangesStore = _chunk34RQAGWIcjs.getTrackChangesStore; exports.getTrackedChangeAt = _chunk34RQAGWIcjs.getTrackedChangeAt; exports.getTrackedChanges = _chunk34RQAGWIcjs.getTrackedChanges; exports.handleImageInsertion = _chunkWPWHT4Z6cjs.handleImageInsertion; exports.handleTablePasteWithoutNesting = _chunkWV5WTOC6cjs.handleTablePasteWithoutNesting; exports.imagePastePluginKey = _chunkWPWHT4Z6cjs.imagePastePluginKey; exports.insertImageNode = _chunkWPWHT4Z6cjs.insertImageNode; exports.insertSliceAfterTable = _chunkWV5WTOC6cjs.insertSliceAfterTable; exports.isChartEnabled = _chunkWV5WTOC6cjs.isChartEnabled; exports.isGfmTable = _chunkWV5WTOC6cjs.isGfmTable; exports.isInTableCell = _chunkWV5WTOC6cjs.isInTableCell; exports.isInsidePromptToken = _chunkWPWHT4Z6cjs.isInsidePromptToken; exports.isMoveSized = _chunk34RQAGWIcjs.isMoveSized; exports.isParagraphStyleAvailable = _chunkWPWHT4Z6cjs.isParagraphStyleAvailable; exports.isSelectionInTable = _chunkWV5WTOC6cjs.isSelectionInTable; exports.isTableEnabled = _chunkWV5WTOC6cjs.isTableEnabled; exports.isTrackChangesEnabled = _chunk34RQAGWIcjs.isTrackChangesEnabled; exports.isValidStyleId = _chunkYN6JKAUEcjs.isValidStyleId; exports.markAgentChanges = _chunkWV5WTOC6cjs.markAgentChanges; exports.navigateToHeading = _chunkWPWHT4Z6cjs.navigateToHeading; exports.normalizeSparklineValues = _chunkWV5WTOC6cjs.normalizeSparklineValues; exports.normalizeTableCellAlignment = _chunkWV5WTOC6cjs.normalizeTableCellAlignment; exports.normalizeTableCellColor = _chunkWV5WTOC6cjs.normalizeTableCellColor; exports.outermostTableDepth = _chunkWV5WTOC6cjs.outermostTableDepth; exports.outlinePluginKey = _chunkWPWHT4Z6cjs.outlinePluginKey; exports.paragraphStylesPluginKey = _chunkWPWHT4Z6cjs.paragraphStylesPluginKey; exports.parseReplacement = _chunkWV5WTOC6cjs.parseReplacement; exports.removeImageNode = _chunkWPWHT4Z6cjs.removeImageNode; exports.replaceWithTextTransaction = _chunkWV5WTOC6cjs.replaceWithTextTransaction; exports.resolveTrackedChanges = _chunk34RQAGWIcjs.resolveTrackedChanges; exports.richClipboardPluginKey = _chunkWPWHT4Z6cjs.richClipboardPluginKey; exports.runTableAction = _chunkWV5WTOC6cjs.runTableAction; exports.safeCSSValue = _chunkYN6JKAUEcjs.safeCSSValue; exports.safeMergeAttributes = _chunk34RQAGWIcjs.safeMergeAttributes; exports.searchDocument = _chunkWV5WTOC6cjs.searchDocument; exports.setAgentCaret = _chunkWV5WTOC6cjs.setAgentCaret; exports.setMentionRoleAt = _chunkWPWHT4Z6cjs.setMentionRoleAt; exports.shouldShowTableBubbleMenu = _chunkWV5WTOC6cjs.shouldShowTableBubbleMenu; exports.sliceContainsTable = _chunkWV5WTOC6cjs.sliceContainsTable; exports.smartQuoteRules = _chunkWPWHT4Z6cjs.smartQuoteRules; exports.smilieAutocorrectRules = _chunkWPWHT4Z6cjs.smilieAutocorrectRules; exports.sparklineLabel = _chunkWV5WTOC6cjs.sparklineLabel; exports.staticChartSvg = _chunkWV5WTOC6cjs.staticChartSvg; exports.symbolRules = _chunkWPWHT4Z6cjs.symbolRules; exports.syncFootnotes = _chunkWPWHT4Z6cjs.syncFootnotes; exports.tableNestingPluginKey = _chunkWV5WTOC6cjs.tableNestingPluginKey; exports.tableOfContentsMarkdownIt = _chunkWPWHT4Z6cjs.tableOfContentsMarkdownIt; exports.tableOfContentsPluginKey = _chunkWPWHT4Z6cjs.tableOfContentsPluginKey; exports.trackChangesPluginKey = _chunk34RQAGWIcjs.trackChangesPluginKey; exports.trackedChangeLabel = _chunk34RQAGWIcjs.trackedChangeLabel; exports.twoInitialCapitalsRules = _chunkWPWHT4Z6cjs.twoInitialCapitalsRules; exports.typeAgentText = _chunkWV5WTOC6cjs.typeAgentText; exports.unnestTables = _chunkWV5WTOC6cjs.unnestTables; exports.updateImageSrc = _chunkWPWHT4Z6cjs.updateImageSrc; exports.validateFindPattern = _chunkWPWHT4Z6cjs.validateFindPattern; exports.writeRichClipboard = _chunkWPWHT4Z6cjs.writeRichClipboard;
|
|
420
|
+
|
|
421
|
+
exports.ALLOW_NESTED_TABLES_META = _chunkW7GRGGBHcjs.ALLOW_NESTED_TABLES_META; exports.AgentCaret = _chunkW7GRGGBHcjs.AgentCaret; exports.Autocorrect = _chunkUZU6DIZAcjs.Autocorrect; exports.BLOCK_CHANGE_ATTRIBUTE = _chunk34RQAGWIcjs.BLOCK_CHANGE_ATTRIBUTE; exports.Bookmark = _chunkUZU6DIZAcjs.Bookmark; exports.CHARACTER_STYLE_MARK_NAME = _chunkUZU6DIZAcjs.CHARACTER_STYLE_MARK_NAME; exports.COMMENT_MARK_NAME = _chunkW7GRGGBHcjs.COMMENT_MARK_NAME; exports.CharacterStyle = _chunkUZU6DIZAcjs.CharacterStyle; exports.Chart = _chunkW7GRGGBHcjs.Chart; exports.ChartNodeView = _chunkW7GRGGBHcjs.ChartNodeView; exports.ColorHighlighter = _chunkUZU6DIZAcjs.ColorHighlighter; exports.CommentStore = _chunk34RQAGWIcjs.CommentStore; exports.Comments = _chunkW7GRGGBHcjs.Comments; exports.CrossReference = _chunkUZU6DIZAcjs.CrossReference; exports.DEFAULT_AGENT_CARET_COLOR = _chunkW7GRGGBHcjs.DEFAULT_AGENT_CARET_COLOR; exports.DEFAULT_AGENT_CARET_NAME = _chunkW7GRGGBHcjs.DEFAULT_AGENT_CARET_NAME; exports.DEFAULT_AUTOCORRECT_EXCEPTIONS = _chunkUZU6DIZAcjs.DEFAULT_AUTOCORRECT_EXCEPTIONS; exports.DEFAULT_STYLES = _chunkYN6JKAUEcjs.DEFAULT_STYLES; exports.DEFAULT_TABLE_OPTIONS = _chunkW7GRGGBHcjs.DEFAULT_TABLE_OPTIONS; exports.DEFAULT_TABLE_TOOLBAR = _chunkW7GRGGBHcjs.DEFAULT_TABLE_TOOLBAR; exports.DELETION_MARK_NAME = _chunk34RQAGWIcjs.DELETION_MARK_NAME; exports.DocumentCompare = _chunkUZU6DIZAcjs.DocumentCompare; exports.EMPTY_FIND_REPLACE_SNAPSHOT = _chunkUZU6DIZAcjs.EMPTY_FIND_REPLACE_SNAPSHOT; exports.EMPTY_TABLE_STATE = _chunkW7GRGGBHcjs.EMPTY_TABLE_STATE; exports.FIND_OPTION_TOGGLES = _chunkUZU6DIZAcjs.FIND_OPTION_TOGGLES; exports.FIND_PARAGRAPH_MARK = _chunkW7GRGGBHcjs.FIND_PARAGRAPH_MARK; exports.FORMAT_CHANGE_MARK_NAME = _chunk34RQAGWIcjs.FORMAT_CHANGE_MARK_NAME; exports.FileImport = _chunkUZU6DIZAcjs.FileImport; exports.FindReplace = _chunkUZU6DIZAcjs.FindReplace; exports.FindReplaceStore = _chunkUZU6DIZAcjs.FindReplaceStore; exports.FontSize = _chunkUZU6DIZAcjs.FontSize; exports.Footnote = _chunkUZU6DIZAcjs.Footnote; exports.FootnoteReference = _chunkUZU6DIZAcjs.FootnoteReference; exports.Footnotes = _chunkUZU6DIZAcjs.Footnotes; exports.GradientText = _chunkUZU6DIZAcjs.GradientText; exports.INSERTION_MARK_NAME = _chunk34RQAGWIcjs.INSERTION_MARK_NAME; exports.Image = _chunkUZU6DIZAcjs.Image; exports.LoadingNode = _chunkUZU6DIZAcjs.LoadingNode; exports.MAX_FIND_PATTERN_LENGTH = _chunkW7GRGGBHcjs.MAX_FIND_PATTERN_LENGTH; exports.MAX_SPARKLINE_VALUES = _chunkW7GRGGBHcjs.MAX_SPARKLINE_VALUES; exports.MAX_TABLE_COLUMNS = _chunkW7GRGGBHcjs.MAX_TABLE_COLUMNS; exports.MAX_TABLE_ROWS = _chunkW7GRGGBHcjs.MAX_TABLE_ROWS; exports.MOVE_FROM_CLASS = _chunk34RQAGWIcjs.MOVE_FROM_CLASS; exports.MOVE_ID_ATTRIBUTE = _chunk34RQAGWIcjs.MOVE_ID_ATTRIBUTE; exports.MOVE_TO_CLASS = _chunk34RQAGWIcjs.MOVE_TO_CLASS; exports.Markdown = _chunkUZU6DIZAcjs.Markdown; exports.Mention = _chunkUZU6DIZAcjs.Mention; exports.NORMAL_STYLE_ID = _chunkYN6JKAUEcjs.NORMAL_STYLE_ID; exports.Outline = _chunkUZU6DIZAcjs.Outline; exports.ParagraphStyles = _chunkUZU6DIZAcjs.ParagraphStyles; exports.RichClipboard = _chunkUZU6DIZAcjs.RichClipboard; exports.SMILIE_REPLACEMENTS = _chunkUZU6DIZAcjs.SMILIE_REPLACEMENTS; exports.SPARKLINE_KINDS = _chunkW7GRGGBHcjs.SPARKLINE_KINDS; exports.STYLE_ID_ATTRIBUTE = _chunkUZU6DIZAcjs.STYLE_ID_ATTRIBUTE; exports.SlashCommands = _chunkUZU6DIZAcjs.SlashCommands; exports.SmilieReplacer = _chunkUZU6DIZAcjs.SmilieReplacer; exports.Sparkline = _chunkW7GRGGBHcjs.Sparkline; exports.StyleRegistry = _chunkYN6JKAUEcjs.StyleRegistry; exports.TABLE_ACTIONS = _chunkW7GRGGBHcjs.TABLE_ACTIONS; exports.TRACK_CHANGES_SKIP_META = _chunk34RQAGWIcjs.TRACK_CHANGES_SKIP_META; exports.Table = _chunkW7GRGGBHcjs.Table; exports.TableCell = _chunkW7GRGGBHcjs.TableCell; exports.TableHeader = _chunkW7GRGGBHcjs.TableHeader; exports.TableOfContents = _chunkUZU6DIZAcjs.TableOfContents; exports.TableRow = _chunkW7GRGGBHcjs.TableRow; exports.TemplateSuggestions = _chunkUZU6DIZAcjs.TemplateSuggestions; exports.TrackChanges = _chunk34RQAGWIcjs.TrackChanges; exports.TrackChangesStore = _chunk34RQAGWIcjs.TrackChangesStore; exports.TrackedDeletion = _chunk34RQAGWIcjs.TrackedDeletion; exports.TrackedFormatChange = _chunk34RQAGWIcjs.TrackedFormatChange; exports.TrackedInsertion = _chunk34RQAGWIcjs.TrackedInsertion; exports.agentCaretPluginKey = _chunkW7GRGGBHcjs.agentCaretPluginKey; exports.applyDocumentComparison = _chunkUZU6DIZAcjs.applyDocumentComparison; exports.applyReplacements = _chunkW7GRGGBHcjs.applyReplacements; exports.autocorrectPluginKey = _chunkUZU6DIZAcjs.autocorrectPluginKey; exports.buildOutlineTree = _chunkUZU6DIZAcjs.buildOutlineTree; exports.capitalizeSentenceRules = _chunkUZU6DIZAcjs.capitalizeSentenceRules; exports.captureSelectionFormat = _chunkUZU6DIZAcjs.captureSelectionFormat; exports.chartPluginKey = _chunkW7GRGGBHcjs.chartPluginKey; exports.clearAgentCaret = _chunkW7GRGGBHcjs.clearAgentCaret; exports.commentsPluginKey = _chunkW7GRGGBHcjs.commentsPluginKey; exports.compareInEditor = _chunkUZU6DIZAcjs.compareInEditor; exports.compileFindPattern = _chunkW7GRGGBHcjs.compileFindPattern; exports.computeOutline = _chunkUZU6DIZAcjs.computeOutline; exports.createAgentCaretPlugin = _chunkW7GRGGBHcjs.createAgentCaretPlugin; exports.createChartNodeView = _chunkW7GRGGBHcjs.createChartNodeView; exports.createCommentStore = _chunk34RQAGWIcjs.createCommentStore; exports.createFindReplaceCommands = _chunkUZU6DIZAcjs.createFindReplaceCommands; exports.createMentionExtension = _chunkUZU6DIZAcjs.createMentionExtension; exports.createOutlineStore = _chunkUZU6DIZAcjs.createOutlineStore; exports.createParagraphStylesStore = _chunkUZU6DIZAcjs.createParagraphStylesStore; exports.createReviewId = _chunk34RQAGWIcjs.createReviewId; exports.createRichTextPreset = _chunkUZU6DIZAcjs.createRichTextPreset; exports.createSearchBudget = _chunkW7GRGGBHcjs.createSearchBudget; exports.createStyleRegistry = _chunkYN6JKAUEcjs.createStyleRegistry; exports.createTableCommands = _chunkUZU6DIZAcjs.createTableCommands; exports.createTableExtensions = _chunkW7GRGGBHcjs.createTableExtensions; exports.createTableNestingPlugin = _chunkW7GRGGBHcjs.createTableNestingPlugin; exports.createTableStore = _chunkW7GRGGBHcjs.createTableStore; exports.crossReferencePluginKey = _chunkUZU6DIZAcjs.crossReferencePluginKey; exports.defaultAutocorrectRules = _chunkUZU6DIZAcjs.defaultAutocorrectRules; exports.describeBlockChange = _chunk34RQAGWIcjs.describeBlockChange; exports.describeFormatChange = _chunk34RQAGWIcjs.describeFormatChange; exports.documentStructureCommandItems = _chunkUZU6DIZAcjs.documentStructureCommandItems; exports.ensureAgentCaret = _chunkW7GRGGBHcjs.ensureAgentCaret; exports.expandReplacement = _chunkW7GRGGBHcjs.expandReplacement; exports.fileImportPluginKey = _chunkUZU6DIZAcjs.fileImportPluginKey; exports.findAllMatches = _chunkW7GRGGBHcjs.findAllMatches; exports.findAutocorrection = _chunkUZU6DIZAcjs.findAutocorrection; exports.findCommentRanges = _chunkW7GRGGBHcjs.findCommentRanges; exports.findHexColors = _chunkUZU6DIZAcjs.findHexColors; exports.findReplacePluginKey = _chunkUZU6DIZAcjs.findReplacePluginKey; exports.foldCodePoint = _chunkW7GRGGBHcjs.foldCodePoint; exports.footnotesMarkdownIt = _chunkUZU6DIZAcjs.footnotesMarkdownIt; exports.footnotesPluginKey = _chunkUZU6DIZAcjs.footnotesPluginKey; exports.formatFindStatus = _chunkUZU6DIZAcjs.formatFindStatus; exports.formatReviewTime = _chunk34RQAGWIcjs.formatReviewTime; exports.fractionRules = _chunkUZU6DIZAcjs.fractionRules; exports.getActiveHeading = _chunkUZU6DIZAcjs.getActiveHeading; exports.getAgentCarets = _chunkW7GRGGBHcjs.getAgentCarets; exports.getBookmarks = _chunkUZU6DIZAcjs.getBookmarks; exports.getCommentAnchors = _chunkW7GRGGBHcjs.getCommentAnchors; exports.getCommentAuthor = _chunkW7GRGGBHcjs.getCommentAuthor; exports.getCommentIdsAt = _chunkW7GRGGBHcjs.getCommentIdsAt; exports.getCommentStore = _chunkW7GRGGBHcjs.getCommentStore; exports.getCrossReferenceTargets = _chunkUZU6DIZAcjs.getCrossReferenceTargets; exports.getDocumentCharts = _chunkW7GRGGBHcjs.getDocumentCharts; exports.getDocumentStructureCommandItems = _chunkUZU6DIZAcjs.getDocumentStructureCommandItems; exports.getFindReplaceState = _chunkUZU6DIZAcjs.getFindReplaceState; exports.getFindReplaceStore = _chunkUZU6DIZAcjs.getFindReplaceStore; exports.getFootnotes = _chunkUZU6DIZAcjs.getFootnotes; exports.getMentionNodes = _chunkUZU6DIZAcjs.getMentionNodes; exports.getOutline = _chunkUZU6DIZAcjs.getOutline; exports.getParagraphStyleAt = _chunkUZU6DIZAcjs.getParagraphStyleAt; exports.getStyleRegistry = _chunkUZU6DIZAcjs.getStyleRegistry; exports.getTableActionState = _chunkW7GRGGBHcjs.getTableActionState; exports.getTableOfContentsEntries = _chunkUZU6DIZAcjs.getTableOfContentsEntries; exports.getTableState = _chunkW7GRGGBHcjs.getTableState; exports.getTrackChangesStore = _chunk34RQAGWIcjs.getTrackChangesStore; exports.getTrackedChangeAt = _chunk34RQAGWIcjs.getTrackedChangeAt; exports.getTrackedChanges = _chunk34RQAGWIcjs.getTrackedChanges; exports.handleImageInsertion = _chunkUZU6DIZAcjs.handleImageInsertion; exports.handleTablePasteWithoutNesting = _chunkW7GRGGBHcjs.handleTablePasteWithoutNesting; exports.imagePastePluginKey = _chunkUZU6DIZAcjs.imagePastePluginKey; exports.insertImageNode = _chunkUZU6DIZAcjs.insertImageNode; exports.insertSliceAfterTable = _chunkW7GRGGBHcjs.insertSliceAfterTable; exports.isChartEnabled = _chunkW7GRGGBHcjs.isChartEnabled; exports.isGfmTable = _chunkW7GRGGBHcjs.isGfmTable; exports.isInTableCell = _chunkW7GRGGBHcjs.isInTableCell; exports.isInsidePromptToken = _chunkUZU6DIZAcjs.isInsidePromptToken; exports.isMoveSized = _chunk34RQAGWIcjs.isMoveSized; exports.isParagraphStyleAvailable = _chunkUZU6DIZAcjs.isParagraphStyleAvailable; exports.isSelectionInTable = _chunkW7GRGGBHcjs.isSelectionInTable; exports.isTableEnabled = _chunkW7GRGGBHcjs.isTableEnabled; exports.isTrackChangesEnabled = _chunk34RQAGWIcjs.isTrackChangesEnabled; exports.isValidStyleId = _chunkYN6JKAUEcjs.isValidStyleId; exports.loadingSpinnerSpec = _chunkUZU6DIZAcjs.loadingSpinnerSpec; exports.markAgentChanges = _chunkW7GRGGBHcjs.markAgentChanges; exports.navigateToHeading = _chunkUZU6DIZAcjs.navigateToHeading; exports.normalizeSparklineValues = _chunkW7GRGGBHcjs.normalizeSparklineValues; exports.normalizeTableCellAlignment = _chunkW7GRGGBHcjs.normalizeTableCellAlignment; exports.normalizeTableCellColor = _chunkW7GRGGBHcjs.normalizeTableCellColor; exports.outermostTableDepth = _chunkW7GRGGBHcjs.outermostTableDepth; exports.outlinePluginKey = _chunkUZU6DIZAcjs.outlinePluginKey; exports.paragraphStylesPluginKey = _chunkUZU6DIZAcjs.paragraphStylesPluginKey; exports.parseReplacement = _chunkW7GRGGBHcjs.parseReplacement; exports.removeImageNode = _chunkUZU6DIZAcjs.removeImageNode; exports.replaceWithTextTransaction = _chunkW7GRGGBHcjs.replaceWithTextTransaction; exports.resolveTrackedChanges = _chunk34RQAGWIcjs.resolveTrackedChanges; exports.richClipboardPluginKey = _chunkUZU6DIZAcjs.richClipboardPluginKey; exports.runTableAction = _chunkW7GRGGBHcjs.runTableAction; exports.safeCSSValue = _chunkYN6JKAUEcjs.safeCSSValue; exports.safeMergeAttributes = _chunk34RQAGWIcjs.safeMergeAttributes; exports.searchDocument = _chunkW7GRGGBHcjs.searchDocument; exports.setAgentCaret = _chunkW7GRGGBHcjs.setAgentCaret; exports.setMentionRoleAt = _chunkUZU6DIZAcjs.setMentionRoleAt; exports.shouldShowTableBubbleMenu = _chunkW7GRGGBHcjs.shouldShowTableBubbleMenu; exports.sliceContainsTable = _chunkW7GRGGBHcjs.sliceContainsTable; exports.smartQuoteRules = _chunkUZU6DIZAcjs.smartQuoteRules; exports.smilieAutocorrectRules = _chunkUZU6DIZAcjs.smilieAutocorrectRules; exports.sparklineLabel = _chunkW7GRGGBHcjs.sparklineLabel; exports.staticChartSvg = _chunkW7GRGGBHcjs.staticChartSvg; exports.symbolRules = _chunkUZU6DIZAcjs.symbolRules; exports.syncFootnotes = _chunkUZU6DIZAcjs.syncFootnotes; exports.tableNestingPluginKey = _chunkW7GRGGBHcjs.tableNestingPluginKey; exports.tableOfContentsMarkdownIt = _chunkUZU6DIZAcjs.tableOfContentsMarkdownIt; exports.tableOfContentsPluginKey = _chunkUZU6DIZAcjs.tableOfContentsPluginKey; exports.trackChangesPluginKey = _chunk34RQAGWIcjs.trackChangesPluginKey; exports.trackedChangeLabel = _chunk34RQAGWIcjs.trackedChangeLabel; exports.twoInitialCapitalsRules = _chunkUZU6DIZAcjs.twoInitialCapitalsRules; exports.typeAgentText = _chunkW7GRGGBHcjs.typeAgentText; exports.unnestTables = _chunkW7GRGGBHcjs.unnestTables; exports.updateImageSrc = _chunkUZU6DIZAcjs.updateImageSrc; exports.validateFindPattern = _chunkUZU6DIZAcjs.validateFindPattern; exports.writeRichClipboard = _chunkUZU6DIZAcjs.writeRichClipboard;
|
package/dist/extensions/index.js
CHANGED
|
@@ -71,6 +71,7 @@ import {
|
|
|
71
71
|
insertImageNode,
|
|
72
72
|
isInsidePromptToken,
|
|
73
73
|
isParagraphStyleAvailable,
|
|
74
|
+
loadingSpinnerSpec,
|
|
74
75
|
navigateToHeading,
|
|
75
76
|
outlinePluginKey,
|
|
76
77
|
paragraphStylesPluginKey,
|
|
@@ -87,7 +88,7 @@ import {
|
|
|
87
88
|
updateImageSrc,
|
|
88
89
|
validateFindPattern,
|
|
89
90
|
writeRichClipboard
|
|
90
|
-
} from "../chunk-
|
|
91
|
+
} from "../chunk-FQVVO5YA.js";
|
|
91
92
|
import {
|
|
92
93
|
DEFAULT_STYLES,
|
|
93
94
|
NORMAL_STYLE_ID,
|
|
@@ -96,7 +97,7 @@ import {
|
|
|
96
97
|
isValidStyleId,
|
|
97
98
|
safeCSSValue
|
|
98
99
|
} from "../chunk-CXXKJBQZ.js";
|
|
99
|
-
import "../chunk-
|
|
100
|
+
import "../chunk-36ZTV7WO.js";
|
|
100
101
|
import "../chunk-V5OOP74P.js";
|
|
101
102
|
import {
|
|
102
103
|
ALLOW_NESTED_TABLES_META,
|
|
@@ -171,11 +172,11 @@ import {
|
|
|
171
172
|
tableNestingPluginKey,
|
|
172
173
|
typeAgentText,
|
|
173
174
|
unnestTables
|
|
174
|
-
} from "../chunk-
|
|
175
|
-
import "../chunk-
|
|
175
|
+
} from "../chunk-AIS56JOO.js";
|
|
176
|
+
import "../chunk-WGN7AUKB.js";
|
|
176
177
|
import "../chunk-KGRZMHZB.js";
|
|
177
|
-
import "../chunk-
|
|
178
|
-
import "../chunk-
|
|
178
|
+
import "../chunk-N4DFDI73.js";
|
|
179
|
+
import "../chunk-QARCM66V.js";
|
|
179
180
|
import "../chunk-O6OGNDND.js";
|
|
180
181
|
import "../chunk-ZLZKGHSZ.js";
|
|
181
182
|
import "../chunk-2INPJDNY.js";
|
|
@@ -216,9 +217,10 @@ import "../chunk-CIQIM2IP.js";
|
|
|
216
217
|
import "../chunk-VDGBHYC7.js";
|
|
217
218
|
import "../chunk-HF5QZS7Z.js";
|
|
218
219
|
import "../chunk-RNSANXPT.js";
|
|
219
|
-
import "../chunk-
|
|
220
|
-
import "../chunk-
|
|
221
|
-
import "../chunk-
|
|
220
|
+
import "../chunk-BP6KSGVD.js";
|
|
221
|
+
import "../chunk-6ADHGQ73.js";
|
|
222
|
+
import "../chunk-JEGJP4OW.js";
|
|
223
|
+
import "../chunk-F67XMVDI.js";
|
|
222
224
|
import "../chunk-6ONMQ6WF.js";
|
|
223
225
|
export {
|
|
224
226
|
ALLOW_NESTED_TABLES_META,
|
|
@@ -377,6 +379,7 @@ export {
|
|
|
377
379
|
isTableEnabled,
|
|
378
380
|
isTrackChangesEnabled,
|
|
379
381
|
isValidStyleId,
|
|
382
|
+
loadingSpinnerSpec,
|
|
380
383
|
markAgentChanges,
|
|
381
384
|
navigateToHeading,
|
|
382
385
|
normalizeSparklineValues,
|
|
@@ -1,2 +1,46 @@
|
|
|
1
1
|
import { Node } from "@tiptap/core";
|
|
2
|
-
|
|
2
|
+
import { type DOMOutputSpec } from "@tiptap/pm/model";
|
|
3
|
+
/** What a framework loading indicator draws. A new object is passed on every change. */
|
|
4
|
+
export interface LoadingNodeViewState {
|
|
5
|
+
/** The placeholder's `id` attribute (set by the host to find it again), or null. */
|
|
6
|
+
id: string | null;
|
|
7
|
+
/** The accessible label announced for the placeholder (the `label` option). */
|
|
8
|
+
label: string;
|
|
9
|
+
}
|
|
10
|
+
/** A mounted framework component. */
|
|
11
|
+
export interface LoadingNodeViewRenderer {
|
|
12
|
+
update(state: LoadingNodeViewState): void;
|
|
13
|
+
destroy(): void;
|
|
14
|
+
}
|
|
15
|
+
/** Mounts a framework component into a loading placeholder's element. */
|
|
16
|
+
export type LoadingNodeViewMount = (dom: HTMLElement, state: LoadingNodeViewState) => LoadingNodeViewRenderer;
|
|
17
|
+
export interface LoadingNodeOptions {
|
|
18
|
+
/** Accessible label of the placeholder, set as its `aria-label` (default `"Loading…"`). */
|
|
19
|
+
label: string;
|
|
20
|
+
/** Extra attributes for the placeholder's `<span>` (merged over the defaults). */
|
|
21
|
+
HTMLAttributes: Record<string, unknown>;
|
|
22
|
+
/**
|
|
23
|
+
* The indicator inside the placeholder as a ProseMirror `DOMOutputSpec`, used in the editor
|
|
24
|
+
* and in `getHTML()` (default: `loadingSpinnerSpec()`, an SVG spinner in `currentColor`).
|
|
25
|
+
* Prefix SVG tags with the namespace: `["http://www.w3.org/2000/svg svg", …]`.
|
|
26
|
+
*/
|
|
27
|
+
renderIndicator: (() => DOMOutputSpec) | null;
|
|
28
|
+
/**
|
|
29
|
+
* Draws a framework component inside the placeholder in the editor instead of
|
|
30
|
+
* `renderIndicator` (React and Svelte export one). `getHTML()` still uses `renderIndicator`.
|
|
31
|
+
*/
|
|
32
|
+
nodeView: LoadingNodeViewMount | null;
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* The default loading indicator: a 1em SVG spinner drawn in `currentColor`, so text colour
|
|
36
|
+
* utilities tint it. It animates with SMIL, so it needs no stylesheet, and is hidden from
|
|
37
|
+
* screen readers (the placeholder carries the label).
|
|
38
|
+
*/
|
|
39
|
+
export declare function loadingSpinnerSpec(): DOMOutputSpec;
|
|
40
|
+
/**
|
|
41
|
+
* An inline placeholder for content that is still being generated. Insert it with
|
|
42
|
+
* `insertContent({ type: "loadingNode", attrs: { id } })` and replace it by `id` when the
|
|
43
|
+
* result arrives. It renders as `<span data-type="loading" role="status" aria-label="Loading…">`
|
|
44
|
+
* around an SVG spinner; change the indicator with `renderIndicator` or `nodeView`.
|
|
45
|
+
*/
|
|
46
|
+
export declare const LoadingNode: Node<LoadingNodeOptions, any>;
|
|
@@ -1,2 +1,46 @@
|
|
|
1
1
|
import { Node } from "@tiptap/core";
|
|
2
|
-
|
|
2
|
+
import { type DOMOutputSpec } from "@tiptap/pm/model";
|
|
3
|
+
/** What a framework loading indicator draws. A new object is passed on every change. */
|
|
4
|
+
export interface LoadingNodeViewState {
|
|
5
|
+
/** The placeholder's `id` attribute (set by the host to find it again), or null. */
|
|
6
|
+
id: string | null;
|
|
7
|
+
/** The accessible label announced for the placeholder (the `label` option). */
|
|
8
|
+
label: string;
|
|
9
|
+
}
|
|
10
|
+
/** A mounted framework component. */
|
|
11
|
+
export interface LoadingNodeViewRenderer {
|
|
12
|
+
update(state: LoadingNodeViewState): void;
|
|
13
|
+
destroy(): void;
|
|
14
|
+
}
|
|
15
|
+
/** Mounts a framework component into a loading placeholder's element. */
|
|
16
|
+
export type LoadingNodeViewMount = (dom: HTMLElement, state: LoadingNodeViewState) => LoadingNodeViewRenderer;
|
|
17
|
+
export interface LoadingNodeOptions {
|
|
18
|
+
/** Accessible label of the placeholder, set as its `aria-label` (default `"Loading…"`). */
|
|
19
|
+
label: string;
|
|
20
|
+
/** Extra attributes for the placeholder's `<span>` (merged over the defaults). */
|
|
21
|
+
HTMLAttributes: Record<string, unknown>;
|
|
22
|
+
/**
|
|
23
|
+
* The indicator inside the placeholder as a ProseMirror `DOMOutputSpec`, used in the editor
|
|
24
|
+
* and in `getHTML()` (default: `loadingSpinnerSpec()`, an SVG spinner in `currentColor`).
|
|
25
|
+
* Prefix SVG tags with the namespace: `["http://www.w3.org/2000/svg svg", …]`.
|
|
26
|
+
*/
|
|
27
|
+
renderIndicator: (() => DOMOutputSpec) | null;
|
|
28
|
+
/**
|
|
29
|
+
* Draws a framework component inside the placeholder in the editor instead of
|
|
30
|
+
* `renderIndicator` (React and Svelte export one). `getHTML()` still uses `renderIndicator`.
|
|
31
|
+
*/
|
|
32
|
+
nodeView: LoadingNodeViewMount | null;
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* The default loading indicator: a 1em SVG spinner drawn in `currentColor`, so text colour
|
|
36
|
+
* utilities tint it. It animates with SMIL, so it needs no stylesheet, and is hidden from
|
|
37
|
+
* screen readers (the placeholder carries the label).
|
|
38
|
+
*/
|
|
39
|
+
export declare function loadingSpinnerSpec(): DOMOutputSpec;
|
|
40
|
+
/**
|
|
41
|
+
* An inline placeholder for content that is still being generated. Insert it with
|
|
42
|
+
* `insertContent({ type: "loadingNode", attrs: { id } })` and replace it by `id` when the
|
|
43
|
+
* result arrives. It renders as `<span data-type="loading" role="status" aria-label="Loading…">`
|
|
44
|
+
* around an SVG spinner; change the indicator with `renderIndicator` or `nodeView`.
|
|
45
|
+
*/
|
|
46
|
+
export declare const LoadingNode: Node<LoadingNodeOptions, any>;
|
package/dist/gradient/index.cjs
CHANGED
|
@@ -7,15 +7,16 @@ var _chunkFJ2MSI43cjs = require('../chunk-FJ2MSI43.cjs');
|
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunk7PT4RJL5cjs = require('../chunk-7PT4RJL5.cjs');
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _chunkPPFJHTW5cjs = require('../chunk-PPFJHTW5.cjs');
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
|
|
18
|
-
var
|
|
18
|
+
var _chunkRD7RX52Gcjs = require('../chunk-RD7RX52G.cjs');
|
|
19
|
+
require('../chunk-7AHBW2CQ.cjs');
|
|
19
20
|
require('../chunk-IPJ3TEYR.cjs');
|
|
20
21
|
|
|
21
22
|
// src/gradient/model.ts
|
|
@@ -71,9 +72,9 @@ function normalizeGradient(input) {
|
|
|
71
72
|
const rawStop = s;
|
|
72
73
|
let normColor = null;
|
|
73
74
|
if (typeof rawStop.color === "string" || rawStop.color && typeof rawStop.color === "object") {
|
|
74
|
-
const dual =
|
|
75
|
+
const dual = _chunk7PT4RJL5cjs.normalizeDualColor.call(void 0, rawStop.color);
|
|
75
76
|
if (dual) {
|
|
76
|
-
normColor =
|
|
77
|
+
normColor = _chunk7PT4RJL5cjs.formatDualColor.call(void 0, dual);
|
|
77
78
|
}
|
|
78
79
|
}
|
|
79
80
|
if (!normColor) {
|
|
@@ -143,7 +144,7 @@ function createGradient(colorsOrOptions, options) {
|
|
|
143
144
|
const stops = resolvedColors.map((color, i) => ({
|
|
144
145
|
id: `s${i + 1}`,
|
|
145
146
|
offset: i / (resolvedColors.length - 1),
|
|
146
|
-
color:
|
|
147
|
+
color: _chunk7PT4RJL5cjs.formatDualColor.call(void 0, _nullishCoalesce(_chunk7PT4RJL5cjs.normalizeDualColor.call(void 0, color), () => ( { light: "#000000", dark: "#000000" })))
|
|
147
148
|
}));
|
|
148
149
|
const res2 = normalizeGradient({
|
|
149
150
|
...options,
|
|
@@ -195,7 +196,7 @@ function isDualColorValue(val) {
|
|
|
195
196
|
if (typeof val === "string") {
|
|
196
197
|
return val.trim().toLowerCase().startsWith("light-dark(");
|
|
197
198
|
}
|
|
198
|
-
if (
|
|
199
|
+
if (_chunk7PT4RJL5cjs.isDualColor.call(void 0, val)) {
|
|
199
200
|
return val.light !== val.dark;
|
|
200
201
|
}
|
|
201
202
|
return false;
|
|
@@ -209,7 +210,7 @@ function resolveGradient(g, scheme) {
|
|
|
209
210
|
center: g.center ? { ...g.center } : void 0,
|
|
210
211
|
stops: g.stops.map((s) => ({
|
|
211
212
|
...s,
|
|
212
|
-
color: _nullishCoalesce(
|
|
213
|
+
color: _nullishCoalesce(_chunk7PT4RJL5cjs.resolveColor.call(void 0, s.color, scheme), () => ( s.color))
|
|
213
214
|
}))
|
|
214
215
|
};
|
|
215
216
|
}
|
|
@@ -237,7 +238,7 @@ function sampleGradient(g, t, scheme = "light") {
|
|
|
237
238
|
if (s0.midpoint !== void 0) {
|
|
238
239
|
u = gradientMidpointRemap(u, s0.midpoint);
|
|
239
240
|
}
|
|
240
|
-
const mixed =
|
|
241
|
+
const mixed = _chunk7PT4RJL5cjs.mixColors.call(void 0, s0.color, s1.color, u, { space: _nullishCoalesce(g.interpolation, () => ( "oklab")) });
|
|
241
242
|
return _nullishCoalesce(mixed, () => ( s0.color));
|
|
242
243
|
}
|
|
243
244
|
function insertGradientStop(g, offset, color) {
|
|
@@ -576,12 +577,12 @@ ${stopsXml.join("\n")}
|
|
|
576
577
|
</linearGradient>`;
|
|
577
578
|
}
|
|
578
579
|
function checkGradient(g, options = {}) {
|
|
579
|
-
const dual = isDualGradient(g) ||
|
|
580
|
+
const dual = isDualGradient(g) || _chunk7PT4RJL5cjs.isDualColor.call(void 0, options.surface) || _chunk7PT4RJL5cjs.isDualColor.call(void 0, options.text);
|
|
580
581
|
if (dual) {
|
|
581
582
|
const lightG = resolveGradient(g, "light");
|
|
582
583
|
const darkG = resolveGradient(g, "dark");
|
|
583
|
-
const lightText = options.text ? _nullishCoalesce(
|
|
584
|
-
const darkText = options.text ? _nullishCoalesce(
|
|
584
|
+
const lightText = options.text ? _nullishCoalesce(_chunk7PT4RJL5cjs.resolveColor.call(void 0, options.text, "light"), () => ( void 0)) : void 0;
|
|
585
|
+
const darkText = options.text ? _nullishCoalesce(_chunk7PT4RJL5cjs.resolveColor.call(void 0, options.text, "dark"), () => ( void 0)) : void 0;
|
|
585
586
|
const checkScheme = (grad, txt, schemeName) => {
|
|
586
587
|
const issues2 = [];
|
|
587
588
|
for (let i = 0; i < grad.stops.length - 1; i++) {
|
|
@@ -589,10 +590,10 @@ function checkGradient(g, options = {}) {
|
|
|
589
590
|
if (gap < 5e-3) {
|
|
590
591
|
issues2.push(`[${schemeName}] Stops "${grad.stops[i].id}" and "${grad.stops[i + 1].id}" are too close (gap < 0.005).`);
|
|
591
592
|
}
|
|
592
|
-
const c1 =
|
|
593
|
-
const c2 =
|
|
593
|
+
const c1 = _chunkRD7RX52Gcjs.parseColor.call(void 0, grad.stops[i].color);
|
|
594
|
+
const c2 = _chunkRD7RX52Gcjs.parseColor.call(void 0, grad.stops[i + 1].color);
|
|
594
595
|
if (c1 && c2 && gap < 0.05) {
|
|
595
|
-
const dE =
|
|
596
|
+
const dE = _chunkPPFJHTW5cjs.deltaEOK.call(void 0, c1, c2);
|
|
596
597
|
if (dE > 0.5) {
|
|
597
598
|
issues2.push(
|
|
598
599
|
`[${schemeName}] Banding risk between stops "${grad.stops[i].id}" and "${grad.stops[i + 1].id}" (\u0394EOK = ${dE.toFixed(2)} across gap ${gap.toFixed(3)}).`
|
|
@@ -601,20 +602,20 @@ function checkGradient(g, options = {}) {
|
|
|
601
602
|
}
|
|
602
603
|
}
|
|
603
604
|
for (const s of grad.stops) {
|
|
604
|
-
const c =
|
|
605
|
-
if (c && !
|
|
605
|
+
const c = _chunkRD7RX52Gcjs.parseColor.call(void 0, s.color);
|
|
606
|
+
if (c && !_chunkPPFJHTW5cjs.inSrgbGamut.call(void 0, c)) {
|
|
606
607
|
issues2.push(`[${schemeName}] Stop "${s.id}" colour ${s.color} is outside standard sRGB gamut.`);
|
|
607
608
|
}
|
|
608
609
|
}
|
|
609
610
|
let lowest;
|
|
610
611
|
if (txt) {
|
|
611
|
-
const parsedTxt =
|
|
612
|
+
const parsedTxt = _chunkRD7RX52Gcjs.parseColor.call(void 0, txt);
|
|
612
613
|
if (parsedTxt) {
|
|
613
614
|
let minRatio = Infinity;
|
|
614
615
|
for (let step = 0; step <= 32; step++) {
|
|
615
|
-
const sample =
|
|
616
|
+
const sample = _chunkRD7RX52Gcjs.parseColor.call(void 0, sampleGradient(grad, step / 32, schemeName));
|
|
616
617
|
if (sample) {
|
|
617
|
-
const r =
|
|
618
|
+
const r = _chunkRD7RX52Gcjs.contrastRatio.call(void 0, parsedTxt, sample);
|
|
618
619
|
if (r < minRatio) minRatio = r;
|
|
619
620
|
}
|
|
620
621
|
}
|
|
@@ -636,10 +637,10 @@ function checkGradient(g, options = {}) {
|
|
|
636
637
|
if (gap < 5e-3) {
|
|
637
638
|
issues.push(`Stops "${g.stops[i].id}" and "${g.stops[i + 1].id}" are too close (gap < 0.005).`);
|
|
638
639
|
}
|
|
639
|
-
const c1 =
|
|
640
|
-
const c2 =
|
|
640
|
+
const c1 = _chunkRD7RX52Gcjs.parseColor.call(void 0, g.stops[i].color);
|
|
641
|
+
const c2 = _chunkRD7RX52Gcjs.parseColor.call(void 0, g.stops[i + 1].color);
|
|
641
642
|
if (c1 && c2 && gap < 0.05) {
|
|
642
|
-
const dE =
|
|
643
|
+
const dE = _chunkPPFJHTW5cjs.deltaEOK.call(void 0, c1, c2);
|
|
643
644
|
if (dE > 0.5) {
|
|
644
645
|
issues.push(
|
|
645
646
|
`Banding risk between stops "${g.stops[i].id}" and "${g.stops[i + 1].id}" (\u0394EOK = ${dE.toFixed(2)} across gap ${gap.toFixed(3)}).`
|
|
@@ -648,20 +649,20 @@ function checkGradient(g, options = {}) {
|
|
|
648
649
|
}
|
|
649
650
|
}
|
|
650
651
|
for (const s of g.stops) {
|
|
651
|
-
const c =
|
|
652
|
-
if (c && !
|
|
652
|
+
const c = _chunkRD7RX52Gcjs.parseColor.call(void 0, s.color);
|
|
653
|
+
if (c && !_chunkPPFJHTW5cjs.inSrgbGamut.call(void 0, c)) {
|
|
653
654
|
issues.push(`Stop "${s.id}" colour ${s.color} is outside standard sRGB gamut.`);
|
|
654
655
|
}
|
|
655
656
|
}
|
|
656
657
|
let lowestTextContrast;
|
|
657
658
|
if (options.text) {
|
|
658
|
-
const parsedTxt =
|
|
659
|
+
const parsedTxt = _chunkRD7RX52Gcjs.parseColor.call(void 0, options.text);
|
|
659
660
|
if (parsedTxt) {
|
|
660
661
|
let minRatio = Infinity;
|
|
661
662
|
for (let step = 0; step <= 32; step++) {
|
|
662
|
-
const sample =
|
|
663
|
+
const sample = _chunkRD7RX52Gcjs.parseColor.call(void 0, sampleGradient(g, step / 32, "light"));
|
|
663
664
|
if (sample) {
|
|
664
|
-
const r =
|
|
665
|
+
const r = _chunkRD7RX52Gcjs.contrastRatio.call(void 0, parsedTxt, sample);
|
|
665
666
|
if (r < minRatio) minRatio = r;
|
|
666
667
|
}
|
|
667
668
|
}
|
package/dist/gradient/index.js
CHANGED
|
@@ -7,15 +7,16 @@ import {
|
|
|
7
7
|
mixColors,
|
|
8
8
|
normalizeDualColor,
|
|
9
9
|
resolveColor
|
|
10
|
-
} from "../chunk-
|
|
10
|
+
} from "../chunk-BP6KSGVD.js";
|
|
11
11
|
import {
|
|
12
12
|
deltaEOK,
|
|
13
13
|
inSrgbGamut
|
|
14
|
-
} from "../chunk-
|
|
14
|
+
} from "../chunk-6ADHGQ73.js";
|
|
15
15
|
import {
|
|
16
16
|
contrastRatio,
|
|
17
17
|
parseColor
|
|
18
|
-
} from "../chunk-
|
|
18
|
+
} from "../chunk-JEGJP4OW.js";
|
|
19
|
+
import "../chunk-F67XMVDI.js";
|
|
19
20
|
import "../chunk-6ONMQ6WF.js";
|
|
20
21
|
|
|
21
22
|
// src/gradient/model.ts
|