@threekit-tools/treble 0.0.46 → 0.0.47
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.
|
@@ -1,13 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
interface
|
|
2
|
+
interface ITabPaneProps {
|
|
3
3
|
label: string;
|
|
4
4
|
onClick: () => void;
|
|
5
5
|
}
|
|
6
|
-
interface
|
|
7
|
-
|
|
6
|
+
interface ITabs {
|
|
7
|
+
TabPane: React.FC<ITabPaneProps>;
|
|
8
8
|
}
|
|
9
|
-
export declare const Tabs:
|
|
10
|
-
({ children }: TabsProps<TabPaneProps>): JSX.Element | null;
|
|
11
|
-
TabPane: React.FC<{}>;
|
|
12
|
-
};
|
|
9
|
+
export declare const Tabs: ITabs;
|
|
13
10
|
export default Tabs;
|
|
@@ -31,7 +31,7 @@ var productComponents = [];
|
|
|
31
31
|
var productToComponentMap = {};
|
|
32
32
|
function TrebleApp(props) {
|
|
33
33
|
var _a;
|
|
34
|
-
var project = props.project, productId = props.productId, playerConfig = props.playerConfig, threekitEnv = props.threekitEnv, locale = props.locale, theme = props.theme;
|
|
34
|
+
var project = props.project, productId = props.productId, playerConfig = props.playerConfig, threekitEnv = props.threekitEnv, locale = props.locale, theme = props.theme, eventHandlers = props.eventHandlers;
|
|
35
35
|
var config = constants_1.IS_TREBLE_SCRIPTS ? (0, utils_1.loadTrebleConfig)() : {};
|
|
36
36
|
if (!((_a = config.treble) === null || _a === void 0 ? void 0 : _a.productsCtx)) {
|
|
37
37
|
console.error('Treble Config is not setup correctly');
|
|
@@ -75,7 +75,7 @@ function TrebleApp(props) {
|
|
|
75
75
|
var preppedProject = Object.assign({}, project, {
|
|
76
76
|
products: productsMap[id],
|
|
77
77
|
});
|
|
78
|
-
return (react_1.default.createElement(ThreekitProvider_1.default, { project: preppedProject, locale: locale, playerConfig: playerConfig, theme: theme, threekitEnv: threekitEnv },
|
|
78
|
+
return (react_1.default.createElement(ThreekitProvider_1.default, { project: preppedProject, locale: locale, playerConfig: playerConfig, theme: theme, threekitEnv: threekitEnv, eventHandlers: eventHandlers },
|
|
79
79
|
react_1.default.createElement(Product, null)));
|
|
80
80
|
}
|
|
81
81
|
exports.default = TrebleApp;
|