@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 +4 -4
- package/lib/cjs/constants.d.ts +20 -1
- package/lib/cjs/constants.js +11 -0
- package/lib/cjs/types.d.ts +13 -2
- package/lib/cjs/types.js +1 -0
- package/lib/esm/constants.d.ts +20 -1
- package/lib/esm/constants.js +11 -0
- package/lib/esm/types.d.ts +13 -2
- package/lib/esm/types.js +1 -1
- package/lib/omni_internal_browser/constants.d.ts +20 -1
- package/lib/omni_internal_browser/constants.js +11 -0
- package/lib/omni_internal_browser/types.d.ts +13 -2
- package/lib/omni_internal_browser/types.js +1 -1
- package/package.json +1 -1
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?:
|
|
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?:
|
|
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?:
|
|
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?:
|
|
692
|
+
uiSettings?: EmbedUiSettingsObject
|
|
693
693
|
|
|
694
694
|
/**
|
|
695
695
|
* Optional user attributes to be passed to user associated with the
|
package/lib/cjs/constants.d.ts
CHANGED
|
@@ -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';
|
package/lib/cjs/constants.js
CHANGED
|
@@ -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 = {}));
|
package/lib/cjs/types.d.ts
CHANGED
|
@@ -1,4 +1,15 @@
|
|
|
1
|
-
import
|
|
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?:
|
|
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
package/lib/esm/constants.d.ts
CHANGED
|
@@ -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';
|
package/lib/esm/constants.js
CHANGED
|
@@ -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 = {}));
|
package/lib/esm/types.d.ts
CHANGED
|
@@ -1,4 +1,15 @@
|
|
|
1
|
-
import
|
|
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?:
|
|
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
|
-
|
|
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
|
|
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?:
|
|
124
|
+
uiSettings?: EmbedUiSettingsObject;
|
|
114
125
|
/**
|
|
115
126
|
* Optional branch setting that sets the model branch of the embed session.
|
|
116
127
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
import { EmbedUiSettings } from './constants.js';
|
package/package.json
CHANGED