๐Ÿ› Bug or Typo in docs โ€“ Issue with `type: "separator"` in Custom Context Menu (NEW) using Simple JSON Format

Describe the bug
The behavior of Custom Context Menus doesn't follow the Typescript Definition as defined in the Simple JSON Format docs.

According to the Typescript Definition in the docs, using "type": "separator" should be supported in Custom Context Menu (NEW).

Steps to reproduce:

  1. Create a Show Custom Context Menu (NEW) action.

  2. Enable Retrieve Content Dynamically via Java Script / JSON.

  3. Define a menu using a separator:

     async function retrieveJSON() {
         let items = [
             {
                 "title": "Section 1"
             },
             {
                 "type": "separator"
             },
             {
                 "title": "Section 2"
             }
         ];
         return JSON.stringify(items);
     }
    
  4. Trigger the Custom Context Menu (NEW).

  5. :bug: Unexpected behavior โ€“ The separator doesn't render correctly. Instead it displays NSMenuItem:
    image
    This behavior is unexpected because the Typescript Definition includes the following and my version of BTT is ahead of version 4.805:

      // Represents the possible item types, matching the Swift enum.
      export type SimpleFormatItemType =
        | "standard"
        | "separator" //requires BTT 4.805, in previous versions set the title of an item to ---
        | "back" //floating menu only
        | "textField" //floating menu only
        | "slider"; //floating menu only
    
  6. Defining the separator using the old method (i.e. "title": "---") still works:

    async function retrieveJSON() {
        let items = [
            {
                "title": "Section 1"
            },
            {
                "title": "---"
            },
            {
                "title": "Section 2"
            }
        ];
        return JSON.stringify(items);
    }
    

    image


Device information:

  • Device: MacBook Pro (14-inch, 2021)
  • macOS: 15.2 (24C5057p)
  • BTT Version: 4.849 (2024103107)
  • Alpha: 0 update(s) behind latest Alpha version 4.849 (2024103107).
  • Regular: Installed version is ahead of latest Regular version 4.839.

Additional information (e.g. crash logs, related issues, etc.):

Setting "title" to the three dashes ("---") isn't working for me in 4.866. I'm just seeing the three dashes in the menu. I can also confirm the alternative approach of setting "type" to "separator" is also showing "NSMenuItem" still.

@Geigel strange, it seems to be working for me with 4.866.

Here are my test results:

Action Type: Show Custom Context Menu (NEW)

Test 1: Configuration - "title": "---"

Test 2: Configuration - "type": "separator"