jamespot-react-core 1.1.183 → 1.1.185

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.
Files changed (33) hide show
  1. package/build/724.843c4f66e67a00f149d5.chunk.js +561 -0
  2. package/build/724.843c4f66e67a00f149d5.chunk.js.map +1 -0
  3. package/build/app.bundle.js +653 -641
  4. package/build/app.bundle.js.map +1 -1
  5. package/build/socket.sharedworker.36b2317446c7c433029e.js.map +1 -1
  6. package/build/src/ReactCore.d.ts +10 -4
  7. package/build/src/components/widgets/wrapper/JRCWidgetDatasourceTableWrapper.d.ts +1 -1
  8. package/build/src/components/widgets/wrapper/JRCWidgetExcelDatasourceTableWrapper.d.ts +1 -1
  9. package/build/src/components/widgets/wrapper/utils.d.ts +2 -2
  10. package/build/src/displayer/DisplayForm.component.d.ts +1 -2
  11. package/build/src/displayer/types.d.ts +1 -0
  12. package/build/src/displayer/useDisplay.d.ts +1 -2
  13. package/build/src/initTinymce.d.ts +2 -0
  14. package/build/src/redux/store.d.ts +2644 -0
  15. package/build/src/registry/CommonRegistry.d.ts +2 -0
  16. package/build/src/registry/CoreRegistry.d.ts +2 -0
  17. package/build/src/registry/GlobalRegistry.d.ts +13 -0
  18. package/build/src/registry/ReactCommonRegistry.d.ts +13 -0
  19. package/build/src/registry/ReactCoreRegistry.d.ts +13 -0
  20. package/build/src/registry/index.d.ts +1 -0
  21. package/build/src/registry/types.common.d.ts +14 -0
  22. package/build/src/registry/types.core.d.ts +14 -0
  23. package/build/src/types.d.ts +2 -1
  24. package/build/src/utils/socket.d.ts +1 -1
  25. package/build/src/utils/types.d.ts +4 -50
  26. package/build/src/utils/types.socket.d.ts +48 -0
  27. package/build/tsconfig.tsbuildinfo +1 -0
  28. package/package.json +10 -10
  29. package/build/724.4e810912c9eacc41e4bb.chunk.js +0 -559
  30. package/build/724.4e810912c9eacc41e4bb.chunk.js.map +0 -1
  31. package/build/src/registry/ReactRegistry.d.ts +0 -13
  32. package/build/src/registry/Registry.d.ts +0 -2
  33. package/build/src/registry/types.d.ts +0 -31
@@ -1,17 +1,20 @@
1
- import { ReactCore, ReactExtensions, ReactSocket, Gabarit, ReactLoadedExtensions } from './utils/types';
1
+ import { ReactCore, ReactExtensions, Gabarit, ReactLoadedExtensions } from './utils/types';
2
2
  import { ReactTranslation, SupportedLanguages } from './utils/translation';
3
3
  import * as React from 'react';
4
4
  import { useDisplay, useDisplayList } from './displayer/useDisplay';
5
5
  import { ReactRouter } from './utils/router';
6
6
  import { JInjectStore } from './redux/store';
7
7
  import { TinyMCECommonOptions } from 'jamespot-user-api';
