@luzmo/react-analytics-components-kit 1.0.9-beta.9 → 1.1.1

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.
@@ -1,5 +1,5 @@
1
1
  import { EventName, ReactWebComponent } from '@lit/react';
2
- import { LuzmoAiChat as LuzmoAiChatClass, AiChatCompleteEvent, AiChatConversationIdChangedEventDetail, AiChatDatasetsChangedEventDetail, AiChatMessageSentEventDetail, AiChatStepEvent, AssistantMessageActionEventDetail } from '@luzmo/analytics-components-kit/ai-chat';
2
+ import { LuzmoAiChat as LuzmoAiChatClass, AiChatCompleteEvent, AiChatConversationIdChangedEventDetail, AiChatDatasetsChangedEventDetail, AiChatMessageSentEventDetail, AiChatStepEvent, AssistantMessageActionEventDetail, AssistantMessageFeedbackEventDetail } from '@luzmo/analytics-components-kit/ai-chat';
3
3
  /**
4
4
  * React wrapper for <luzmo-ai-chat>
5
5
  *
@@ -10,6 +10,7 @@ import { LuzmoAiChat as LuzmoAiChatClass, AiChatCompleteEvent, AiChatConversatio
10
10
  * @event onLuzmoStop - Fired when an in-flight prompt is stopped
11
11
  * @event onLuzmoConversationIdChanged - Fired when the conversation ID is updated from the API
12
12
  * @event onLuzmoAssistantMessageAction - Fired when a built-in assistant message action is activated (after confirmation when `confirm` is set)
13
+ * @event onLuzmoAssistantMessageFeedback - Fired once when the user selects, switches or clears a thumbs rating, after the session holds the new rating. Not fired for programmatic updates.
13
14
  */
14
15
  export declare const LuzmoAiChat: ReactWebComponent<LuzmoAiChatClass, {
15
16
  onLuzmoMessageSent: EventName<CustomEvent<AiChatMessageSentEventDetail>>;
@@ -19,6 +20,7 @@ export declare const LuzmoAiChat: ReactWebComponent<LuzmoAiChatClass, {
19
20
  onLuzmoStop: EventName<CustomEvent<void>>;
20
21
  onLuzmoConversationIdChanged: EventName<CustomEvent<AiChatConversationIdChangedEventDetail>>;
21
22
  onLuzmoAssistantMessageAction: EventName<CustomEvent<AssistantMessageActionEventDetail>>;
23
+ onLuzmoAssistantMessageFeedback: EventName<CustomEvent<AssistantMessageFeedbackEventDetail>>;
22
24
  }>;
23
25
  /** The underlying custom element type for LuzmoAiChat */
24
26
  export type LuzmoAiChatElement = LuzmoAiChatClass;
@@ -12,7 +12,8 @@ const LuzmoAiChatComponent = createComponent({
12
12
  onLuzmoComplete: 'luzmo-complete',
13
13
  onLuzmoStop: 'luzmo-stop',
14
14
  onLuzmoConversationIdChanged: 'luzmo-conversation-id-changed',
15
- onLuzmoAssistantMessageAction: 'luzmo-assistant-message-action'
15
+ onLuzmoAssistantMessageAction: 'luzmo-assistant-message-action',
16
+ onLuzmoAssistantMessageFeedback: 'luzmo-assistant-message-feedback'
16
17
  }
17
18
  });
18
19
  /**
@@ -25,5 +26,6 @@ const LuzmoAiChatComponent = createComponent({
25
26
  * @event onLuzmoStop - Fired when an in-flight prompt is stopped
26
27
  * @event onLuzmoConversationIdChanged - Fired when the conversation ID is updated from the API
27
28
  * @event onLuzmoAssistantMessageAction - Fired when a built-in assistant message action is activated (after confirmation when `confirm` is set)
29
+ * @event onLuzmoAssistantMessageFeedback - Fired once when the user selects, switches or clears a thumbs rating, after the session holds the new rating. Not fired for programmatic updates.
28
30
  */
29
31
  export const LuzmoAiChat = LuzmoAiChatComponent;
