@theaiplatform/miniapp-sdk 0.3.2 → 0.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.
@@ -0,0 +1,12 @@
1
+ /*! Bundled license information:
2
+
3
+ prismjs/prism.js:
4
+ (**
5
+ * Prism: Lightweight, robust, elegant syntax highlighting
6
+ *
7
+ * @license MIT <https://opensource.org/licenses/MIT>
8
+ * @author Lea Verou <https://lea.verou.me>
9
+ * @namespace
10
+ * @public
11
+ *)
12
+ */
package/dist/ui.d.ts CHANGED
@@ -9,7 +9,6 @@ import { GroupProps } from 'react-resizable-panels';
9
9
  import { HTMLAttributes } from 'react';
10
10
  import { JSX } from 'react/jsx-runtime';
11
11
  import * as LabelPrimitive from '@radix-ui/react-label';
12
- import type { LucideIcon } from 'lucide-react';
13
12
  import { PanelProps } from 'react-resizable-panels';
14
13
  import * as ProgressPrimitive from '@radix-ui/react-progress';
15
14
  import * as RadioGroupPrimitive from '@radix-ui/react-radio-group';
@@ -429,8 +428,19 @@ declare const headingVariants: (props?: ({
429
428
  */
430
429
  export declare function Icon({ className, color, icon: IconComponent, size, ...props }: IconProps): JSX.Element;
431
430
 
432
- declare interface IconProps extends Omit<React_2.ComponentPropsWithoutRef<LucideIcon>, 'color' | 'size'>, VariantProps<typeof iconVariants> {
433
- icon: LucideIcon;
431
+ /**
432
+ * Patch-stable callable shape for Lucide-compatible icons.
433
+ *
434
+ * Lucide's public `LucideIcon` type embeds the physical React type instance
435
+ * from its installation. Re-exporting it makes linked SDKs reject otherwise
436
+ * compatible consumer Lucide/React patches. The never-argument callable
437
+ * proves this is a component without coupling its props or return value.
438
+ */
439
+ export declare type IconComponent = (...arguments_: never[]) => unknown;
440
+
441
+ export declare interface IconProps extends Omit<React_2.SVGProps<SVGSVGElement>, 'absoluteStrokeWidth' | 'color' | 'ref' | 'size'>, VariantProps<typeof iconVariants> {
442
+ absoluteStrokeWidth?: boolean;
443
+ icon: IconComponent;
434
444
  }
435
445
 
436
446
  /**
@@ -520,7 +530,7 @@ export declare namespace MiniAppIconButton {
520
530
  }
521
531
 
522
532
  export declare interface MiniAppIconButtonProps extends Omit<ButtonProps, 'children'> {
523
- icon: LucideIcon;
533
+ icon: IconComponent;
524
534
  label: string;
525
535
  tooltipSide?: React_2.ComponentProps<typeof TooltipContent>['side'];
526
536
  }