@trackunit/iris-app-runtime-core-api 1.13.4-alpha-58b6b568fca.0 → 1.13.5

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trackunit/iris-app-runtime-core-api",
3
- "version": "1.13.4-alpha-58b6b568fca.0",
3
+ "version": "1.13.5",
4
4
  "repository": "https://github.com/Trackunit/manager",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "engines": {
@@ -8,8 +8,8 @@
8
8
  },
9
9
  "dependencies": {
10
10
  "@graphql-typed-document-node/core": "^3.2.0",
11
- "@trackunit/shared-utils": "1.13.79-alpha-58b6b568fca.0",
12
- "@trackunit/geo-json-utils": "1.11.80-alpha-58b6b568fca.0"
11
+ "@trackunit/shared-utils": "1.13.80",
12
+ "@trackunit/geo-json-utils": "1.11.81"
13
13
  },
14
14
  "module": "./index.esm.js",
15
15
  "main": "./index.cjs.js",
@@ -1,6 +1,5 @@
1
1
  import { AssetSortingState } from "./AssetSortingRuntime";
2
2
  import { FilterBarValues } from "./FilterBarRuntime";
3
- import { TableColumnOptions } from "./TablePersistenceRuntime";
4
3
  import { TemporalPeriod, TimeRange } from "./TimeRangeRuntime";
5
4
  import { TokenContext } from "./TokenRuntime";
6
5
  export interface ChildConnectorApi {
@@ -48,12 +47,6 @@ export interface ChildConnectorApi {
48
47
  * @deprecated Use { ChildConnectorApi.onAssetsFilterBarValuesChanged} instead.
49
48
  */
50
49
  onFilterBarValuesChanged: (filters: FilterBarValues | null) => void;
51
- /**
52
- * Gets called when the table persistence state changes.
53
- *
54
- * @param tableState new table column options
55
- */
56
- onTablePersistenceStateChanged: (tableState: TableColumnOptions | null) => void;
57
50
  /**
58
51
  * Gets called when the widget poll interval changes.
59
52
  *
@@ -17,12 +17,11 @@ import { OemBrandingRuntimeApi } from "./OemBrandingRuntime";
17
17
  import { ParamsRuntimeApi } from "./ParamsRuntime";
18
18
  import { RestRuntimeApi } from "./RestRuntime";
19
19
  import { SiteRuntimeApi } from "./SiteRuntime";
20
- import { TablePersistenceRuntimeApi } from "./TablePersistenceRuntime";
21
20
  import { ThemeCssRuntimeApi } from "./ThemeCssRuntime";
22
21
  import { TimeRangeRuntimeApi } from "./TimeRangeRuntime";
23
22
  import { ToastRuntimeApi } from "./ToastRuntime";
24
23
  import { TokenRuntimeApi } from "./TokenRuntime";
25
24
  import { UserSubscriptionRuntimeApi } from "./UserSubscriptionRuntime";
26
25
  import { WidgetConfigRuntimeApi } from "./WidgetConfigRuntime";
27
- export interface HostConnectorApi extends AnalyticsRuntimeApi<EventDictionary>, AssetRuntimeApi, AssetSortingRuntimeApi, ConfirmationDialogRuntimeApi, CurrentUserPreferenceRuntimeApi, CurrentUserRuntimeApi, CustomerRuntimeApi, EnvironmentRuntimeApi, EventRuntimeApi, ExportDataRuntimeApi, FilterBarRuntimeApi, GeolocationRuntimeApi, ModalDialogRuntimeApi, NavigationRuntimeApi, OemBrandingRuntimeApi, RestRuntimeApi, SiteRuntimeApi, TablePersistenceRuntimeApi, ThemeCssRuntimeApi, TimeRangeRuntimeApi, ToastRuntimeApi, TokenRuntimeApi, UserSubscriptionRuntimeApi, ParamsRuntimeApi, FeatureFlagRuntimeApi, WidgetConfigRuntimeApi {
26
+ export interface HostConnectorApi extends AnalyticsRuntimeApi<EventDictionary>, AssetRuntimeApi, AssetSortingRuntimeApi, ConfirmationDialogRuntimeApi, CurrentUserPreferenceRuntimeApi, CurrentUserRuntimeApi, CustomerRuntimeApi, EnvironmentRuntimeApi, EventRuntimeApi, ExportDataRuntimeApi, FilterBarRuntimeApi, GeolocationRuntimeApi, ModalDialogRuntimeApi, NavigationRuntimeApi, OemBrandingRuntimeApi, RestRuntimeApi, SiteRuntimeApi, ThemeCssRuntimeApi, TimeRangeRuntimeApi, ToastRuntimeApi, TokenRuntimeApi, UserSubscriptionRuntimeApi, ParamsRuntimeApi, FeatureFlagRuntimeApi, WidgetConfigRuntimeApi {
28
27
  }
@@ -30,6 +30,7 @@ export interface UserSubscription {
30
30
  packageType: UserSubscriptionPackageType;
31
31
  /**
32
32
  * Extra features enabled for the current user. Will be null if still loading.
33
+ * This is meant for internal trackunit use only ! - as we cannot guarantee feature ids/names are stable over time.
33
34
  */
34
35
  features: Array<SubscriptionFeature> | null;
35
36
  /**
package/src/index.d.ts CHANGED
@@ -22,7 +22,6 @@ export * from "./ParamsRuntime";
22
22
  export * from "./RestRuntime";
23
23
  export * from "./RouterRuntime";
24
24
  export * from "./SiteRuntime";
25
- export * from "./TablePersistenceRuntime";
26
25
  export * from "./ThemeCssProperties";
27
26
  export * from "./ThemeCssRuntime";
28
27
  export * from "./TimeRangeRuntime";
@@ -1,37 +0,0 @@
1
- export type SortingEntry = {
2
- id: string;
3
- desc: boolean;
4
- };
5
- export type ColumnPinning = {
6
- left?: Array<string>;
7
- right?: Array<string>;
8
- };
9
- export type TableColumnOptions = {
10
- columnOrder?: Array<string>;
11
- sorting?: Array<SortingEntry>;
12
- columnVisibility?: Record<string, boolean>;
13
- columnSizing?: Record<string, number>;
14
- columnPinning?: ColumnPinning;
15
- };
16
- export interface TablePersistenceContext {
17
- /**
18
- * The current persisted table state, or `null` if no state has been persisted yet.
19
- */
20
- tableState: TableColumnOptions | null;
21
- /**
22
- * Whether the table persistence state is still loading.
23
- */
24
- isLoading: boolean;
25
- }
26
- export interface TablePersistenceRuntimeApi {
27
- /**
28
- * Returns the currently persisted table column state for the active table.
29
- */
30
- getTablePersistenceState: () => Promise<TableColumnOptions | null>;
31
- /**
32
- * Persists a new table column state.
33
- *
34
- * @param state - The table column options to persist.
35
- */
36
- setTablePersistenceState: (state: TableColumnOptions) => Promise<void>;
37
- }