@piedata/pieui 1.1.5 → 1.1.7

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 (41) hide show
  1. package/dist/components/Agents/OpenAIVoiceAgentCard/index.d.ts +2 -0
  2. package/dist/components/Agents/OpenAIVoiceAgentCard/index.d.ts.map +1 -0
  3. package/dist/components/Agents/OpenAIVoiceAgentCard/types/index.d.ts +31 -0
  4. package/dist/components/Agents/OpenAIVoiceAgentCard/types/index.d.ts.map +1 -0
  5. package/dist/components/Agents/OpenAIVoiceAgentCard/ui/OpenAIVoiceAgentCard.d.ts +4 -0
  6. package/dist/components/Agents/OpenAIVoiceAgentCard/ui/OpenAIVoiceAgentCard.d.ts.map +1 -0
  7. package/dist/components/Common/AutoRedirectCard/index.d.ts +2 -0
  8. package/dist/components/Common/AutoRedirectCard/index.d.ts.map +1 -0
  9. package/dist/components/Common/AutoRedirectCard/types/index.d.ts +7 -0
  10. package/dist/components/Common/AutoRedirectCard/types/index.d.ts.map +1 -0
  11. package/dist/components/Common/AutoRedirectCard/ui/AutoRedirectCard.d.ts +4 -0
  12. package/dist/components/Common/AutoRedirectCard/ui/AutoRedirectCard.d.ts.map +1 -0
  13. package/dist/components/Common/HTMLEmbedCard/index.d.ts +2 -0
  14. package/dist/components/Common/HTMLEmbedCard/index.d.ts.map +1 -0
  15. package/dist/components/Common/HTMLEmbedCard/types/index.d.ts +14 -0
  16. package/dist/components/Common/HTMLEmbedCard/types/index.d.ts.map +1 -0
  17. package/dist/components/Common/HTMLEmbedCard/ui/HTMLEmbedCard.d.ts +4 -0
  18. package/dist/components/Common/HTMLEmbedCard/ui/HTMLEmbedCard.d.ts.map +1 -0
  19. package/dist/components/Common/HiddenCard/index.d.ts +2 -0
  20. package/dist/components/Common/HiddenCard/index.d.ts.map +1 -0
  21. package/dist/components/Common/HiddenCard/types/index.d.ts +12 -0
  22. package/dist/components/Common/HiddenCard/types/index.d.ts.map +1 -0
  23. package/dist/components/Common/HiddenCard/ui/HiddenCard.d.ts +4 -0
  24. package/dist/components/Common/HiddenCard/ui/HiddenCard.d.ts.map +1 -0
  25. package/dist/components/PieRoot/index.d.ts.map +1 -1
  26. package/dist/components/PieRoot/types/index.d.ts +1 -0
  27. package/dist/components/PieRoot/types/index.d.ts.map +1 -1
  28. package/dist/components/PieTelegramRoot/index.d.ts.map +1 -1
  29. package/dist/components/index.d.ts +4 -0
  30. package/dist/components/index.d.ts.map +1 -1
  31. package/dist/components/index.esm.js +68 -15
  32. package/dist/components/index.js +81 -23
  33. package/dist/index.d.ts +1 -0
  34. package/dist/index.d.ts.map +1 -1
  35. package/dist/index.esm.js +21 -20
  36. package/dist/index.js +30 -30
  37. package/dist/pieui.components.json +85 -0
  38. package/dist/util/initializeComponents.d.ts.map +1 -1
  39. package/dist/util/navigate.d.ts +4 -0
  40. package/dist/util/navigate.d.ts.map +1 -0
  41. package/package.json +6 -3
