sketchmark 0.1.8 → 0.2.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/index.cjs +3 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +3 -0
- package/dist/index.js.map +1 -1
- package/dist/parser/index.d.ts.map +1 -1
- package/dist/sketchmark.iife.js +3 -0
- package/package.json +1 -1
- package/dist/share/encrypted.d.ts +0 -11
- package/dist/share/encrypted.d.ts.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/parser/index.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EACV,UAAU,EAmBX,MAAM,cAAc,CAAC;AAEtB,YAAY,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AA8B/C,qBAAa,UAAW,SAAQ,KAAK;IAG1B,IAAI,EAAE,MAAM;IACZ,GAAG,EAAE,MAAM;gBAFlB,GAAG,EAAE,MAAM,EACJ,IAAI,EAAE,MAAM,EACZ,GAAG,EAAE,MAAM;CAKrB;AA8BD,wBAAgB,KAAK,CAAC,GAAG,EAAE,MAAM,GAAG,UAAU,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/parser/index.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EACV,UAAU,EAmBX,MAAM,cAAc,CAAC;AAEtB,YAAY,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AA8B/C,qBAAa,UAAW,SAAQ,KAAK;IAG1B,IAAI,EAAE,MAAM;IACZ,GAAG,EAAE,MAAM;gBAFlB,GAAG,EAAE,MAAM,EACJ,IAAI,EAAE,MAAM,EACZ,GAAG,EAAE,MAAM;CAKrB;AA8BD,wBAAgB,KAAK,CAAC,GAAG,EAAE,MAAM,GAAG,UAAU,CAu7B7C"}
|
package/dist/sketchmark.iife.js
CHANGED
|
@@ -815,6 +815,8 @@ var AIDiagram = (function (exports) {
|
|
|
815
815
|
skipNL();
|
|
816
816
|
while (cur().type !== "EOF" && cur().value !== "end") {
|
|
817
817
|
skipNL();
|
|
818
|
+
if (cur().type === "RBRACE")
|
|
819
|
+
break;
|
|
818
820
|
const v = cur().value;
|
|
819
821
|
if (v === "data") {
|
|
820
822
|
dataRows = parseDataArray();
|
|
@@ -835,6 +837,7 @@ var AIDiagram = (function (exports) {
|
|
|
835
837
|
v === "config" || // ← ADD
|
|
836
838
|
v === "theme" || // ← ADD
|
|
837
839
|
v === "style" ||
|
|
840
|
+
v === "markdown" ||
|
|
838
841
|
CHART_TYPES.includes(v)) {
|
|
839
842
|
break;
|
|
840
843
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sketchmark",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"description": "A plain-text DSL for hand-drawn diagrams. Write boxes, edges, and groups as code — renders sketchy SVG/Canvas via rough.js with a built-in step-by-step animation system.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"diagram",
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Encrypt DSL, upload to worker, return shareable URL.
|
|
3
|
-
* The URL fragment (#key=...) never reaches the server.
|
|
4
|
-
*/
|
|
5
|
-
export declare function shareDiagram(dsl: string): Promise<string>;
|
|
6
|
-
/**
|
|
7
|
-
* Read ?s= and #key= from the current URL, fetch + decrypt the diagram.
|
|
8
|
-
* Returns null if no share params found.
|
|
9
|
-
*/
|
|
10
|
-
export declare function loadSharedDiagram(): Promise<string | null>;
|
|
11
|
-
//# sourceMappingURL=encrypted.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"encrypted.d.ts","sourceRoot":"","sources":["../../src/share/encrypted.ts"],"names":[],"mappings":"AAwEA;;;GAGG;AACH,wBAAsB,YAAY,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAiB/D;AAED;;;GAGG;AACH,wBAAsB,iBAAiB,IAAI,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CAkBhE"}
|