@panneau/app 4.0.11 → 4.0.15

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.
@@ -0,0 +1,50 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import { ElementType, ReactNode } from 'react';
3
+ import { PanneauDefinition, User, Uppy, StatusCode, Label } from '@panneau/core';
4
+
5
+ interface ContainerProps {
6
+ definition: PanneauDefinition;
7
+ components?: Record<string, ElementType> | Record<string, Record<string, ElementType>> | null;
8
+ user?: User | null;
9
+ memoryRouter?: boolean;
10
+ baseUrl?: string | null;
11
+ uppy?: Uppy | null;
12
+ statusCode?: StatusCode | null;
13
+ }
14
+ declare function Container({ definition, components, user, memoryRouter, baseUrl, uppy, statusCode, }: ContainerProps): react_jsx_runtime.JSX.Element;
15
+
16
+ interface MainLayoutProps {
17
+ children?: ReactNode;
18
+ loading?: boolean;
19
+ fullscreen?: boolean;
20
+ }
21
+ declare function MainLayout({ fullscreen, loading, children }: MainLayoutProps): react_jsx_runtime.JSX.Element;
22
+
23
+ interface GuestLayoutProps {
24
+ children: ReactNode;
25
+ fullscreen?: boolean;
26
+ }
27
+ declare function GuestLayout({ fullscreen, children }: GuestLayoutProps): react_jsx_runtime.JSX.Element;
28
+
29
+ interface PageHeaderProps {
30
+ title?: Label | null;
31
+ actions?: ReactNode;
32
+ small?: boolean;
33
+ className?: string | null;
34
+ children?: ReactNode;
35
+ }
36
+ declare function PageHeader({ title, actions, small, className, children, }: PageHeaderProps): react_jsx_runtime.JSX.Element;
37
+
38
+ declare function ResourceFilters(props: any): react_jsx_runtime.JSX.Element;
39
+
40
+ interface ResourceItemsListProps {
41
+ resource: string | {
42
+ id: string;
43
+ };
44
+ [key: string]: any;
45
+ }
46
+ declare function ResourceItemsList({ resource, ...props }: ResourceItemsListProps): react_jsx_runtime.JSX.Element;
47
+
48
+ declare function ResourceFormWrapper(props: any): react_jsx_runtime.JSX.Element;
49
+
50
+ export { GuestLayout, MainLayout, PageHeader, ResourceFilters, ResourceFormWrapper as ResourceForm, ResourceItemsList, Container as default };
@@ -18,10 +18,10 @@ import { UppyProvider } from '@panneau/uppy';
18
18
  import _toConsumableArray from '@babel/runtime/helpers/toConsumableArray';
19
19
  import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties';
20
20
  import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
21
- import isObject from 'lodash-es/isObject';
21
+ import isObject from 'lodash/isObject';
22
22
  import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
23
23
  import classNames from 'classnames';
24
- import isString from 'lodash-es/isString';
24
+ import isString from 'lodash/isString';
25
25
  import queryString from 'query-string';
26
26
  import { FormattedMessage } from 'react-intl';
27
27
  import { useResourceUrlGenerator, useResourceTypeName } from '@panneau/core/hooks';
@@ -29,7 +29,7 @@ import Alert from '@panneau/element-alert';
29
29
  import Button from '@panneau/element-button';
30
30
  import Dropdown from '@panneau/element-dropdown';
31
31
  import { Modals } from '@panneau/element-modal';
32
- import isArray from 'lodash-es/isArray';
32
+ import isArray from 'lodash/isArray';
33
33
  import Link from '@panneau/element-link';
34
34
  import Menu from '@panneau/element-menu';
35
35
  import Navbar from '@panneau/element-navbar';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@panneau/app",
3
- "version": "4.0.11",
3
+ "version": "4.0.15",
4
4
  "description": "",
5
5
  "keywords": [
6
6
  "javascript"
@@ -34,23 +34,26 @@
34
34
  ],
35
35
  "license": "ISC",
36
36
  "type": "module",
37
- "module": "es/index.js",
37
+ "module": "dist/index.js",
38
+ "types": "dist/index.d.ts",
38
39
  "style": "./assets/css/styles.css",
39
40
  "exports": {
40
- ".": "./es/index.js",
41
+ ".": {
42
+ "default": "./dist/index.js",
43
+ "types": "./dist/index.d.ts"
44
+ },
41
45
  "./assets/css/styles": "./assets/css/styles.css",
42
46
  "./assets/css/styles.css": "./assets/css/styles.css",
43
47
  "./assets/css/packages": "./assets/css/packages.css",
44
48
  "./assets/css/packages.css": "./assets/css/packages.css"
45
49
  },
46
50
  "files": [
47
- "lib",
48
- "es",
51
+ "dist",
49
52
  "assets"
50
53
  ],
51
54
  "scripts": {
52
55
  "prepublishOnly": "npm run build",
53
- "build": "../../scripts/prepare-package.sh && npm run css:packages",
56
+ "build": "../../scripts/prepare-package.sh --types && npm run css:packages",
54
57
  "css:packages": "postcss ./src/styles/packages.css -o ./assets/css/packages.css"
55
58
  },
