@unisphere/genie-types 1.31.2 → 1.32.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/index.esm.js CHANGED
@@ -1717,7 +1717,12 @@ const floaterVisualSettingsSchema = {
1717
1717
  mode: modeSchema,
1718
1718
  context: chatContextSchema,
1719
1719
  customization: chatCustomizationSchema,
1720
- dynamicVariables: dynamicVariablesSchema
1720
+ dynamicVariables: dynamicVariablesSchema,
1721
+ openingPosition: {
1722
+ type: 'enum',
1723
+ values: ['left', 'right'],
1724
+ optional: true
1725
+ }
1721
1726
  }
1722
1727
  };
1723
1728
  const floaterCTAVisualSettingsSchema = {
@@ -1729,6 +1734,11 @@ const floaterCTAVisualSettingsSchema = {
1729
1734
  values: ['bottom-right', 'bottom-center', 'bottom-left'],
1730
1735
  optional: true
1731
1736
  },
1737
+ openingPosition: {
1738
+ type: 'enum',
1739
+ values: ['left', 'right'],
1740
+ optional: true
1741
+ },
1732
1742
  mode: modeSchema,
1733
1743
  openByDefault: {
1734
1744
  type: 'primitive',
@@ -3337,6 +3347,17 @@ const avatarRuntimeHeadFloaterVisualSettingsSchema = {
3337
3347
  }
3338
3348
  };
3339
3349
 
3350
+ const avatarRuntimeHeadlessVisualSettingsSchema = {
3351
+ type: 'object',
3352
+ properties: {
3353
+ schemaVersion: {
3354
+ type: 'literal',
3355
+ value: '1',
3356
+ optional: true
3357
+ }
3358
+ }
3359
+ };
3360
+
3340
3361
  const blockVisualContextSchema = {
3341
3362
  type: 'object',
3342
3363
  optional: true,
@@ -3393,4 +3414,4 @@ const chatThreadRuntimeContainedVisualSettingsSchema = {
3393
3414
  }
3394
3415
  };
3395
3416
 
3396
- export { AVATAR_DEFAULT_CAPABILITIES, AnswerModelEnum, AnswerTypeEnum, AvatarConnectionStatus, AvatarRuntimeName, CHAT_CONTEXT_TYPE, CHAT_CONTEXT_TYPE_GLOBAL, CHAT_DEFAULT_CAPABILITIES, ChatRuntimeName, ChatThreadRuntimeName, DeviceType, DisconnectReasons, SUPPORTED_LAYOUT_TYPES, agentModeSchema, avatarContainerModeSchema, avatarRuntimeChatVisualSettingsSchema, avatarRuntimeContainedVisualSettingsSchema, avatarRuntimeFloaterVisualSettingsSchema, avatarRuntimeHeadFloaterVisualSettingsSchema, avatarRuntimeSettingsSchema, bannerVisualSettingsSchema, blockVisualContextSchema, chatContextSchema, chatCustomizationSchema, chatRuntimePlayerPluginSettingsSchema, chatRuntimeSettingsSchema, chatThreadRuntimeContainedVisualSettingsSchema, chatThreadRuntimeSettingsSchema, containedVisualSettingsSchema, dynamicVariablesSchema, floaterCTAVisualSettingsSchema, floaterVisualSettingsSchema, getAvatarDefaultCapabilities, getChatDefaultCapabilities, getResolvedRuntimeName, getResolvedWidgetName, getSourceUrlSchema, integrationsSchema, isAvatarConnectionProxyInternalType, pageVisualSettingsSchema, popupVisualSettingsSchema, resolveActiveContextType, schemaVersionSchema, shareUrlSchema, widgetName };
3417
+ export { AVATAR_DEFAULT_CAPABILITIES, AnswerModelEnum, AnswerTypeEnum, AvatarConnectionStatus, AvatarRuntimeName, CHAT_CONTEXT_TYPE, CHAT_CONTEXT_TYPE_GLOBAL, CHAT_DEFAULT_CAPABILITIES, ChatRuntimeName, ChatThreadRuntimeName, DeviceType, DisconnectReasons, SUPPORTED_LAYOUT_TYPES, agentModeSchema, avatarContainerModeSchema, avatarRuntimeChatVisualSettingsSchema, avatarRuntimeContainedVisualSettingsSchema, avatarRuntimeFloaterVisualSettingsSchema, avatarRuntimeHeadFloaterVisualSettingsSchema, avatarRuntimeHeadlessVisualSettingsSchema, avatarRuntimeSettingsSchema, bannerVisualSettingsSchema, blockVisualContextSchema, chatContextSchema, chatCustomizationSchema, chatRuntimePlayerPluginSettingsSchema, chatRuntimeSettingsSchema, chatThreadRuntimeContainedVisualSettingsSchema, chatThreadRuntimeSettingsSchema, containedVisualSettingsSchema, dynamicVariablesSchema, floaterCTAVisualSettingsSchema, floaterVisualSettingsSchema, getAvatarDefaultCapabilities, getChatDefaultCapabilities, getResolvedRuntimeName, getResolvedWidgetName, getSourceUrlSchema, integrationsSchema, isAvatarConnectionProxyInternalType, pageVisualSettingsSchema, popupVisualSettingsSchema, resolveActiveContextType, schemaVersionSchema, shareUrlSchema, widgetName };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unisphere/genie-types",
3
- "version": "1.31.2",
3
+ "version": "1.32.0",
4
4
  "author": "kaltura",
5
5
  "license": "AGPL-3.0",
6
6
  "repository": {
@@ -7,3 +7,4 @@ export * from './floater-visual-types';
7
7
  export * from './shared-types';
8
8
  export * from './visual-bridge-types';
9
9
  export * from './runtime-visuals/head-floater-visual-types';
10
+ export * from './runtime-visuals/headless-visual-types';
@@ -0,0 +1,5 @@
1
+ import { ValidatorSchema } from '@unisphere/core';
2
+ export interface AvatarRuntimeHeadlessVisualSettings {
3
+ schemaVersion?: string;
4
+ }
5
+ export declare const avatarRuntimeHeadlessVisualSettingsSchema: ValidatorSchema;
@@ -123,12 +123,15 @@ export interface ContainedVisualSettings extends ScrollableVisualSettings, ModeC
123
123
  }
124
124
  export interface FloaterCTAVisualSettings extends ModeContextVisualSettings {
125
125
  position?: 'bottom-right' | 'bottom-center' | 'bottom-left';
126
+ openingPosition?: 'left' | 'right';
126
127
  openByDefault?: boolean;
127
128
  type?: 'button';
128
129
  text?: string;
129
130
  showIcon?: boolean;
130
131
  }
131
- export type FloaterVisualSettings = ModeContextVisualSettings;
132
+ export interface FloaterVisualSettings extends ModeContextVisualSettings {
133
+ openingPosition?: 'left' | 'right';
134
+ }
132
135
  export declare const floaterVisualSettingsSchema: ValidatorSchema;
133
136
  export declare const floaterCTAVisualSettingsSchema: ValidatorSchema;
134
137
  export declare const containedVisualSettingsSchema: ValidatorSchema;