@topconsultnpm/sdkui-react 6.20.0-dev2.36 → 6.20.0-dev2.38

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.
@@ -15,8 +15,6 @@ declare const getColor: (color: ColorsType) => string;
15
15
  * @returns {string} Un UUID in formato stringa.
16
16
  */
17
17
  export declare const generateUUID: () => string;
18
- /** Checks if beta features are enabled for a specific user and archive.*/
19
- export declare const isBetaFeatureEnabled: (archiveId: string | undefined, userId: number | undefined) => boolean;
20
18
  declare const makeID: (length: number) => string;
21
19
  export declare const truncateText: (text: string, maxLength: number) => string;
22
20
  declare function genUniqueId(): string;
@@ -1,7 +1,7 @@
1
1
  import { Fragment as _Fragment, jsxs as _jsxs, jsx as _jsx } from "react/jsx-runtime";
2
2
  import { Colors } from "../utils/theme";
3
3
  import { ButtonNames, DeviceType, TMExceptionBoxManager, TMMessageBoxManager, TMSpinner } from "../components";
4
- import { AccessLevels, LocalStorageService, MetadataDataDomains, MetadataDataTypes, MetadataDescriptor, MetadataFormatDescriptor, MetadataFormats, MetadataPermission, SDK_Globals, SetGlobalsInfoAsync, SystemMIDs, SystemMIDsAsNumber, Task_States, TopMediaServer, WorkItemMetadataNames } from "@topconsultnpm/sdk-ts";
4
+ import { AccessLevels, MetadataDataDomains, MetadataDataTypes, MetadataDescriptor, MetadataFormatDescriptor, MetadataFormats, MetadataPermission, SDK_Globals, SetGlobalsInfoAsync, SystemMIDs, SystemMIDsAsNumber, Task_States, TopMediaServer, WorkItemMetadataNames } from "@topconsultnpm/sdk-ts";
5
5
  import { Buffer } from 'buffer';
6
6
  import { buildTypes, FileExtensionHandler, FormModes, moduleTypes } from "../ts";
7
7
  import { SDKUI_Localizator } from "./SDKUI_Localizator";
@@ -93,25 +93,6 @@ const getColor = (color) => {
93
93
  export const generateUUID = () => {
94
94
  return crypto.randomUUID();
95
95
  };
96
- /** Checks if beta features are enabled for a specific user and archive.*/
97
- export const isBetaFeatureEnabled = (archiveId, userId) => {
98
- if (!archiveId || !userId)
99
- return false;
100
- const localStorageKey = `FEATURES_${archiveId}_${userId}`;
101
- let raw = LocalStorageService.getItem(localStorageKey);
102
- if (typeof raw === 'string') {
103
- try {
104
- raw = JSON.parse(raw);
105
- }
106
- catch {
107
- raw = null;
108
- }
109
- }
110
- if (raw && typeof raw === 'object' && 'devSettings' in raw) {
111
- return raw.devSettings.betaFeatures === 1;
112
- }
113
- return false;
114
- };
115
96
  const makeID = (length) => {
116
97
  let result = '';
117
98
  const characters = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@topconsultnpm/sdkui-react",
3
- "version": "6.20.0-dev2.36",
3
+ "version": "6.20.0-dev2.38",
4
4
  "description": "",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1",