@@ -0,0 +1,14 @@
1
+ import { EventName, ReactWebComponent } from '@lit/react';
2
+ import { LuzmoItemGridItemActionsMenu as LuzmoItemGridItemActionsMenuClass, ItemGridItemActionEventDetail, ItemGridItemActionHoverEventDetail } from '@luzmo/analytics-components-kit/item-grid-item-actions-menu';
3
+ /**
4
+ * React wrapper for <luzmo-item-grid-item-actions-menu>
5
+ *
6
+ * @event onLuzmoItemGridItemAction - Fired when the user activates an action.
7
+ * @event onLuzmoItemGridItemActionHover - Fired when the pointer enters an action, for example to preload what it opens.
8
+ */
9
+ export declare const LuzmoItemGridItemActionsMenu: ReactWebComponent<LuzmoItemGridItemActionsMenuClass, {
10
+ onLuzmoItemGridItemAction: EventName<CustomEvent<ItemGridItemActionEventDetail>>;
11
+ onLuzmoItemGridItemActionHover: EventName<CustomEvent<ItemGridItemActionHoverEventDetail>>;
12
+ }>;
13
+ /** The underlying custom element type for LuzmoItemGridItemActionsMenu */
14
+ export type LuzmoItemGridItemActionsMenuElement = LuzmoItemGridItemActionsMenuClass;
@@ -0,0 +1,19 @@
1
+ import React from 'react';
2
+ import { createComponent } from '@lit/react';
3
+ import { LuzmoItemGridItemActionsMenu as LuzmoItemGridItemActionsMenuClass } from '@luzmo/analytics-components-kit/item-grid-item-actions-menu';
4
+ const LuzmoItemGridItemActionsMenuComponent = createComponent({
5
+ tagName: 'luzmo-item-grid-item-actions-menu',
6
+ elementClass: LuzmoItemGridItemActionsMenuClass,
7
+ react: React,
8
+ events: {
9
+ onLuzmoItemGridItemAction: 'luzmo-item-grid-item-action',
10
+ onLuzmoItemGridItemActionHover: 'luzmo-item-grid-item-action-hover'
11
+ }
12
+ });
13
+ /**
14
+ * React wrapper for <luzmo-item-grid-item-actions-menu>
15
+ *
16
+ * @event onLuzmoItemGridItemAction - Fired when the user activates an action.
17
+ * @event onLuzmoItemGridItemActionHover - Fired when the pointer enters an action, for example to preload what it opens.
18
+ */
19
+ export const LuzmoItemGridItemActionsMenu = LuzmoItemGridItemActionsMenuComponent;
@@ -1,15 +1,17 @@
1
1
  import { EventName, ReactWebComponent } from '@lit/react';
2
- import { LuzmoItemGrid as LuzmoItemGridClass, GridItemActionEventDetail, GridItemStatesChangedEventDetail, GridLifecycleEventDetail } from '@luzmo/analytics-components-kit/item-grid';
2
+ import { LuzmoItemGrid as LuzmoItemGridClass, GridItemActionEventDetail, GridItemStatesChangedEventDetail, GridLifecycleEventDetail, ItemGridItemActionHoverEventDetail } from '@luzmo/analytics-components-kit/item-grid';
3
3
  /**
4
4
  * React wrapper for <luzmo-item-grid>
5
5
  *
6
6
  * @event onLuzmoItemGridItemAction - Fired when an item action is performed
7
+ * @event onLuzmoItemGridItemActionHover - Bubbles from the item actions menu when the pointer enters an action. The detail has only `action` and `type`, not the item.
7
8
  * @event onLuzmoItemGridLayoutChanged - Fired when the grid layout is changed
8
9
  * @event onLuzmoItemGridReady - Fired when the grid is ready
9
10
  * @event onLuzmoItemGridItemStatesChanged - Fired when item states change (controlled and uncontrolled mode)
10
11
  */
