@marketrix.ai/widget 3.8.382 → 3.8.399

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/dist/loader.js CHANGED
@@ -1,14 +1,5 @@
1
- /**
2
- * Marketrix Widget Loader
3
- *
4
- * Static bootstrap script that:
5
- * 1. Injects an importmap for React dependencies (merges with existing if present)
6
- * 2. Creates a module script that loads widget.mjs from the same origin
7
- * 3. Passes through all mtx-* attributes from this script tag
8
- *
9
- * Usage: <script src="https://widget.marketrix.ai/loader.js" mtx-id="..." mtx-key="..."></script>
10
- * Must be placed in <head> before any <script type="module"> tags.
11
- */
1
+ // Injects a React importmap (merging with any existing one), loads widget.mjs from the same origin,
2
+ // and passes through every mtx-* attribute. MUST sit in <head> before any <script type="module">.
12
3
  (function () {
13
4
  // Collect existing importmap entries (if any)
14
5
  var existing = {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@marketrix.ai/widget",
3
- "version": "3.8.382",
3
+ "version": "3.8.399",
4
4
  "type": "module",
5
5
  "sideEffects": false,
6
6
  "main": "./dist/widget.mjs",
@@ -1,11 +0,0 @@
1
- interface UseDisclosureProps {
2
- defaultOpen?: boolean;
3
- onOpenChange?: (open: boolean) => void;
4
- open?: boolean;
5
- }
6
- interface UseDisclosureResult {
7
- isOpen: boolean;
8
- setIsOpen: (next: boolean) => void;
9
- }
10
- export declare function useDisclosure({ defaultOpen, onOpenChange, open }: UseDisclosureProps): UseDisclosureResult;
11
- export {};