@@ -0,0 +1,2 @@
1
+ export { default } from './ui/OpenAIVoiceAgentCard';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Agents/OpenAIVoiceAgentCard/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,2BAA2B,CAAA"}
@@ -0,0 +1,31 @@
1
+ import { CSSProperties } from 'react';
2
+ import { PieComplexComponentProps } from "../../../../types";
3
+ export interface VoiceAgentTool {
4
+ name: string;
5
+ description: string;
6
+ params: any;
7
+ pathname: string;
8
+ depsNames: Array<string>;
9
+ kwargs: Record<string, any>;
10
+ }
11
+ export interface OpenAIVoiceAgentCardData {
12
+ name: string;
13
+ titles: Record<'enabled' | 'disabled', string>;
14
+ instructions: string;
15
+ tools: Array<VoiceAgentTool>;
16
+ token: string | null;
17
+ autoStart: boolean;
18
+ language: string | null;
19
+ muted: boolean;
20
+ outputModalities?: ('text' | 'audio')[];
21
+ iconUrl?: string;
22
+ iconPosition?: 'start' | 'end';
23
+ sxMap: Record<'enabled' | 'disabled', CSSProperties>;
24
+ useSocketioSupport?: boolean;
25
+ useCentrifugeSupport?: boolean;
26
+ useMittSupport?: boolean;
27
+ centrifugeChannel?: string;
28
+ }
29
+ export interface OpenAIVoiceAgentCardProps extends PieComplexComponentProps<OpenAIVoiceAgentCardData> {
30
+ }
31
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/Agents/OpenAIVoiceAgentCard/types/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAA;AACrC,OAAO,EAAE,wBAAwB,EAAE,MAAM,mBAAmB,CAAC;AAG7D,MAAM,WAAW,cAAc;IAC3B,IAAI,EAAE,MAAM,CAAA;IACZ,WAAW,EAAE,MAAM,CAAA;IAEnB,MAAM,EAAE,GAAG,CAAA;IAEX,QAAQ,EAAE,MAAM,CAAA;IAChB,SAAS,EAAE,KAAK,CAAC,MAAM,CAAC,CAAA;IACxB,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;CAC9B;AAGD,MAAM,WAAW,wBAAwB;IACrC,IAAI,EAAE,MAAM,CAAA;IACZ,MAAM,EAAE,MAAM,CAAC,SAAS,GAAG,UAAU,EAAE,MAAM,CAAC,CAAA;IAE9C,YAAY,EAAE,MAAM,CAAA;IACpB,KAAK,EAAE,KAAK,CAAC,cAAc,CAAC,CAAA;IAC5B,KAAK,EAAE,MAAM,GAAG,IAAI,CAAA;IACpB,SAAS,EAAE,OAAO,CAAA;IAElB,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAA;IACvB,KAAK,EAAE,OAAO,CAAA;IACd,gBAAgB,CAAC,EAAE,CAAC,MAAM,GAAG,OAAO,CAAC,EAAE,CAAC;IAExC,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,YAAY,CAAC,EAAE,OAAO,GAAG,KAAK,CAAA;IAC9B,KAAK,EAAE,MAAM,CAAC,SAAS,GAAG,UAAU,EAAE,aAAa,CAAC,CAAA;IAEpD,kBAAkB,CAAC,EAAE,OAAO,CAAA;IAC5B,oBAAoB,CAAC,EAAE,OAAO,CAAA;IAC9B,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,iBAAiB,CAAC,EAAE,MAAM,CAAA;CAC7B;AAED,MAAM,WAAW,yBAA0B,SAAQ,wBAAwB,CAAC,wBAAwB,CAAC;CAAG"}
@@ -0,0 +1,4 @@
1
+ import { OpenAIVoiceAgentCardProps } from '../types';
2
+ declare const _default: ({ data, setUiAjaxConfiguration }: OpenAIVoiceAgentCardProps) => import("react/jsx-runtime").JSX.Element;
3
+ export default _default;
4
+ //# sourceMappingURL=OpenAIVoiceAgentCard.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"OpenAIVoiceAgentCard.d.ts","sourceRoot":"","sources":["../../../../../src/components/Agents/OpenAIVoiceAgentCard/ui/OpenAIVoiceAgentCard.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,yBAAyB,EAAE,MAAM,UAAU,CAAA;2DAaY,yBAAyB;AAoOzF,wBAA2C"}
@@ -0,0 +1,2 @@
1
+ export { default } from './ui/AutoRedirectCard';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Common/AutoRedirectCard/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAA"}
@@ -0,0 +1,7 @@
1
+ import { PieSimpleComponentProps } from "../../../../types";
2
+ export interface AutoRedirectCardData {
3
+ url: string;
4
+ }
5
+ export interface AutoRedirectCardProps extends PieSimpleComponentProps<AutoRedirectCardData> {
6
+ }
7
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/Common/AutoRedirectCard/types/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,uBAAuB,EAAC,MAAM,mBAAmB,CAAC;AAG1D,MAAM,WAAW,oBAAoB;IACjC,GAAG,EAAE,MAAM,CAAA;CACd;AAGD,MAAM,WAAW,qBAAsB,SAAQ,uBAAuB,CAAC,oBAAoB,CAAC;CAAG"}
@@ -0,0 +1,4 @@
1
+ import { AutoRedirectCardProps } from '../types';
2
+ declare const AutoRedirectCard: ({ data }: AutoRedirectCardProps) => import("react/jsx-runtime").JSX.Element;
3
+ export default AutoRedirectCard;
4
+ //# sourceMappingURL=AutoRedirectCard.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AutoRedirectCard.d.ts","sourceRoot":"","sources":["../../../../../src/components/Common/AutoRedirectCard/ui/AutoRedirectCard.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,qBAAqB,EAAC,MAAM,UAAU,CAAA;AAK9C,QAAA,MAAM,gBAAgB,GAAI,UAAU,qBAAqB,4CAcxD,CAAA;AAED,eAAe,gBAAgB,CAAA"}
@@ -0,0 +1,2 @@
1
+ export { default } from './ui/HTMLEmbedCard';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Common/HTMLEmbedCard/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAA"}
@@ -0,0 +1,14 @@
1
+ import { CSSProperties } from 'react';
2
+ import { PieSimpleComponentProps } from "../../../../types";
3
+ export interface HTMLEmbedCardData {
4
+ name: string;
5
+ html: string;
6
+ sx: CSSProperties;
7
+ useSocketioSupport?: boolean;
8
+ useCentrifugeSupport?: boolean;
9
+ useMittSupport?: boolean;
10
+ centrifugeChannel?: string;
11
+ }
12
+ export interface HTMLEmbedCardProps extends PieSimpleComponentProps<HTMLEmbedCardData> {
13
+ }
14
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/Common/HTMLEmbedCard/types/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAA;AACrC,OAAO,EAAC,uBAAuB,EAAC,MAAM,mBAAmB,CAAC;AAG1D,MAAM,WAAW,iBAAiB;IAC9B,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,MAAM,CAAA;IACZ,EAAE,EAAE,aAAa,CAAA;IAEjB,kBAAkB,CAAC,EAAE,OAAO,CAAA;IAC5B,oBAAoB,CAAC,EAAE,OAAO,CAAA;IAC9B,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,iBAAiB,CAAC,EAAE,MAAM,CAAA;CAC7B;AAED,MAAM,WAAW,kBAAmB,SAAQ,uBAAuB,CAAC,iBAAiB,CAAC;CAAG"}
@@ -0,0 +1,4 @@
1
+ import { HTMLEmbedCardProps } from '../types';
2
+ declare const _default: ({ data }: HTMLEmbedCardProps) => import("react/jsx-runtime").JSX.Element;
3
+ export default _default;
4
+ //# sourceMappingURL=HTMLEmbedCard.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"HTMLEmbedCard.d.ts","sourceRoot":"","sources":["../../../../../src/components/Common/HTMLEmbedCard/ui/HTMLEmbedCard.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAC,kBAAkB,EAAC,MAAM,UAAU,CAAA;mCAKV,kBAAkB;AAgEnD,wBAAoC"}
@@ -0,0 +1,2 @@
1
+ export { default } from './ui/HiddenCard';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Common/HiddenCard/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAA"}
@@ -0,0 +1,12 @@
1
+ import { PieSimpleComponentProps } from "../../../../types";
2
+ export interface HiddenCardData {
3
+ name: string;
4
+ value: string;
5
+ useSocketioSupport?: boolean;
6
+ useCentrifugeSupport?: boolean;
7
+ useMittSupport?: boolean;
8
+ centrifugeChannel?: string;
9
+ }
10
+ export interface HiddenCardProps extends PieSimpleComponentProps<HiddenCardData> {
11
+ }
12
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/Common/HiddenCard/types/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,uBAAuB,EAAC,MAAM,mBAAmB,CAAC;AAE1D,MAAM,WAAW,cAAc;IAC3B,IAAI,EAAE,MAAM,CAAA;IACZ,KAAK,EAAE,MAAM,CAAA;IAEb,kBAAkB,CAAC,EAAE,OAAO,CAAA;IAC5B,oBAAoB,CAAC,EAAE,OAAO,CAAA;IAC9B,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,iBAAiB,CAAC,EAAE,MAAM,CAAA;CAC7B;AAGD,MAAM,WAAW,eAAgB,SAAQ,uBAAuB,CAAC,cAAc,CAAC;CAAG"}
@@ -0,0 +1,4 @@
1
+ import { HiddenCardProps } from '../types';
2
+ declare const HiddenCard: ({ data }: HiddenCardProps) => import("react/jsx-runtime").JSX.Element;
3
+ export default HiddenCard;
4
+ //# sourceMappingURL=HiddenCard.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"HiddenCard.d.ts","sourceRoot":"","sources":["../../../../../src/components/Common/HiddenCard/ui/HiddenCard.tsx"],"names":[],"mappings":"AACA,OAAO,EAAC,eAAe,EAAC,MAAM,UAAU,CAAA;AAIxC,QAAA,MAAM,UAAU,GAAI,UAAU,eAAe,4CAgC5C,CAAA;AAED,eAAe,UAAU,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/PieRoot/index.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAC,YAAY,EAAC,MAAM,SAAS,CAAA;AAwIpC,QAAA,MAAM,OAAO,GAAI,OAAO,YAAY,4CASnC,CAAA;AAGD,eAAe,OAAO,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/PieRoot/index.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAC,YAAY,EAAC,MAAM,SAAS,CAAA;AAyIpC,QAAA,MAAM,OAAO,GAAI,OAAO,YAAY,4CAWnC,CAAA;AAGD,eAAe,OAAO,CAAA"}
@@ -7,6 +7,7 @@ export interface PieRootProps {
7
7
  };
