@omni-co/embed 0.19.0 → 0.20.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/README.md CHANGED
@@ -244,7 +244,7 @@ type EmbedSsoDashboardProps = {
244
244
  theme?: string
245
245
 
246
246
  // Optional UI settings object to control appearance of embed experience.
247
- uiSettings?: Record<EmbedUiSettings, boolean>
247
+ uiSettings?: EmbedUiSettingsObject
248
248
 
249
249
  /**
250
250
  * Optional user attributes to be passed to user associated with the
@@ -390,7 +390,7 @@ type EmbedSsoWorkbookProps = {
390
390
  theme?: string
391
391
 
392
392
  // Optional UI settings object to control appearance of embed experience.
393
- uiSettings?: Record<EmbedUiSettings, boolean>
393
+ uiSettings?: EmbedUiSettingsObject
394
394
 
395
395
  /**
396
396
  * Optional user attributes to be passed to user associated with the
@@ -538,7 +538,7 @@ type EmbedSsoContentDiscoveryProps = {
538
538
  theme?: string
539
539
 
540
540
  // Optional UI settings object to control appearance of embed experience.
541
- uiSettings?: Record<EmbedUiSettings, boolean>
541
+ uiSettings?: EmbedUiSettingsObject
542
542
 
543
543
  /**
544
544
  * Optional user attributes to be passed to user associated with the
@@ -689,7 +689,7 @@ type CreateSessionTokenProps = {
689
689
  preserveEntityFolderContentRole?: boolean
690
690
 
691
691
  // Optional UI settings object to control appearance of embed experience.
692
- uiSettings?: Record<EmbedUiSettings, boolean>
692
+ uiSettings?: EmbedUiSettingsObject
693
693
 
694
694
  /**
695
695
  * Optional user attributes to be passed to user associated with the
@@ -78,5 +78,24 @@ export declare enum EmbedUiSettings {
78
78
  * When false, hides all in-app navigation elements. Note that in-app navigation
79
79
  * is only visible when the embed session is in APPLICATION mode.
80
80
  */
81
- SHOW_NAVIGATION = "showNavigation"
81
+ SHOW_NAVIGATION = "showNavigation",
82
+ /**
83
+ * When false, hides the chart context menu (the per-tile "..." / right-click menu)
84
+ * on advanced-layout dashboards. The menu is hidden in view mode but kept in
85
+ * draft/edit mode so authors can still edit tiles. Defaults to true.
86
+ */
87
+ DASHBOARD_CHART_CONTEXT_MENU = "dashboardChartContextMenu",
88
+ /**
89
+ * Controls the folder-path breadcrumb in the document title header when in
90
+ * APPLICATION mode. Accepts a `BreadcrumbDisplayMode` value. Defaults to "link".
91
+ */
92
+ DOCUMENT_BREADCRUMB = "documentBreadcrumb"
82
93
  }
94
+ /**
95
+ * Display modes for the `documentBreadcrumb` UI setting.
96
+ *
97
+ * "link": breadcrumb shown as clickable links (default behavior).
98
+ * "display": breadcrumb text stays visible but is not a hyperlink.
99
+ * "none": breadcrumb is hidden entirely.
100
+ */
101
+ export type BreadcrumbDisplayMode = 'display' | 'link' | 'none';
@@ -94,4 +94,15 @@ var EmbedUiSettings;
94
94
  * is only visible when the embed session is in APPLICATION mode.
95
95
  */
96
96
  EmbedUiSettings["SHOW_NAVIGATION"] = "showNavigation";
97
+ /**
98
+ * When false, hides the chart context menu (the per-tile "..." / right-click menu)
99
+ * on advanced-layout dashboards. The menu is hidden in view mode but kept in
100
+ * draft/edit mode so authors can still edit tiles. Defaults to true.
101
+ */
102
+ EmbedUiSettings["DASHBOARD_CHART_CONTEXT_MENU"] = "dashboardChartContextMenu";
103
+ /**
104
+ * Controls the folder-path breadcrumb in the document title header when in
105
+ * APPLICATION mode. Accepts a `BreadcrumbDisplayMode` value. Defaults to "link".
106
+ */
107
+ EmbedUiSettings["DOCUMENT_BREADCRUMB"] = "documentBreadcrumb";
97
108
  })(EmbedUiSettings || (exports.EmbedUiSettings = EmbedUiSettings = {}));
@@ -1,4 +1,15 @@
1
- import type { CustomThemeProperty, EmbedEntityFolderContentRoles, EmbedSessionMode, EmbedUiSettings } from './constants.js';
1
+ import { EmbedUiSettings } from './constants.js';
2
+ import type { BreadcrumbDisplayMode, CustomThemeProperty, EmbedEntityFolderContentRoles, EmbedSessionMode } from './constants.js';
3
+ /**
4
+ * UI settings object controlling appearance settings of the embed session.
5
+ * Each key is optional; values are booleans except `documentBreadcrumb`, which
6
+ * takes a `BreadcrumbDisplayMode`.
7
+ */
8
+ export type EmbedUiSettingsObject = {
9
+ [EmbedUiSettings.SHOW_NAVIGATION]?: boolean;
10
+ [EmbedUiSettings.DASHBOARD_CHART_CONTEXT_MENU]?: boolean;
11
+ [EmbedUiSettings.DOCUMENT_BREADCRUMB]?: BreadcrumbDisplayMode;
12
+ };
2
13
  type UserAttributeValue = string | string[] | number | number[];
