@frontmcp/ui 1.2.1 → 1.4.0

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 (42) hide show
  1. package/auth/AuthPageWrapper.d.ts +56 -0
  2. package/auth/AuthPageWrapper.d.ts.map +1 -0
  3. package/auth/context.d.ts +23 -0
  4. package/auth/context.d.ts.map +1 -0
  5. package/auth/contract.d.ts +276 -0
  6. package/auth/contract.d.ts.map +1 -0
  7. package/auth/hooks.d.ts +83 -0
  8. package/auth/hooks.d.ts.map +1 -0
  9. package/auth/hydrate.d.ts +50 -0
  10. package/auth/hydrate.d.ts.map +1 -0
  11. package/auth/index.d.ts +23 -0
  12. package/auth/index.d.ts.map +1 -0
  13. package/auth/index.js +421 -0
  14. package/auth/vanilla/auth-flow.d.ts +96 -0
  15. package/auth/vanilla/auth-flow.d.ts.map +1 -0
  16. package/auth/vanilla/index.d.ts +14 -0
  17. package/auth/vanilla/index.d.ts.map +1 -0
  18. package/auth/vanilla/index.js +251 -0
  19. package/bridge/adapters/base-adapter.d.ts +2 -1
  20. package/bridge/adapters/base-adapter.d.ts.map +1 -1
  21. package/bridge/adapters/ext-apps.adapter.d.ts +6 -1
  22. package/bridge/adapters/ext-apps.adapter.d.ts.map +1 -1
  23. package/bridge/adapters/openai.adapter.d.ts +9 -1
  24. package/bridge/adapters/openai.adapter.d.ts.map +1 -1
  25. package/bridge/core/bridge-factory.d.ts +7 -2
  26. package/bridge/core/bridge-factory.d.ts.map +1 -1
  27. package/bridge/index.d.ts +1 -1
  28. package/bridge/index.d.ts.map +1 -1
  29. package/bridge/index.js +38 -0
  30. package/bridge/runtime/iife-generator.d.ts.map +1 -1
  31. package/bridge/types.d.ts +24 -0
  32. package/bridge/types.d.ts.map +1 -1
  33. package/components/Modal/Modal.d.ts +1 -1
  34. package/esm/auth/index.mjs +398 -0
  35. package/esm/auth/vanilla/index.mjs +228 -0
  36. package/esm/bridge/index.mjs +38 -0
  37. package/esm/index.mjs +8 -0
  38. package/esm/package.json +22 -2
  39. package/esm/react/index.mjs +8 -0
  40. package/index.js +8 -0
  41. package/package.json +22 -2
  42. package/react/index.js +8 -0
package/esm/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@frontmcp/ui",
3
- "version": "1.2.1",
3
+ "version": "1.4.0",
4
4
  "description": "FrontMCP UI - MUI-based React components, renderers, and MCP bridge for MCP applications",
5
5
  "author": "AgentFront <info@agentfront.dev>",
6
6
  "homepage": "https://docs.agentfront.dev",
@@ -326,6 +326,26 @@
326
326
  "default": "./react/index.mjs"
327
327
  }
328
328
  },
329
+ "./auth": {
330
+ "require": {
331
+ "types": "../auth/index.d.ts",
332
+ "default": "../auth/index.js"
333
+ },
334
+ "import": {
335
+ "types": "../auth/index.d.ts",
336
+ "default": "./auth/index.mjs"
337
+ }
338
+ },
339
+ "./auth/vanilla": {
340
+ "require": {
341
+ "types": "../auth/vanilla/index.d.ts",
342
+ "default": "../auth/vanilla/index.js"
343
+ },
344
+ "import": {
345
+ "types": "../auth/vanilla/index.d.ts",
346
+ "default": "./auth/vanilla/index.mjs"
347
+ }
348
+ },
329
349
  "./bridge": {
330
350
  "require": {
331
351
  "types": "../bridge/index.d.ts",
@@ -417,7 +437,7 @@
417
437
  }
418
438
  },
419
439
  "optionalDependencies": {
420
- "@frontmcp/uipack": "1.2.1"
440
+ "@frontmcp/uipack": "1.4.0"
421
441
  },
422
442
  "devDependencies": {
423
443
  "@types/react": "^19.0.0",
@@ -449,6 +449,14 @@ var FrontMcpBridge = class {
449
449
  const adapter = this._ensureInitialized();
450
450
  return adapter.requestDisplayMode(mode);
451
451
  }
452
+ /**
453
+ * Report a desired widget size to the host.
454
+ * @param size - Desired widget dimensions
455
+ */
456
+ async setSize(size) {
457
+ const adapter = this._ensureInitialized();
458
+ return adapter.setSize(size);
459
+ }
452
460
  /**
453
461
  * Request widget close.
454
462
  */
package/index.js CHANGED
@@ -497,6 +497,14 @@ var FrontMcpBridge = class {
497
497
  const adapter = this._ensureInitialized();
498
498
  return adapter.requestDisplayMode(mode);
499
499
  }
500
+ /**
501
+ * Report a desired widget size to the host.
502
+ * @param size - Desired widget dimensions
503
+ */
504
+ async setSize(size) {
505
+ const adapter = this._ensureInitialized();
506
+ return adapter.setSize(size);
507
+ }
500
508
  /**
501
509
  * Request widget close.
502
510
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@frontmcp/ui",
3
- "version": "1.2.1",
3
+ "version": "1.4.0",
4
4
  "description": "FrontMCP UI - MUI-based React components, renderers, and MCP bridge for MCP applications",
5
5
  "author": "AgentFront <info@agentfront.dev>",
6
6
  "homepage": "https://docs.agentfront.dev",
@@ -326,6 +326,26 @@
326
326
  "default": "./esm/react/index.mjs"
327
327
  }
328
328
  },
329
+ "./auth": {
330
+ "require": {
331
+ "types": "./auth/index.d.ts",
332
+ "default": "./auth/index.js"
333
+ },
334
+ "import": {
335
+ "types": "./auth/index.d.ts",
336
+ "default": "./esm/auth/index.mjs"
337
+ }
338
+ },
339
+ "./auth/vanilla": {
340
+ "require": {
341
+ "types": "./auth/vanilla/index.d.ts",
342
+ "default": "./auth/vanilla/index.js"
343
+ },
344
+ "import": {
345
+ "types": "./auth/vanilla/index.d.ts",
346
+ "default": "./esm/auth/vanilla/index.mjs"
347
+ }
348
+ },
329
349
  "./bridge": {
330
350
  "require": {
331
351
  "types": "./bridge/index.d.ts",
@@ -417,7 +437,7 @@
417
437
  }
418
438
  },
419
439
  "optionalDependencies": {
420
- "@frontmcp/uipack": "1.2.1"
440
+ "@frontmcp/uipack": "1.4.0"
421
441
  },
422
442
  "devDependencies": {
423
443
  "@types/react": "^19.0.0",
package/react/index.js CHANGED
@@ -488,6 +488,14 @@ var FrontMcpBridge = class {
488
488
  const adapter = this._ensureInitialized();
489
489
  return adapter.requestDisplayMode(mode);
490
490
  }
491
+ /**
492
+ * Report a desired widget size to the host.
493
+ * @param size - Desired widget dimensions
494
+ */
495
+ async setSize(size) {
496
+ const adapter = this._ensureInitialized();
497
+ return adapter.setSize(size);
498
+ }
491
499
  /**
492
500
  * Request widget close.
493
501
  */