@particle-academy/react-fancy 5.68.0 → 5.69.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/CHANGELOG.md +24 -0
- package/dist/{PastedFilesInput-Bt3KSTVN.d.ts → PastedFilesInput-BT5y95sb.d.ts} +2 -1
- package/dist/{PastedFilesInput-CUQeOeOA.d.cts → PastedFilesInput-Cd4k6a38.d.cts} +2 -1
- package/dist/{chunk-U5LKNGHU.cjs → chunk-2PSHIUM7.cjs} +8 -8
- package/dist/{chunk-U5LKNGHU.cjs.map → chunk-2PSHIUM7.cjs.map} +1 -1
- package/dist/{chunk-QSGAFKK2.js → chunk-4UEIMGHZ.js} +3 -3
- package/dist/{chunk-QSGAFKK2.js.map → chunk-4UEIMGHZ.js.map} +1 -1
- package/dist/{chunk-YIKXJWO4.js → chunk-4WIPWJYD.js} +5 -4
- package/dist/chunk-4WIPWJYD.js.map +1 -0
- package/dist/{chunk-7FYRFNPX.cjs → chunk-FPFQBYKJ.cjs} +9 -9
- package/dist/{chunk-7FYRFNPX.cjs.map → chunk-FPFQBYKJ.cjs.map} +1 -1
- package/dist/{chunk-23AVEYUP.js → chunk-HRZDEZSE.js} +24 -19
- package/dist/chunk-HRZDEZSE.js.map +1 -0
- package/dist/{chunk-SAG6DHQK.cjs → chunk-ISNS4GAW.cjs} +29 -24
- package/dist/chunk-ISNS4GAW.cjs.map +1 -0
- package/dist/{chunk-6CAXLP7D.cjs → chunk-J5TFVYYM.cjs} +6 -6
- package/dist/{chunk-6CAXLP7D.cjs.map → chunk-J5TFVYYM.cjs.map} +1 -1
- package/dist/{chunk-464QSZ4A.cjs → chunk-KGJ2ORY6.cjs} +19 -3
- package/dist/chunk-KGJ2ORY6.cjs.map +1 -0
- package/dist/{chunk-TQ77ZWBD.js → chunk-LLVYCACC.js} +3 -3
- package/dist/{chunk-TQ77ZWBD.js.map → chunk-LLVYCACC.js.map} +1 -1
- package/dist/{chunk-E4DXICU3.cjs → chunk-O4KZYGGC.cjs} +10 -10
- package/dist/{chunk-E4DXICU3.cjs.map → chunk-O4KZYGGC.cjs.map} +1 -1
- package/dist/{chunk-DCAD2JPP.js → chunk-U4PWNLOH.js} +3 -3
- package/dist/{chunk-DCAD2JPP.js.map → chunk-U4PWNLOH.js.map} +1 -1
- package/dist/{chunk-B4LVQ4QI.js → chunk-YEGFOMJB.js} +3 -3
- package/dist/{chunk-B4LVQ4QI.js.map → chunk-YEGFOMJB.js.map} +1 -1
- package/dist/{chunk-HFK5SBNM.cjs → chunk-YJETQ76J.cjs} +5 -4
- package/dist/chunk-YJETQ76J.cjs.map +1 -0
- package/dist/{chunk-2LQR4EAN.js → chunk-Z6RA37IC.js} +19 -3
- package/dist/chunk-Z6RA37IC.js.map +1 -0
- package/dist/composer.cjs +4 -4
- package/dist/composer.js +2 -2
- package/dist/content-renderer.cjs +4 -4
- package/dist/content-renderer.js +1 -1
- package/dist/editor.cjs +4 -4
- package/dist/editor.js +2 -2
- package/dist/{index-XR5t8bTq.d.ts → index-BQi_n6eS.d.ts} +21 -3
- package/dist/{index-DWtSViJ3.d.cts → index-n_4_OZK_.d.cts} +21 -3
- package/dist/index.cjs +38 -38
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +7 -7
- package/dist/input.cjs +3 -3
- package/dist/input.js +2 -2
- package/dist/inputs.cjs +3 -3
- package/dist/inputs.js +2 -2
- package/dist/json-editor.cjs +14 -14
- package/dist/json-editor.js +3 -3
- package/dist/paste-pills.cjs +14 -14
- package/dist/paste-pills.d.cts +1 -1
- package/dist/paste-pills.d.ts +1 -1
- package/dist/paste-pills.js +1 -1
- package/dist/prompt-input.cjs +5 -5
- package/dist/prompt-input.d.cts +1 -1
- package/dist/prompt-input.d.ts +1 -1
- package/dist/prompt-input.js +2 -2
- package/docs/ContentRenderer.md +4 -1
- package/docs/PromptInput.md +3 -2
- package/package.json +1 -1
- package/dist/chunk-23AVEYUP.js.map +0 -1
- package/dist/chunk-2LQR4EAN.js.map +0 -1
- package/dist/chunk-464QSZ4A.cjs.map +0 -1
- package/dist/chunk-HFK5SBNM.cjs.map +0 -1
- package/dist/chunk-SAG6DHQK.cjs.map +0 -1
- package/dist/chunk-YIKXJWO4.js.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -11,6 +11,30 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
11
11
|
|
|
12
12
|
## [Unreleased]
|
|
13
13
|
|
|
14
|
+
## [5.69.0] - 2026-10-27
|
|
15
|
+
|
|
16
|
+
### Fixed
|
|
17
|
+
|
|
18
|
+
- **`PromptInput`'s `focus()` and `setDraft(draft, { focus: true })` no longer
|
|
19
|
+
scroll the page** (genie#1290). They called the element's `focus()` with no
|
|
20
|
+
options, so the browser scrolled every scrollable ancestor, up to the
|
|
21
|
+
document, to reveal the composer. In Genie's Electron window that scrolled the
|
|
22
|
+
whole window. Both now pass `{ preventScroll: true }`. To get the old
|
|
23
|
+
behaviour, pass `{ preventScroll: false }` to `focus()` or `setDraft`. The new
|
|
24
|
+
`PromptFocusOptions` type is exported. Focus that follows the person's own
|
|
25
|
+
keypress (choosing from the `/` or `@` picker) is unchanged.
|
|
26
|
+
`InlinePasteEditorHandle.focus()` now accepts optional `FocusOptions` and
|
|
27
|
+
passes them through. With no argument it behaves as before.
|
|
28
|
+
- **`ContentRenderer`'s copy status region can no longer stretch the
|
|
29
|
+
document** (genie#1290, from 5.67.0). The `aria-live` region relied on the
|
|
30
|
+
host's Tailwind generating `sr-only`, and nothing around it was positioned.
|
|
31
|
+
Inside an unpositioned scroll container it escaped the scroller's clip and
|
|
32
|
+
extended the document. When the host's Tailwind never generated `sr-only`,
|
|
33
|
+
it rendered as visible text. The region now carries the sr-only clip pattern
|
|
34
|
+
inline. The root is `position: relative` while copy buttons are on, unless
|
|
35
|
+
the host's `className` already sets a position. Each copy-block wrapper is
|
|
36
|
+
`position: relative` inline as well. Nothing to do on upgrade.
|
|
37
|
+
|
|
14
38
|
## [5.68.0] - 2026-10-27
|
|
15
39
|
|
|
16
40
|
### Added
|
|
@@ -10,7 +10,8 @@ interface PillToInsert {
|
|
|
10
10
|
block: boolean;
|
|
11
11
|
}
|
|
12
12
|
interface InlinePasteEditorHandle {
|
|
13
|
-
focus()
|
|
13
|
+
/** Focus, caret at the end. `options` go to the element's `focus()` as given. */
|
|
14
|
+
focus(options?: FocusOptions): void;
|
|
14
15
|
/** Swap a pill for plain text, where it sits. */
|
|
15
16
|
replacePill(id: string, text: string): void;
|
|
16
17
|
/**
|
|
@@ -10,7 +10,8 @@ interface PillToInsert {
|
|
|
10
10
|
block: boolean;
|
|
11
11
|
}
|
|
12
12
|
interface InlinePasteEditorHandle {
|
|
13
|
-
focus()
|
|
13
|
+
/** Focus, caret at the end. `options` go to the element's `focus()` as given. */
|
|
14
|
+
focus(options?: FocusOptions): void;
|
|
14
15
|
/** Swap a pill for plain text, where it sits. */
|
|
15
16
|
replacePill(id: string, text: string): void;
|
|
16
17
|
/**
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
var chunk2O5UXH5R_cjs = require('./chunk-2O5UXH5R.cjs');
|
|
4
4
|
var chunkTLRFXSPA_cjs = require('./chunk-TLRFXSPA.cjs');
|
|
5
|
-
var
|
|
5
|
+
var chunkJ5TFVYYM_cjs = require('./chunk-J5TFVYYM.cjs');
|
|
6
6
|
var chunkWKPBCB67_cjs = require('./chunk-WKPBCB67.cjs');
|
|
7
7
|
var chunkMAZEX4EZ_cjs = require('./chunk-MAZEX4EZ.cjs');
|
|
8
8
|
var chunkP53432AK_cjs = require('./chunk-P53432AK.cjs');
|
|
@@ -572,7 +572,7 @@ function JsonEditorValue({ node, mode, size, readOnly, id, onCommit }) {
|
|
|
572
572
|
);
|
|
573
573
|
case "secret":
|
|
574
574
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
575
|
-
|
|
575
|
+
chunkJ5TFVYYM_cjs.Input,
|
|
576
576
|
{
|
|
577
577
|
...common,
|
|
578
578
|
type: "password",
|
|
@@ -587,7 +587,7 @@ function JsonEditorValue({ node, mode, size, readOnly, id, onCommit }) {
|
|
|
587
587
|
case "string":
|
|
588
588
|
default:
|
|
589
589
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
590
|
-
|
|
590
|
+
chunkJ5TFVYYM_cjs.Input,
|
|
591
591
|
{
|
|
592
592
|
...common,
|
|
593
593
|
type: node.type === "url" ? "url" : node.type === "email" ? "email" : "text",
|
|
@@ -639,7 +639,7 @@ function RawValueEditor({
|
|
|
639
639
|
);
|
|
640
640
|
}
|
|
641
641
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
642
|
-
|
|
642
|
+
chunkJ5TFVYYM_cjs.Input,
|
|
643
643
|
{
|
|
644
644
|
id,
|
|
645
645
|
size,
|
|
@@ -712,7 +712,7 @@ function JsonEditorRow({ node }) {
|
|
|
712
712
|
className: "w-1/3 min-w-0 shrink-0",
|
|
713
713
|
children: [
|
|
714
714
|
renameable ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
715
|
-
|
|
715
|
+
chunkJ5TFVYYM_cjs.Input,
|
|
716
716
|
{
|
|
717
717
|
size: ctx.size,
|
|
718
718
|
mode: "edit",
|
|
@@ -889,7 +889,7 @@ function JsonEditorAddForm({ path, kind, depth, suggestedType }) {
|
|
|
889
889
|
style: { paddingInlineStart: depth * INDENT + 32 },
|
|
890
890
|
children: [
|
|
891
891
|
kind === "object" && /* @__PURE__ */ jsxRuntime.jsx(
|
|
892
|
-
|
|
892
|
+
chunkJ5TFVYYM_cjs.Input,
|
|
893
893
|
{
|
|
894
894
|
size: ctx.size,
|
|
895
895
|
mode: "edit",
|
|
@@ -1350,5 +1350,5 @@ exports.parsePath = parsePath;
|
|
|
1350
1350
|
exports.pathToString = pathToString;
|
|
1351
1351
|
exports.resolveKeyRule = resolveKeyRule;
|
|
1352
1352
|
exports.typeMatches = typeMatches;
|
|
1353
|
-
//# sourceMappingURL=chunk-
|
|
1354
|
-
//# sourceMappingURL=chunk-
|
|
1353
|
+
//# sourceMappingURL=chunk-2PSHIUM7.cjs.map
|
|
1354
|
+
//# sourceMappingURL=chunk-2PSHIUM7.cjs.map
|