@astl/editor-tiptap 0.1.3 → 0.1.4
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 +12 -0
- package/dist/styles.d.ts.map +1 -1
- package/dist/styles.js +2 -0
- package/dist/styles.js.map +1 -1
- package/package.json +6 -6
- package/src/styles.ts +2 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @astl/editor-tiptap
|
|
2
2
|
|
|
3
|
+
## 0.1.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 8d3dc51: Selects keep their arrow off the border: the editor's selects (in the card and in a help box on the page) and the lists of the match fallback draw a chevron of their own, inset from the inline end with room for the text, mirrored in right-to-left text; under forced colours the platform's arrow stays. `nativeSelectCss(selector)` from `@astl/tokens` gives a host's own native selects the same chevron.
|
|
8
|
+
- Updated dependencies [8d3dc51]
|
|
9
|
+
- @astl/tokens@0.1.4
|
|
10
|
+
- @astl/editor@0.1.4
|
|
11
|
+
- @astl/player@0.1.4
|
|
12
|
+
- @astl/core@0.1.4
|
|
13
|
+
- @astl/engine@0.1.4
|
|
14
|
+
|
|
3
15
|
## 0.1.3
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
package/dist/styles.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../src/styles.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../src/styles.ts"],"names":[],"mappings":"AAOA,wGAAwG;AACxG,eAAO,MAAM,aAAa,iBAAiB,CAAC;AA67B5C,2FAA2F;AAC3F,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,IAAI,GAAG,IAAI,CAKnD"}
|
package/dist/styles.js
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
* The built-in surface's stylesheet. Only `surface.ts` imports it, so it loads with TipTap, never in the first load of
|
|
3
3
|
* `<astl-editor>` (whose own shadow styles are in `element.ts`).
|
|
4
4
|
*/
|
|
5
|
+
import { nativeSelectCss } from '@astl/tokens';
|
|
5
6
|
import { css, unsafeCSS } from 'lit';
|
|
6
7
|
/** Class of the element the built-in surface mounts TipTap in, a light-DOM child of `<astl-editor>`. */
|
|
7
8
|
export const SURFACE_CLASS = 'astl-surface';
|
|
@@ -544,6 +545,7 @@ const baseSurfaceStyles = css `
|
|
|
544
545
|
outline: var(--astl-focus-width) solid var(--astl-focus);
|
|
545
546
|
outline-offset: var(--astl-focus-offset);
|
|
546
547
|
}
|
|
548
|
+
${unsafeCSS(nativeSelectCss('.astl-surface .astl-help-head select'))}
|
|
547
549
|
/* "Remove" closes the head, a page button's look. */
|
|
548
550
|
.astl-surface .astl-help-remove {
|
|
549
551
|
margin-inline-start: auto;
|
package/dist/styles.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.js","sourceRoot":"","sources":["../src/styles.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,EAAkB,GAAG,EAAE,SAAS,EAAE,MAAM,KAAK,CAAC;AAErD,wGAAwG;AACxG,MAAM,CAAC,MAAM,aAAa,GAAG,cAAc,CAAC;AAE5C;;;;;GAKG;AACH,MAAM,iBAAiB,GAAc,GAAG,CAAA
|
|
1
|
+
{"version":3,"file":"styles.js","sourceRoot":"","sources":["../src/styles.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAC/C,OAAO,EAAkB,GAAG,EAAE,SAAS,EAAE,MAAM,KAAK,CAAC;AAErD,wGAAwG;AACxG,MAAM,CAAC,MAAM,aAAa,GAAG,cAAc,CAAC;AAE5C;;;;;GAKG;AACH,MAAM,iBAAiB,GAAc,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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MAAM,EAAE,CAAC,EAAE,EACb,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CACP,+BAA+B,CAAC,GAAG,CAAC,8BAA8B,CAAC,GAAG,CAAC,+BAA+B,CAAC,GAAG,CAAC,SAAS,CACvH,CAAC,IAAI,CAAC,EAAE,CAAC,CACX,CAAC;AAEF,sHAAsH;AACtH,yGAAyG;AACzG,MAAM,YAAY,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmDvB,CAAC;AAEF,MAAM,aAAa,GAAc,GAAG,CAAA,GAAG,iBAAiB,GAAG,UAAU,GAAG,WAAW,GAAG,YAAY,EAAE,CAAC;AAErG,2FAA2F;AAC3F,MAAM,UAAU,kBAAkB,CAAC,IAAU;IAC3C,MAAM,IAAI,GAAG,IAAI,CAAC,WAAW,EAAmC,CAAC;IACjE,MAAM,KAAK,GAAG,aAAa,CAAC,UAAU,CAAC;IACvC,IAAI,KAAK,KAAK,SAAS,IAAI,IAAI,CAAC,kBAAkB,KAAK,SAAS;QAAE,OAAO;IACzE,IAAI,CAAC,IAAI,CAAC,kBAAkB,CAAC,QAAQ,CAAC,KAAK,CAAC;QAAE,IAAI,CAAC,kBAAkB,GAAG,CAAC,GAAG,IAAI,CAAC,kBAAkB,EAAE,KAAK,CAAC,CAAC;AAC9G,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@astl/editor-tiptap",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.4",
|
|
4
4
|
"description": "<astl-editor>: the authoring kit around a TipTap surface, loaded only when no other editor is plugged in through an adapter.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"astrolabe",
|
|
@@ -53,11 +53,11 @@
|
|
|
53
53
|
"access": "public"
|
|
54
54
|
},
|
|
55
55
|
"dependencies": {
|
|
56
|
-
"@astl/core": "0.1.
|
|
57
|
-
"@astl/editor": "0.1.
|
|
58
|
-
"@astl/engine": "0.1.
|
|
59
|
-
"@astl/player": "0.1.
|
|
60
|
-
"@astl/tokens": "0.1.
|
|
56
|
+
"@astl/core": "0.1.4",
|
|
57
|
+
"@astl/editor": "0.1.4",
|
|
58
|
+
"@astl/engine": "0.1.4",
|
|
59
|
+
"@astl/player": "0.1.4",
|
|
60
|
+
"@astl/tokens": "0.1.4",
|
|
61
61
|
"@tiptap/core": "3.32.0",
|
|
62
62
|
"@tiptap/pm": "3.32.0",
|
|
63
63
|
"@tiptap/starter-kit": "3.32.0",
|
package/src/styles.ts
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
* The built-in surface's stylesheet. Only `surface.ts` imports it, so it loads with TipTap, never in the first load of
|
|
3
3
|
* `<astl-editor>` (whose own shadow styles are in `element.ts`).
|
|
4
4
|
*/
|
|
5
|
+
import { nativeSelectCss } from '@astl/tokens';
|
|
5
6
|
import { type CSSResult, css, unsafeCSS } from 'lit';
|
|
6
7
|
|
|
7
8
|
/** Class of the element the built-in surface mounts TipTap in, a light-DOM child of `<astl-editor>`. */
|
|
@@ -546,6 +547,7 @@ const baseSurfaceStyles: CSSResult = css`
|
|
|
546
547
|
outline: var(--astl-focus-width) solid var(--astl-focus);
|
|
547
548
|
outline-offset: var(--astl-focus-offset);
|
|
548
549
|
}
|
|
550
|
+
${unsafeCSS(nativeSelectCss('.astl-surface .astl-help-head select'))}
|
|
549
551
|
/* "Remove" closes the head, a page button's look. */
|
|
550
552
|
.astl-surface .astl-help-remove {
|
|
551
553
|
margin-inline-start: auto;
|