8
8
  fallback?: ReactNode;
9
9
  onError?: () => void;
10
+ onNavigate?: (url: string) => void;
10
11
  config: PieConfig;
11
12
  initializePie: () => void;
12
13
  }
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/PieRoot/types/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAClC,OAAO,EAAC,SAAS,EAAC,MAAM,gBAAgB,CAAC;AAGzC,MAAM,WAAW,YAAY;IACzB,QAAQ,EAAE;QACN,QAAQ,EAAE,MAAM,CAAC;QACjB,MAAM,EAAE,MAAM,CAAC;KAClB,CAAC;IACF,QAAQ,CAAC,EAAE,SAAS,CAAA;IACpB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAA;IACpB,MAAM,EAAE,SAAS,CAAA;IACjB,aAAa,EAAE,MAAM,IAAI,CAAA;CAC5B"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/PieRoot/types/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAClC,OAAO,EAAC,SAAS,EAAC,MAAM,gBAAgB,CAAC;AAGzC,MAAM,WAAW,YAAY;IACzB,QAAQ,EAAE;QACN,QAAQ,EAAE,MAAM,CAAC;QACjB,MAAM,EAAE,MAAM,CAAC;KAClB,CAAC;IACF,QAAQ,CAAC,EAAE,SAAS,CAAA;IACpB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAA;IACpB,UAAU,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAA;IAClC,MAAM,EAAE,SAAS,CAAA;IACjB,aAAa,EAAE,MAAM,IAAI,CAAA;CAC5B"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/PieTelegramRoot/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA2B,MAAM,OAAO,CAAA;AAI/C,OAAO,EAAC,YAAY,EAAC,MAAM,kBAAkB,CAAA;AAgJ7C,QAAA,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC,YAAY,CAS3C,CAAA;AAGD,eAAe,eAAe,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/PieTelegramRoot/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA2B,MAAM,OAAO,CAAA;AAI/C,OAAO,EAAC,YAAY,EAAC,MAAM,kBAAkB,CAAA;AAiJ7C,QAAA,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC,YAAY,CAW3C,CAAA;AAGD,eAAe,eAAe,CAAA"}
@@ -4,4 +4,8 @@ export { default as ChatCard } from './Chats/ChatCard';
4
4
  export { default as AjaxButtonCard } from './Buttons/AjaxButtonCard';
