@panneau/actions 3.0.130
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/assets/css/styles.css +0 -0
- package/es/index.js +38 -0
- package/lib/index.js +42 -0
- package/package.json +70 -0
- package/scss/styles.scss +1 -0
|
File without changes
|
package/es/index.js
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import _objectSpread from '@babel/runtime/helpers/objectSpread2';
|
|
2
|
+
import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties';
|
|
3
|
+
import PropTypes from 'prop-types';
|
|
4
|
+
import React from 'react';
|
|
5
|
+
import { ComponentsProvider, ACTIONS_NAMESPACE } from '@panneau/core/contexts';
|
|
6
|
+
import actionDelete from '@panneau/action-delete';
|
|
7
|
+
import actionEdit from '@panneau/action-edit';
|
|
8
|
+
|
|
9
|
+
var components = /*#__PURE__*/Object.freeze({
|
|
10
|
+
__proto__: null,
|
|
11
|
+
Delete: actionDelete,
|
|
12
|
+
Edit: actionEdit
|
|
13
|
+
});
|
|
14
|
+
|
|
15
|
+
var _excluded = ["components", "children"];
|
|
16
|
+
var propTypes = {
|
|
17
|
+
components: PropTypes.object,
|
|
18
|
+
// eslint-disable-line
|
|
19
|
+
children: PropTypes.node
|
|
20
|
+
};
|
|
21
|
+
var defaultProps = {
|
|
22
|
+
components: null,
|
|
23
|
+
children: null
|
|
24
|
+
};
|
|
25
|
+
var ActionsProviders = function ActionsProviders(_ref) {
|
|
26
|
+
var injectedComponents = _ref.components,
|
|
27
|
+
children = _ref.children,
|
|
28
|
+
props = _objectWithoutProperties(_ref, _excluded);
|
|
29
|
+
return /*#__PURE__*/React.createElement(ComponentsProvider, Object.assign({
|
|
30
|
+
namespace: ACTIONS_NAMESPACE,
|
|
31
|
+
components: _objectSpread(_objectSpread({}, components), injectedComponents)
|
|
32
|
+
}, props), children);
|
|
33
|
+
};
|
|
34
|
+
ActionsProviders.propTypes = propTypes;
|
|
35
|
+
ActionsProviders.defaultProps = defaultProps;
|
|
36
|
+
var ActionsProvider = ActionsProviders;
|
|
37
|
+
|
|
38
|
+
export { ActionsProvider as default };
|
package/lib/index.js
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var _objectSpread = require('@babel/runtime/helpers/objectSpread2');
|
|
6
|
+
var _objectWithoutProperties = require('@babel/runtime/helpers/objectWithoutProperties');
|
|
7
|
+
var PropTypes = require('prop-types');
|
|
8
|
+
var React = require('react');
|
|
9
|
+
var contexts = require('@panneau/core/contexts');
|
|
10
|
+
var actionDelete = require('@panneau/action-delete');
|
|
11
|
+
var actionEdit = require('@panneau/action-edit');
|
|
12
|
+
|
|
13
|
+
var components = /*#__PURE__*/Object.freeze({
|
|
14
|
+
__proto__: null,
|
|
15
|
+
Delete: actionDelete,
|
|
16
|
+
Edit: actionEdit
|
|
17
|
+
});
|
|
18
|
+
|
|
19
|
+
var _excluded = ["components", "children"];
|
|
20
|
+
var propTypes = {
|
|
21
|
+
components: PropTypes.object,
|
|
22
|
+
// eslint-disable-line
|
|
23
|
+
children: PropTypes.node
|
|
24
|
+
};
|
|
25
|
+
var defaultProps = {
|
|
26
|
+
components: null,
|
|
27
|
+
children: null
|
|
28
|
+
};
|
|
29
|
+
var ActionsProviders = function ActionsProviders(_ref) {
|
|
30
|
+
var injectedComponents = _ref.components,
|
|
31
|
+
children = _ref.children,
|
|
32
|
+
props = _objectWithoutProperties(_ref, _excluded);
|
|
33
|
+
return /*#__PURE__*/React.createElement(contexts.ComponentsProvider, Object.assign({
|
|
34
|
+
namespace: contexts.ACTIONS_NAMESPACE,
|
|
35
|
+
components: _objectSpread(_objectSpread({}, components), injectedComponents)
|
|
36
|
+
}, props), children);
|
|
37
|
+
};
|
|
38
|
+
ActionsProviders.propTypes = propTypes;
|
|
39
|
+
ActionsProviders.defaultProps = defaultProps;
|
|
40
|
+
var ActionsProvider = ActionsProviders;
|
|
41
|
+
|
|
42
|
+
exports.default = ActionsProvider;
|
package/package.json
ADDED
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@panneau/actions",
|
|
3
|
+
"version": "3.0.130",
|
|
4
|
+
"description": "",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"javascript"
|
|
7
|
+
],
|
|
8
|
+
"homepage": "https://github.com/folkloreinc/panneau-js",
|
|
9
|
+
"repository": {
|
|
10
|
+
"type": "git",
|
|
11
|
+
"url": "git+https://github.com/folkloreinc/panneau-js.git"
|
|
12
|
+
},
|
|
13
|
+
"author": {
|
|
14
|
+
"name": "Folklore",
|
|
15
|
+
"email": "info@folklore.email"
|
|
16
|
+
},
|
|
17
|
+
"contributors": [
|
|
18
|
+
{
|
|
19
|
+
"name": "David Mongeau-Petitpas",
|
|
20
|
+
"email": "dmp@folklore.email"
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"name": "Nicolas Roy-Bourdages",
|
|
24
|
+
"email": "nrb@folklore.email"
|
|
25
|
+
}
|
|
26
|
+
],
|
|
27
|
+
"license": "ISC",
|
|
28
|
+
"main": "lib/index.js",
|
|
29
|
+
"module": "es/index.js",
|
|
30
|
+
"exports": {
|
|
31
|
+
".": {
|
|
32
|
+
"require": "./lib/index.js",
|
|
33
|
+
"import": "./es/index.js"
|
|
34
|
+
},
|
|
35
|
+
"./scss/styles": "./scss/styles.scss",
|
|
36
|
+
"./scss/styles.scss": "./scss/styles.scss",
|
|
37
|
+
"./assets/css/styles.css": "./assets/css/styles.css"
|
|
38
|
+
},
|
|
39
|
+
"files": [
|
|
40
|
+
"lib",
|
|
41
|
+
"es",
|
|
42
|
+
"assets",
|
|
43
|
+
"scss"
|
|
44
|
+
],
|
|
45
|
+
"scripts": {
|
|
46
|
+
"scss": "../../scripts/build-packages-styles.js --pattern='@panneau/filter-*' ./src/styles.scss.ejs ./scss/styles.scss",
|
|
47
|
+
"css": "../../scripts/build-sass.js ./scss/styles.scss ./assets/css/styles.css",
|
|
48
|
+
"prepublishOnly": "npm run build",
|
|
49
|
+
"build": "../../scripts/prepare-package.sh && npm run scss && npm run css"
|
|
50
|
+
},
|
|
51
|
+
"devDependencies": {
|
|
52
|
+
"react": "^16.8.0 || ^17.0.0 || ^18.0.0",
|
|
53
|
+
"react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0"
|
|
54
|
+
},
|
|
55
|
+
"peerDependencies": {
|
|
56
|
+
"react": "^16.8.0 || ^17.0.0 || ^18.0.0",
|
|
57
|
+
"react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0"
|
|
58
|
+
},
|
|
59
|
+
"dependencies": {
|
|
60
|
+
"@babel/runtime": "^7.12.5",
|
|
61
|
+
"@panneau/action-delete": "^3.0.130",
|
|
62
|
+
"@panneau/action-edit": "^3.0.130",
|
|
63
|
+
"@panneau/core": "^3.0.130",
|
|
64
|
+
"prop-types": "^15.7.2"
|
|
65
|
+
},
|
|
66
|
+
"publishConfig": {
|
|
67
|
+
"access": "public"
|
|
68
|
+
},
|
|
69
|
+
"gitHead": "e6070daacb45351ccbef67ae8006f1a293ca8e2b"
|
|
70
|
+
}
|
package/scss/styles.scss
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|