Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message
Ve Search Sets Plus
statamic-addon/visual-editor
cursor
statamic
live-preview
search-sets
set-picker
overlay
postmessage

Live preview plus must open Statamic Search Sets — do not remove

Install
php artisan boost:add-skill statamic-addon/visual-editor

Save this content to: .cursor/rules/ve-search-sets-plus.mdc

# Search Sets on live-preview plus — locked

The plus under a block in live preview must open **Statamic's own Search Sets** (Headline, Richtext, Links) over the preview. Same picker as sidebar Add Set.

## Path — do not delete

`add-block-native` → `handleAddBlockNative` → `openSetPickerOverPreview` (Statamic `set-picker` over the plus).

Open the picker in `setTimeout(0)`. The plus click's pointerdown is forwarded onto the overlay body; mounting in the same turn closes Search Sets as clicked-away. `groupedPickerSets` needs a `handle` (empty list without one) — not `all` (grid lists every set twice).

`isPreviewMessageSource` must accept `event.source === overlay` (the plus handler is overlay script bound on the preview document). Rejecting that drops the click.

## Forbidden unless the user asks in THIS message

- Delete or bypass `handleAddBlockNative` / `openSetPickerOverPreview`
- Remove `handle` from `groupedPickerSets` (empty list) or set it to `all` (grid doubles)
- Side-effect edits (icons, grid tab, prefetch, unique-sets) that skip plus → Search Sets

The sidebar picker is the source. Preview plus opens that picker, not a copy.

Search Sets on live-preview plus — locked

The plus under a block in live preview must open Statamic's own Search Sets (Headline, Richtext, Links) over the preview. Same picker as sidebar Add Set.

Path — do not delete

add-block-native → handleAddBlockNative → openSetPickerOverPreview (Statamic set-picker over the plus).

Open the picker in setTimeout(0). The plus click's pointerdown is forwarded onto the overlay body; mounting in the same turn closes Search Sets as clicked-away. groupedPickerSets needs a handle (empty list without one) — not all (grid lists every set twice).

isPreviewMessageSource must accept event.source === overlay (the plus handler is overlay script bound on the preview document). Rejecting that drops the click.

Forbidden unless the user asks in THIS message

  • Delete or bypass handleAddBlockNative / openSetPickerOverPreview
  • Remove handle from groupedPickerSets (empty list) or set it to all (grid doubles)
  • Side-effect edits (icons, grid tab, prefetch, unique-sets) that skip plus → Search Sets

The sidebar picker is the source. Preview plus opens that picker, not a copy.

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
abbasudo/artisan-route
mirvan/ippanel
ignibyte/aic-framework
glavweb/data-schema-bundle
glavweb/datagrid-bundle
tacticmedia/scim-server
uni-method/frame
neika-ai/sdk
adachsoft/php-code-style
pharaonic/laravel-notification-dependencies
beautinow/translug
dev-brainiac/bot-cloaked
octoberrain/html
octoberrain/extension
octoberrain/exception
octoberrain/contracts
adachsoft/api-version-bundle
cgv/localized-resource
noith/settings
kda/laravel-package