8
- import { ReactRegistry } from './registry/ReactRegistry';
8
+ import { ReactCommonRegistry } from './registry/ReactCommonRegistry';
9
+ import { ReactCoreRegistry } from './registry/ReactCoreRegistry';
10
+ import { ReactSocket } from './utils/types.socket';
11
+ import { GlobalRegistry } from './registry/GlobalRegistry';
9
12
  declare class App implements ReactCore {
10
13
  extensions: ReactExtensions;
11
14
  loadedExtensions: ReactLoadedExtensions;
12
15
  store: JInjectStore;
13
16
  actions: object;
14
- registry: ReactRegistry;
17
+ registry: GlobalRegistry;
15
18
  useDisplay: typeof useDisplay;
16
19
  useDisplayList: typeof useDisplayList;
17
20
  locale: SupportedLanguages;
@@ -20,7 +23,10 @@ declare class App implements ReactCore {
20
23
  socket: ReactSocket;
21
24
  router: ReactRouter;
22
25
  tinymceCommonOptions?: TinyMCECommonOptions;
23
- constructor(store: JInjectStore, ActionCreators: object, registry: ReactRegistry, locale: SupportedLanguages, translation: ReactTranslation, socket: ReactSocket);
26
+ constructor(store: JInjectStore, ActionCreators: object, registry: {
27
+ commonComponentsRegistry: ReactCommonRegistry;
28
+ coreComponentsRegistry: ReactCoreRegistry;
29
+ }, locale: SupportedLanguages, translation: ReactTranslation, socket: ReactSocket);
24
30
  require: (extensionName: string, args?: any) => void;
25
31
  unmountExtension: (extensionName: string, args?: any) => void;
26
32
  extensionAdd(extensionName: string, load: () => void): void;
@@ -11,7 +11,7 @@ export declare const WidgetDatasourceTableWrapper: ({ uniqid, uri, limit, tableH
11
11
  label?: string | undefined;
12
12
  isVisible?: boolean | undefined;
13
13
  textEllipsis?: boolean | undefined;
14
- dateFormat?: "time" | "date" | "date-time" | "date-time-sec" | "time-sec" | undefined;
14
+ dateFormat?: "date" | "time" | "date-time" | "date-time-sec" | "time-sec" | undefined;
15
15
  numberFormat?: "fr-FR" | "en-EN" | "filesize" | undefined;
16
16
  }[] | undefined;
17
17
  tableHeadColor?: string | undefined;
@@ -11,7 +11,7 @@ export declare const WidgetExcelDatasourceTableWrapper: ({ uniqid, uri, limit, t
11
11
  label?: string | undefined;
12
12
  isVisible?: boolean | undefined;
13
13
  textEllipsis?: boolean | undefined;
14
- dateFormat?: "time" | "date" | "date-time" | "date-time-sec" | "time-sec" | undefined;
14
+ dateFormat?: "date" | "time" | "date-time" | "date-time-sec" | "time-sec" | undefined;
15
15
  numberFormat?: "fr-FR" | "en-EN" | "filesize" | undefined;
16
16
  }[] | undefined;
17
17
  tableHeadColor?: string | undefined;
@@ -4,10 +4,10 @@ export declare const getVisibleColumns: (tableColumnsData: {
4
4
  label?: string | undefined;
5
5
  isVisible?: boolean | undefined;
6
6
  textEllipsis?: boolean | undefined;
7
- dateFormat?: "time" | "date" | "date-time" | "date-time-sec" | "time-sec" | undefined;
7
+ dateFormat?: "date" | "time" | "date-time" | "date-time-sec" | "time-sec" | undefined;
8
8
  numberFormat?: "fr-FR" | "en-EN" | "filesize" | undefined;
9
9
  }[], columns: WidgetTableColumn[]) => {
10
- type: "number" | "uri" | "title" | "select" | "text" | "url" | "date" | "file" | "datetime" | "email" | "transient";
10
+ type: "number" | "uri" | "title" | "date" | "select" | "text" | "email" | "file" | "url" | "datetime" | "transient";
11
11
  name: string;
12
12
  label: string;
13
13
  widget: {} | {
@@ -1,7 +1,6 @@
1
1
  import * as React from 'react';
2
- import { DisplayFormRef, FieldsWith } from './types';
2
+ import { DisplayFormFieldsConfig, DisplayFormRef } from './types';
3
3
  import { Control, FieldValues } from 'react-hook-form';
4
- export type DisplayFormFieldsConfig<TFieldValues extends FieldValues> = 'all' | FieldsWith<'input', TFieldValues>;
5
4
  export type DisplayFormProps<TFieldValues extends FieldValues> = {
6
5
  type: string;
7
6
  fields: DisplayFormFieldsConfig<TFieldValues>;
@@ -74,3 +74,4 @@ export type DisplayFormRef = UseFormReturn<any> & {
74
74
  getFormattedValues: () => any;
75
75
  };
76
76
  export type Displayer<TFieldValues extends FieldValues = FieldValues> = Array<DisplayerElement<TFieldValues>>;
77
+ export type DisplayFormFieldsConfig<TFieldValues extends FieldValues> = 'all' | FieldsWith<'input', TFieldValues>;
@@ -1,8 +1,7 @@
1
1
  import * as React from 'react';
2
2
  import { Widget } from 'jamespot-user-api';
3
- import { Displayer, Fields, FieldsWith } from './types';
3
+ import { Displayer, Fields, FieldsWith, DisplayFormFieldsConfig } from './types';
4
4
  import type { FieldValues, FieldPath } from 'react-hook-form';
5
- import { DisplayFormFieldsConfig } from './DisplayForm.component';
6
5
  /**
7
6
  *
8
7
  * @param fields - fields that we want to display (firstname, name, age...)
@@ -30,4 +30,6 @@ export declare const tinymceCommonOptions: {
30
30
  browser_spellcheck: boolean;
31
31
  quickbars_insert_toolbar: boolean;
32
32
  license_key: "gpl";
33
+ sandbox_iframes?: boolean | undefined;
34
+ sandbox_iframes_exclusions?: string[] | undefined;
33
35
  };