@ai-matrx/context-menu 0.0.0 → 0.1.1

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.
Files changed (45) hide show
  1. package/CHANGELOG.md +23 -0
  2. package/README.md +14 -1
  3. package/dist/builder.cjs +1810 -0
  4. package/dist/builder.cjs.map +1 -0
  5. package/dist/builder.d.cts +22 -0
  6. package/dist/builder.d.ts +22 -0
  7. package/dist/builder.js +1795 -0
  8. package/dist/builder.js.map +1 -0
  9. package/dist/design-store.cjs +195 -0
  10. package/dist/design-store.cjs.map +1 -0
  11. package/dist/design-store.d.cts +42 -0
  12. package/dist/design-store.d.ts +42 -0
  13. package/dist/design-store.js +175 -0
  14. package/dist/design-store.js.map +1 -0
  15. package/dist/engine.cjs +3069 -0
  16. package/dist/engine.cjs.map +1 -0
  17. package/dist/engine.d.cts +731 -0
  18. package/dist/engine.d.ts +731 -0
  19. package/dist/engine.js +3250 -0
  20. package/dist/engine.js.map +1 -0
  21. package/dist/grouping-CB3zlD1T.d.ts +623 -0
  22. package/dist/grouping-CGcWsltu.d.cts +623 -0
  23. package/dist/host-types-AOiEYwR8.d.cts +9 -0
  24. package/dist/host-types-AOiEYwR8.d.ts +9 -0
  25. package/dist/index.cjs +583 -0
  26. package/dist/index.cjs.map +1 -0
  27. package/dist/index.d.cts +60 -0
  28. package/dist/index.d.ts +60 -0
  29. package/dist/index.js +561 -0
  30. package/dist/index.js.map +1 -0
  31. package/dist/menu-content.cjs +3146 -0
  32. package/dist/menu-content.cjs.map +1 -0
  33. package/dist/menu-content.d.cts +30 -0
  34. package/dist/menu-content.d.ts +30 -0
  35. package/dist/menu-content.js +3197 -0
  36. package/dist/menu-content.js.map +1 -0
  37. package/dist/model-CkLCR6WY.d.cts +123 -0
  38. package/dist/model-CkLCR6WY.d.ts +123 -0
  39. package/dist/react.cjs +3322 -0
  40. package/dist/react.cjs.map +1 -0
  41. package/dist/react.d.cts +133 -0
  42. package/dist/react.d.ts +133 -0
  43. package/dist/react.js +3345 -0
  44. package/dist/react.js.map +1 -0
  45. package/package.json +170 -1
package/CHANGELOG.md ADDED
@@ -0,0 +1,23 @@
1
+ # Changelog
2
+
3
+ ## 0.1.1
4
+
5
+ Automatic changed-only republish (docs/metadata drift since the last tag — see
6
+ `git diff npm/context-menu/v0.1.0..npm/context-menu/v0.1.1 -- apps/shared/context-menu`).
7
+ No source changes intended and no consumer action required.
8
+
9
+ ## 0.1.0
10
+
11
+ - The menu design model, option catalog, renderer, versioned design store and drag-and-drop builder.
12
+ - The live context menu engine, moved from matrx-frontend `features/context-menu-v3/`: entries
13
+ `./engine`, `./react`, `./menu-content`, and the host port `configureContextMenuHost`.
14
+
15
+ ### Consumer action (matrx-frontend)
16
+
17
+ - Call `configureContextMenuHost({ useBindings, getSurfaceManifest, selectRenderDefinitions, confirm,
18
+ showManualCopy, listeningHomeSurface, DocumentAgentReview })` once at boot, import the rich-document
19
+ action handlers, and augment `ContextMenuHostTypes { resourceType }`.
20
+ - Repoint `@/features/context-menu-v3/*` imports: components and hooks → `@ai-matrx/context-menu/react`,
21
+ everything else → `@ai-matrx/context-menu/engine`; then delete `features/context-menu-v3/`.
22
+
23
+
package/README.md CHANGED
@@ -1,3 +1,16 @@
1
1
  # @ai-matrx/context-menu
2
2
 
3
- Name reservation only. This bootstrap package has no usable API and must not be adopted. Real releases are published from AI-Matrix-Engine/aidream through GitHub Actions.
3
+ The AI Matrx context menu: the menu design model, the option catalog, the menu renderer, the
4
+ drag-and-drop menu builder, and the live context menu engine.
5
+
6
+ ```ts
7
+ import { MenuPreview, parseDesign, CATALOG } from "@ai-matrx/context-menu";
8
+ import { MenuBuilder } from "@ai-matrx/context-menu/builder";
9
+ import { recordsDesignStore, localDesignStore } from "@ai-matrx/context-menu/design-store";
10
+
11
+ // The live menu: register the host once, then wrap any region.
12
+ import { configureContextMenuHost } from "@ai-matrx/context-menu/engine";
13
+ import { EditableContextMenu, NonEditableContextMenu } from "@ai-matrx/context-menu/react";
14
+ ```
15
+
16
+ Run the builder locally: `pnpm --filter @ai-matrx/context-menu builder` → http://127.0.0.1:3051