@pixerate/editor 0.88.0 → 0.89.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/THIRD_PARTY_NOTICES.md +8 -2
- package/dist/agent/index.cjs +28 -28
- package/dist/agent/index.js +3 -3
- package/dist/canvas/index.cjs +3 -3
- package/dist/canvas/index.cjs.map +1 -1
- package/dist/canvas/index.js +16 -16
- package/dist/{chunk-TYOAJDFD.cjs → chunk-66IMF6OD.cjs} +3 -3
- package/dist/{chunk-TYOAJDFD.cjs.map → chunk-66IMF6OD.cjs.map} +1 -1
- package/dist/chunk-D4ZCU72J.js +604 -0
- package/dist/chunk-D4ZCU72J.js.map +1 -0
- package/dist/{chunk-IMSX4IVG.js → chunk-FWEO3HSL.js} +4 -4
- package/dist/chunk-H543GD6T.cjs +1696 -0
- package/dist/chunk-H543GD6T.cjs.map +1 -0
- package/dist/{chunk-ROXFP2LQ.cjs → chunk-HNDSPZ5T.cjs} +4 -4
- package/dist/{chunk-ROXFP2LQ.cjs.map → chunk-HNDSPZ5T.cjs.map} +1 -1
- package/dist/{chunk-MXF4DP2C.cjs → chunk-J3B45HTA.cjs} +74 -74
- package/dist/{chunk-MXF4DP2C.cjs.map → chunk-J3B45HTA.cjs.map} +1 -1
- package/dist/{chunk-GNO5PEMH.js → chunk-OK7T2LHK.js} +2 -2
- package/dist/chunk-P5TPUNBZ.js +1696 -0
- package/dist/chunk-P5TPUNBZ.js.map +1 -0
- package/dist/chunk-PDCITYBT.cjs +416 -0
- package/dist/chunk-PDCITYBT.cjs.map +1 -0
- package/dist/{chunk-RKJDBXTY.cjs → chunk-T4XWVPJK.cjs} +3 -3
- package/dist/{chunk-RKJDBXTY.cjs.map → chunk-T4XWVPJK.cjs.map} +1 -1
- package/dist/{chunk-ZQNDSUZO.js → chunk-UKI64KUD.js} +6 -6
- package/dist/{chunk-SVW2UNUC.js → chunk-WON34HKM.js} +2 -2
- package/dist/chunk-YLB2WVNA.js +416 -0
- package/dist/chunk-YLB2WVNA.js.map +1 -0
- package/dist/chunk-ZOOEX3WT.cjs +604 -0
- package/dist/chunk-ZOOEX3WT.cjs.map +1 -0
- package/dist/extensions/index.cjs +6 -6
- package/dist/extensions/index.cjs.map +1 -1
- package/dist/extensions/index.js +5 -5
- package/dist/image-editor/index.cjs +4387 -690
- package/dist/image-editor/index.cjs.map +1 -1
- package/dist/image-editor/index.d.cts +1677 -590
- package/dist/image-editor/index.d.ts +1677 -590
- package/dist/image-editor/index.js +4273 -576
- package/dist/image-editor/index.js.map +1 -1
- package/dist/index.cjs +27 -27
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +10 -10
- package/dist/paint/index.cjs +38 -0
- package/dist/paint/index.cjs.map +1 -0
- package/dist/paint/index.d.cts +167 -0
- package/dist/paint/index.d.ts +167 -0
- package/dist/paint/index.js +38 -0
- package/dist/paint/index.js.map +1 -0
- package/dist/raster/index.cjs +121 -0
- package/dist/raster/index.cjs.map +1 -0
- package/dist/raster/index.d.cts +365 -0
- package/dist/raster/index.d.ts +365 -0
- package/dist/raster/index.js +121 -0
- package/dist/raster/index.js.map +1 -0
- package/dist/serializers/index.cjs +4 -4
- package/dist/serializers/index.cjs.map +1 -1
- package/dist/serializers/index.js +3 -3
- package/dist/surface-fJhkmNQn.d.cts +181 -0
- package/dist/surface-fJhkmNQn.d.ts +181 -0
- package/package.json +13 -2
- package/skills/pixerate-image-editor/SKILL.md +111 -11
- /package/dist/{chunk-IMSX4IVG.js.map → chunk-FWEO3HSL.js.map} +0 -0
- /package/dist/{chunk-GNO5PEMH.js.map → chunk-OK7T2LHK.js.map} +0 -0
- /package/dist/{chunk-ZQNDSUZO.js.map → chunk-UKI64KUD.js.map} +0 -0
- /package/dist/{chunk-SVW2UNUC.js.map → chunk-WON34HKM.js.map} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["/home/runner/work/editor/editor/packages/core/dist/chunk-ZOOEX3WT.cjs","../src/raster/sur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b,EAAA;AAAA;AAGuB,EAAA;AACX,IAAA;AACJ,IAAA;AACE,IAAA;AACG,IAAA;AACH,MAAA;AACI,MAAA;AACL,MAAA;AACP,IAAA;AACW,IAAA;AACb,EAAA;AACF;AAGgB;AACH,EAAA;AACD,EAAA;AACA,EAAA;AACD,EAAA;AACA,EAAA;AACH,EAAA;AACM,EAAA;AACN,EAAA;AACO,EAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACL,IAAA;AACI,IAAA;AACJ,IAAA;AACG,IAAA;AACD,MAAA;AACA,MAAA;AACF,MAAA;AACC,MAAA;AACP,IAAA;AACU,IAAA;AACZ,EAAA;AACa,EAAA;AACf;AAGgB;AACH,EAAA;AACF,EAAA;AACH,EAAA;AACA,EAAA;AACA,EAAA;AACA,EAAA;AACO,EAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACA,IAAA;AACL,IAAA;AACK,IAAA;AACL,MAAA;AACC,MAAA;AACL,MAAA;AACF,IAAA;AACU,IAAA;AACD,IAAA;AACH,MAAA;AACK,MAAA;AACX,IAAA;AACM,IAAA;AACI,IAAA;AACC,IAAA;AACb,EAAA;AACW,EAAA;AACb;AAGgB;AACJ,EAAA;AACA,EAAA;AACE,EAAA;AACH,EAAA;AACD,IAAA;AACK,IAAA;AACD,MAAA;AACF,MAAA;AACR,IAAA;AACW,IAAA;AACb,EAAA;AACU,EAAA;AACF,EAAA;AACK,EAAA;AACN,EAAA;AACT;AAOgB;AACN,EAAA;AACG,EAAA;AACJ,EAAA;AACT;AAGgB;AACH,EAAA;AACb;AAGgB;AACD,EAAA;AACP,EAAA;AACM,EAAA;AACC,IAAA;AACF,IAAA;AACE,IAAA;AACJ,IAAA;AACE,MAAA;AACP,MAAA;AACF,IAAA;AACU,IAAA;AACA,IAAA;AACD,IAAA;AACX,EAAA;AACO,EAAA;AACT;AD1Ie;AACA;AEzTF;AACL,EAAA;AACA,E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ACA,EAAA;AACQ,EAAA;AACP,EAAA;AACC,IAAA;AACA,IAAA;AACZ,EAAA;AACW,EAAA;AACC,IAAA;AACA,IAAA;AACZ,EAAA;AACO,EAAA;AACT;AAGgB;AACJ,EAAA;AACH,EAAA;AACT;AAEa;AACC,EAAA;AACd;AAES;AACM,EAAA;AACA,EAAA;AACK,EAAA;AACR,EAAA;AACA,IAAA;AACA,IAAA;AACV,EAAA;AACY,EAAA;AACL,EAAA;AACT;AAGgB;AACN,EAAA;AACD,IAAA;AACI,MAAA;AACJ,IAAA;AACI,MAAA;AACJ,IAAA;AACI,MAAA;AACJ,IAAA;AACI,MAAA;AACJ,IAAA;AACI,MAAA;AACJ,IAAA;AACI,MAAA;AACT,IAAA;AACU,MAAA;AACZ,EAAA;AACF;AAOgB;AACH,EAAA;AACC,EAAA;AACD,EAAA;AACD,EAAA;AACC,EAAA;AACE,EAAA;AACM,EAAA;AACN,EAAA;AACA,IAAA;AACb,EAAA;AACO,EAAA;AACT;AAMgB;AACJ,EAAA;AACA,EAAA;AACE,EAAA;AACA,EAAA;AACA,EAAA;AACC,EAAA;AACA,IAAA;AACF,IAAA;AACC,MAAA;AACA,MAAA;AACV,IAAA;AACU,IAAA;AACH,IAAA;AACI,IAAA;AACA,IAAA;AACA,IAAA;AACb,EAAA;AACF;AFmQe;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA","file":"/home/runner/work/editor/editor/packages/core/dist/chunk-ZOOEX3WT.cjs","sourcesContent":[null,"// Portions ported from photocraft/crates/raster/src/lib.rs (MIT OR Apache-2.0, © ArtCraft Team and contributors). See THIRD_PARTY_NOTICES.md.\n\n/**\n * Tiled, sparse, copy-on-write pixel storage (photocraft's `Surface`): 256 px square tiles in a\n * map keyed by tile coordinate, a default value for every missing tile, and shared tiles.\n *\n * - Pixels are 8-bit, straight alpha: RGBA for layers (4 channels, the same as `ImageData`), one\n * byte for masks.\n * - A surface is never mutated. A write returns a new surface that shares every tile it did not\n * touch, so undo history and caches can keep old surfaces by reference.\n * - A tile whose pixels all hold one value is a *uniform* tile; one instance per value is shared,\n * so a solid fill or a \"hide all\" mask costs one tile however large it is.\n * - Coordinates are document pixels and may be negative or past the canvas (layers can extend\n * beyond it, as PSD layer rects do).\n *\n * The module has no DOM dependency, so it runs in Node, tests and workers.\n */\n\n/** A pixel rectangle (`x`, `y` of the top-left corner, `width`, `height`). */\nexport interface RasterRect {\n x: number;\n y: number;\n width: number;\n height: number;\n}\ntype CropBox = RasterRect;\n\nexport const TILE = 256;\nexport const TILE_SHIFT = 8;\nconst TILE_PIXELS = TILE * TILE;\nconst KEY_OFFSET = 1 << 15;\nconst KEY_SPAN = 1 << 16;\n\n/** A tile coordinate packed into one number (tx, ty in −32768..32767). */\nexport type TileKey = number;\n\nexport function tileKey(tx: number, ty: number): TileKey {\n return (ty + KEY_OFFSET) * KEY_SPAN + (tx + KEY_OFFSET);\n}\n\nexport function tileCoord(key: TileKey): { tx: number; ty: number } {\n return { tx: (key % KEY_SPAN) - KEY_OFFSET, ty: Math.floor(key / KEY_SPAN) - KEY_OFFSET };\n}\n\n/** A tile's pixel rectangle in document space. */\nexport function tileRect(tx: number, ty: number): CropBox {\n return { x: tx * TILE, y: ty * TILE, width: TILE, height: TILE };\n}\n\n/** One tile: TILE × TILE pixels of `channels` bytes. Never mutate `data` after it is shared. */\nexport interface Tile {\n readonly data: Uint8ClampedArray;\n /** The packed value of every pixel when the tile is uniform, else `null`. */\n readonly uniform: number | null;\n}\n\nlet nextSurfaceId = 1;\n\n/**\n * An immutable tiled surface. `channels` is 4 (RGBA) for layers and 1 for masks. Missing tiles\n * hold `defaultValue` in every byte (0: transparent black for layers; 0 or 255 for masks).\n */\nexport class TiledSurface {\n /** Unique per instance: a cache key that changes whenever the pixels can have changed. */\n readonly id = nextSurfaceId++;\n private boundsCache: CropBox | null | undefined;\n\n constructor(\n readonly channels: 1 | 4,\n readonly tiles: ReadonlyMap<TileKey, Tile>,\n readonly defaultValue = 0\n ) {}\n\n /** Bounds of the stored (non-default) tiles, tile-aligned; `null` when there are none. */\n get bounds(): CropBox | null {\n if (this.boundsCache === undefined) this.boundsCache = tileUnion(this.tiles.keys());\n return this.boundsCache;\n }\n\n get tileCount(): number {\n return this.tiles.size;\n }\n\n getTile(tx: number, ty: number): Tile | undefined {\n return this.tiles.get(tileKey(tx, ty));\n }\n}\n\nexport type PixelSurface = TiledSurface;\nexport type MaskSurface = TiledSurface;\n\nfunction tileUnion(keys: Iterable<TileKey>): CropBox | null {\n let x0 = Infinity;\n let y0 = Infinity;\n let x1 = -Infinity;\n let y1 = -Infinity;\n for (const key of keys) {\n const { tx, ty } = tileCoord(key);\n if (tx < x0) x0 = tx;\n if (ty < y0) y0 = ty;\n if (tx > x1) x1 = tx;\n if (ty > y1) y1 = ty;\n }\n if (x0 === Infinity) return null;\n return { x: x0 * TILE, y: y0 * TILE, width: (x1 - x0 + 1) * TILE, height: (y1 - y0 + 1) * TILE };\n}\n\n// ---------------------------------------------------------------------------\n// Uniform tiles\n// ---------------------------------------------------------------------------\n\nconst uniformTiles = new Map<string, Tile>();\nconst UNIFORM_LIMIT = 64;\n\n/** Packs one pixel (`channels` bytes from `data` at `offset`) into a number. */\nfunction packPixel(data: ArrayLike<number>, offset: number, channels: number): number {\n return channels === 1\n ? data[offset]\n : ((data[offset] << 24) | (data[offset + 1] << 16) | (data[offset + 2] << 8) | data[offset + 3]) >>> 0;\n}\n\n/** The shared tile whose every pixel is `value` (packed RGBA, or one byte for masks). */\nexport function uniformTile(channels: 1 | 4, value: number): Tile {\n const key = `${channels}:${value}`;\n let tile = uniformTiles.get(key);\n if (tile) return tile;\n const data = new Uint8ClampedArray(TILE_PIXELS * channels);\n if (channels === 1) data.fill(value);\n else if (value !== 0) {\n const r = value >>> 24;\n const g = (value >>> 16) & 255;\n const b = (value >>> 8) & 255;\n const a = value & 255;\n for (let i = 0; i < data.length; i += 4) {\n data[i] = r;\n data[i + 1] = g;\n data[i + 2] = b;\n data[i + 3] = a;\n }\n }\n tile = { data, uniform: value };\n if (uniformTiles.size >= UNIFORM_LIMIT) uniformTiles.delete(uniformTiles.keys().next().value as string);\n uniformTiles.set(key, tile);\n return tile;\n}\n\n/** Packs an RGBA colour (0..255 each) the way uniform tiles store it. */\nexport function packRgba(r: number, g: number, b: number, a: number): number {\n return ((r << 24) | (g << 16) | (b << 8) | a) >>> 0;\n}\n\nfunction defaultPacked(channels: 1 | 4, defaultValue: number): number {\n return channels === 1 ? defaultValue : packRgba(defaultValue, defaultValue, defaultValue, defaultValue);\n}\n\n/** The packed value when every pixel of `data` is the same, else `null`. */\nfunction uniformValue(data: Uint8ClampedArray, channels: 1 | 4): number | null {\n if (channels === 1) {\n const v = data[0];\n for (let i = 1; i < data.length; i++) if (data[i] !== v) return null;\n return v;\n }\n const words = new Uint32Array(data.buffer, data.byteOffset, data.length >> 2);\n const w = words[0];\n for (let i = 1; i < words.length; i++) if (words[i] !== w) return null;\n return packPixel(data, 0, 4);\n}\n\n/**\n * Turns freshly written tile data into a stored tile: `null` when it equals the surface default\n * (the tile is dropped), the shared uniform tile when it is uniform, else a tile owning `data`.\n */\nexport function finishTile(data: Uint8ClampedArray, channels: 1 | 4, defaultValue: number): Tile | null {\n const u = uniformValue(data, channels);\n if (u === null) return { data, uniform: null };\n if (u === defaultPacked(channels, defaultValue)) return null;\n return uniformTile(channels, u);\n}\n\n// ---------------------------------------------------------------------------\n// Construction\n// ---------------------------------------------------------------------------\n\n/** An empty surface (every pixel is `defaultValue`). */\nexport function emptySurface(channels: 1 | 4 = 4, defaultValue = 0): TiledSurface {\n return new TiledSurface(channels, new Map(), defaultValue);\n}\n\n/** A surface filled with one value over `rect` (packed RGBA for layers, a byte for masks). */\nexport function solidSurface(channels: 1 | 4, rect: CropBox, value: number, defaultValue = 0): TiledSurface {\n const bytes = new Uint8ClampedArray(channels);\n if (channels === 1) bytes[0] = value;\n else {\n bytes[0] = value >>> 24;\n bytes[1] = (value >>> 16) & 255;\n bytes[2] = (value >>> 8) & 255;\n bytes[3] = value & 255;\n }\n return fillRect(emptySurface(channels, defaultValue), rect, bytes);\n}\n\n/**\n * A surface holding `width × height` interleaved pixels placed at (`x`, `y`) in document space.\n * Tiles equal to the default are left out; uniform tiles are shared.\n */\nexport function surfaceFromPixels(\n pixels: { width: number; height: number; data: ArrayLike<number> },\n channels: 1 | 4 = 4,\n x = 0,\n y = 0,\n defaultValue = 0\n): TiledSurface {\n return writeRegion(emptySurface(channels, defaultValue), { x, y, width: pixels.width, height: pixels.height }, pixels.data);\n}\n\n// ---------------------------------------------------------------------------\n// Reading\n// ---------------------------------------------------------------------------\n\n/** Tile coordinates covering `rect`, row by row. */\nexport function tilesInRect(rect: CropBox): Array<{ tx: number; ty: number }> {\n const out: Array<{ tx: number; ty: number }> = [];\n if (rect.width <= 0 || rect.height <= 0) return out;\n const tx0 = Math.floor(rect.x / TILE);\n const ty0 = Math.floor(rect.y / TILE);\n const tx1 = Math.floor((rect.x + rect.width - 1) / TILE);\n const ty1 = Math.floor((rect.y + rect.height - 1) / TILE);\n for (let ty = ty0; ty <= ty1; ty++) for (let tx = tx0; tx <= tx1; tx++) out.push({ tx, ty });\n return out;\n}\n\n/**\n * Copies `rect` of the surface into `out` (or a new buffer), `rect.width × rect.height`\n * interleaved pixels; missing tiles read as the default.\n */\nexport function readRegion(surface: TiledSurface, rect: CropBox, out?: Uint8ClampedArray): Uint8ClampedArray {\n const ch = surface.channels;\n const w = rect.width;\n const h = rect.height;\n const dst = out ?? new Uint8ClampedArray(w * h * ch);\n if (surface.defaultValue !== 0) dst.fill(surface.defaultValue);\n else if (out) dst.fill(0);\n for (const { tx, ty } of tilesInRect(rect)) {\n const tile = surface.getTile(tx, ty);\n if (!tile) continue;\n const ox = tx * TILE;\n const oy = ty * TILE;\n const x0 = Math.max(rect.x, ox);\n const y0 = Math.max(rect.y, oy);\n const x1 = Math.min(rect.x + w, ox + TILE);\n const y1 = Math.min(rect.y + h, oy + TILE);\n const span = (x1 - x0) * ch;\n for (let yy = y0; yy < y1; yy++) {\n const s = ((yy - oy) * TILE + (x0 - ox)) * ch;\n const d = ((yy - rect.y) * w + (x0 - rect.x)) * ch;\n dst.set(tile.data.subarray(s, s + span), d);\n }\n }\n return dst;\n}\n\n/** One pixel's bytes (RGBA or the mask byte). */\nexport function readPixel(surface: TiledSurface, x: number, y: number): number[] {\n const tile = surface.getTile(Math.floor(x / TILE), Math.floor(y / TILE));\n const ch = surface.channels;\n if (!tile) return new Array(ch).fill(surface.defaultValue);\n const i = (((y & (TILE - 1)) * TILE) + (x & (TILE - 1))) * ch;\n return Array.from(tile.data.subarray(i, i + ch));\n}\n\n/**\n * Exact bounds of the pixels that differ from the default (for a layer: non-transparent), or\n * `null`. Scans the stored tiles; uniform tiles count whole.\n */\nexport function contentBounds(surface: TiledSurface): CropBox | null {\n const ch = surface.channels;\n const def = surface.defaultValue;\n let x0 = Infinity;\n let y0 = Infinity;\n let x1 = -Infinity;\n let y1 = -Infinity;\n for (const [key, tile] of surface.tiles) {\n const { tx, ty } = tileCoord(key);\n const ox = tx * TILE;\n const oy = ty * TILE;\n if (tile.uniform !== null) {\n if (ox < x0) x0 = ox;\n if (oy < y0) y0 = oy;\n if (ox + TILE - 1 > x1) x1 = ox + TILE - 1;\n if (oy + TILE - 1 > y1) y1 = oy + TILE - 1;\n continue;\n }\n const d = tile.data;\n for (let y = 0; y < TILE; y++) {\n let first = -1;\n let last = -1;\n const row = y * TILE * ch;\n for (let x = 0; x < TILE; x++) {\n const i = row + x * ch;\n let differs = false;\n for (let c = 0; c < ch; c++) if (d[i + c] !== def) differs = true;\n if (differs) {\n if (first < 0) first = x;\n last = x;\n }\n }\n if (first < 0) continue;\n if (ox + first < x0) x0 = ox + first;\n if (ox + last > x1) x1 = ox + last;\n if (oy + y < y0) y0 = oy + y;\n if (oy + y > y1) y1 = oy + y;\n }\n }\n if (x0 === Infinity) return null;\n return { x: x0, y: y0, width: x1 - x0 + 1, height: y1 - y0 + 1 };\n}\n\n// ---------------------------------------------------------------------------\n// Writing (copy-on-write)\n// ---------------------------------------------------------------------------\n\n/**\n * A private, mutable copy of the tiles a write touches. `tile(tx, ty)` copies the tile on first\n * use; `commit()` returns a new surface sharing every untouched tile. Use it for strokes:\n * edit through the draft while the pointer moves and commit once at pointer-up.\n */\nexport class SurfaceDraft {\n private readonly copies = new Map<TileKey, Uint8ClampedArray>();\n\n constructor(readonly base: TiledSurface) {}\n\n get channels(): 1 | 4 {\n return this.base.channels;\n }\n\n /** The writable data of tile (tx, ty), copied from the base on first use. */\n tile(tx: number, ty: number): Uint8ClampedArray {\n const key = tileKey(tx, ty);\n let data = this.copies.get(key);\n if (data) return data;\n const src = this.base.tiles.get(key);\n if (src) data = new Uint8ClampedArray(src.data);\n else {\n data = new Uint8ClampedArray(TILE_PIXELS * this.base.channels);\n if (this.base.defaultValue !== 0) data.fill(this.base.defaultValue);\n }\n this.copies.set(key, data);\n return data;\n }\n\n /** Replaces a whole tile with `data` (owned by the draft from now on). */\n replace(tx: number, ty: number, data: Uint8ClampedArray): void {\n this.copies.set(tileKey(tx, ty), data);\n }\n\n /** The current data of a tile without copying it (base tile, draft copy or `null` for default). */\n peek(tx: number, ty: number): Uint8ClampedArray | null {\n const key = tileKey(tx, ty);\n return this.copies.get(key) ?? this.base.tiles.get(key)?.data ?? null;\n }\n\n /** Keys of the tiles changed so far. */\n get touched(): TileKey[] {\n return [...this.copies.keys()];\n }\n\n /** A new surface with the draft's tiles; the draft must not be used afterwards. */\n commit(): TiledSurface {\n if (!this.copies.size) return this.base;\n const tiles = new Map(this.base.tiles);\n const { channels, defaultValue } = this.base;\n for (const [key, data] of this.copies) {\n const tile = finishTile(data, channels, defaultValue);\n if (tile) tiles.set(key, tile);\n else tiles.delete(key);\n }\n return new TiledSurface(channels, tiles, defaultValue);\n }\n}\n\n/** Writes `rect.width × rect.height` interleaved pixels at `rect`; returns the new surface. */\nexport function writeRegion(surface: TiledSurface, rect: CropBox, data: ArrayLike<number>): TiledSurface {\n const ch = surface.channels;\n const w = rect.width;\n const h = rect.height;\n if (w <= 0 || h <= 0) return surface;\n if (data.length < w * h * ch) throw new Error(`writeRegion: expected ${w * h * ch} bytes, got ${data.length}`);\n const draft = new SurfaceDraft(surface);\n const src = data as Uint8ClampedArray;\n const canSubarray = typeof (src as Uint8ClampedArray).subarray === 'function';\n for (const { tx, ty } of tilesInRect(rect)) {\n const ox = tx * TILE;\n const oy = ty * TILE;\n const x0 = Math.max(rect.x, ox);\n const y0 = Math.max(rect.y, oy);\n const x1 = Math.min(rect.x + w, ox + TILE);\n const y1 = Math.min(rect.y + h, oy + TILE);\n const full = x0 === ox && y0 === oy && x1 === ox + TILE && y1 === oy + TILE;\n const t = full ? new Uint8ClampedArray(TILE_PIXELS * ch) : draft.tile(tx, ty);\n const span = (x1 - x0) * ch;\n for (let yy = y0; yy < y1; yy++) {\n const s = ((yy - rect.y) * w + (x0 - rect.x)) * ch;\n const d = ((yy - oy) * TILE + (x0 - ox)) * ch;\n if (canSubarray) t.set(src.subarray(s, s + span), d);\n else for (let k = 0; k < span; k++) t[d + k] = src[s + k];\n }\n if (full) draft.replace(tx, ty, t);\n }\n return draft.commit();\n}\n\n/** Fills `rect` with one pixel value (`bytes`, `channels` long). */\nexport function fillRect(surface: TiledSurface, rect: CropBox, bytes: ArrayLike<number>): TiledSurface {\n const ch = surface.channels;\n if (rect.width <= 0 || rect.height <= 0) return surface;\n const tiles = new Map(surface.tiles);\n const draft = new SurfaceDraft(surface);\n const value = packPixel(bytes, 0, ch);\n const isDefault = value === defaultPacked(ch, surface.defaultValue);\n for (const { tx, ty } of tilesInRect(rect)) {\n const ox = tx * TILE;\n const oy = ty * TILE;\n const x0 = Math.max(rect.x, ox);\n const y0 = Math.max(rect.y, oy);\n const x1 = Math.min(rect.x + rect.width, ox + TILE);\n const y1 = Math.min(rect.y + rect.height, oy + TILE);\n const key = tileKey(tx, ty);\n if (x0 === ox && y0 === oy && x1 === ox + TILE && y1 === oy + TILE) {\n if (isDefault) tiles.delete(key);\n else tiles.set(key, uniformTile(ch, value));\n continue;\n }\n const t = draft.tile(tx, ty);\n for (let yy = y0; yy < y1; yy++) {\n let d = ((yy - oy) * TILE + (x0 - ox)) * ch;\n for (let xx = x0; xx < x1; xx++, d += ch) for (let c = 0; c < ch; c++) t[d + c] = bytes[c];\n }\n const tile = finishTile(t, ch, surface.defaultValue);\n if (tile) tiles.set(key, tile);\n else tiles.delete(key);\n }\n return new TiledSurface(ch, tiles, surface.defaultValue);\n}\n\n/** A copy of the surface moved by an integer offset (re-tiles; layers normally move by `offset`). */\nexport function translateSurface(surface: TiledSurface, dx: number, dy: number): TiledSurface {\n dx = Math.round(dx);\n dy = Math.round(dy);\n if (!dx && !dy) return surface;\n if (dx % TILE === 0 && dy % TILE === 0) {\n const tiles = new Map<TileKey, Tile>();\n for (const [key, tile] of surface.tiles) {\n const { tx, ty } = tileCoord(key);\n tiles.set(tileKey(tx + dx / TILE, ty + dy / TILE), tile);\n }\n return new TiledSurface(surface.channels, tiles, surface.defaultValue);\n }\n const b = surface.bounds;\n if (!b) return surface;\n const data = readRegion(surface, b);\n return writeRegion(emptySurface(surface.channels, surface.defaultValue), { ...b, x: b.x + dx, y: b.y + dy }, data);\n}\n\n// ---------------------------------------------------------------------------\n// Memory\n// ---------------------------------------------------------------------------\n\n/** Bytes held by a surface's non-uniform tiles (uniform tiles are shared and nearly free). */\nexport function surfaceBytes(surface: TiledSurface): number {\n let n = 0;\n for (const tile of surface.tiles.values()) if (tile.uniform === null) n += tile.data.byteLength;\n return n;\n}\n\n/** Adds every non-uniform tile of `surface` to `into` (for counting bytes shared across states). */\nexport function collectTiles(surface: TiledSurface, into: Set<Tile>): void {\n for (const tile of surface.tiles.values()) if (tile.uniform === null) into.add(tile);\n}\n\n/** True when two surfaces hold the same pixels (cheap when they share tiles). */\nexport function surfacesEqual(a: TiledSurface, b: TiledSurface): boolean {\n if (a === b) return true;\n if (a.channels !== b.channels || a.defaultValue !== b.defaultValue || a.tiles.size !== b.tiles.size) return false;\n for (const [key, ta] of a.tiles) {\n const tb = b.tiles.get(key);\n if (!tb) return false;\n if (ta === tb) continue;\n if (ta.uniform !== null || tb.uniform !== null) {\n if (ta.uniform !== tb.uniform) return false;\n continue;\n }\n const x = ta.data;\n const y = tb.data;\n for (let i = 0; i < x.length; i++) if (x[i] !== y[i]) return false;\n }\n return true;\n}\n","// Portions ported from photocraft-main/crates/color/src/blend.rs (MIT OR Apache-2.0, © ArtCraft Team and contributors). See THIRD_PARTY_NOTICES.md.\n\n/**\n * Photoshop blend modes on straight (non-premultiplied) 0..1 colours.\n *\n * Formulas follow the W3C Compositing / ISO 32000 definitions, with Photoshop's variants where\n * they differ (Soft Light, Vivid / Linear / Pin Light, Hard Mix, Linear Burn / Dodge, Subtract,\n * Divide, Darker / Lighter Color), and the hardened `ClipColor` for the non-separable modes.\n */\n\nexport type BlendMode =\n | 'normal'\n | 'darken'\n | 'multiply'\n | 'color-burn'\n | 'linear-burn'\n | 'darker-color'\n | 'lighten'\n | 'screen'\n | 'color-dodge'\n | 'linear-dodge'\n | 'lighter-color'\n | 'overlay'\n | 'soft-light'\n | 'hard-light'\n | 'vivid-light'\n | 'linear-light'\n | 'pin-light'\n | 'hard-mix'\n | 'difference'\n | 'exclusion'\n | 'subtract'\n | 'divide'\n | 'hue'\n | 'saturation'\n | 'color'\n | 'luminosity';\n\nexport interface BlendModeInfo {\n id: BlendMode;\n label: string;\n /** Canvas `globalCompositeOperation` with the same maths, when there is one. */\n canvas: GlobalCompositeOperation | null;\n}\n\n/** Every blend mode, in Photoshop's menu order. */\nexport const BLEND_MODES: readonly BlendModeInfo[] = [\n { id: 'normal', label: 'Normal', canvas: 'source-over' },\n { id: 'darken', label: 'Darken', canvas: 'darken' },\n { id: 'multiply', label: 'Multiply', canvas: 'multiply' },\n { id: 'color-burn', label: 'Color Burn', canvas: 'color-burn' },\n { id: 'linear-burn', label: 'Linear Burn', canvas: null },\n { id: 'darker-color', label: 'Darker Color', canvas: null },\n { id: 'lighten', label: 'Lighten', canvas: 'lighten' },\n { id: 'screen', label: 'Screen', canvas: 'screen' },\n { id: 'color-dodge', label: 'Color Dodge', canvas: 'color-dodge' },\n { id: 'linear-dodge', label: 'Linear Dodge (Add)', canvas: null },\n { id: 'lighter-color', label: 'Lighter Color', canvas: null },\n { id: 'overlay', label: 'Overlay', canvas: 'overlay' },\n // Canvas soft-light is the W3C formula, not Photoshop's: use the scalar path.\n { id: 'soft-light', label: 'Soft Light', canvas: null },\n { id: 'hard-light', label: 'Hard Light', canvas: 'hard-light' },\n { id: 'vivid-light', label: 'Vivid Light', canvas: null },\n { id: 'linear-light', label: 'Linear Light', canvas: null },\n { id: 'pin-light', label: 'Pin Light', canvas: null },\n { id: 'hard-mix', label: 'Hard Mix', canvas: null },\n { id: 'difference', label: 'Difference', canvas: 'difference' },\n { id: 'exclusion', label: 'Exclusion', canvas: 'exclusion' },\n { id: 'subtract', label: 'Subtract', canvas: null },\n { id: 'divide', label: 'Divide', canvas: null },\n { id: 'hue', label: 'Hue', canvas: 'hue' },\n { id: 'saturation', label: 'Saturation', canvas: 'saturation' },\n { id: 'color', label: 'Color', canvas: 'color' },\n { id: 'luminosity', label: 'Luminosity', canvas: 'luminosity' },\n];\n\nconst BLEND_INFO = new Map<string, BlendModeInfo>(BLEND_MODES.map((m) => [m.id, m]));\n\nexport function isBlendMode(value: unknown): value is BlendMode {\n return typeof value === 'string' && BLEND_INFO.has(value);\n}\n\n/** A stored blend mode, or `normal` for a missing / unknown value. */\nexport function normalizeBlendMode(value: unknown): BlendMode {\n return isBlendMode(value) ? value : 'normal';\n}\n\n/**\n * The canvas composite operation that implements `mode` exactly, or `null` when the canvas has\n * none (draw through {@link blendImageData} instead).\n */\nexport function canvasCompositeOperation(mode: BlendMode | undefined): GlobalCompositeOperation | null {\n return BLEND_INFO.get(mode ?? 'normal')?.canvas ?? null;\n}\n\n/** Whether a mode works on whole colours (hue, saturation, colour, luminosity, darker / lighter colour). */\nexport function isSeparableBlendMode(mode: BlendMode): boolean {\n return !(\n mode === 'hue' ||\n mode === 'saturation' ||\n mode === 'color' ||\n mode === 'luminosity' ||\n mode === 'darker-color' ||\n mode === 'lighter-color'\n );\n}\n\nfunction colorBurn(cb: number, cs: number): number {\n if (cb >= 1) return 1;\n if (cs <= 0) return 0;\n return 1 - Math.min(1, (1 - cb) / cs);\n}\n\nfunction colorDodge(cb: number, cs: number): number {\n if (cb <= 0) return 0;\n if (cs >= 1) return 1;\n return Math.min(1, cb / (1 - cs));\n}\n\nfunction hardLight(cb: number, cs: number): number {\n if (cs <= 0.5) return cb * 2 * cs;\n const s = 2 * cs - 1;\n return cb + s - cb * s;\n}\n\n/** Photoshop's Soft Light (differs from W3C in the upper half). */\nfunction softLight(cb: number, cs: number): number {\n return cs <= 0.5\n ? 2 * cb * cs + cb * cb * (1 - 2 * cs)\n : 2 * cb * (1 - cs) + Math.sqrt(Math.max(0, cb)) * (2 * cs - 1);\n}\n\nfunction vividLightHardMix(cb: number, cs: number): number {\n const EDGE = 1e-4;\n if (cs <= 0.5) {\n if (cb >= 1 - EDGE) return 1;\n if (cs <= 0) return 0;\n return 1 - Math.min(1, (1 - cb) / (2 * cs));\n }\n if (cb <= EDGE) return 0;\n if (cs >= 1) return 1;\n return Math.min(1, cb / (2 * (1 - cs)));\n}\n\n/** Separable blend function `B(cb, cs)` of one channel. Non-separable modes return `cs`. */\nexport function blendChannel(mode: BlendMode, cb: number, cs: number): number {\n switch (mode) {\n case 'normal':\n return cs;\n case 'darken':\n return Math.min(cb, cs);\n case 'multiply':\n return cb * cs;\n case 'color-burn':\n return colorBurn(cb, cs);\n case 'linear-burn':\n return Math.max(0, cb + cs - 1);\n case 'lighten':\n return Math.max(cb, cs);\n case 'screen':\n return cb + cs - cb * cs;\n case 'color-dodge':\n return colorDodge(cb, cs);\n case 'linear-dodge':\n return Math.min(1, cb + cs);\n case 'overlay':\n return hardLight(cs, cb);\n case 'soft-light':\n return softLight(cb, cs);\n case 'hard-light':\n return hardLight(cb, cs);\n case 'vivid-light':\n if (cs <= 0) return 0;\n if (cs >= 1) return 1;\n return cs <= 0.5 ? colorBurn(cb, 2 * cs) : colorDodge(cb, 2 * (cs - 0.5));\n case 'linear-light':\n return Math.min(1, Math.max(0, cb + 2 * cs - 1));\n case 'pin-light':\n return cs <= 0.5 ? Math.min(cb, 2 * cs) : Math.max(cb, 2 * cs - 1);\n case 'hard-mix':\n return vividLightHardMix(cb, cs) >= 0.5 - 1e-6 ? 1 : 0;\n case 'difference':\n return Math.abs(cb - cs);\n case 'exclusion':\n return cb + cs - 2 * cb * cs;\n case 'subtract':\n return Math.max(0, cb - cs);\n case 'divide':\n if (cs <= 0) return cb <= 0 ? 0 : 1;\n return Math.min(1, cb / cs);\n default:\n return cs;\n }\n}\n\nexport type Rgb = [number, number, number];\nexport type Rgba = [number, number, number, number];\n\n/** Luminosity of the non-separable modes (W3C / ISO 32000 weights). */\nexport function blendLum(c: readonly number[]): number {\n return 0.3 * c[0] + 0.59 * c[1] + 0.11 * c[2];\n}\n\n/**\n * ClipColor, hardened: when the luminosity itself is out of range no colour of that luminosity\n * is in gamut, so the result is its grey (the spec formula turned such colours inside out and,\n * for greys, divided by rounding noise).\n */\nfunction clipColor(c: Rgb): Rgb {\n const l = blendLum(c);\n const n = Math.min(c[0], c[1], c[2]);\n const x = Math.max(c[0], c[1], c[2]);\n let out: Rgb = [c[0], c[1], c[2]];\n if (n < 0) {\n const d = l - n;\n out = out.map((v) => (l > 0 && d > 0 ? l + ((v - l) * l) / d : l)) as Rgb;\n }\n if (x > 1) {\n const d = x - l;\n out = out.map((v) => (l < 1 && d > 0 ? l + ((v - l) * (1 - l)) / d : l)) as Rgb;\n }\n return out;\n}\n\n/** `c` with its luminosity moved to `l`, clipped back into gamut towards grey (SetLum + ClipColor). */\nexport function setLum(c: readonly number[], l: number): Rgb {\n const d = l - blendLum(c);\n return clipColor([c[0] + d, c[1] + d, c[2] + d]);\n}\n\nfunction sat(c: readonly number[]): number {\n return Math.max(c[0], c[1], c[2]) - Math.min(c[0], c[1], c[2]);\n}\n\nfunction setSat(c: readonly number[], s: number): Rgb {\n const idx = [0, 1, 2].sort((a, b) => c[a] - c[b]);\n const [imin, imid, imax] = idx;\n const out: Rgb = [0, 0, 0];\n if (c[imax] > c[imin]) {\n out[imid] = ((c[imid] - c[imin]) * s) / (c[imax] - c[imin]);\n out[imax] = s;\n }\n out[imin] = 0;\n return out;\n}\n\n/** `B(Cb, Cs)` of a whole colour, including the non-separable modes. */\nexport function blendRgb(mode: BlendMode, cb: readonly number[], cs: readonly number[]): Rgb {\n switch (mode) {\n case 'hue':\n return setLum(setSat(cs, sat(cb)), blendLum(cb));\n case 'saturation':\n return setLum(setSat(cb, sat(cs)), blendLum(cb));\n case 'color':\n return setLum(cs, blendLum(cb));\n case 'luminosity':\n return setLum(cb, blendLum(cs));\n case 'darker-color':\n return blendLum(cs) < blendLum(cb) ? [cs[0], cs[1], cs[2]] : [cb[0], cb[1], cb[2]];\n case 'lighter-color':\n return blendLum(cs) > blendLum(cb) ? [cs[0], cs[1], cs[2]] : [cb[0], cb[1], cb[2]];\n default:\n return [blendChannel(mode, cb[0], cs[0]), blendChannel(mode, cb[1], cs[1]), blendChannel(mode, cb[2], cs[2])];\n }\n}\n\n/**\n * Composites a straight-alpha `source` over a straight-alpha `backdrop` (both RGBA in 0..1) with a\n * blend mode and an extra `alpha` (opacity), using the W3C general formula:\n * `αo = αs + αb(1 − αs)`, `αo·Co = (1 − αs)·αb·Cb + (1 − αb)·αs·Cs + αs·αb·B(Cb, Cs)`.\n */\nexport function blendPixel(mode: BlendMode, backdrop: readonly number[], source: readonly number[], alpha = 1): Rgba {\n const ab = backdrop[3] ?? 1;\n const as = (source[3] ?? 1) * alpha;\n if (!(as > 0)) return [backdrop[0], backdrop[1], backdrop[2], ab];\n const b = blendRgb(mode, backdrop, source);\n const ao = as + ab * (1 - as);\n if (ao <= 0) return [0, 0, 0, 0];\n const out: Rgba = [0, 0, 0, ao];\n for (let i = 0; i < 3; i++) {\n out[i] = ((1 - as) * ab * backdrop[i] + (1 - ab) * as * source[i] + as * ab * b[i]) / ao;\n }\n return out;\n}\n\n/**\n * Blends `source` into `backdrop` in place (8-bit straight RGBA of the same size) with\n * {@link blendPixel}. The scalar fallback for modes the canvas cannot composite.\n */\nexport function blendImageData(backdrop: ImageData, source: ImageData, mode: BlendMode, alpha = 1): void {\n const d = backdrop.data;\n const s = source.data;\n const len = Math.min(d.length, s.length);\n const cb = [0, 0, 0, 0];\n const cs = [0, 0, 0, 0];\n for (let i = 0; i < len; i += 4) {\n if (s[i + 3] === 0) continue;\n for (let k = 0; k < 4; k++) {\n cb[k] = d[i + k] / 255;\n cs[k] = s[i + k] / 255;\n }\n const o = blendPixel(mode, cb, cs, alpha);\n d[i] = Math.round(o[0] * 255);\n d[i + 1] = Math.round(o[1] * 255);\n d[i + 2] = Math.round(o[2] * 255);\n d[i + 3] = Math.round(o[3] * 255);\n }\n}\n"]}
|
|
@@ -95,7 +95,7 @@
|
|
|
95
95
|
|
|
96
96
|
|
|
97
97
|
|
|
98
|
-
var
|
|
98
|
+
var _chunkJ3B45HTAcjs = require('../chunk-J3B45HTA.cjs');
|
|
99
99
|
require('../chunk-CS6NZWWA.cjs');
|
|
100
100
|
|
|
101
101
|
|
|
@@ -171,13 +171,14 @@ require('../chunk-5PTR7HTL.cjs');
|
|
|
171
171
|
|
|
172
172
|
|
|
173
173
|
|
|
174
|
-
var
|
|
174
|
+
var _chunkT4XWVPJKcjs = require('../chunk-T4XWVPJK.cjs');
|
|
175
175
|
require('../chunk-TKPPIVW7.cjs');
|
|
176
176
|
require('../chunk-P2CTDJNF.cjs');
|
|
177
177
|
require('../chunk-CKRNELPO.cjs');
|
|
178
178
|
require('../chunk-MKA3AHLV.cjs');
|
|
179
|
-
require('../chunk-
|
|
180
|
-
require('../chunk-
|
|
179
|
+
require('../chunk-HNDSPZ5T.cjs');
|
|
180
|
+
require('../chunk-66IMF6OD.cjs');
|
|
181
|
+
require('../chunk-BVP3TSLH.cjs');
|
|
181
182
|
|
|
182
183
|
|
|
183
184
|
|
|
@@ -207,7 +208,6 @@ require('../chunk-TYOAJDFD.cjs');
|
|
|
207
208
|
|
|
208
209
|
|
|
209
210
|
var _chunkIFHKKVXHcjs = require('../chunk-IFHKKVXH.cjs');
|
|
210
|
-
require('../chunk-BVP3TSLH.cjs');
|
|
211
211
|
require('../chunk-XP5IUZUO.cjs');
|
|
212
212
|
require('../chunk-TNNJXF46.cjs');
|
|
213
213
|
require('../chunk-EMQWJA3G.cjs');
|
|
@@ -406,5 +406,5 @@ require('../chunk-QKLRAA4T.cjs');
|
|
|
406
406
|
|
|
407
407
|
|
|
408
408
|
|
|
409
|
-
exports.ALLOW_NESTED_TABLES_META = _chunkRKJDBXTYcjs.ALLOW_NESTED_TABLES_META; exports.AgentCaret = _chunkRKJDBXTYcjs.AgentCaret; exports.Autocorrect = _chunkMXF4DP2Ccjs.Autocorrect; exports.BLOCK_CHANGE_ATTRIBUTE = _chunkIFHKKVXHcjs.BLOCK_CHANGE_ATTRIBUTE; exports.Bookmark = _chunkMXF4DP2Ccjs.Bookmark; exports.CHARACTER_STYLE_MARK_NAME = _chunkMXF4DP2Ccjs.CHARACTER_STYLE_MARK_NAME; exports.COMMENT_MARK_NAME = _chunkMXF4DP2Ccjs.COMMENT_MARK_NAME; exports.CharacterStyle = _chunkMXF4DP2Ccjs.CharacterStyle; exports.Chart = _chunkRKJDBXTYcjs.Chart; exports.ChartNodeView = _chunkRKJDBXTYcjs.ChartNodeView; exports.ColorHighlighter = _chunkMXF4DP2Ccjs.ColorHighlighter; exports.CommentStore = _chunkIFHKKVXHcjs.CommentStore; exports.Comments = _chunkMXF4DP2Ccjs.Comments; exports.CrossReference = _chunkMXF4DP2Ccjs.CrossReference; exports.DEFAULT_AGENT_CARET_COLOR = _chunkRKJDBXTYcjs.DEFAULT_AGENT_CARET_COLOR; exports.DEFAULT_AGENT_CARET_NAME = _chunkRKJDBXTYcjs.DEFAULT_AGENT_CARET_NAME; exports.DEFAULT_AUTOCORRECT_EXCEPTIONS = _chunkMXF4DP2Ccjs.DEFAULT_AUTOCORRECT_EXCEPTIONS; exports.DEFAULT_STYLES = _chunkO6FO6VI3cjs.DEFAULT_STYLES; exports.DEFAULT_TABLE_OPTIONS = _chunkRKJDBXTYcjs.DEFAULT_TABLE_OPTIONS; exports.DEFAULT_TABLE_TOOLBAR = _chunkRKJDBXTYcjs.DEFAULT_TABLE_TOOLBAR; exports.DELETION_MARK_NAME = _chunkIFHKKVXHcjs.DELETION_MARK_NAME; exports.DocumentCompare = _chunkMXF4DP2Ccjs.DocumentCompare; exports.EMPTY_FIND_REPLACE_SNAPSHOT = _chunkMXF4DP2Ccjs.EMPTY_FIND_REPLACE_SNAPSHOT; exports.EMPTY_TABLE_STATE = _chunkRKJDBXTYcjs.EMPTY_TABLE_STATE; exports.FIND_OPTION_TOGGLES = _chunkMXF4DP2Ccjs.FIND_OPTION_TOGGLES; exports.FIND_PARAGRAPH_MARK = _chunkRKJDBXTYcjs.FIND_PARAGRAPH_MARK; exports.FORMAT_CHANGE_MARK_NAME = _chunkIFHKKVXHcjs.FORMAT_CHANGE_MARK_NAME; exports.FileImport = _chunkMXF4DP2Ccjs.FileImport; exports.FindReplace = _chunkMXF4DP2Ccjs.FindReplace; exports.FindReplaceStore = _chunkMXF4DP2Ccjs.FindReplaceStore; exports.FontSize = _chunkMXF4DP2Ccjs.FontSize; exports.Footnote = _chunkMXF4DP2Ccjs.Footnote; exports.FootnoteReference = _chunkMXF4DP2Ccjs.FootnoteReference; exports.Footnotes = _chunkMXF4DP2Ccjs.Footnotes; exports.GradientText = _chunkMXF4DP2Ccjs.GradientText; exports.INSERTION_MARK_NAME = _chunkIFHKKVXHcjs.INSERTION_MARK_NAME; exports.Image = _chunkMXF4DP2Ccjs.Image; exports.LoadingNode = _chunkMXF4DP2Ccjs.LoadingNode; exports.MAX_FIND_PATTERN_LENGTH = _chunkRKJDBXTYcjs.MAX_FIND_PATTERN_LENGTH; exports.MAX_SPARKLINE_VALUES = _chunkRKJDBXTYcjs.MAX_SPARKLINE_VALUES; exports.MAX_TABLE_COLUMNS = _chunkRKJDBXTYcjs.MAX_TABLE_COLUMNS; exports.MAX_TABLE_ROWS = _chunkRKJDBXTYcjs.MAX_TABLE_ROWS; exports.MOVE_FROM_CLASS = _chunkIFHKKVXHcjs.MOVE_FROM_CLASS; exports.MOVE_ID_ATTRIBUTE = _chunkIFHKKVXHcjs.MOVE_ID_ATTRIBUTE; exports.MOVE_TO_CLASS = _chunkIFHKKVXHcjs.MOVE_TO_CLASS; exports.Markdown = _chunkMXF4DP2Ccjs.Markdown; exports.Mention = _chunkMXF4DP2Ccjs.Mention; exports.NORMAL_STYLE_ID = _chunkO6FO6VI3cjs.NORMAL_STYLE_ID; exports.Outline = _chunkMXF4DP2Ccjs.Outline; exports.ParagraphStyles = _chunkMXF4DP2Ccjs.ParagraphStyles; exports.RichClipboard = _chunkMXF4DP2Ccjs.RichClipboard; exports.SMILIE_REPLACEMENTS = _chunkMXF4DP2Ccjs.SMILIE_REPLACEMENTS; exports.SPARKLINE_KINDS = _chunkRKJDBXTYcjs.SPARKLINE_KINDS; exports.STYLE_ID_ATTRIBUTE = _chunkMXF4DP2Ccjs.STYLE_ID_ATTRIBUTE; exports.SlashCommands = _chunkMXF4DP2Ccjs.SlashCommands; exports.SmilieReplacer = _chunkMXF4DP2Ccjs.SmilieReplacer; exports.Sparkline = _chunkRKJDBXTYcjs.Sparkline; exports.StyleRegistry = _chunkO6FO6VI3cjs.StyleRegistry; exports.TABLE_ACTIONS = _chunkRKJDBXTYcjs.TABLE_ACTIONS; exports.TRACK_CHANGES_SKIP_META = _chunkIFHKKVXHcjs.TRACK_CHANGES_SKIP_META; exports.Table = _chunkRKJDBXTYcjs.Table; exports.TableCell = _chunkRKJDBXTYcjs.TableCell; exports.TableHeader = _chunkRKJDBXTYcjs.TableHeader; exports.TableOfContents = _chunkMXF4DP2Ccjs.TableOfContents; exports.TableRow = _chunkRKJDBXTYcjs.TableRow; exports.TemplateSuggestions = _chunkMXF4DP2Ccjs.TemplateSuggestions; exports.TrackChanges = _chunkIFHKKVXHcjs.TrackChanges; exports.TrackChangesStore = _chunkIFHKKVXHcjs.TrackChangesStore; exports.TrackedDeletion = _chunkIFHKKVXHcjs.TrackedDeletion; exports.TrackedFormatChange = _chunkIFHKKVXHcjs.TrackedFormatChange; exports.TrackedInsertion = _chunkIFHKKVXHcjs.TrackedInsertion; exports.agentCaretPluginKey = _chunkRKJDBXTYcjs.agentCaretPluginKey; exports.applyDocumentComparison = _chunkMXF4DP2Ccjs.applyDocumentComparison; exports.applyReplacements = _chunkRKJDBXTYcjs.applyReplacements; exports.autocorrectPluginKey = _chunkMXF4DP2Ccjs.autocorrectPluginKey; exports.buildOutlineTree = _chunkMXF4DP2Ccjs.buildOutlineTree; exports.capitalizeSentenceRules = _chunkMXF4DP2Ccjs.capitalizeSentenceRules; exports.captureSelectionFormat = _chunkMXF4DP2Ccjs.captureSelectionFormat; exports.chartPluginKey = _chunkRKJDBXTYcjs.chartPluginKey; exports.clearAgentCaret = _chunkRKJDBXTYcjs.clearAgentCaret; exports.commentsPluginKey = _chunkMXF4DP2Ccjs.commentsPluginKey; exports.compareInEditor = _chunkMXF4DP2Ccjs.compareInEditor; exports.compileFindPattern = _chunkRKJDBXTYcjs.compileFindPattern; exports.computeOutline = _chunkMXF4DP2Ccjs.computeOutline; exports.createAgentCaretPlugin = _chunkRKJDBXTYcjs.createAgentCaretPlugin; exports.createChartNodeView = _chunkRKJDBXTYcjs.createChartNodeView; exports.createCommentStore = _chunkIFHKKVXHcjs.createCommentStore; exports.createFindReplaceCommands = _chunkMXF4DP2Ccjs.createFindReplaceCommands; exports.createMentionExtension = _chunkMXF4DP2Ccjs.createMentionExtension; exports.createOutlineStore = _chunkMXF4DP2Ccjs.createOutlineStore; exports.createParagraphStylesStore = _chunkMXF4DP2Ccjs.createParagraphStylesStore; exports.createReviewId = _chunkIFHKKVXHcjs.createReviewId; exports.createRichTextPreset = _chunkMXF4DP2Ccjs.createRichTextPreset; exports.createSearchBudget = _chunkRKJDBXTYcjs.createSearchBudget; exports.createStyleRegistry = _chunkO6FO6VI3cjs.createStyleRegistry; exports.createTableCommands = _chunkMXF4DP2Ccjs.createTableCommands; exports.createTableExtensions = _chunkRKJDBXTYcjs.createTableExtensions; exports.createTableNestingPlugin = _chunkRKJDBXTYcjs.createTableNestingPlugin; exports.createTableStore = _chunkRKJDBXTYcjs.createTableStore; exports.crossReferencePluginKey = _chunkMXF4DP2Ccjs.crossReferencePluginKey; exports.defaultAutocorrectRules = _chunkMXF4DP2Ccjs.defaultAutocorrectRules; exports.describeBlockChange = _chunkIFHKKVXHcjs.describeBlockChange; exports.describeFormatChange = _chunkIFHKKVXHcjs.describeFormatChange; exports.documentStructureCommandItems = _chunkMXF4DP2Ccjs.documentStructureCommandItems; exports.ensureAgentCaret = _chunkRKJDBXTYcjs.ensureAgentCaret; exports.expandReplacement = _chunkRKJDBXTYcjs.expandReplacement; exports.fileImportPluginKey = _chunkMXF4DP2Ccjs.fileImportPluginKey; exports.findAllMatches = _chunkRKJDBXTYcjs.findAllMatches; exports.findAutocorrection = _chunkMXF4DP2Ccjs.findAutocorrection; exports.findCommentRanges = _chunkMXF4DP2Ccjs.findCommentRanges; exports.findHexColors = _chunkMXF4DP2Ccjs.findHexColors; exports.findReplacePluginKey = _chunkMXF4DP2Ccjs.findReplacePluginKey; exports.foldCodePoint = _chunkRKJDBXTYcjs.foldCodePoint; exports.footnotesMarkdownIt = _chunkMXF4DP2Ccjs.footnotesMarkdownIt; exports.footnotesPluginKey = _chunkMXF4DP2Ccjs.footnotesPluginKey; exports.formatFindStatus = _chunkMXF4DP2Ccjs.formatFindStatus; exports.formatReviewTime = _chunkIFHKKVXHcjs.formatReviewTime; exports.fractionRules = _chunkMXF4DP2Ccjs.fractionRules; exports.getActiveHeading = _chunkMXF4DP2Ccjs.getActiveHeading; exports.getAgentCarets = _chunkRKJDBXTYcjs.getAgentCarets; exports.getBookmarks = _chunkMXF4DP2Ccjs.getBookmarks; exports.getCommentAnchors = _chunkMXF4DP2Ccjs.getCommentAnchors; exports.getCommentAuthor = _chunkMXF4DP2Ccjs.getCommentAuthor; exports.getCommentIdsAt = _chunkMXF4DP2Ccjs.getCommentIdsAt; exports.getCommentStore = _chunkMXF4DP2Ccjs.getCommentStore; exports.getCrossReferenceTargets = _chunkMXF4DP2Ccjs.getCrossReferenceTargets; exports.getDocumentCharts = _chunkRKJDBXTYcjs.getDocumentCharts; exports.getDocumentStructureCommandItems = _chunkMXF4DP2Ccjs.getDocumentStructureCommandItems; exports.getFindReplaceState = _chunkMXF4DP2Ccjs.getFindReplaceState; exports.getFindReplaceStore = _chunkMXF4DP2Ccjs.getFindReplaceStore; exports.getFootnotes = _chunkMXF4DP2Ccjs.getFootnotes; exports.getMentionNodes = _chunkMXF4DP2Ccjs.getMentionNodes; exports.getOutline = _chunkMXF4DP2Ccjs.getOutline; exports.getParagraphStyleAt = _chunkMXF4DP2Ccjs.getParagraphStyleAt; exports.getStyleRegistry = _chunkMXF4DP2Ccjs.getStyleRegistry; exports.getTableActionState = _chunkRKJDBXTYcjs.getTableActionState; exports.getTableOfContentsEntries = _chunkMXF4DP2Ccjs.getTableOfContentsEntries; exports.getTableState = _chunkRKJDBXTYcjs.getTableState; exports.getTrackChangesStore = _chunkIFHKKVXHcjs.getTrackChangesStore; exports.getTrackedChangeAt = _chunkIFHKKVXHcjs.getTrackedChangeAt; exports.getTrackedChanges = _chunkIFHKKVXHcjs.getTrackedChanges; exports.handleImageInsertion = _chunkMXF4DP2Ccjs.handleImageInsertion; exports.handleTablePasteWithoutNesting = _chunkRKJDBXTYcjs.handleTablePasteWithoutNesting; exports.imagePastePluginKey = _chunkMXF4DP2Ccjs.imagePastePluginKey; exports.insertImageNode = _chunkMXF4DP2Ccjs.insertImageNode; exports.insertSliceAfterTable = _chunkRKJDBXTYcjs.insertSliceAfterTable; exports.isChartEnabled = _chunkRKJDBXTYcjs.isChartEnabled; exports.isGfmTable = _chunkRKJDBXTYcjs.isGfmTable; exports.isInTableCell = _chunkRKJDBXTYcjs.isInTableCell; exports.isInsidePromptToken = _chunkMXF4DP2Ccjs.isInsidePromptToken; exports.isMoveSized = _chunkIFHKKVXHcjs.isMoveSized; exports.isParagraphStyleAvailable = _chunkMXF4DP2Ccjs.isParagraphStyleAvailable; exports.isSelectionInTable = _chunkRKJDBXTYcjs.isSelectionInTable; exports.isTableEnabled = _chunkRKJDBXTYcjs.isTableEnabled; exports.isTrackChangesEnabled = _chunkIFHKKVXHcjs.isTrackChangesEnabled; exports.isValidStyleId = _chunkO6FO6VI3cjs.isValidStyleId; exports.markAgentChanges = _chunkRKJDBXTYcjs.markAgentChanges; exports.navigateToHeading = _chunkMXF4DP2Ccjs.navigateToHeading; exports.normalizeSparklineValues = _chunkRKJDBXTYcjs.normalizeSparklineValues; exports.normalizeTableCellAlignment = _chunkRKJDBXTYcjs.normalizeTableCellAlignment; exports.normalizeTableCellColor = _chunkRKJDBXTYcjs.normalizeTableCellColor; exports.outermostTableDepth = _chunkRKJDBXTYcjs.outermostTableDepth; exports.outlinePluginKey = _chunkMXF4DP2Ccjs.outlinePluginKey; exports.paragraphStylesPluginKey = _chunkMXF4DP2Ccjs.paragraphStylesPluginKey; exports.parseReplacement = _chunkRKJDBXTYcjs.parseReplacement; exports.removeImageNode = _chunkMXF4DP2Ccjs.removeImageNode; exports.replaceWithTextTransaction = _chunkRKJDBXTYcjs.replaceWithTextTransaction; exports.resolveTrackedChanges = _chunkIFHKKVXHcjs.resolveTrackedChanges; exports.richClipboardPluginKey = _chunkMXF4DP2Ccjs.richClipboardPluginKey; exports.runTableAction = _chunkRKJDBXTYcjs.runTableAction; exports.safeCSSValue = _chunkO6FO6VI3cjs.safeCSSValue; exports.searchDocument = _chunkRKJDBXTYcjs.searchDocument; exports.setAgentCaret = _chunkRKJDBXTYcjs.setAgentCaret; exports.setMentionRoleAt = _chunkMXF4DP2Ccjs.setMentionRoleAt; exports.shouldShowTableBubbleMenu = _chunkRKJDBXTYcjs.shouldShowTableBubbleMenu; exports.sliceContainsTable = _chunkRKJDBXTYcjs.sliceContainsTable; exports.smartQuoteRules = _chunkMXF4DP2Ccjs.smartQuoteRules; exports.smilieAutocorrectRules = _chunkMXF4DP2Ccjs.smilieAutocorrectRules; exports.sparklineLabel = _chunkRKJDBXTYcjs.sparklineLabel; exports.staticChartSvg = _chunkRKJDBXTYcjs.staticChartSvg; exports.symbolRules = _chunkMXF4DP2Ccjs.symbolRules; exports.syncFootnotes = _chunkMXF4DP2Ccjs.syncFootnotes; exports.tableNestingPluginKey = _chunkRKJDBXTYcjs.tableNestingPluginKey; exports.tableOfContentsMarkdownIt = _chunkMXF4DP2Ccjs.tableOfContentsMarkdownIt; exports.tableOfContentsPluginKey = _chunkMXF4DP2Ccjs.tableOfContentsPluginKey; exports.trackChangesPluginKey = _chunkIFHKKVXHcjs.trackChangesPluginKey; exports.trackedChangeLabel = _chunkIFHKKVXHcjs.trackedChangeLabel; exports.twoInitialCapitalsRules = _chunkMXF4DP2Ccjs.twoInitialCapitalsRules; exports.typeAgentText = _chunkRKJDBXTYcjs.typeAgentText; exports.unnestTables = _chunkRKJDBXTYcjs.unnestTables; exports.updateImageSrc = _chunkMXF4DP2Ccjs.updateImageSrc; exports.validateFindPattern = _chunkMXF4DP2Ccjs.validateFindPattern; exports.writeRichClipboard = _chunkMXF4DP2Ccjs.writeRichClipboard;
|
|
409
|
+
exports.ALLOW_NESTED_TABLES_META = _chunkT4XWVPJKcjs.ALLOW_NESTED_TABLES_META; exports.AgentCaret = _chunkT4XWVPJKcjs.AgentCaret; exports.Autocorrect = _chunkJ3B45HTAcjs.Autocorrect; exports.BLOCK_CHANGE_ATTRIBUTE = _chunkIFHKKVXHcjs.BLOCK_CHANGE_ATTRIBUTE; exports.Bookmark = _chunkJ3B45HTAcjs.Bookmark; exports.CHARACTER_STYLE_MARK_NAME = _chunkJ3B45HTAcjs.CHARACTER_STYLE_MARK_NAME; exports.COMMENT_MARK_NAME = _chunkJ3B45HTAcjs.COMMENT_MARK_NAME; exports.CharacterStyle = _chunkJ3B45HTAcjs.CharacterStyle; exports.Chart = _chunkT4XWVPJKcjs.Chart; exports.ChartNodeView = _chunkT4XWVPJKcjs.ChartNodeView; exports.ColorHighlighter = _chunkJ3B45HTAcjs.ColorHighlighter; exports.CommentStore = _chunkIFHKKVXHcjs.CommentStore; exports.Comments = _chunkJ3B45HTAcjs.Comments; exports.CrossReference = _chunkJ3B45HTAcjs.CrossReference; exports.DEFAULT_AGENT_CARET_COLOR = _chunkT4XWVPJKcjs.DEFAULT_AGENT_CARET_COLOR; exports.DEFAULT_AGENT_CARET_NAME = _chunkT4XWVPJKcjs.DEFAULT_AGENT_CARET_NAME; exports.DEFAULT_AUTOCORRECT_EXCEPTIONS = _chunkJ3B45HTAcjs.DEFAULT_AUTOCORRECT_EXCEPTIONS; exports.DEFAULT_STYLES = _chunkO6FO6VI3cjs.DEFAULT_STYLES; exports.DEFAULT_TABLE_OPTIONS = _chunkT4XWVPJKcjs.DEFAULT_TABLE_OPTIONS; exports.DEFAULT_TABLE_TOOLBAR = _chunkT4XWVPJKcjs.DEFAULT_TABLE_TOOLBAR; exports.DELETION_MARK_NAME = _chunkIFHKKVXHcjs.DELETION_MARK_NAME; exports.DocumentCompare = _chunkJ3B45HTAcjs.DocumentCompare; exports.EMPTY_FIND_REPLACE_SNAPSHOT = _chunkJ3B45HTAcjs.EMPTY_FIND_REPLACE_SNAPSHOT; exports.EMPTY_TABLE_STATE = _chunkT4XWVPJKcjs.EMPTY_TABLE_STATE; exports.FIND_OPTION_TOGGLES = _chunkJ3B45HTAcjs.FIND_OPTION_TOGGLES; exports.FIND_PARAGRAPH_MARK = _chunkT4XWVPJKcjs.FIND_PARAGRAPH_MARK; exports.FORMAT_CHANGE_MARK_NAME = _chunkIFHKKVXHcjs.FORMAT_CHANGE_MARK_NAME; exports.FileImport = _chunkJ3B45HTAcjs.FileImport; exports.FindReplace = _chunkJ3B45HTAcjs.FindReplace; exports.FindReplaceStore = _chunkJ3B45HTAcjs.FindReplaceStore; exports.FontSize = _chunkJ3B45HTAcjs.FontSize; exports.Footnote = _chunkJ3B45HTAcjs.Footnote; exports.FootnoteReference = _chunkJ3B45HTAcjs.FootnoteReference; exports.Footnotes = _chunkJ3B45HTAcjs.Footnotes; exports.GradientText = _chunkJ3B45HTAcjs.GradientText; exports.INSERTION_MARK_NAME = _chunkIFHKKVXHcjs.INSERTION_MARK_NAME; exports.Image = _chunkJ3B45HTAcjs.Image; exports.LoadingNode = _chunkJ3B45HTAcjs.LoadingNode; exports.MAX_FIND_PATTERN_LENGTH = _chunkT4XWVPJKcjs.MAX_FIND_PATTERN_LENGTH; exports.MAX_SPARKLINE_VALUES = _chunkT4XWVPJKcjs.MAX_SPARKLINE_VALUES; exports.MAX_TABLE_COLUMNS = _chunkT4XWVPJKcjs.MAX_TABLE_COLUMNS; exports.MAX_TABLE_ROWS = _chunkT4XWVPJKcjs.MAX_TABLE_ROWS; exports.MOVE_FROM_CLASS = _chunkIFHKKVXHcjs.MOVE_FROM_CLASS; exports.MOVE_ID_ATTRIBUTE = _chunkIFHKKVXHcjs.MOVE_ID_ATTRIBUTE; exports.MOVE_TO_CLASS = _chunkIFHKKVXHcjs.MOVE_TO_CLASS; exports.Markdown = _chunkJ3B45HTAcjs.Markdown; exports.Mention = _chunkJ3B45HTAcjs.Mention; exports.NORMAL_STYLE_ID = _chunkO6FO6VI3cjs.NORMAL_STYLE_ID; exports.Outline = _chunkJ3B45HTAcjs.Outline; exports.ParagraphStyles = _chunkJ3B45HTAcjs.ParagraphStyles; exports.RichClipboard = _chunkJ3B45HTAcjs.RichClipboard; exports.SMILIE_REPLACEMENTS = _chunkJ3B45HTAcjs.SMILIE_REPLACEMENTS; exports.SPARKLINE_KINDS = _chunkT4XWVPJKcjs.SPARKLINE_KINDS; exports.STYLE_ID_ATTRIBUTE = _chunkJ3B45HTAcjs.STYLE_ID_ATTRIBUTE; exports.SlashCommands = _chunkJ3B45HTAcjs.SlashCommands; exports.SmilieReplacer = _chunkJ3B45HTAcjs.SmilieReplacer; exports.Sparkline = _chunkT4XWVPJKcjs.Sparkline; exports.StyleRegistry = _chunkO6FO6VI3cjs.StyleRegistry; exports.TABLE_ACTIONS = _chunkT4XWVPJKcjs.TABLE_ACTIONS; exports.TRACK_CHANGES_SKIP_META = _chunkIFHKKVXHcjs.TRACK_CHANGES_SKIP_META; exports.Table = _chunkT4XWVPJKcjs.Table; exports.TableCell = _chunkT4XWVPJKcjs.TableCell; exports.TableHeader = _chunkT4XWVPJKcjs.TableHeader; exports.TableOfContents = _chunkJ3B45HTAcjs.TableOfContents; exports.TableRow = _chunkT4XWVPJKcjs.TableRow; exports.TemplateSuggestions = _chunkJ3B45HTAcjs.TemplateSuggestions; exports.TrackChanges = _chunkIFHKKVXHcjs.TrackChanges; exports.TrackChangesStore = _chunkIFHKKVXHcjs.TrackChangesStore; exports.TrackedDeletion = _chunkIFHKKVXHcjs.TrackedDeletion; exports.TrackedFormatChange = _chunkIFHKKVXHcjs.TrackedFormatChange; exports.TrackedInsertion = _chunkIFHKKVXHcjs.TrackedInsertion; exports.agentCaretPluginKey = _chunkT4XWVPJKcjs.agentCaretPluginKey; exports.applyDocumentComparison = _chunkJ3B45HTAcjs.applyDocumentComparison; exports.applyReplacements = _chunkT4XWVPJKcjs.applyReplacements; exports.autocorrectPluginKey = _chunkJ3B45HTAcjs.autocorrectPluginKey; exports.buildOutlineTree = _chunkJ3B45HTAcjs.buildOutlineTree; exports.capitalizeSentenceRules = _chunkJ3B45HTAcjs.capitalizeSentenceRules; exports.captureSelectionFormat = _chunkJ3B45HTAcjs.captureSelectionFormat; exports.chartPluginKey = _chunkT4XWVPJKcjs.chartPluginKey; exports.clearAgentCaret = _chunkT4XWVPJKcjs.clearAgentCaret; exports.commentsPluginKey = _chunkJ3B45HTAcjs.commentsPluginKey; exports.compareInEditor = _chunkJ3B45HTAcjs.compareInEditor; exports.compileFindPattern = _chunkT4XWVPJKcjs.compileFindPattern; exports.computeOutline = _chunkJ3B45HTAcjs.computeOutline; exports.createAgentCaretPlugin = _chunkT4XWVPJKcjs.createAgentCaretPlugin; exports.createChartNodeView = _chunkT4XWVPJKcjs.createChartNodeView; exports.createCommentStore = _chunkIFHKKVXHcjs.createCommentStore; exports.createFindReplaceCommands = _chunkJ3B45HTAcjs.createFindReplaceCommands; exports.createMentionExtension = _chunkJ3B45HTAcjs.createMentionExtension; exports.createOutlineStore = _chunkJ3B45HTAcjs.createOutlineStore; exports.createParagraphStylesStore = _chunkJ3B45HTAcjs.createParagraphStylesStore; exports.createReviewId = _chunkIFHKKVXHcjs.createReviewId; exports.createRichTextPreset = _chunkJ3B45HTAcjs.createRichTextPreset; exports.createSearchBudget = _chunkT4XWVPJKcjs.createSearchBudget; exports.createStyleRegistry = _chunkO6FO6VI3cjs.createStyleRegistry; exports.createTableCommands = _chunkJ3B45HTAcjs.createTableCommands; exports.createTableExtensions = _chunkT4XWVPJKcjs.createTableExtensions; exports.createTableNestingPlugin = _chunkT4XWVPJKcjs.createTableNestingPlugin; exports.createTableStore = _chunkT4XWVPJKcjs.createTableStore; exports.crossReferencePluginKey = _chunkJ3B45HTAcjs.crossReferencePluginKey; exports.defaultAutocorrectRules = _chunkJ3B45HTAcjs.defaultAutocorrectRules; exports.describeBlockChange = _chunkIFHKKVXHcjs.describeBlockChange; exports.describeFormatChange = _chunkIFHKKVXHcjs.describeFormatChange; exports.documentStructureCommandItems = _chunkJ3B45HTAcjs.documentStructureCommandItems; exports.ensureAgentCaret = _chunkT4XWVPJKcjs.ensureAgentCaret; exports.expandReplacement = _chunkT4XWVPJKcjs.expandReplacement; exports.fileImportPluginKey = _chunkJ3B45HTAcjs.fileImportPluginKey; exports.findAllMatches = _chunkT4XWVPJKcjs.findAllMatches; exports.findAutocorrection = _chunkJ3B45HTAcjs.findAutocorrection; exports.findCommentRanges = _chunkJ3B45HTAcjs.findCommentRanges; exports.findHexColors = _chunkJ3B45HTAcjs.findHexColors; exports.findReplacePluginKey = _chunkJ3B45HTAcjs.findReplacePluginKey; exports.foldCodePoint = _chunkT4XWVPJKcjs.foldCodePoint; exports.footnotesMarkdownIt = _chunkJ3B45HTAcjs.footnotesMarkdownIt; exports.footnotesPluginKey = _chunkJ3B45HTAcjs.footnotesPluginKey; exports.formatFindStatus = _chunkJ3B45HTAcjs.formatFindStatus; exports.formatReviewTime = _chunkIFHKKVXHcjs.formatReviewTime; exports.fractionRules = _chunkJ3B45HTAcjs.fractionRules; exports.getActiveHeading = _chunkJ3B45HTAcjs.getActiveHeading; exports.getAgentCarets = _chunkT4XWVPJKcjs.getAgentCarets; exports.getBookmarks = _chunkJ3B45HTAcjs.getBookmarks; exports.getCommentAnchors = _chunkJ3B45HTAcjs.getCommentAnchors; exports.getCommentAuthor = _chunkJ3B45HTAcjs.getCommentAuthor; exports.getCommentIdsAt = _chunkJ3B45HTAcjs.getCommentIdsAt; exports.getCommentStore = _chunkJ3B45HTAcjs.getCommentStore; exports.getCrossReferenceTargets = _chunkJ3B45HTAcjs.getCrossReferenceTargets; exports.getDocumentCharts = _chunkT4XWVPJKcjs.getDocumentCharts; exports.getDocumentStructureCommandItems = _chunkJ3B45HTAcjs.getDocumentStructureCommandItems; exports.getFindReplaceState = _chunkJ3B45HTAcjs.getFindReplaceState; exports.getFindReplaceStore = _chunkJ3B45HTAcjs.getFindReplaceStore; exports.getFootnotes = _chunkJ3B45HTAcjs.getFootnotes; exports.getMentionNodes = _chunkJ3B45HTAcjs.getMentionNodes; exports.getOutline = _chunkJ3B45HTAcjs.getOutline; exports.getParagraphStyleAt = _chunkJ3B45HTAcjs.getParagraphStyleAt; exports.getStyleRegistry = _chunkJ3B45HTAcjs.getStyleRegistry; exports.getTableActionState = _chunkT4XWVPJKcjs.getTableActionState; exports.getTableOfContentsEntries = _chunkJ3B45HTAcjs.getTableOfContentsEntries; exports.getTableState = _chunkT4XWVPJKcjs.getTableState; exports.getTrackChangesStore = _chunkIFHKKVXHcjs.getTrackChangesStore; exports.getTrackedChangeAt = _chunkIFHKKVXHcjs.getTrackedChangeAt; exports.getTrackedChanges = _chunkIFHKKVXHcjs.getTrackedChanges; exports.handleImageInsertion = _chunkJ3B45HTAcjs.handleImageInsertion; exports.handleTablePasteWithoutNesting = _chunkT4XWVPJKcjs.handleTablePasteWithoutNesting; exports.imagePastePluginKey = _chunkJ3B45HTAcjs.imagePastePluginKey; exports.insertImageNode = _chunkJ3B45HTAcjs.insertImageNode; exports.insertSliceAfterTable = _chunkT4XWVPJKcjs.insertSliceAfterTable; exports.isChartEnabled = _chunkT4XWVPJKcjs.isChartEnabled; exports.isGfmTable = _chunkT4XWVPJKcjs.isGfmTable; exports.isInTableCell = _chunkT4XWVPJKcjs.isInTableCell; exports.isInsidePromptToken = _chunkJ3B45HTAcjs.isInsidePromptToken; exports.isMoveSized = _chunkIFHKKVXHcjs.isMoveSized; exports.isParagraphStyleAvailable = _chunkJ3B45HTAcjs.isParagraphStyleAvailable; exports.isSelectionInTable = _chunkT4XWVPJKcjs.isSelectionInTable; exports.isTableEnabled = _chunkT4XWVPJKcjs.isTableEnabled; exports.isTrackChangesEnabled = _chunkIFHKKVXHcjs.isTrackChangesEnabled; exports.isValidStyleId = _chunkO6FO6VI3cjs.isValidStyleId; exports.markAgentChanges = _chunkT4XWVPJKcjs.markAgentChanges; exports.navigateToHeading = _chunkJ3B45HTAcjs.navigateToHeading; exports.normalizeSparklineValues = _chunkT4XWVPJKcjs.normalizeSparklineValues; exports.normalizeTableCellAlignment = _chunkT4XWVPJKcjs.normalizeTableCellAlignment; exports.normalizeTableCellColor = _chunkT4XWVPJKcjs.normalizeTableCellColor; exports.outermostTableDepth = _chunkT4XWVPJKcjs.outermostTableDepth; exports.outlinePluginKey = _chunkJ3B45HTAcjs.outlinePluginKey; exports.paragraphStylesPluginKey = _chunkJ3B45HTAcjs.paragraphStylesPluginKey; exports.parseReplacement = _chunkT4XWVPJKcjs.parseReplacement; exports.removeImageNode = _chunkJ3B45HTAcjs.removeImageNode; exports.replaceWithTextTransaction = _chunkT4XWVPJKcjs.replaceWithTextTransaction; exports.resolveTrackedChanges = _chunkIFHKKVXHcjs.resolveTrackedChanges; exports.richClipboardPluginKey = _chunkJ3B45HTAcjs.richClipboardPluginKey; exports.runTableAction = _chunkT4XWVPJKcjs.runTableAction; exports.safeCSSValue = _chunkO6FO6VI3cjs.safeCSSValue; exports.searchDocument = _chunkT4XWVPJKcjs.searchDocument; exports.setAgentCaret = _chunkT4XWVPJKcjs.setAgentCaret; exports.setMentionRoleAt = _chunkJ3B45HTAcjs.setMentionRoleAt; exports.shouldShowTableBubbleMenu = _chunkT4XWVPJKcjs.shouldShowTableBubbleMenu; exports.sliceContainsTable = _chunkT4XWVPJKcjs.sliceContainsTable; exports.smartQuoteRules = _chunkJ3B45HTAcjs.smartQuoteRules; exports.smilieAutocorrectRules = _chunkJ3B45HTAcjs.smilieAutocorrectRules; exports.sparklineLabel = _chunkT4XWVPJKcjs.sparklineLabel; exports.staticChartSvg = _chunkT4XWVPJKcjs.staticChartSvg; exports.symbolRules = _chunkJ3B45HTAcjs.symbolRules; exports.syncFootnotes = _chunkJ3B45HTAcjs.syncFootnotes; exports.tableNestingPluginKey = _chunkT4XWVPJKcjs.tableNestingPluginKey; exports.tableOfContentsMarkdownIt = _chunkJ3B45HTAcjs.tableOfContentsMarkdownIt; exports.tableOfContentsPluginKey = _chunkJ3B45HTAcjs.tableOfContentsPluginKey; exports.trackChangesPluginKey = _chunkIFHKKVXHcjs.trackChangesPluginKey; exports.trackedChangeLabel = _chunkIFHKKVXHcjs.trackedChangeLabel; exports.twoInitialCapitalsRules = _chunkJ3B45HTAcjs.twoInitialCapitalsRules; exports.typeAgentText = _chunkT4XWVPJKcjs.typeAgentText; exports.unnestTables = _chunkT4XWVPJKcjs.unnestTables; exports.updateImageSrc = _chunkJ3B45HTAcjs.updateImageSrc; exports.validateFindPattern = _chunkJ3B45HTAcjs.validateFindPattern; exports.writeRichClipboard = _chunkJ3B45HTAcjs.writeRichClipboard;
|
|
410
410
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["/home/runner/work/editor/editor/packages/core/dist/extensions/index.cjs"],"names":[],"mappings":"AAAA;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,yDAA8B;AAC9B,iCAA8B;AAC9B;AACE;AACA;AACA;AACA;AACA;AACA;AACF,yDAA8B;AAC9B,iCAA8B;AAC9B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,yDAA8B;AAC9B,iCAA8B;AAC9B,iCAA8B;AAC9B,iCAA8B;AAC9B,iCAA8B;AAC9B,iCAA8B;AAC9B,iCAA8B;AAC9B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,yDAA8B;AAC9B,iCAA8B;AAC9B,iCAA8B;AAC9B,iCAA8B;AAC9B,iCAA8B;AAC9B
|
|
1
|
+
{"version":3,"sources":["/home/runner/work/editor/editor/packages/core/dist/extensions/index.cjs"],"names":[],"mappings":"AAAA;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,yDAA8B;AAC9B,iCAA8B;AAC9B;AACE;AACA;AACA;AACA;AACA;AACA;AACF,yDAA8B;AAC9B,iCAA8B;AAC9B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,yDAA8B;AAC9B,iCAA8B;AAC9B,iCAA8B;AAC9B,iCAA8B;AAC9B,iCAA8B;AAC9B,iCAA8B;AAC9B,iCAA8B;AAC9B,iCAA8B;AAC9B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,yDAA8B;AAC9B,iCAA8B;AAC9B,iCAA8B;AAC9B,iCAA8B;AAC9B,iCAA8B;AAC9B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,gwYAAC","file":"/home/runner/work/editor/editor/packages/core/dist/extensions/index.cjs"}
|
package/dist/extensions/index.js
CHANGED
|
@@ -95,7 +95,7 @@ import {
|
|
|
95
95
|
updateImageSrc,
|
|
96
96
|
validateFindPattern,
|
|
97
97
|
writeRichClipboard
|
|
98
|
-
} from "../chunk-
|
|
98
|
+
} from "../chunk-FWEO3HSL.js";
|
|
99
99
|
import "../chunk-QJSOZFCZ.js";
|
|
100
100
|
import {
|
|
101
101
|
DEFAULT_STYLES,
|
|
@@ -171,13 +171,14 @@ import {
|
|
|
171
171
|
tableNestingPluginKey,
|
|
172
172
|
typeAgentText,
|
|
173
173
|
unnestTables
|
|
174
|
-
} from "../chunk-
|
|
174
|
+
} from "../chunk-OK7T2LHK.js";
|
|
175
175
|
import "../chunk-ZOH6X3VR.js";
|
|
176
176
|
import "../chunk-OEFCLWZ3.js";
|
|
177
177
|
import "../chunk-633QC34G.js";
|
|
178
178
|
import "../chunk-P6ODPZ4W.js";
|
|
179
|
-
import "../chunk-
|
|
180
|
-
import "../chunk-
|
|
179
|
+
import "../chunk-WON34HKM.js";
|
|
180
|
+
import "../chunk-UKI64KUD.js";
|
|
181
|
+
import "../chunk-O5RYH2PG.js";
|
|
181
182
|
import {
|
|
182
183
|
BLOCK_CHANGE_ATTRIBUTE,
|
|
183
184
|
CommentStore,
|
|
@@ -207,7 +208,6 @@ import {
|
|
|
207
208
|
trackChangesPluginKey,
|
|
208
209
|
trackedChangeLabel
|
|
209
210
|
} from "../chunk-SWE3NPOU.js";
|
|
210
|
-
import "../chunk-O5RYH2PG.js";
|
|
211
211
|
import "../chunk-EKYHKQPG.js";
|
|
212
212
|
import "../chunk-664LQYFJ.js";
|
|
213
213
|
import "../chunk-33AHNSEB.js";
|