5
5
  export { default as SequenceCard } from './Containers/SequenceCard';
6
6
  export { default as UnionCard } from './Containers/UnionCard';
7
+ export { default as HTMLEmbedCard } from './Common/HTMLEmbedCard';
8
+ export { default as OpenAIVoiceAgentCard } from './Agents/OpenAIVoiceAgentCard';
9
+ export { default as HiddenCard } from './Common/HiddenCard';
10
+ export { default as AutoRedirectCard } from './Common/AutoRedirectCard';
7
11
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,WAAW,CAAC;AAC/C,OAAO,EAAE,OAAO,IAAI,EAAE,EAAE,MAAM,MAAM,CAAC;AACrC,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,0BAA0B,CAAA;AACpE,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,2BAA2B,CAAA;AACnE,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,wBAAwB,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,WAAW,CAAC;AAC/C,OAAO,EAAE,OAAO,IAAI,EAAE,EAAE,MAAM,MAAM,CAAC;AACrC,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,0BAA0B,CAAA;AACpE,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,2BAA2B,CAAA;AACnE,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,wBAAwB,CAAA;AAC7D,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,wBAAwB,CAAA;AACjE,OAAO,EAAE,OAAO,IAAI,oBAAoB,EAAE,MAAM,+BAA+B,CAAA;AAC/E,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,qBAAqB,CAAA;AAC3D,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,2BAA2B,CAAA"}