@gjermundgaraba/pixel-paper 0.1.1 → 0.2.1
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 +11 -1
- package/THIRD_PARTY_NOTICES.md +25 -0
- package/dist/board/board.d.ts +12 -12
- package/dist/copy-button/copy-button.d.ts +4 -4
- package/dist/index.d.ts +44 -43
- package/dist/index.js +2 -1
- package/dist/inline-input/inline-input.d.ts +6 -6
- package/dist/markdown-editor/element.d.ts +4 -0
- package/dist/markdown-editor/element.js +128 -0
- package/dist/markdown-editor/engine.js +94 -0
- package/dist/markdown-editor/index.d.ts +5 -0
- package/dist/markdown-editor/index.js +6 -0
- package/dist/markdown-editor/link-policy.js +18 -0
- package/dist/markdown-editor/live/live.js +438 -0
- package/dist/markdown-editor/live/theme.js +117 -0
- package/dist/markdown-editor/markdown-editor.d.ts +11 -0
- package/dist/markdown-editor/markdown-editor.js +22 -0
- package/dist/markdown-editor/reconcile.js +24 -0
- package/dist/menu/menu.d.ts +4 -4
- package/dist/sortable/sortable.d.ts +12 -12
- package/dist/toast/toast.d.ts +8 -8
- package/package.json +16 -2
- package/src/pixel-paper.css +46 -0
|
@@ -187,8 +187,6 @@ export declare const update: (model: Model, message: Message) => Readonly<{
|
|
|
187
187
|
readonly orientation: "Horizontal" | "Vertical";
|
|
188
188
|
readonly activationThreshold: number;
|
|
189
189
|
readonly dragState: {
|
|
190
|
-
readonly _tag: "Idle";
|
|
191
|
-
} | {
|
|
192
190
|
readonly _tag: "Dragging";
|
|
193
191
|
readonly itemId: string;
|
|
194
192
|
readonly sourceContainerId: string;
|
|
@@ -205,6 +203,8 @@ export declare const update: (model: Model, message: Message) => Readonly<{
|
|
|
205
203
|
readonly containerId: string;
|
|
206
204
|
readonly index: number;
|
|
207
205
|
}>;
|
|
206
|
+
} | {
|
|
207
|
+
readonly _tag: "Idle";
|
|
208
208
|
} | {
|
|
209
209
|
readonly _tag: "KeyboardDragging";
|
|
210
210
|
readonly itemId: string;
|
|
@@ -344,8 +344,6 @@ export declare const subscriptions: <Prefix extends string>(keyPrefix: Prefix) =
|
|
|
344
344
|
readonly orientation: "Horizontal" | "Vertical";
|
|
345
345
|
readonly activationThreshold: number;
|
|
346
346
|
readonly dragState: {
|
|
347
|
-
readonly _tag: "Idle";
|
|
348
|
-
} | {
|
|
349
347
|
readonly _tag: "Dragging";
|
|
350
348
|
readonly itemId: string;
|
|
351
349
|
readonly sourceContainerId: string;
|
|
@@ -362,6 +360,8 @@ export declare const subscriptions: <Prefix extends string>(keyPrefix: Prefix) =
|
|
|
362
360
|
readonly containerId: string;
|
|
363
361
|
readonly index: number;
|
|
364
362
|
}>;
|
|
363
|
+
} | {
|
|
364
|
+
readonly _tag: "Idle";
|
|
365
365
|
} | {
|
|
366
366
|
readonly _tag: "KeyboardDragging";
|
|
367
367
|
readonly itemId: string;
|
|
@@ -494,8 +494,6 @@ export declare const subscriptions: <Prefix extends string>(keyPrefix: Prefix) =
|
|
|
494
494
|
readonly orientation: "Horizontal" | "Vertical";
|
|
495
495
|
readonly activationThreshold: number;
|
|
496
496
|
readonly dragState: {
|
|
497
|
-
readonly _tag: "Idle";
|
|
498
|
-
} | {
|
|
499
497
|
readonly _tag: "Dragging";
|
|
500
498
|
readonly itemId: string;
|
|
501
499
|
readonly sourceContainerId: string;
|
|
@@ -512,6 +510,8 @@ export declare const subscriptions: <Prefix extends string>(keyPrefix: Prefix) =
|
|
|
512
510
|
readonly containerId: string;
|
|
513
511
|
readonly index: number;
|
|
514
512
|
}>;
|
|
513
|
+
} | {
|
|
514
|
+
readonly _tag: "Idle";
|
|
515
515
|
} | {
|
|
516
516
|
readonly _tag: "KeyboardDragging";
|
|
517
517
|
readonly itemId: string;
|
|
@@ -640,8 +640,6 @@ export declare const subscriptions: <Prefix extends string>(keyPrefix: Prefix) =
|
|
|
640
640
|
readonly orientation: "Horizontal" | "Vertical";
|
|
641
641
|
readonly activationThreshold: number;
|
|
642
642
|
readonly dragState: {
|
|
643
|
-
readonly _tag: "Idle";
|
|
644
|
-
} | {
|
|
645
643
|
readonly _tag: "Dragging";
|
|
646
644
|
readonly itemId: string;
|
|
647
645
|
readonly sourceContainerId: string;
|
|
@@ -658,6 +656,8 @@ export declare const subscriptions: <Prefix extends string>(keyPrefix: Prefix) =
|
|
|
658
656
|
readonly containerId: string;
|
|
659
657
|
readonly index: number;
|
|
660
658
|
}>;
|
|
659
|
+
} | {
|
|
660
|
+
readonly _tag: "Idle";
|
|
661
661
|
} | {
|
|
662
662
|
readonly _tag: "KeyboardDragging";
|
|
663
663
|
readonly itemId: string;
|
|
@@ -786,8 +786,6 @@ export declare const subscriptions: <Prefix extends string>(keyPrefix: Prefix) =
|
|
|
786
786
|
readonly orientation: "Horizontal" | "Vertical";
|
|
787
787
|
readonly activationThreshold: number;
|
|
788
788
|
readonly dragState: {
|
|
789
|
-
readonly _tag: "Idle";
|
|
790
|
-
} | {
|
|
791
789
|
readonly _tag: "Dragging";
|
|
792
790
|
readonly itemId: string;
|
|
793
791
|
readonly sourceContainerId: string;
|
|
@@ -804,6 +802,8 @@ export declare const subscriptions: <Prefix extends string>(keyPrefix: Prefix) =
|
|
|
804
802
|
readonly containerId: string;
|
|
805
803
|
readonly index: number;
|
|
806
804
|
}>;
|
|
805
|
+
} | {
|
|
806
|
+
readonly _tag: "Idle";
|
|
807
807
|
} | {
|
|
808
808
|
readonly _tag: "KeyboardDragging";
|
|
809
809
|
readonly itemId: string;
|
|
@@ -974,8 +974,6 @@ export declare const view: import("foldkit/submodel").View<{
|
|
|
974
974
|
readonly orientation: "Horizontal" | "Vertical";
|
|
975
975
|
readonly activationThreshold: number;
|
|
976
976
|
readonly dragState: {
|
|
977
|
-
readonly _tag: "Idle";
|
|
978
|
-
} | {
|
|
979
977
|
readonly _tag: "Dragging";
|
|
980
978
|
readonly itemId: string;
|
|
981
979
|
readonly sourceContainerId: string;
|
|
@@ -992,6 +990,8 @@ export declare const view: import("foldkit/submodel").View<{
|
|
|
992
990
|
readonly containerId: string;
|
|
993
991
|
readonly index: number;
|
|
994
992
|
}>;
|
|
993
|
+
} | {
|
|
994
|
+
readonly _tag: "Idle";
|
|
995
995
|
} | {
|
|
996
996
|
readonly _tag: "KeyboardDragging";
|
|
997
997
|
readonly itemId: string;
|
package/dist/toast/toast.d.ts
CHANGED
|
@@ -315,15 +315,15 @@ export declare const update: (model: Model, message: Message) => Readonly<{
|
|
|
315
315
|
readonly _tag: "GotAnimationMessage";
|
|
316
316
|
readonly entryId: string;
|
|
317
317
|
readonly message: {
|
|
318
|
+
readonly _tag: "Hid";
|
|
319
|
+
} | {
|
|
320
|
+
readonly _tag: "Showed";
|
|
321
|
+
} | {
|
|
318
322
|
readonly _tag: "CompletedWaitForPaint";
|
|
319
323
|
readonly generation: number;
|
|
320
324
|
} | {
|
|
321
325
|
readonly _tag: "EndedAnimation";
|
|
322
326
|
readonly generation: number;
|
|
323
|
-
} | {
|
|
324
|
-
readonly _tag: "Hid";
|
|
325
|
-
} | {
|
|
326
|
-
readonly _tag: "Showed";
|
|
327
327
|
};
|
|
328
328
|
} | {
|
|
329
329
|
readonly _tag: "HoveredEntry";
|
|
@@ -509,15 +509,15 @@ export declare const view: import("foldkit/submodel").View<{
|
|
|
509
509
|
readonly _tag: "GotAnimationMessage";
|
|
510
510
|
readonly entryId: string;
|
|
511
511
|
readonly message: {
|
|
512
|
+
readonly _tag: "Hid";
|
|
513
|
+
} | {
|
|
514
|
+
readonly _tag: "Showed";
|
|
515
|
+
} | {
|
|
512
516
|
readonly _tag: "CompletedWaitForPaint";
|
|
513
517
|
readonly generation: number;
|
|
514
518
|
} | {
|
|
515
519
|
readonly _tag: "EndedAnimation";
|
|
516
520
|
readonly generation: number;
|
|
517
|
-
} | {
|
|
518
|
-
readonly _tag: "Hid";
|
|
519
|
-
} | {
|
|
520
|
-
readonly _tag: "Showed";
|
|
521
521
|
};
|
|
522
522
|
} | {
|
|
523
523
|
readonly _tag: "HoveredEntry";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gjermundgaraba/pixel-paper",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.1",
|
|
4
4
|
"description": "Printed-paper Foldkit components, tokens and stylesheet.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -12,7 +12,8 @@
|
|
|
12
12
|
"dist",
|
|
13
13
|
"fonts",
|
|
14
14
|
"src/pixel-paper.css",
|
|
15
|
-
"src/tokens.css"
|
|
15
|
+
"src/tokens.css",
|
|
16
|
+
"THIRD_PARTY_NOTICES.md"
|
|
16
17
|
],
|
|
17
18
|
"type": "module",
|
|
18
19
|
"sideEffects": [
|
|
@@ -27,16 +28,29 @@
|
|
|
27
28
|
"types": "./dist/scheme/script.d.ts",
|
|
28
29
|
"default": "./dist/scheme/script.js"
|
|
29
30
|
},
|
|
31
|
+
"./markdown-editor/element": {
|
|
32
|
+
"types": "./dist/markdown-editor/element.d.ts",
|
|
33
|
+
"default": "./dist/markdown-editor/element.js"
|
|
34
|
+
},
|
|
30
35
|
"./pixel-paper.css": "./src/pixel-paper.css"
|
|
31
36
|
},
|
|
32
37
|
"publishConfig": {
|
|
33
38
|
"access": "public"
|
|
34
39
|
},
|
|
35
40
|
"dependencies": {
|
|
41
|
+
"@codemirror/commands": "6.11.1",
|
|
42
|
+
"@codemirror/lang-markdown": "6.5.2",
|
|
43
|
+
"@codemirror/language": "6.13.1",
|
|
44
|
+
"@codemirror/merge": "6.12.3",
|
|
45
|
+
"@codemirror/state": "6.7.6",
|
|
46
|
+
"@codemirror/view": "6.43.15",
|
|
47
|
+
"@lezer/common": "1.5.4",
|
|
48
|
+
"@lezer/markdown": "1.8.1",
|
|
36
49
|
"diff": "^9.0.0"
|
|
37
50
|
},
|
|
38
51
|
"devDependencies": {
|
|
39
52
|
"@effect/platform-browser": "4.0.6",
|
|
53
|
+
"@effect/vitest": "4.0.6",
|
|
40
54
|
"@foldkit/ui": "0.169.0",
|
|
41
55
|
"@foldkit/vite-plugin": "0.28.0",
|
|
42
56
|
"@types/node": "26.6.5",
|
package/src/pixel-paper.css
CHANGED
|
@@ -1673,6 +1673,52 @@ button.choice {
|
|
|
1673
1673
|
font: var(--type-body)/1.5 var(--font-body);
|
|
1674
1674
|
}
|
|
1675
1675
|
|
|
1676
|
+
pp-markdown-editor {
|
|
1677
|
+
display: block;
|
|
1678
|
+
position: relative;
|
|
1679
|
+
}
|
|
1680
|
+
|
|
1681
|
+
pp-markdown-editor:has(.markdown-surface) textarea {
|
|
1682
|
+
position: absolute;
|
|
1683
|
+
width: 1px;
|
|
1684
|
+
height: 1px;
|
|
1685
|
+
min-height: 0;
|
|
1686
|
+
padding: 0;
|
|
1687
|
+
border: 0;
|
|
1688
|
+
opacity: 0;
|
|
1689
|
+
pointer-events: none;
|
|
1690
|
+
overflow: hidden;
|
|
1691
|
+
clip-path: inset(50%);
|
|
1692
|
+
resize: none;
|
|
1693
|
+
}
|
|
1694
|
+
|
|
1695
|
+
.markdown-surface {
|
|
1696
|
+
border-bottom: 1px dotted var(--muted);
|
|
1697
|
+
padding-bottom: 1px;
|
|
1698
|
+
}
|
|
1699
|
+
|
|
1700
|
+
.markdown-surface .cm-scroller {
|
|
1701
|
+
min-height: max(96px, calc(var(--rows) * 1lh));
|
|
1702
|
+
}
|
|
1703
|
+
|
|
1704
|
+
.markdown-surface:focus-within,
|
|
1705
|
+
.field:has([aria-invalid="true"]) .markdown-surface {
|
|
1706
|
+
border-bottom: var(--line) solid var(--ink);
|
|
1707
|
+
padding-bottom: 0;
|
|
1708
|
+
}
|
|
1709
|
+
|
|
1710
|
+
.field:has([aria-invalid="true"]) .markdown-surface {
|
|
1711
|
+
border-bottom-color: var(--red);
|
|
1712
|
+
}
|
|
1713
|
+
|
|
1714
|
+
pp-markdown-editor:disabled .markdown-surface {
|
|
1715
|
+
border-bottom-color: transparent;
|
|
1716
|
+
}
|
|
1717
|
+
|
|
1718
|
+
pp-markdown-editor:disabled .cm-content {
|
|
1719
|
+
color: var(--muted);
|
|
1720
|
+
}
|
|
1721
|
+
|
|
1676
1722
|
textarea::-webkit-resizer {
|
|
1677
1723
|
background: linear-gradient(135deg, transparent 0 50%, var(--ink) 50% 100%);
|
|
1678
1724
|
}
|