@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.
- package/README.md +126 -0
- package/dist/bin/tap-miniapp-test.d.ts +1 -0
- package/dist/bin/tap-miniapp-test.js +1293 -0
- package/dist/index.d.ts +50 -0
- package/dist/internal/json-schema.d.ts +10 -0
- package/dist/internal/json-schema.js +53 -0
- package/dist/rspack/index.d.ts +72 -6
- package/dist/rspack/index.js +177 -31
- package/dist/sdk.d.ts +50 -0
- package/dist/surface.d.ts +14 -0
- package/dist/testing/rstest-config.d.ts +38 -0
- package/dist/testing/rstest-config.js +59 -0
- package/dist/testing/rstest.d.ts +514 -41
- package/dist/testing/rstest.js +1734 -167
- package/dist/testing/tap.test.schema.json +361 -0
- package/dist/ui/styles.css +504 -6
- package/dist/ui/wasm.js +9231 -510
- package/dist/ui/wasm.js.LICENSE.txt +12 -0
- package/dist/ui.d.ts +14 -4
- package/dist/ui.js +9493 -540
- package/dist/ui.js.LICENSE.txt +12 -0
- package/dist/vscode-webview.d.ts +147 -0
- package/dist/vscode-webview.js +594 -0
- package/dist/web.d.ts +50 -0
- package/package.json +31 -13
|
@@ -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
|
-
|
|
433
|
-
|
|
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:
|
|
533
|
+
icon: IconComponent;
|
|
524
534
|
label: string;
|
|
525
535
|
tooltipSide?: React_2.ComponentProps<typeof TooltipContent>['side'];
|
|
526
536
|
}
|