@ws-ui/shared 1.1.1 → 1.5.1

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.
@@ -187,6 +187,7 @@ declare namespace datasources {
187
187
  sources: IDSChildren;
188
188
  root: DataSource;
189
189
  }
190
+
190
191
  type ICreateDataSource =
191
192
  | ICreateDataSourceScalar
192
193
  | ICreateDataSourceArray
@@ -197,13 +198,6 @@ declare namespace datasources {
197
198
  | datasources.ICreateDataSourceEntity
198
199
  | datasources.ICreateDataSourceEntitySelection;
199
200
 
200
- interface ICreateDataSourceCommon {
201
- id: string;
202
- initialValue: any;
203
- events?: webforms.WEvent[];
204
- namespace: string;
205
- }
206
-
207
201
  interface ICreateDataSourceCommon {
208
202
  id: string;
209
203
  initialValue: any;
@@ -215,6 +209,13 @@ declare namespace datasources {
215
209
  };
216
210
  }
217
211
 
212
+ interface ICreateDataSourceScalar extends ICreateDataSourceCommon {
213
+ type: 'scalar';
214
+ initialValue?: string | boolean | number | any[] | object | null;
215
+ dataType: TJSType;
216
+ from?: string;
217
+ }
218
+
218
219
  interface ICreateDataSourceArray extends ICreateDataSourceCommon {
219
220
  id: string;
220
221
  type: 'scalar';
@@ -245,6 +246,7 @@ declare namespace datasources {
245
246
  pageSize: number | null;
246
247
  dataType?: string;
247
248
  }
249
+
248
250
  interface IDSMethods {
249
251
  [key: string]: catalog.IMethod;
250
252
  }
@@ -1,4 +1,4 @@
1
- export type FeatureName = 'debugger' | 'modelEditor' | 'roles';
1
+ export type FeatureName = 'debugger' | 'modelEditor' | 'roles' | 'i18n';
2
2
  export declare function useFeatureFlags(initialConfig: {
3
3
  features: Record<FeatureName, {
4
4
  enabled: boolean;