@grida/svg-editor 1.0.0-alpha.1 → 1.0.0-alpha.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/dom.d.mts +1 -1
- package/dist/dom.d.ts +1 -1
- package/dist/{editor-CTtU2gu4.d.ts → editor-BryibVvr.d.mts} +5 -0
- package/dist/{editor-DQWUWrVZ.js → editor-DllAMsDu.js} +2 -0
- package/dist/{editor-B5z-gTML.mjs → editor-M6j8XGO5.mjs} +2 -0
- package/dist/{editor-JY7AQrR1.d.mts → editor-klT8wu-x.d.ts} +5 -0
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/dist/react.d.mts +1 -1
- package/dist/react.d.ts +1 -1
- package/dist/react.js +1 -1
- package/dist/react.mjs +1 -1
- package/package.json +5 -5
package/dist/dom.d.mts
CHANGED
package/dist/dom.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import * as _$_grida_history0 from "@grida/history";
|
|
1
2
|
import { Keybinding, Platform } from "@grida/keybinding";
|
|
2
3
|
|
|
3
4
|
//#region src/commands/registry.d.ts
|
|
@@ -594,6 +595,10 @@ declare function createSvgEditor(opts: CreateSvgEditorOptions): {
|
|
|
594
595
|
providers: Providers;
|
|
595
596
|
_internal: {
|
|
596
597
|
doc: SvgDocument;
|
|
598
|
+
history: {
|
|
599
|
+
preview: (label: string) => _$_grida_history0.Preview;
|
|
600
|
+
};
|
|
601
|
+
emit: () => void;
|
|
597
602
|
set_content_edit_driver(fn: ((target: NodeId) => boolean) | null): void;
|
|
598
603
|
/** Fires the driver immediately with the current override so the
|
|
599
604
|
* surface can sync state on attach. */
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import * as _$_grida_history0 from "@grida/history";
|
|
1
2
|
import { Keybinding, Platform } from "@grida/keybinding";
|
|
2
3
|
|
|
3
4
|
//#region src/commands/registry.d.ts
|
|
@@ -594,6 +595,10 @@ declare function createSvgEditor(opts: CreateSvgEditorOptions): {
|
|
|
594
595
|
providers: Providers;
|
|
595
596
|
_internal: {
|
|
596
597
|
doc: SvgDocument;
|
|
598
|
+
history: {
|
|
599
|
+
preview: (label: string) => _$_grida_history0.Preview;
|
|
600
|
+
};
|
|
601
|
+
emit: () => void;
|
|
597
602
|
set_content_edit_driver(fn: ((target: NodeId) => boolean) | null): void;
|
|
598
603
|
/** Fires the driver immediately with the current override so the
|
|
599
604
|
* surface can sync state on attach. */
|
package/dist/index.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { A as RadialGradientDefinition, C as PaintFallback, D as PropertyValue, E as PreviewSession, F as KeymapBinding, I as CommandHandler, L as CommandId, M as ReorderDirection, N as Unsubscribe, O as Provenance, P as Vec2, S as Paint, T as PaintValue, _ as GradientStop, a as SurfaceHandle, b as Mode, c as ClipboardProvider, d as EditorState, f as EditorStyle, g as GradientEntry, h as GradientDefinition, i as DomComputedResolver, j as Rect, k as Providers, l as Color, m as FontResolver, n as CreateSvgEditorOptions, o as SvgEditor, p as FileIOProvider, r as DomComputedPaint, s as createSvgEditor, t as Commands, u as DEFAULT_STYLE, v as InvalidComputedValue, w as PaintPreviewSession, x as NodeId, y as LinearGradientDefinition } from "./editor-
|
|
1
|
+
import { A as RadialGradientDefinition, C as PaintFallback, D as PropertyValue, E as PreviewSession, F as KeymapBinding, I as CommandHandler, L as CommandId, M as ReorderDirection, N as Unsubscribe, O as Provenance, P as Vec2, S as Paint, T as PaintValue, _ as GradientStop, a as SurfaceHandle, b as Mode, c as ClipboardProvider, d as EditorState, f as EditorStyle, g as GradientEntry, h as GradientDefinition, i as DomComputedResolver, j as Rect, k as Providers, l as Color, m as FontResolver, n as CreateSvgEditorOptions, o as SvgEditor, p as FileIOProvider, r as DomComputedPaint, s as createSvgEditor, t as Commands, u as DEFAULT_STYLE, v as InvalidComputedValue, w as PaintPreviewSession, x as NodeId, y as LinearGradientDefinition } from "./editor-BryibVvr.mjs";
|
|
2
2
|
export { type ClipboardProvider, type Color, type CommandHandler, type CommandId, type Commands, type CreateSvgEditorOptions, DEFAULT_STYLE, type DomComputedPaint, type DomComputedResolver, type EditorState, type EditorStyle, type FileIOProvider, type FontResolver, type GradientDefinition, type GradientEntry, type GradientStop, type InvalidComputedValue, type KeymapBinding, type LinearGradientDefinition, type Mode, type NodeId, type Paint, type PaintFallback, type PaintPreviewSession, type PaintValue, type PreviewSession, type PropertyValue, type Provenance, type Providers, type RadialGradientDefinition, type Rect, type ReorderDirection, type SurfaceHandle, type SvgEditor, type Unsubscribe, type Vec2, createSvgEditor };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { A as RadialGradientDefinition, C as PaintFallback, D as PropertyValue, E as PreviewSession, F as KeymapBinding, I as CommandHandler, L as CommandId, M as ReorderDirection, N as Unsubscribe, O as Provenance, P as Vec2, S as Paint, T as PaintValue, _ as GradientStop, a as SurfaceHandle, b as Mode, c as ClipboardProvider, d as EditorState, f as EditorStyle, g as GradientEntry, h as GradientDefinition, i as DomComputedResolver, j as Rect, k as Providers, l as Color, m as FontResolver, n as CreateSvgEditorOptions, o as SvgEditor, p as FileIOProvider, r as DomComputedPaint, s as createSvgEditor, t as Commands, u as DEFAULT_STYLE, v as InvalidComputedValue, w as PaintPreviewSession, x as NodeId, y as LinearGradientDefinition } from "./editor-
|
|
1
|
+
import { A as RadialGradientDefinition, C as PaintFallback, D as PropertyValue, E as PreviewSession, F as KeymapBinding, I as CommandHandler, L as CommandId, M as ReorderDirection, N as Unsubscribe, O as Provenance, P as Vec2, S as Paint, T as PaintValue, _ as GradientStop, a as SurfaceHandle, b as Mode, c as ClipboardProvider, d as EditorState, f as EditorStyle, g as GradientEntry, h as GradientDefinition, i as DomComputedResolver, j as Rect, k as Providers, l as Color, m as FontResolver, n as CreateSvgEditorOptions, o as SvgEditor, p as FileIOProvider, r as DomComputedPaint, s as createSvgEditor, t as Commands, u as DEFAULT_STYLE, v as InvalidComputedValue, w as PaintPreviewSession, x as NodeId, y as LinearGradientDefinition } from "./editor-klT8wu-x.js";
|
|
2
2
|
export { type ClipboardProvider, type Color, type CommandHandler, type CommandId, type Commands, type CreateSvgEditorOptions, DEFAULT_STYLE, type DomComputedPaint, type DomComputedResolver, type EditorState, type EditorStyle, type FileIOProvider, type FontResolver, type GradientDefinition, type GradientEntry, type GradientStop, type InvalidComputedValue, type KeymapBinding, type LinearGradientDefinition, type Mode, type NodeId, type Paint, type PaintFallback, type PaintPreviewSession, type PaintValue, type PreviewSession, type PropertyValue, type Provenance, type Providers, type RadialGradientDefinition, type Rect, type ReorderDirection, type SurfaceHandle, type SvgEditor, type Unsubscribe, type Vec2, createSvgEditor };
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_editor = require("./editor-
|
|
2
|
+
const require_editor = require("./editor-DllAMsDu.js");
|
|
3
3
|
exports.DEFAULT_STYLE = require_editor.DEFAULT_STYLE;
|
|
4
4
|
exports.createSvgEditor = require_editor.createSvgEditor;
|
package/dist/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as DEFAULT_STYLE, t as createSvgEditor } from "./editor-
|
|
1
|
+
import { n as DEFAULT_STYLE, t as createSvgEditor } from "./editor-M6j8XGO5.mjs";
|
|
2
2
|
export { DEFAULT_STYLE, createSvgEditor };
|
package/dist/react.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { d as EditorState, f as EditorStyle, k as Providers, o as SvgEditor, t as Commands } from "./editor-
|
|
1
|
+
import { d as EditorState, f as EditorStyle, k as Providers, o as SvgEditor, t as Commands } from "./editor-BryibVvr.mjs";
|
|
2
2
|
import { ReactNode } from "react";
|
|
3
3
|
import * as _$react_jsx_runtime0 from "react/jsx-runtime";
|
|
4
4
|
|
package/dist/react.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { d as EditorState, f as EditorStyle, k as Providers, o as SvgEditor, t as Commands } from "./editor-
|
|
1
|
+
import { d as EditorState, f as EditorStyle, k as Providers, o as SvgEditor, t as Commands } from "./editor-klT8wu-x.js";
|
|
2
2
|
import * as _$react_jsx_runtime0 from "react/jsx-runtime";
|
|
3
3
|
import { ReactNode } from "react";
|
|
4
4
|
|
package/dist/react.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const require_dom = require("./dom-CfP_ZURh.js");
|
|
4
|
-
const require_editor = require("./editor-
|
|
4
|
+
const require_editor = require("./editor-DllAMsDu.js");
|
|
5
5
|
let react = require("react");
|
|
6
6
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
7
7
|
//#region src/react.tsx
|
package/dist/react.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { t as createSvgEditor } from "./editor-
|
|
2
|
+
import { t as createSvgEditor } from "./editor-M6j8XGO5.mjs";
|
|
3
3
|
import { t as attach_dom_surface } from "./dom-kA8NDuVh.mjs";
|
|
4
4
|
import { createContext, useContext, useEffect, useMemo, useRef, useSyncExternalStore } from "react";
|
|
5
5
|
import { jsx } from "react/jsx-runtime";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@grida/svg-editor",
|
|
3
|
-
"version": "1.0.0-alpha.
|
|
3
|
+
"version": "1.0.0-alpha.2",
|
|
4
4
|
"description": "Headless SVG editor (experimental).",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Grida",
|
|
@@ -34,11 +34,11 @@
|
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"svg-pathdata": "^7.2.0",
|
|
37
|
-
"@grida/hud": "0.1.0",
|
|
38
|
-
"@grida/history": "0.1.0",
|
|
39
37
|
"@grida/cmath": "0.1.0",
|
|
40
|
-
"@grida/
|
|
41
|
-
"@grida/text-editor": "0.1.0"
|
|
38
|
+
"@grida/history": "0.1.0",
|
|
39
|
+
"@grida/text-editor": "0.1.0",
|
|
40
|
+
"@grida/hud": "0.1.0",
|
|
41
|
+
"@grida/keybinding": "0.1.0"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
44
|
"@types/react": "^19",
|