@threekit-tools/treble 0.0.37 → 0.0.38
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.
|
@@ -38,6 +38,12 @@ export declare const Swatch: {
|
|
|
38
38
|
* Handles the user seletion by passing the value of the selected
|
|
39
39
|
* option as the argument into the onClick callback.
|
|
40
40
|
*/
|
|
41
|
+
size: PropTypes.Requireable<string>;
|
|
42
|
+
/**
|
|
43
|
+
* The size of the for a swatch option. The size should be a valid CSS
|
|
44
|
+
* height/width property.
|
|
45
|
+
*
|
|
46
|
+
*/
|
|
41
47
|
onClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
42
48
|
/**
|
|
43
49
|
* The options set to be displayed for the user
|
|
@@ -81,6 +81,12 @@ exports.Swatch.propTypes = {
|
|
|
81
81
|
* Handles the user seletion by passing the value of the selected
|
|
82
82
|
* option as the argument into the onClick callback.
|
|
83
83
|
*/
|
|
84
|
+
size: prop_types_1.default.string,
|
|
85
|
+
/**
|
|
86
|
+
* The size of the for a swatch option. The size should be a valid CSS
|
|
87
|
+
* height/width property.
|
|
88
|
+
*
|
|
89
|
+
*/
|
|
84
90
|
onClick: prop_types_1.default.func,
|
|
85
91
|
/**
|
|
86
92
|
* The options set to be displayed for the user
|
|
@@ -38,7 +38,7 @@ var App = function (props) {
|
|
|
38
38
|
};
|
|
39
39
|
init();
|
|
40
40
|
return;
|
|
41
|
-
}, [props.project, props.threekitEnv,
|
|
41
|
+
}, [props.project, props.threekitEnv, props.playerConfig]);
|
|
42
42
|
return react_1.default.createElement(react_1.default.Fragment, null, props.children);
|
|
43
43
|
};
|
|
44
44
|
var ThreekitProvider = function (props) {
|
|
@@ -33,6 +33,7 @@ function TrebleApp(props) {
|
|
|
33
33
|
var _a;
|
|
34
34
|
var project = props.project, productId = props.productId, playerConfig = props.playerConfig, threekitEnv = props.threekitEnv, locale = props.locale, theme = props.theme;
|
|
35
35
|
var config = constants_1.IS_TREBLE_SCRIPTS ? (0, utils_1.loadTrebleConfig)() : {};
|
|
36
|
+
console.log(config);
|
|
36
37
|
if (!((_a = config.treble) === null || _a === void 0 ? void 0 : _a.productsCtx)) {
|
|
37
38
|
console.error('Treble Config is not setup correctly');
|
|
38
39
|
return null;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@threekit-tools/treble",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.38",
|
|
4
4
|
"author": "Amaan Saeed",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"files": [
|
|
@@ -32,10 +32,6 @@
|
|
|
32
32
|
"reselect": "^4.1.2",
|
|
33
33
|
"styled-components": "^5.3.3"
|
|
34
34
|
},
|
|
35
|
-
"peerDependencies": {
|
|
36
|
-
"react": "^17.0.2",
|
|
37
|
-
"react-dom": "^17.0.2"
|
|
38
|
-
},
|
|
39
35
|
"devDependencies": {
|
|
40
36
|
"@babel/core": "^7.15.8",
|
|
41
37
|
"@storybook/addon-actions": "^6.3.12",
|
|
@@ -45,16 +41,18 @@
|
|
|
45
41
|
"@storybook/addon-storysource": "^6.3.12",
|
|
46
42
|
"@storybook/react": "^6.3.12",
|
|
47
43
|
"@types/node": "^16.10.3",
|
|
48
|
-
"@types/react": "
|
|
49
|
-
"@types/react-dom": "
|
|
44
|
+
"@types/react": ">=17.0.27",
|
|
45
|
+
"@types/react-dom": ">=17.0.9",
|
|
50
46
|
"@types/redux-logger": "^3.0.9",
|
|
51
47
|
"@types/styled-components": "^5.1.15",
|
|
52
48
|
"@types/webpack-env": "^1.16.3",
|
|
53
49
|
"babel-loader": "^8.2.2",
|
|
50
|
+
"react": ">=17.0.2",
|
|
51
|
+
"react-dom": ">=17.0.2",
|
|
54
52
|
"rimraf": "^3.0.2",
|
|
55
53
|
"serve": "^12.0.1",
|
|
56
54
|
"storybook-addon-styled-component-theme": "^2.0.0",
|
|
57
|
-
"typescript": "
|
|
55
|
+
"typescript": ">=4.4.4"
|
|
58
56
|
},
|
|
59
57
|
"gitHead": "2e16bcf98f81e16bb1768072fdb3968122e7966f"
|
|
60
58
|
}
|