@omni-co/embed 0.19.0 → 0.21.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 +30 -1
- package/lib/cjs/constants.js +21 -0
- package/lib/cjs/types.d.ts +15 -2
- package/lib/cjs/types.js +1 -0
- package/lib/esm/constants.d.ts +30 -1
- package/lib/esm/constants.js +21 -0
- package/lib/esm/types.d.ts +15 -2
- package/lib/esm/types.js +1 -1
- package/lib/omni_internal_browser/constants.d.ts +30 -1
- package/lib/omni_internal_browser/constants.js +21 -0
- package/lib/omni_internal_browser/types.d.ts +15 -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,34 @@ 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",
|
|
93
|
+
/**
|
|
94
|
+
* When false, hides the `Generated <timestamp>` stamp in the dashboard footer.
|
|
95
|
+
* Defaults to true.
|
|
96
|
+
*/
|
|
97
|
+
DASHBOARD_GENERATED_AT = "dashboardGeneratedAt",
|
|
98
|
+
/**
|
|
99
|
+
* When false, hides the "Query ran <timestamp>" entry in a dashboard tile's
|
|
100
|
+
* menu. Defaults to true.
|
|
101
|
+
*/
|
|
102
|
+
TILE_RAN_TIMESTAMP = "tileRanTimestamp"
|
|
82
103
|
}
|
|
104
|
+
/**
|
|
105
|
+
* Display modes for the `documentBreadcrumb` UI setting.
|
|
106
|
+
*
|
|
107
|
+
* "link": breadcrumb shown as clickable links (default behavior).
|
|
108
|
+
* "display": breadcrumb text stays visible but is not a hyperlink.
|
|
109
|
+
* "none": breadcrumb is hidden entirely.
|
|
110
|
+
*/
|
|
111
|
+
export type BreadcrumbDisplayMode = 'display' | 'link' | 'none';
|
package/lib/cjs/constants.js
CHANGED
|
@@ -94,4 +94,25 @@ 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";
|
|
108
|
+
/**
|
|
109
|
+
* When false, hides the `Generated <timestamp>` stamp in the dashboard footer.
|
|
110
|
+
* Defaults to true.
|
|
111
|
+
*/
|
|
112
|
+
EmbedUiSettings["DASHBOARD_GENERATED_AT"] = "dashboardGeneratedAt";
|
|
113
|
+
/**
|
|
114
|
+
* When false, hides the "Query ran <timestamp>" entry in a dashboard tile's
|
|
115
|
+
* menu. Defaults to true.
|
|
116
|
+
*/
|
|
117
|
+
EmbedUiSettings["TILE_RAN_TIMESTAMP"] = "tileRanTimestamp";
|
|
97
118
|
})(EmbedUiSettings || (exports.EmbedUiSettings = EmbedUiSettings = {}));
|
package/lib/cjs/types.d.ts
CHANGED
|
@@ -1,4 +1,17 @@
|
|
|
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
|
+
[EmbedUiSettings.DASHBOARD_GENERATED_AT]?: boolean;
|
|
13
|
+
[EmbedUiSettings.TILE_RAN_TIMESTAMP]?: boolean;
|
|
14
|
+
};
|
|
2
15
|
type UserAttributeValue = string | string[] | number | number[];
|
|
3
16
|
type HostProps = ({
|
|
4
17
|
host?: never;
|
|
@@ -110,7 +123,7 @@ type EmbedSsoBaseProps = {
|
|
|
110
123
|
email?: string;
|
|
111
124
|
filterSearchParam?: string;
|
|
112
125
|
linkAccess?: string;
|
|
113
|
-
uiSettings?:
|
|
126
|
+
uiSettings?: EmbedUiSettingsObject;
|
|
114
127
|
/**
|
|
115
128
|
* Optional branch setting that sets the model branch of the embed session.
|
|
116
129
|
*/
|
package/lib/cjs/types.js
CHANGED
package/lib/esm/constants.d.ts
CHANGED
|
@@ -78,5 +78,34 @@ 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",
|
|
93
|
+
/**
|
|
94
|
+
* When false, hides the `Generated <timestamp>` stamp in the dashboard footer.
|
|
95
|
+
* Defaults to true.
|
|
96
|
+
*/
|
|
97
|
+
DASHBOARD_GENERATED_AT = "dashboardGeneratedAt",
|
|
98
|
+
/**
|
|
99
|
+
* When false, hides the "Query ran <timestamp>" entry in a dashboard tile's
|
|
100
|
+
* menu. Defaults to true.
|
|
101
|
+
*/
|
|
102
|
+
TILE_RAN_TIMESTAMP = "tileRanTimestamp"
|
|
82
103
|
}
|
|
104
|
+
/**
|
|
105
|
+
* Display modes for the `documentBreadcrumb` UI setting.
|
|
106
|
+
*
|
|
107
|
+
* "link": breadcrumb shown as clickable links (default behavior).
|
|
108
|
+
* "display": breadcrumb text stays visible but is not a hyperlink.
|
|
109
|
+
* "none": breadcrumb is hidden entirely.
|
|
110
|
+
*/
|
|
111
|
+
export type BreadcrumbDisplayMode = 'display' | 'link' | 'none';
|
package/lib/esm/constants.js
CHANGED
|
@@ -91,4 +91,25 @@ 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";
|
|
105
|
+
/**
|
|
106
|
+
* When false, hides the `Generated <timestamp>` stamp in the dashboard footer.
|
|
107
|
+
* Defaults to true.
|
|
108
|
+
*/
|
|
109
|
+
EmbedUiSettings["DASHBOARD_GENERATED_AT"] = "dashboardGeneratedAt";
|
|
110
|
+
/**
|
|
111
|
+
* When false, hides the "Query ran <timestamp>" entry in a dashboard tile's
|
|
112
|
+
* menu. Defaults to true.
|
|
113
|
+
*/
|
|
114
|
+
EmbedUiSettings["TILE_RAN_TIMESTAMP"] = "tileRanTimestamp";
|
|
94
115
|
})(EmbedUiSettings || (EmbedUiSettings = {}));
|
package/lib/esm/types.d.ts
CHANGED
|
@@ -1,4 +1,17 @@
|
|
|
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
|
+
[EmbedUiSettings.DASHBOARD_GENERATED_AT]?: boolean;
|
|
13
|
+
[EmbedUiSettings.TILE_RAN_TIMESTAMP]?: boolean;
|
|
14
|
+
};
|
|
2
15
|
type UserAttributeValue = string | string[] | number | number[];
|
|
3
16
|
type HostProps = ({
|
|
4
17
|
host?: never;
|
|
@@ -110,7 +123,7 @@ type EmbedSsoBaseProps = {
|
|
|
110
123
|
email?: string;
|
|
111
124
|
filterSearchParam?: string;
|
|
112
125
|
linkAccess?: string;
|
|
113
|
-
uiSettings?:
|
|
126
|
+
uiSettings?: EmbedUiSettingsObject;
|
|
114
127
|
/**
|
|
115
128
|
* Optional branch setting that sets the model branch of the embed session.
|
|
116
129
|
*/
|
package/lib/esm/types.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
import { EmbedUiSettings } from './constants.js';
|
|
@@ -78,5 +78,34 @@ 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",
|
|
93
|
+
/**
|
|
94
|
+
* When false, hides the `Generated <timestamp>` stamp in the dashboard footer.
|
|
95
|
+
* Defaults to true.
|
|
96
|
+
*/
|
|
97
|
+
DASHBOARD_GENERATED_AT = "dashboardGeneratedAt",
|
|
98
|
+
/**
|
|
99
|
+
* When false, hides the "Query ran <timestamp>" entry in a dashboard tile's
|
|
100
|
+
* menu. Defaults to true.
|
|
101
|
+
*/
|
|
102
|
+
TILE_RAN_TIMESTAMP = "tileRanTimestamp"
|
|
82
103
|
}
|
|
104
|
+
/**
|
|
105
|
+
* Display modes for the `documentBreadcrumb` UI setting.
|
|
106
|
+
*
|
|
107
|
+
* "link": breadcrumb shown as clickable links (default behavior).
|
|
108
|
+
* "display": breadcrumb text stays visible but is not a hyperlink.
|
|
109
|
+
* "none": breadcrumb is hidden entirely.
|
|
110
|
+
*/
|
|
111
|
+
export type BreadcrumbDisplayMode = 'display' | 'link' | 'none';
|
|
@@ -91,4 +91,25 @@ 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";
|
|
105
|
+
/**
|
|
106
|
+
* When false, hides the `Generated <timestamp>` stamp in the dashboard footer.
|
|
107
|
+
* Defaults to true.
|
|
108
|
+
*/
|
|
109
|
+
EmbedUiSettings["DASHBOARD_GENERATED_AT"] = "dashboardGeneratedAt";
|
|
110
|
+
/**
|
|
111
|
+
* When false, hides the "Query ran <timestamp>" entry in a dashboard tile's
|
|
112
|
+
* menu. Defaults to true.
|
|
113
|
+
*/
|
|
114
|
+
EmbedUiSettings["TILE_RAN_TIMESTAMP"] = "tileRanTimestamp";
|
|
94
115
|
})(EmbedUiSettings || (EmbedUiSettings = {}));
|
|
@@ -1,4 +1,17 @@
|
|
|
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
|
+
[EmbedUiSettings.DASHBOARD_GENERATED_AT]?: boolean;
|
|
13
|
+
[EmbedUiSettings.TILE_RAN_TIMESTAMP]?: boolean;
|
|
14
|
+
};
|
|
2
15
|
type UserAttributeValue = string | string[] | number | number[];
|
|
3
16
|
type HostProps = ({
|
|
4
17
|
host?: never;
|
|
@@ -110,7 +123,7 @@ type EmbedSsoBaseProps = {
|
|
|
110
123
|
email?: string;
|
|
111
124
|
filterSearchParam?: string;
|
|
112
125
|
linkAccess?: string;
|
|
113
|
-
uiSettings?:
|
|
126
|
+
uiSettings?: EmbedUiSettingsObject;
|
|
114
127
|
/**
|
|
115
128
|
* Optional branch setting that sets the model branch of the embed session.
|
|
116
129
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
import { EmbedUiSettings } from './constants.js';
|
package/package.json
CHANGED