3
14
  type HostProps = ({
4
15
  host?: never;
@@ -110,7 +121,7 @@ type EmbedSsoBaseProps = {
110
121
  email?: string;
111
122
  filterSearchParam?: string;
112
123
  linkAccess?: string;
113
- uiSettings?: Record<EmbedUiSettings, boolean>;
124
+ uiSettings?: EmbedUiSettingsObject;
114
125
  /**
115
126
  * Optional branch setting that sets the model branch of the embed session.
116
127
  */
package/lib/cjs/types.js CHANGED
@@ -1,2 +1,3 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ const constants_js_1 = require("./constants.js");
@@ -78,5 +78,24 @@ export declare enum EmbedUiSettings {
78
78
  * When false, hides all in-app navigation elements. Note that in-app navigation
79
79
  * is only visible when the embed session is in APPLICATION mode.
80
80
  */
81
- SHOW_NAVIGATION = "showNavigation"
81
+ SHOW_NAVIGATION = "showNavigation",
82
+ /**
83
+ * When false, hides the chart context menu (the per-tile "..." / right-click menu)
84
+ * on advanced-layout dashboards. The menu is hidden in view mode but kept in
85
+ * draft/edit mode so authors can still edit tiles. Defaults to true.
86
+ */
87
+ DASHBOARD_CHART_CONTEXT_MENU = "dashboardChartContextMenu",
88
+ /**
89
+ * Controls the folder-path breadcrumb in the document title header when in
90
+ * APPLICATION mode. Accepts a `BreadcrumbDisplayMode` value. Defaults to "link".
91
+ */
92
+ DOCUMENT_BREADCRUMB = "documentBreadcrumb"
82
93
  }
94
+ /**
95
+ * Display modes for the `documentBreadcrumb` UI setting.
96
+ *
97
+ * "link": breadcrumb shown as clickable links (default behavior).
98
+ * "display": breadcrumb text stays visible but is not a hyperlink.
99
+ * "none": breadcrumb is hidden entirely.
100
+ */
101
+ export type BreadcrumbDisplayMode = 'display' | 'link' | 'none';
@@ -91,4 +91,15 @@ export var EmbedUiSettings;
91
91
  * is only visible when the embed session is in APPLICATION mode.
92
92
  */
93
93
  EmbedUiSettings["SHOW_NAVIGATION"] = "showNavigation";
94
+ /**
95
+ * When false, hides the chart context menu (the per-tile "..." / right-click menu)
96
+ * on advanced-layout dashboards. The menu is hidden in view mode but kept in
97
+ * draft/edit mode so authors can still edit tiles. Defaults to true.
98
+ */
99
+ EmbedUiSettings["DASHBOARD_CHART_CONTEXT_MENU"] = "dashboardChartContextMenu";
100
+ /**
101
+ * Controls the folder-path breadcrumb in the document title header when in
102
+ * APPLICATION mode. Accepts a `BreadcrumbDisplayMode` value. Defaults to "link".
103
+ */
104
+ EmbedUiSettings["DOCUMENT_BREADCRUMB"] = "documentBreadcrumb";
94
105
  })(EmbedUiSettings || (EmbedUiSettings = {}));
@@ -1,4 +1,15 @@
1
- import type { CustomThemeProperty, EmbedEntityFolderContentRoles, EmbedSessionMode, EmbedUiSettings } from './constants.js';
1
+ import { EmbedUiSettings } from './constants.js';
2
+ import type { BreadcrumbDisplayMode, CustomThemeProperty, EmbedEntityFolderContentRoles, EmbedSessionMode } from './constants.js';
3
+ /**
4
+ * UI settings object controlling appearance settings of the embed session.
5
+ * Each key is optional; values are booleans except `documentBreadcrumb`, which
6
+ * takes a `BreadcrumbDisplayMode`.
7
+ */
8
+ export type EmbedUiSettingsObject = {
9
+ [EmbedUiSettings.SHOW_NAVIGATION]?: boolean;
10
+ [EmbedUiSettings.DASHBOARD_CHART_CONTEXT_MENU]?: boolean;
11
+ [EmbedUiSettings.DOCUMENT_BREADCRUMB]?: BreadcrumbDisplayMode;
12
+ };
2
13
  type UserAttributeValue = string | string[] | number | number[];
3
14
  type HostProps = ({
4
15
  host?: never;
@@ -110,7 +121,7 @@ type EmbedSsoBaseProps = {
110
121
  email?: string;
111
122
  filterSearchParam?: string;
112
123
  linkAccess?: string;
113
- uiSettings?: Record<EmbedUiSettings, boolean>;
124
+ uiSettings?: EmbedUiSettingsObject;
114
125
  /**
115
126
  * Optional branch setting that sets the model branch of the embed session.
116
127
  */
package/lib/esm/types.js CHANGED
@@ -1 +1 @@
1
- export {};
1
+ import { EmbedUiSettings } from './constants.js';
@@ -78,5 +78,24 @@ export declare enum EmbedUiSettings {
78
78
  * When false, hides all in-app navigation elements. Note that in-app navigation
79
79
  * is only visible when the embed session is in APPLICATION mode.
80
80
  */
81
- SHOW_NAVIGATION = "showNavigation"
81
+ SHOW_NAVIGATION = "showNavigation",
82
+ /**
83
+ * When false, hides the chart context menu (the per-tile "..." / right-click menu)
84
+ * on advanced-layout dashboards. The menu is hidden in view mode but kept in
85
+ * draft/edit mode so authors can still edit tiles. Defaults to true.
86
+ */
87
+ DASHBOARD_CHART_CONTEXT_MENU = "dashboardChartContextMenu",
88
+ /**
89
+ * Controls the folder-path breadcrumb in the document title header when in
90
+ * APPLICATION mode. Accepts a `BreadcrumbDisplayMode` value. Defaults to "link".
91
+ */
92
+ DOCUMENT_BREADCRUMB = "documentBreadcrumb"
82
93
  }
94
+ /**
95
+ * Display modes for the `documentBreadcrumb` UI setting.
96
+ *
97
+ * "link": breadcrumb shown as clickable links (default behavior).
98
+ * "display": breadcrumb text stays visible but is not a hyperlink.
99
+ * "none": breadcrumb is hidden entirely.
100
+ */
101
+ export type BreadcrumbDisplayMode = 'display' | 'link' | 'none';
@@ -91,4 +91,15 @@ export var EmbedUiSettings;
91
91
  * is only visible when the embed session is in APPLICATION mode.
92
92
  */
93
93
  EmbedUiSettings["SHOW_NAVIGATION"] = "showNavigation";
94
+ /**
95
+ * When false, hides the chart context menu (the per-tile "..." / right-click menu)
96
+ * on advanced-layout dashboards. The menu is hidden in view mode but kept in
97
+ * draft/edit mode so authors can still edit tiles. Defaults to true.
98
+ */
99
+ EmbedUiSettings["DASHBOARD_CHART_CONTEXT_MENU"] = "dashboardChartContextMenu";
100
+ /**
101
+ * Controls the folder-path breadcrumb in the document title header when in
102
+ * APPLICATION mode. Accepts a `BreadcrumbDisplayMode` value. Defaults to "link".
103
+ */
104
+ EmbedUiSettings["DOCUMENT_BREADCRUMB"] = "documentBreadcrumb";
94
105
  })(EmbedUiSettings || (EmbedUiSettings = {}));
@@ -1,4 +1,15 @@
1
- import type { CustomThemeProperty, EmbedEntityFolderContentRoles, EmbedSessionMode, EmbedUiSettings } from './constants.js';
1
+ import { EmbedUiSettings } from './constants.js';
2
+ import type { BreadcrumbDisplayMode, CustomThemeProperty, EmbedEntityFolderContentRoles, EmbedSessionMode } from './constants.js';
3
+ /**
4
+ * UI settings object controlling appearance settings of the embed session.
5
+ * Each key is optional; values are booleans except `documentBreadcrumb`, which
6
+ * takes a `BreadcrumbDisplayMode`.
7
+ */
8
+ export type EmbedUiSettingsObject = {
9
+ [EmbedUiSettings.SHOW_NAVIGATION]?: boolean;
10
+ [EmbedUiSettings.DASHBOARD_CHART_CONTEXT_MENU]?: boolean;
11
+ [EmbedUiSettings.DOCUMENT_BREADCRUMB]?: BreadcrumbDisplayMode;
12
+ };
2
13
  type UserAttributeValue = string | string[] | number | number[];
3
14
  type HostProps = ({
4
15
  host?: never;
@@ -110,7 +121,7 @@ type EmbedSsoBaseProps = {
110
121
  email?: string;
111
122
  filterSearchParam?: string;
112
123
  linkAccess?: string;
113
- uiSettings?: Record<EmbedUiSettings, boolean>;
124
+ uiSettings?: EmbedUiSettingsObject;
114
125
  /**
115
126
  * Optional branch setting that sets the model branch of the embed session.
116
127
  */
@@ -1 +1 @@
1
- export {};
1
+ import { EmbedUiSettings } from './constants.js';
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.19.0",
2
+ "version": "0.20.0",
3
3
  "license": "MIT",
4
4
  "name": "@omni-co/embed",
5
5
  "author": "Nate Agrin <nate@exploreomni.com>",