@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.
@@ -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,3 @@
1
+ export type { DemoProps } from './demo.component';
2
+ export { Demo } from './demo.component';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -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
- apiKey: string;
6
- apiEndpoint?: string;
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, apiKey, apiEndpoint, onComplete, onError, }: DemoRecorderProps): import("react/jsx-runtime").JSX.Element;
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":"AAGA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAKxD,MAAM,WAAW,iBAAiB;IAChC,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,CAAC,MAAM,EAAE,UAAU,KAAK,IAAI,CAAC;IAC1C,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;CAClC;AAED,wBAAgB,YAAY,CAAC,EAC3B,QAAQ,EACR,UAAU,EACV,MAAM,EACN,WAAW,EACX,UAAU,EACV,OAAO,GACR,EAAE,iBAAiB,2CA+YnB"}
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,5 +1,5 @@
1
1
  export * from './configEditor';
2
- export * from './configEditor';
2
+ export * from './demo';
3
3
  export * from './demoPlayer';
4
4
  export * from './demoRecorder';
5
5
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,cAAc,CAAC;AAC7B,cAAc,gBAAgB,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"}