@james-infotrack/demo-recorder 0.4.0 → 0.6.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/dist/components/demo/demo.component.d.ts +33 -0
- package/dist/components/demo/demo.component.d.ts.map +1 -0
- package/dist/components/demo/index.d.ts +3 -0
- package/dist/components/demo/index.d.ts.map +1 -0
- package/dist/components/demoRecorder/demoRecorder.component.d.ts +3 -5
- package/dist/components/demoRecorder/demoRecorder.component.d.ts.map +1 -1
- package/dist/components/index.d.ts +1 -1
- package/dist/components/index.d.ts.map +1 -1
- package/dist/index.esm.js +2404 -3184
- package/package.json +1 -1
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { type DemoPlayerProps } from '../demoPlayer';
|
|
2
|
+
import { type DemoRecorderProps } from '../demoRecorder';
|
|
3
|
+
export type DemoProps = ({
|
|
4
|
+
mode: 'record';
|
|
5
|
+
} & DemoRecorderProps) | ({
|
|
6
|
+
mode: 'play';
|
|
7
|
+
} & DemoPlayerProps);
|
|
8
|
+
/**
|
|
9
|
+
* Unified Demo component that handles both recording and playback.
|
|
10
|
+
*
|
|
11
|
+
* @example Record mode
|
|
12
|
+
* ```tsx
|
|
13
|
+
* <Demo
|
|
14
|
+
* mode="record"
|
|
15
|
+
* pluginId="my-plugin"
|
|
16
|
+
* pluginName="My Plugin"
|
|
17
|
+
* apiKey="your-api-key"
|
|
18
|
+
* onComplete={(config) => console.log('Recorded:', config)}
|
|
19
|
+
* />
|
|
20
|
+
* ```
|
|
21
|
+
*
|
|
22
|
+
* @example Play mode
|
|
23
|
+
* ```tsx
|
|
24
|
+
* <Demo
|
|
25
|
+
* mode="play"
|
|
26
|
+
* config={demoConfig}
|
|
27
|
+
* demoId="my-demo"
|
|
28
|
+
* onComplete={(summary) => console.log('Completed:', summary)}
|
|
29
|
+
* />
|
|
30
|
+
* ```
|
|
31
|
+
*/
|
|
32
|
+
export declare function Demo(props: DemoProps): import("react/jsx-runtime").JSX.Element;
|
|
33
|
+
//# sourceMappingURL=demo.component.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"demo.component.d.ts","sourceRoot":"","sources":["../../../src/components/demo/demo.component.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAc,KAAK,eAAe,EAAE,MAAM,eAAe,CAAC;AACjE,OAAO,EAAgB,KAAK,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAEvE,MAAM,MAAM,SAAS,GACjB,CAAC;IACC,IAAI,EAAE,QAAQ,CAAC;CAChB,GAAG,iBAAiB,CAAC,GACtB,CAAC;IACC,IAAI,EAAE,MAAM,CAAC;CACd,GAAG,eAAe,CAAC,CAAC;AAEzB;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,wBAAgB,IAAI,CAAC,KAAK,EAAE,SAAS,2CAQpC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/demo/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC"}
|
|
@@ -2,10 +2,8 @@ import type { DemoConfig } from '@/models/config.model';
|
|
|
2
2
|
export interface DemoRecorderProps {
|
|
3
3
|
pluginId: string;
|
|
4
4
|
pluginName: string;
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
onComplete?: (config: DemoConfig) => void;
|
|
8
|
-
onError?: (error: Error) => void;
|
|
5
|
+
onComplete: (config: DemoConfig) => void;
|
|
6
|
+
onError: (error: Error) => void;
|
|
9
7
|
}
|
|
10
|
-
export declare function DemoRecorder({ pluginId, pluginName,
|
|
8
|
+
export declare function DemoRecorder({ pluginId, pluginName, onComplete, onError, }: DemoRecorderProps): import("react/jsx-runtime").JSX.Element;
|
|
11
9
|
//# sourceMappingURL=demoRecorder.component.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"demoRecorder.component.d.ts","sourceRoot":"","sources":["../../../src/components/demoRecorder/demoRecorder.component.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"demoRecorder.component.d.ts","sourceRoot":"","sources":["../../../src/components/demoRecorder/demoRecorder.component.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAKxD,MAAM,WAAW,iBAAiB;IAChC,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,CAAC,MAAM,EAAE,UAAU,KAAK,IAAI,CAAC;IACzC,OAAO,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;CACjC;AAED,wBAAgB,YAAY,CAAC,EAC3B,QAAQ,EACR,UAAU,EACV,UAAU,EACV,OAAO,GACR,EAAE,iBAAiB,2CA2ZnB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,QAAQ,CAAC;AACvB,cAAc,cAAc,CAAC;AAC7B,cAAc,gBAAgB,CAAC"}
|