56
59
  "devDependencies": {
@@ -67,48 +70,47 @@
67
70
  "@fortawesome/fontawesome-svg-core": "^6.5.1",
68
71
  "@fortawesome/free-solid-svg-icons": "^6.5.1",
69
72
  "@fortawesome/react-fontawesome": "^0.2.0",
70
- "@panneau/actions": "^4.0.11",
71
- "@panneau/auth": "^4.0.11",
72
- "@panneau/core": "^4.0.11",
73
- "@panneau/data": "^4.0.11",
74
- "@panneau/displays": "^4.0.11",
75
- "@panneau/element-accordion": "^4.0.11",
76
- "@panneau/element-alert": "^4.0.11",
77
- "@panneau/element-avatar": "^4.0.11",
78
- "@panneau/element-breadcrumbs": "^4.0.11",
79
- "@panneau/element-button": "^4.0.11",
80
- "@panneau/element-buttons": "^4.0.11",
81
- "@panneau/element-dropdown": "^4.0.11",
82
- "@panneau/element-form": "^4.0.11",
83
- "@panneau/element-form-group": "^4.0.11",
84
- "@panneau/element-grid": "^4.0.11",
85
- "@panneau/element-icon": "^4.0.11",
86
- "@panneau/element-label": "^4.0.11",
87
- "@panneau/element-link": "^4.0.11",
88
- "@panneau/element-loading": "^4.0.11",
89
- "@panneau/element-media-card": "^4.0.11",
90
- "@panneau/element-media-player": "^4.0.11",
91
- "@panneau/element-menu": "^4.0.11",
92
- "@panneau/element-modal": "^4.0.11",
93
- "@panneau/element-navbar": "^4.0.11",
94
- "@panneau/element-pagination": "^4.0.11",
95
- "@panneau/element-radios": "^4.0.11",
96
- "@panneau/element-range": "^4.0.11",
97
- "@panneau/element-resource-card": "^4.0.11",
98
- "@panneau/fields": "^4.0.11",
99
- "@panneau/filter-filters": "^4.0.11",
100
- "@panneau/filters": "^4.0.11",
101
- "@panneau/form-resource": "^4.0.11",
102
- "@panneau/forms": "^4.0.11",
103
- "@panneau/intl": "^4.0.11",
104
- "@panneau/list-resource-items": "^4.0.11",
105
- "@panneau/lists": "^4.0.11",
106
- "@panneau/modals": "^4.0.11",
107
- "@panneau/themes": "^4.0.11",
108
- "@panneau/uppy": "^4.0.11",
73
+ "@panneau/actions": "^4.0.15",
74
+ "@panneau/auth": "^4.0.15",
75
+ "@panneau/core": "^4.0.15",
76
+ "@panneau/data": "^4.0.15",
77
+ "@panneau/displays": "^4.0.15",
78
+ "@panneau/element-accordion": "^4.0.15",
79
+ "@panneau/element-alert": "^4.0.15",
80
+ "@panneau/element-avatar": "^4.0.15",
81
+ "@panneau/element-breadcrumbs": "^4.0.15",
82
+ "@panneau/element-button": "^4.0.15",
83
+ "@panneau/element-buttons": "^4.0.15",
84
+ "@panneau/element-dropdown": "^4.0.15",
85
+ "@panneau/element-form": "^4.0.15",
86
+ "@panneau/element-form-group": "^4.0.15",
87
+ "@panneau/element-grid": "^4.0.15",
88
+ "@panneau/element-icon": "^4.0.15",
89
+ "@panneau/element-label": "^4.0.15",
90
+ "@panneau/element-link": "^4.0.15",
91
+ "@panneau/element-loading": "^4.0.15",
92
+ "@panneau/element-media-card": "^4.0.15",
93
+ "@panneau/element-media-player": "^4.0.15",
94
+ "@panneau/element-menu": "^4.0.15",
95
+ "@panneau/element-modal": "^4.0.15",
96
+ "@panneau/element-navbar": "^4.0.15",
97
+ "@panneau/element-pagination": "^4.0.15",
98
+ "@panneau/element-radios": "^4.0.15",
99
+ "@panneau/element-range": "^4.0.15",
100
+ "@panneau/element-resource-card": "^4.0.15",
101
+ "@panneau/fields": "^4.0.15",
102
+ "@panneau/filter-filters": "^4.0.15",
103
+ "@panneau/filters": "^4.0.15",
104
+ "@panneau/form-resource": "^4.0.15",
105
+ "@panneau/forms": "^4.0.15",
106
+ "@panneau/intl": "^4.0.15",
107
+ "@panneau/list-resource-items": "^4.0.15",
108
+ "@panneau/lists": "^4.0.15",
109
+ "@panneau/modals": "^4.0.15",
110
+ "@panneau/themes": "^4.0.15",
111
+ "@panneau/uppy": "^4.0.15",
109
112
  "classnames": "^2.5.1",
110
- "lodash-es": "^4.17.21",
111
- "prop-types": "^15.7.2",
113
+ "lodash": "^4.17.21",
112
114
  "query-string": "^9.0.0",
113
115
  "react-intl": "^5.15.8 || ^6.0.0 || ^7.0.0",
114
116
  "wouter": "^3.1.2"
@@ -116,5 +118,5 @@
116
118
  "publishConfig": {
117
119
  "access": "public"
118
120
  },
119
- "gitHead": "fe8264ed2815da0b5a40339dec99999c6fe70751"
121
+ "gitHead": "83c02ca2f26e02383ef452ffcafda984d0b211cd"
120
122
  }