Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
3674688
changed: insertSorted
Nov 4, 2025
f0e5a90
refactor: simplify insertSorted function using toSpliced
Nov 4, 2025
c5a25b2
refactor: move createSlots and createSlotIdentifier to index.tsx, rem…
Nov 4, 2025
80771bb
feat: enhance slot insertion with conditional triggers and introduce …
Nov 4, 2025
4808e48
fix: ensure proper payload handling in slot insertion
Nov 4, 2025
c72ccf2
refactor: remove unused EventCallable import from index.tsx
Nov 4, 2025
c228dec
refactor: update trigger watch to handle payload function and trigger…
Nov 4, 2025
2c025b3
chore: update size limit and version, refactor imports in helpers and…
Nov 4, 2025
f680cdf
refactor: rename fn to mapProps for consistency in slot insertion and…
Nov 4, 2025
33540eb
chore: update version to 2.0.0-next.0, enhance description, and add '…
Nov 4, 2025
1faa7f2
feat: add logo and create README_NEW.md for project documentation
Nov 4, 2025
91b2c9f
refactor: simplify Sidebar component syntax and update README_NEW.md …
Nov 4, 2025
75fd95c
docs: update README_NEW.md to include TypeScript types and add how-to…
Nov 4, 2025
9b73bbb
refactor: update Payload type to support multiple mapProps signatures…
Nov 4, 2025
5898497
docs: add example for transforming props with mapProps in README_NEW.md
Nov 4, 2025
511b96f
docs: add section on control rendering order in README_NEW.md with ex…
Nov 4, 2025
5fe16e4
docs: add example for deferred component insertion in README_NEW.md
Nov 4, 2025
28e0d46
docs: add yarn installation command to README_NEW.md
Nov 4, 2025
2b92869
docs: add Community section with Telegram link to README_NEW.md
Nov 4, 2025
f196c7f
docs: update CHANGELOG.md and README_NEW.md with examples for deferre…
Nov 4, 2025
76a4c64
docs: merge README_NEW.md content into README.md, enhancing documenta…
Nov 4, 2025
89c3050
chore: update package version to 2.0.0 and upgrade vitest and related…
Nov 4, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .size-limit.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
[{ "path": "dist/index.js", "limit": "800 B" }]
[{ "path": "dist/index.js", "limit": "850 B" }]
22 changes: 22 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,28 @@
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](http://semver.org).

## 2.0.0

### Changed

- renamed `fn` to `mapProps`

### Added

- `when` parameter to defer slot insertion until specified Effector events fire

```tsx
const userLoaded = createEvent<{ id: number }>();

slotsApi.insert.into.Header({
when: userLoaded, // Wait for event
mapProps: (slotProps, whenPayload) => ({ userId: whenPayload.id }),
component: (props) => <UserWidget id={props.userId} />,
});

userLoaded({ id: 123 }); // Component inserted now
```

## 1.1.0

### Added
Expand Down
Loading