@lapis-notes/lapis-plugin-docs 0.1.0 → 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/CHANGELOG.md
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# @lapis-notes/lapis-plugin-docs
|
|
2
|
+
|
|
3
|
+
## 0.2.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 6f6c81d: Refresh first-party Lapis dependencies to the published versions recorded in this pull request.
|
|
8
|
+
|
|
9
|
+
## 0.2.0
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- Show the note title and tags in a header at the top of each card preview.
|
|
14
|
+
|
|
15
|
+
### Patch Changes
|
|
16
|
+
|
|
17
|
+
- 427fe58: Publish Docs from main with Changesets and npm trusted publishing.
|
package/README.md
CHANGED
|
@@ -25,7 +25,7 @@ state, persistence, and application policy.
|
|
|
25
25
|
|
|
26
26
|
## Current package status
|
|
27
27
|
|
|
28
|
-
- Package version: `@lapis-notes/lapis-plugin-docs@0.1
|
|
28
|
+
- Package version: `@lapis-notes/lapis-plugin-docs@0.2.1`.
|
|
29
29
|
- Runtime plugin id: `docs`.
|
|
30
30
|
- Runtime peers: `@lapis-notes/api@^0.2.6`,
|
|
31
31
|
`@lapismd/design-core@^0.12.1`, `@lapismd/mira@~0.1.4`,
|
|
@@ -65,20 +65,24 @@
|
|
|
65
65
|
{blockSwipeWhenRevealed}
|
|
66
66
|
emptyLabel="No cards yet."
|
|
67
67
|
>
|
|
68
|
+
{#snippet frontHeader(item)}
|
|
69
|
+
{@const stackItem = item as DocsCardStackItem}
|
|
70
|
+
<div class="docs-review-face__meta">
|
|
71
|
+
<span class="docs-review-face__label">{stackItem.noteTitle}</span>
|
|
72
|
+
{#if stackItem.card.tags.length}
|
|
73
|
+
<DocsCardTagChips tags={stackItem.card.tags} />
|
|
74
|
+
{:else if stackItem.dueAt}
|
|
75
|
+
<span class="docs-review-face__label">Due {stackItem.dueAt}</span>
|
|
76
|
+
{/if}
|
|
77
|
+
</div>
|
|
78
|
+
{/snippet}
|
|
79
|
+
|
|
68
80
|
{#snippet front(item, context)}
|
|
69
81
|
{@const stackItem = item as DocsCardStackItem}
|
|
70
82
|
<div
|
|
71
83
|
class="docs-review-face__content docs-review-face__content--front"
|
|
72
84
|
id={stackItem.noteId ? `docs-card-${stackItem.noteId}-${stackItem.card.id}` : undefined}
|
|
73
85
|
>
|
|
74
|
-
<div class="docs-review-face__meta">
|
|
75
|
-
<span class="docs-review-face__label">{stackItem.noteTitle}</span>
|
|
76
|
-
{#if stackItem.card.tags.length}
|
|
77
|
-
<DocsCardTagChips tags={stackItem.card.tags} />
|
|
78
|
-
{:else if stackItem.dueAt}
|
|
79
|
-
<span class="docs-review-face__label">Due {stackItem.dueAt}</span>
|
|
80
|
-
{/if}
|
|
81
|
-
</div>
|
|
82
86
|
<div class="docs-review-face__prompt">
|
|
83
87
|
<span>Question</span>
|
|
84
88
|
<h3>
|
|
@@ -47,6 +47,7 @@
|
|
|
47
47
|
indexControlTarget = 0,
|
|
48
48
|
frontActionLabel = 'Show Answer',
|
|
49
49
|
backActionLabel = 'Show Question',
|
|
50
|
+
frontHeader,
|
|
50
51
|
front,
|
|
51
52
|
back,
|
|
52
53
|
backActions
|
|
@@ -63,6 +64,7 @@
|
|
|
63
64
|
indexControlTarget?: number;
|
|
64
65
|
frontActionLabel?: string;
|
|
65
66
|
backActionLabel?: string;
|
|
67
|
+
frontHeader?: Snippet<[unknown, FlipCardDeckContext]>;
|
|
66
68
|
front: Snippet<[unknown, FlipCardDeckContext]>;
|
|
67
69
|
back: Snippet<[unknown, FlipCardDeckContext]>;
|
|
68
70
|
backActions?: Snippet<[unknown, FlipCardDeckContext]>;
|
|
@@ -469,6 +471,11 @@
|
|
|
469
471
|
>
|
|
470
472
|
{#if peek}
|
|
471
473
|
<article class="flip-card-deck__face flip-card-deck__face--front flip-card-deck__face--peek">
|
|
474
|
+
{#if frontHeader}
|
|
475
|
+
<div class="flip-card-deck__face-header">
|
|
476
|
+
{@render frontHeader(item, context)}
|
|
477
|
+
</div>
|
|
478
|
+
{/if}
|
|
472
479
|
<div class="flip-card-deck__face-scroll">
|
|
473
480
|
{@render front(item, context)}
|
|
474
481
|
</div>
|
|
@@ -476,6 +483,11 @@
|
|
|
476
483
|
{:else}
|
|
477
484
|
<div class="flip-card-deck__flip-inner">
|
|
478
485
|
<article class="flip-card-deck__face flip-card-deck__face--front" aria-hidden={context.revealed} inert={context.revealed}>
|
|
486
|
+
{#if frontHeader}
|
|
487
|
+
<div class="flip-card-deck__face-header">
|
|
488
|
+
{@render frontHeader(item, context)}
|
|
489
|
+
</div>
|
|
490
|
+
{/if}
|
|
479
491
|
<div class="flip-card-deck__face-scroll flip-card-deck__face-scroll--front">
|
|
480
492
|
{@render front(item, context)}
|
|
481
493
|
</div>
|
|
@@ -741,6 +753,11 @@
|
|
|
741
753
|
pointer-events: none;
|
|
742
754
|
}
|
|
743
755
|
|
|
756
|
+
.flip-card-deck__face-header {
|
|
757
|
+
flex: 0 0 auto;
|
|
758
|
+
min-width: 0;
|
|
759
|
+
}
|
|
760
|
+
|
|
744
761
|
.flip-card-deck__face-scroll {
|
|
745
762
|
flex: 1 1 auto;
|
|
746
763
|
min-height: 0;
|
|
@@ -27,6 +27,7 @@ type $$ComponentProps = {
|
|
|
27
27
|
indexControlTarget?: number;
|
|
28
28
|
frontActionLabel?: string;
|
|
29
29
|
backActionLabel?: string;
|
|
30
|
+
frontHeader?: Snippet<[unknown, FlipCardDeckContext]>;
|
|
30
31
|
front: Snippet<[unknown, FlipCardDeckContext]>;
|
|
31
32
|
back: Snippet<[unknown, FlipCardDeckContext]>;
|
|
32
33
|
backActions?: Snippet<[unknown, FlipCardDeckContext]>;
|
package/manifest.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lapis-notes/lapis-plugin-docs",
|
|
3
|
-
"version": "0.1
|
|
3
|
+
"version": "0.2.1",
|
|
4
4
|
"description": "Lapis Notes Docs workspace: notes, books, cards, and FSRS review",
|
|
5
5
|
"license": "AGPL-3.0-or-later",
|
|
6
6
|
"repository": {
|
|
@@ -41,7 +41,9 @@
|
|
|
41
41
|
"release:prepare": "node scripts/release.mjs prepare",
|
|
42
42
|
"release:attest": "node scripts/release.mjs attest",
|
|
43
43
|
"release:publish": "node scripts/release.mjs publish",
|
|
44
|
-
"release:verify": "node scripts/release.mjs verify"
|
|
44
|
+
"release:verify": "node scripts/release.mjs verify",
|
|
45
|
+
"spec:search": "spec-validator search",
|
|
46
|
+
"spec:index": "spec-validator index"
|
|
45
47
|
},
|
|
46
48
|
"files": [
|
|
47
49
|
"dist",
|
|
@@ -77,7 +79,7 @@
|
|
|
77
79
|
},
|
|
78
80
|
"peerDependencies": {
|
|
79
81
|
"@lapis-notes/api": "^0.2.6",
|
|
80
|
-
"@lapismd/design-core": "^0.12.1",
|
|
82
|
+
"@lapismd/design-core": "^0.12.1 || ^0.13.0",
|
|
81
83
|
"@lapismd/mira": "~0.1.4",
|
|
82
84
|
"@lapismd/mira-editor": "~0.0.3",
|
|
83
85
|
"svelte": "5.56.10"
|
|
@@ -101,8 +103,8 @@
|
|
|
101
103
|
"@lapis-notes/search": "0.1.5",
|
|
102
104
|
"@lapis-notes/ui": "0.1.7",
|
|
103
105
|
"@lapis-notes/workspace": "0.3.4",
|
|
104
|
-
"@lapismd/design-core": "0.
|
|
105
|
-
"@lapismd/mira": "0.1.
|
|
106
|
+
"@lapismd/design-core": "0.13.0",
|
|
107
|
+
"@lapismd/mira": "0.1.5",
|
|
106
108
|
"@lapismd/mira-editor": "~0.0.3",
|
|
107
109
|
"@lapismd/spec-validator": "^0.2.0",
|
|
108
110
|
"@lezer/common": "1.5.2",
|
|
@@ -138,7 +140,7 @@
|
|
|
138
140
|
},
|
|
139
141
|
"pnpm": {
|
|
140
142
|
"overrides": {
|
|
141
|
-
"@lapismd/design-core": "0.
|
|
143
|
+
"@lapismd/design-core": "0.13.0"
|
|
142
144
|
},
|
|
143
145
|
"peerDependencyRules": {
|
|
144
146
|
"allowedVersions": {
|