@panneau/core 3.0.244 → 3.0.271
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/es/contexts.js +3 -3
- package/es/hooks.js +5 -5
- package/es/index.js +4 -4
- package/es/utils.js +9 -9
- package/package.json +3 -3
package/es/contexts.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import _objectSpread from '@babel/runtime/helpers/objectSpread2';
|
|
2
|
-
import isString from 'lodash/isString';
|
|
2
|
+
import isString from 'lodash-es/isString';
|
|
3
3
|
import PropTypes from 'prop-types';
|
|
4
4
|
import React, { useContext, useMemo, useState, useEffect, useRef, useCallback } from 'react';
|
|
5
5
|
import { ComponentsManager, PropTypes as PropTypes$1, FieldsManager, Tracking } from '@panneau/core';
|
|
6
6
|
import _defineProperty from '@babel/runtime/helpers/defineProperty';
|
|
7
7
|
import _toConsumableArray from '@babel/runtime/helpers/toConsumableArray';
|
|
8
|
-
import uniqBy from 'lodash/uniqBy';
|
|
8
|
+
import uniqBy from 'lodash-es/uniqBy';
|
|
9
9
|
import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
|
|
10
10
|
import { getJSON } from '@folklore/fetch';
|
|
11
|
-
import isObject from 'lodash/isObject';
|
|
11
|
+
import isObject from 'lodash-es/isObject';
|
|
12
12
|
import { loadGoogleApi, loadGoogleMaps } from '@folklore/services';
|
|
13
13
|
import { useIntl } from 'react-intl';
|
|
14
14
|
import { getDisplayName } from '@panneau/core/utils';
|
package/es/hooks.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import get from 'lodash/get';
|
|
2
|
-
import isArray from 'lodash/isArray';
|
|
1
|
+
import get from 'lodash-es/get';
|
|
2
|
+
import isArray from 'lodash-es/isArray';
|
|
3
3
|
import { useMemo, useRef, useEffect, useCallback, useState } from 'react';
|
|
4
4
|
import _objectSpread from '@babel/runtime/helpers/objectSpread2';
|
|
5
|
-
import isObject from 'lodash/isObject';
|
|
6
|
-
import isString from 'lodash/isString';
|
|
5
|
+
import isObject from 'lodash-es/isObject';
|
|
6
|
+
import isString from 'lodash-es/isString';
|
|
7
7
|
import { EventsManager, MediasParser } from '@panneau/core';
|
|
8
8
|
import { createUseEvent, loadPackage } from '@panneau/core/utils';
|
|
9
9
|
import _defineProperty from '@babel/runtime/helpers/defineProperty';
|
|
@@ -12,8 +12,8 @@ import _toConsumableArray from '@babel/runtime/helpers/toConsumableArray';
|
|
|
12
12
|
import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties';
|
|
13
13
|
import { getCsrfToken, postJSON, getCSRFHeaders } from '@folklore/fetch';
|
|
14
14
|
import { useFieldsManager, usePanneauResources, useResource, useUrlGenerator } from '@panneau/core/contexts';
|
|
15
|
-
import { useIntl } from 'react-intl';
|
|
16
15
|
import dayjs from 'dayjs';
|
|
16
|
+
import { useIntl } from 'react-intl';
|
|
17
17
|
import { match } from 'css-mediaquery';
|
|
18
18
|
|
|
19
19
|
var useActionProps = function useActionProps(action, value) {
|
package/es/index.js
CHANGED
|
@@ -5,14 +5,14 @@ import _createClass from '@babel/runtime/helpers/createClass';
|
|
|
5
5
|
import { pascalCase } from 'change-case';
|
|
6
6
|
import ReactIs from 'react-is';
|
|
7
7
|
import _toConsumableArray from '@babel/runtime/helpers/toConsumableArray';
|
|
8
|
-
import isArray from 'lodash/isArray';
|
|
9
|
-
import uniqBy from 'lodash/uniqBy';
|
|
8
|
+
import isArray from 'lodash-es/isArray';
|
|
9
|
+
import uniqBy from 'lodash-es/uniqBy';
|
|
10
10
|
import _callSuper from '@babel/runtime/helpers/callSuper';
|
|
11
11
|
import _inherits from '@babel/runtime/helpers/inherits';
|
|
12
12
|
import EventEmitter from 'wolfy87-eventemitter';
|
|
13
13
|
import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties';
|
|
14
|
-
import isObject from 'lodash/isObject';
|
|
15
|
-
import uniq from 'lodash/uniq';
|
|
14
|
+
import isObject from 'lodash-es/isObject';
|
|
15
|
+
import uniq from 'lodash-es/uniq';
|
|
16
16
|
import { Tracking as Tracking$2 } from '@folklore/tracking';
|
|
17
17
|
import PropTypes$1 from 'prop-types';
|
|
18
18
|
|
package/es/utils.js
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import _regeneratorRuntime from '@babel/runtime/helpers/regeneratorRuntime';
|
|
2
2
|
import _asyncToGenerator from '@babel/runtime/helpers/asyncToGenerator';
|
|
3
3
|
import EventEmitter from 'wolfy87-eventemitter';
|
|
4
|
-
import isNumber from 'lodash/isNumber';
|
|
4
|
+
import isNumber from 'lodash-es/isNumber';
|
|
5
5
|
import { snakeCase } from 'snake-case';
|
|
6
|
-
import isObject from 'lodash/isObject';
|
|
7
|
-
import { useEffect } from 'react';
|
|
6
|
+
import isObject from 'lodash-es/isObject';
|
|
7
|
+
import { useEffect, isValidElement } from 'react';
|
|
8
8
|
import { pascalCase, kebabCase, snakeCase as snakeCase$1 } from 'change-case';
|
|
9
9
|
export { kebabCase as dashCase, pascalCase, snakeCase } from 'change-case';
|
|
10
10
|
import _defineProperty from '@babel/runtime/helpers/defineProperty';
|
|
11
11
|
import _objectSpread from '@babel/runtime/helpers/objectSpread2';
|
|
12
12
|
import ReactIs from 'react-is';
|
|
13
13
|
import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties';
|
|
14
|
-
import isString from 'lodash/isString';
|
|
15
|
-
import isArray from 'lodash/isArray';
|
|
14
|
+
import isString from 'lodash-es/isString';
|
|
15
|
+
import isArray from 'lodash-es/isArray';
|
|
16
16
|
import _toConsumableArray from '@babel/runtime/helpers/toConsumableArray';
|
|
17
|
-
import get from 'lodash/get';
|
|
18
|
-
import capitalize from 'lodash/capitalize';
|
|
17
|
+
import get from 'lodash-es/get';
|
|
18
|
+
import capitalize from 'lodash-es/capitalize';
|
|
19
19
|
import slugify from 'slugify';
|
|
20
20
|
import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
|
|
21
|
-
import uniqBy from 'lodash/uniqBy';
|
|
21
|
+
import uniqBy from 'lodash-es/uniqBy';
|
|
22
22
|
|
|
23
23
|
function checkClickable(el) {
|
|
24
24
|
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
@@ -432,7 +432,7 @@ var getSelectOptions = function getSelectOptions(options) {
|
|
|
432
432
|
}
|
|
433
433
|
return {
|
|
434
434
|
value: value,
|
|
435
|
-
label: "".concat(label)
|
|
435
|
+
label: /*#__PURE__*/isValidElement(label) ? label : "".concat(label)
|
|
436
436
|
};
|
|
437
437
|
}
|
|
438
438
|
return {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@panneau/core",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.271",
|
|
4
4
|
"description": "",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"javascript"
|
|
@@ -95,7 +95,7 @@
|
|
|
95
95
|
"debug": "^4.3.4",
|
|
96
96
|
"flat": "^6.0.1",
|
|
97
97
|
"hoist-non-react-statics": "^3.3.2",
|
|
98
|
-
"lodash": "^4.17.21",
|
|
98
|
+
"lodash-es": "^4.17.21",
|
|
99
99
|
"prop-types": "^15.7.2",
|
|
100
100
|
"react-helmet": "^6.1.0",
|
|
101
101
|
"react-intl": "^5.15.8||^6.0.0",
|
|
@@ -110,5 +110,5 @@
|
|
|
110
110
|
"publishConfig": {
|
|
111
111
|
"access": "public"
|
|
112
112
|
},
|
|
113
|
-
"gitHead": "
|
|
113
|
+
"gitHead": "017c943c9f29e78d1bb46c46108e9182bb9d9c80"
|
|
114
114
|
}
|