11
12
  export declare const LuzmoItemGrid: ReactWebComponent<LuzmoItemGridClass, {
12
13
  onLuzmoItemGridItemAction: EventName<CustomEvent<GridItemActionEventDetail>>;
14
+ onLuzmoItemGridItemActionHover: EventName<CustomEvent<ItemGridItemActionHoverEventDetail>>;
13
15
  onLuzmoItemGridLayoutChanged: EventName<CustomEvent<GridLifecycleEventDetail>>;
14
16
  onLuzmoItemGridReady: EventName<CustomEvent<GridLifecycleEventDetail>>;
15
17
  onLuzmoItemGridItemStatesChanged: EventName<CustomEvent<GridItemStatesChangedEventDetail>>;
@@ -7,6 +7,7 @@ const LuzmoItemGridComponent = createComponent({
7
7
  react: React,
8
8
  events: {
9
9
  onLuzmoItemGridItemAction: 'luzmo-item-grid-item-action',
10
+ onLuzmoItemGridItemActionHover: 'luzmo-item-grid-item-action-hover',
10
11
  onLuzmoItemGridLayoutChanged: 'luzmo-item-grid-layout-changed',
11
12
  onLuzmoItemGridReady: 'luzmo-item-grid-ready',
12
13
  onLuzmoItemGridItemStatesChanged: 'luzmo-item-grid-item-states-changed'
@@ -16,6 +17,7 @@ const LuzmoItemGridComponent = createComponent({
16
17
  * React wrapper for <luzmo-item-grid>
17
18
  *
18
19
  * @event onLuzmoItemGridItemAction - Fired when an item action is performed
20
+ * @event onLuzmoItemGridItemActionHover - Bubbles from the item actions menu when the pointer enters an action. The detail has only `action` and `type`, not the item.
19
21
  * @event onLuzmoItemGridLayoutChanged - Fired when the grid layout is changed
20
22
  * @event onLuzmoItemGridReady - Fired when the grid is ready
21
23
  * @event onLuzmoItemGridItemStatesChanged - Fired when item states change (controlled and uncontrolled mode)
package/esm/index.d.ts CHANGED
@@ -27,6 +27,7 @@ export { LuzmoFormulaEditor, type LuzmoFormulaEditorElement } from './components
27
27
  export { LuzmoFormulaField, type LuzmoFormulaFieldElement } from './components/formula-field.component';
28
28
  export { LuzmoInteractiveVizItem, type LuzmoInteractiveVizItemElement } from './components/interactive-viz-item.component';
29
29
  export { LuzmoItemGrid, type LuzmoItemGridElement } from './components/item-grid.component';
30
+ export { LuzmoItemGridItemActionsMenu, type LuzmoItemGridItemActionsMenuElement } from './components/item-grid-item-actions-menu.component';
30
31
  export { LuzmoItemOption, type LuzmoItemOptionElement } from './components/item-option.component';
31
32
  export { LuzmoItemOptionActionButtonGroup, type LuzmoItemOptionActionButtonGroupElement } from './components/item-option-action-button-group.component';
32
33
  export { LuzmoItemOptionColorPalettePicker, type LuzmoItemOptionColorPalettePickerElement } from './components/item-option-color-palette-picker.component';
@@ -49,7 +50,6 @@ export { LuzmoItemSlotPicker, type LuzmoItemSlotPickerElement } from './componen
49
50
  export { LuzmoItemSlotPickerPanel, type LuzmoItemSlotPickerPanelElement } from './components/item-slot-picker-panel.component';
50
51
  export { LuzmoSlotMenu, type LuzmoSlotMenuElement } from './components/slot-menu.component';
51
52
  export { LuzmoSlotMenuList, type LuzmoSlotMenuListElement } from './components/slot-menu-list.component';
52
- export { LuzmoVizItemMenu, type LuzmoVizItemMenuElement } from './components/viz-item-menu.component';
53
53
  export declare const LUZMO_REACT_COMPONENTS: readonly [any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any];
54
- export declare const LUZMO_REACT_COMPONENT_NAMES: readonly ["LuzmoAddToDashboard", "LuzmoAiChat", "LuzmoAiInteractionTextarea", "LuzmoDataField", "LuzmoDataFieldLevel", "LuzmoDataFieldPanel", "LuzmoDataFieldsSelect", "LuzmoDatasetIcon", "LuzmoDatasetSelectorList", "LuzmoDatasetSelectorRow", "LuzmoDisplaySettings", "LuzmoDisplaySettingsBinning", "LuzmoDisplaySettingsDatetime", "LuzmoDisplaySettingsGrandTotals", "LuzmoDisplaySettingsNumeric", "LuzmoDisplaySettingsPeriodOverPeriod", "LuzmoFilterExpressionPicker", "LuzmoFilterItem", "LuzmoFilterParameterPicker", "LuzmoFilterValuePicker", "LuzmoFilterValuePickerDatetime", "LuzmoFilterValuePickerHierarchy", "LuzmoFilterValuePickerNumeric", "LuzmoFilters", "LuzmoFormula", "LuzmoFormulaEditor", "LuzmoFormulaField", "LuzmoInteractiveVizItem", "LuzmoItemGrid", "LuzmoItemOption", "LuzmoItemOptionActionButtonGroup", "LuzmoItemOptionColorPalettePicker", "LuzmoItemOptionColorPicker", "LuzmoItemOptionColorRange", "LuzmoItemOptionGuidelines", "LuzmoItemOptionMultiLanguageField", "LuzmoItemOptionNumberField", "LuzmoItemOptionPanel", "LuzmoItemOptionPicker", "LuzmoItemOptionPositionPicker", "LuzmoItemOptionPositionsNumberField", "LuzmoItemOptionRadioButtonGroup", "LuzmoItemOptionSlider", "LuzmoItemOptionSwitch", "LuzmoItemOptionTextField", "LuzmoItemSlotDrop", "LuzmoItemSlotDropPanel", "LuzmoItemSlotPicker", "LuzmoItemSlotPickerPanel", "LuzmoSlotMenu", "LuzmoSlotMenuList", "LuzmoVizItemMenu"];
54
+ export declare const LUZMO_REACT_COMPONENT_NAMES: readonly ["LuzmoAddToDashboard", "LuzmoAiChat", "LuzmoAiInteractionTextarea", "LuzmoDataField", "LuzmoDataFieldLevel", "LuzmoDataFieldPanel", "LuzmoDataFieldsSelect", "LuzmoDatasetIcon", "LuzmoDatasetSelectorList", "LuzmoDatasetSelectorRow", "LuzmoDisplaySettings", "LuzmoDisplaySettingsBinning", "LuzmoDisplaySettingsDatetime", "LuzmoDisplaySettingsGrandTotals", "LuzmoDisplaySettingsNumeric", "LuzmoDisplaySettingsPeriodOverPeriod", "LuzmoFilterExpressionPicker", "LuzmoFilterItem", "LuzmoFilterParameterPicker", "LuzmoFilterValuePicker", "LuzmoFilterValuePickerDatetime", "LuzmoFilterValuePickerHierarchy", "LuzmoFilterValuePickerNumeric", "LuzmoFilters", "LuzmoFormula", "LuzmoFormulaEditor", "LuzmoFormulaField", "LuzmoInteractiveVizItem", "LuzmoItemGrid", "LuzmoItemGridItemActionsMenu", "LuzmoItemOption", "LuzmoItemOptionActionButtonGroup", "LuzmoItemOptionColorPalettePicker", "LuzmoItemOptionColorPicker", "LuzmoItemOptionColorRange", "LuzmoItemOptionGuidelines", "LuzmoItemOptionMultiLanguageField", "LuzmoItemOptionNumberField", "LuzmoItemOptionPanel", "LuzmoItemOptionPicker", "LuzmoItemOptionPositionPicker", "LuzmoItemOptionPositionsNumberField", "LuzmoItemOptionRadioButtonGroup", "LuzmoItemOptionSlider", "LuzmoItemOptionSwitch", "LuzmoItemOptionTextField", "LuzmoItemSlotDrop", "LuzmoItemSlotDropPanel", "LuzmoItemSlotPicker", "LuzmoItemSlotPickerPanel", "LuzmoSlotMenu", "LuzmoSlotMenuList"];
55
55
  export type LuzmoReactComponentName = typeof LUZMO_REACT_COMPONENT_NAMES[number];
package/esm/index.js CHANGED
@@ -29,6 +29,7 @@ import { LuzmoFormulaEditor } from './components/formula-editor.component';
29
29
  import { LuzmoFormulaField } from './components/formula-field.component';
30
30
  import { LuzmoInteractiveVizItem } from './components/interactive-viz-item.component';
31
31
  import { LuzmoItemGrid } from './components/item-grid.component';
32
+ import { LuzmoItemGridItemActionsMenu } from './components/item-grid-item-actions-menu.component';
32
33
  import { LuzmoItemOption } from './components/item-option.component';
33
34
  import { LuzmoItemOptionActionButtonGroup } from './components/item-option-action-button-group.component';
34
35
  import { LuzmoItemOptionColorPalettePicker } from './components/item-option-color-palette-picker.component';
@@ -51,7 +52,6 @@ import { LuzmoItemSlotPicker } from './components/item-slot-picker.component';
51
52
  import { LuzmoItemSlotPickerPanel } from './components/item-slot-picker-panel.component';
52
53
  import { LuzmoSlotMenu } from './components/slot-menu.component';
53
54
  import { LuzmoSlotMenuList } from './components/slot-menu-list.component';
54
- import { LuzmoVizItemMenu } from './components/viz-item-menu.component';
55
55
  export { LuzmoAddToDashboard } from './components/add-to-dashboard.component';
56
56
  export { LuzmoAiChat } from './components/ai-chat.component';
57
57
  export { LuzmoAiInteractionTextarea } from './components/ai-interaction-textarea.component';
@@ -81,6 +81,7 @@ export { LuzmoFormulaEditor } from './components/formula-editor.component';
81
81
  export { LuzmoFormulaField } from './components/formula-field.component';
82
82
  export { LuzmoInteractiveVizItem } from './components/interactive-viz-item.component';
83
83
  export { LuzmoItemGrid } from './components/item-grid.component';
84
+ export { LuzmoItemGridItemActionsMenu } from './components/item-grid-item-actions-menu.component';
84
85
  export { LuzmoItemOption } from './components/item-option.component';
85
86
  export { LuzmoItemOptionActionButtonGroup } from './components/item-option-action-button-group.component';
86
87
  export { LuzmoItemOptionColorPalettePicker } from './components/item-option-color-palette-picker.component';
@@ -103,7 +104,6 @@ export { LuzmoItemSlotPicker } from './components/item-slot-picker.component';
103
104
  export { LuzmoItemSlotPickerPanel } from './components/item-slot-picker-panel.component';
104
105
  export { LuzmoSlotMenu } from './components/slot-menu.component';
105
106
  export { LuzmoSlotMenuList } from './components/slot-menu-list.component';
106
- export { LuzmoVizItemMenu } from './components/viz-item-menu.component';
107
107
  // Array of all React component classes for easy imports
108
108
  export const LUZMO_REACT_COMPONENTS = [
109
109
  LuzmoAddToDashboard,
@@ -135,6 +135,7 @@ export const LUZMO_REACT_COMPONENTS = [
135
135
  LuzmoFormulaField,
136
136
  LuzmoInteractiveVizItem,
137
137
  LuzmoItemGrid,
138
+ LuzmoItemGridItemActionsMenu,
138
139
  LuzmoItemOption,
139
140
  LuzmoItemOptionActionButtonGroup,
140
141
  LuzmoItemOptionColorPalettePicker,
@@ -156,8 +157,7 @@ export const LUZMO_REACT_COMPONENTS = [
156
157
  LuzmoItemSlotPicker,
157
158
  LuzmoItemSlotPickerPanel,
158
159
  LuzmoSlotMenu,
159
- LuzmoSlotMenuList,
160
- LuzmoVizItemMenu
160
+ LuzmoSlotMenuList
161
161
  ];
162
162
  // List of all available React component names
163
163
  export const LUZMO_REACT_COMPONENT_NAMES = [
@@ -190,6 +190,7 @@ export const LUZMO_REACT_COMPONENT_NAMES = [
190
190
  'LuzmoFormulaField',
191
191
  'LuzmoInteractiveVizItem',
192
192
  'LuzmoItemGrid',
193
+ 'LuzmoItemGridItemActionsMenu',
193
194
  'LuzmoItemOption',
194
195
  'LuzmoItemOptionActionButtonGroup',
195
196
  'LuzmoItemOptionColorPalettePicker',
@@ -211,6 +212,5 @@ export const LUZMO_REACT_COMPONENT_NAMES = [
211
212
  'LuzmoItemSlotPicker',
212
213
  'LuzmoItemSlotPickerPanel',
213
214
  'LuzmoSlotMenu',
214
- 'LuzmoSlotMenuList',
215
- 'LuzmoVizItemMenu'
215
+ 'LuzmoSlotMenuList'
216
216
  ];
package/package.json CHANGED
@@ -29,7 +29,11 @@
29
29
  "peerDependencies": {
30
30
  "@lit/react": "^1.0.6",
31
31
  "react": "^18.0.0 || ^19.0.0",
32
- "@luzmo/analytics-components-kit": "^1.0.9-beta.9"
32
+ "@luzmo/analytics-components-kit": "^1.1.1"
33
33
  },
34
- "version": "1.0.9-beta.9"
34
+ "version": "1.1.1",
35
+ "repository": {
36
+ "type": "git",
37
+ "url": "git+https://github.com/cumulio-internal/analytics-components-kit.git"
38
+ }
35
39
  }
@@ -1,16 +0,0 @@
1
- import { EventName, ReactWebComponent } from '@lit/react';
2
- import { LuzmoVizItemMenu as LuzmoVizItemMenuClass, VizItemMenuButtonClickedEventDetail, VizItemMenuSelectedChangedEventDetail } from '@luzmo/analytics-components-kit/viz-item-menu';
3
- /**
4
- * React wrapper for <luzmo-viz-item-menu>
5
- *
6
- * @event onSelectedChanged - Emitted when the selected button changes
7
- * @event onButtonClicked - Emitted when any menu item is clicked
8
- * @event onEditButtonHovered - Emitted when hovering over the edit button
9
- */
10
- export declare const LuzmoVizItemMenu: ReactWebComponent<LuzmoVizItemMenuClass, {
11
- onSelectedChanged: EventName<CustomEvent<VizItemMenuSelectedChangedEventDetail>>;
12
- onButtonClicked: EventName<CustomEvent<VizItemMenuButtonClickedEventDetail>>;
13
- onEditButtonHovered: EventName<CustomEvent<void>>;
14
- }>;
15
- /** The underlying custom element type for LuzmoVizItemMenu */
16
- export type LuzmoVizItemMenuElement = LuzmoVizItemMenuClass;
@@ -1,21 +0,0 @@
1
- import React from 'react';
2
- import { createComponent } from '@lit/react';
3
- import { LuzmoVizItemMenu as LuzmoVizItemMenuClass } from '@luzmo/analytics-components-kit/viz-item-menu';
4
- const LuzmoVizItemMenuComponent = createComponent({
5
- tagName: 'luzmo-viz-item-menu',
6
- elementClass: LuzmoVizItemMenuClass,
7
- react: React,
8
- events: {
9
- onSelectedChanged: 'selected-changed',
10
- onButtonClicked: 'button-clicked',
11
- onEditButtonHovered: 'edit-button-hovered'
12
- }
13
- });
14
- /**
15
- * React wrapper for <luzmo-viz-item-menu>
16
- *
17
- * @event onSelectedChanged - Emitted when the selected button changes
18
- * @event onButtonClicked - Emitted when any menu item is clicked
19
- * @event onEditButtonHovered - Emitted when hovering over the edit button
20
- */
21
- export const LuzmoVizItemMenu = LuzmoVizItemMenuComponent;