@threekit-tools/treble 0.0.64 → 0.0.65
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/dist/Treble/Treble.d.ts +1 -1
- package/dist/api/configurations.d.ts +1 -1
- package/dist/components/ProductLayout/index.d.ts +1 -1
- package/dist/components/Wishlist/WishlistItem.d.ts +1 -1
- package/dist/components/containers/formInputContainer.d.ts +2 -2
- package/dist/components/containers/formInputContainer.js +1 -1
- package/dist/hooks/useAttribute/index.d.ts +1 -1
- package/dist/hooks/useConfigurator/index.d.ts +1 -1
- package/dist/hooks/useMetadata/index.d.ts +1 -1
- package/dist/hooks/useNestedConfigurator/index.d.ts +1 -1
- package/dist/hooks/useSingleAnimation/index.d.ts +1 -1
- package/dist/http/configurations.d.ts +1 -1
- package/dist/store/attributes.d.ts +1 -1
- package/dist/store/product.d.ts +1 -1
- package/dist/store/treble.d.ts +1 -1
- package/dist/{threekit.d.ts → types.d.ts} +0 -0
- package/dist/{threekit.js → types.js} +0 -0
- package/dist/utils.d.ts +2 -2
- package/package.json +1 -1
package/dist/Treble/Treble.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IThreekitPlayer, IConfiguration, ISetConfiguration, IThreekitPrivateConfigurator } from '../
|
|
1
|
+
import { IThreekitPlayer, IConfiguration, ISetConfiguration, IThreekitPrivateConfigurator } from '../types';
|
|
2
2
|
import { IWishlist } from './Wishlist';
|
|
3
3
|
import Snapshots from './Snapshots';
|
|
4
4
|
import { ISaveConfiguration } from '../api/configurations';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { FunctionComponent } from 'react';
|
|
2
2
|
import { RawAttributeValue } from '../../hooks/useAttribute';
|
|
3
|
-
import { IHydratedAttribute, IHydratedAttributeAssetValue } from '../../
|
|
3
|
+
import { IHydratedAttribute, IHydratedAttributeAssetValue } from '../../types';
|
|
4
4
|
export interface IOptionShared {
|
|
5
5
|
name: string;
|
|
6
6
|
value: string;
|
|
@@ -41,7 +41,7 @@ interface IHydrateAttributeConfig {
|
|
|
41
41
|
sort?: string;
|
|
42
42
|
}
|
|
43
43
|
export declare const hydrateAttributeForComponent: (attribute: IHydratedAttribute, config: IHydrateAttributeConfig) => {
|
|
44
|
-
selected: string | number | boolean | import("../../
|
|
44
|
+
selected: string | number | boolean | import("../../types").IConfigurationAsset | import("../../types").IConfigurationColor;
|
|
45
45
|
options: {
|
|
46
46
|
name: string;
|
|
47
47
|
handleSelect: () => Promise<void>;
|
|
@@ -104,7 +104,7 @@ function formComponentContainer(FormComponent) {
|
|
|
104
104
|
var preppedProps = __assign({}, props);
|
|
105
105
|
if (!hideAttributeTitle && !preppedProps.title)
|
|
106
106
|
preppedProps.title = attributeData.label;
|
|
107
|
-
return (react_1.default.createElement(FormComponent, __assign({}, preppedProps, {
|
|
107
|
+
return (react_1.default.createElement(FormComponent, __assign({}, preppedProps, { value: selected, onClick: handleSetAttribute, onChange: handleSetAttribute, options: options, isPlayerLoading: isLoading })));
|
|
108
108
|
};
|
|
109
109
|
}
|
|
110
110
|
exports.default = formComponentContainer;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IHydratedAttribute, IConfigurationColor } from '../../
|
|
1
|
+
import { IHydratedAttribute, IConfigurationColor } from '../../types';
|
|
2
2
|
export declare type RawAttributeValue = string | number | boolean | IConfigurationColor | File | undefined;
|
|
3
3
|
declare type UseAttributeError = [undefined, undefined];
|
|
4
4
|
declare type UseAttributeSuccess = [
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ISetConfiguration, IHydratedAttribute } from '../../
|
|
1
|
+
import { ISetConfiguration, IHydratedAttribute } from '../../types';
|
|
2
2
|
declare type UseConfiguratorError = [undefined, undefined];
|
|
3
3
|
declare type UseConfiguratorSuccess = [
|
|
4
4
|
Record<string, IHydratedAttribute>,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IHydratedAttribute, ISetConfiguration } from '../../
|
|
1
|
+
import { IHydratedAttribute, ISetConfiguration } from '../../types';
|
|
2
2
|
declare type UseNestedConfiguratorError = [undefined, undefined];
|
|
3
3
|
declare type UseNestedConfiguratorSuccess = [
|
|
4
4
|
Record<string, IHydratedAttribute>,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { RootState, ThreekitDispatch } from './index';
|
|
2
|
-
import { ISetConfiguration, IThreekitDisplayAttribute } from '../
|
|
2
|
+
import { ISetConfiguration, IThreekitDisplayAttribute } from '../types';
|
|
3
3
|
import { ITranslationMap } from '../api/products';
|
|
4
4
|
/*****************************************************
|
|
5
5
|
* Types and Interfaces
|
package/dist/store/product.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { RootState, ThreekitDispatch } from './index';
|
|
2
|
-
import { IMetadata, IConfiguration, IProduct } from '../
|
|
2
|
+
import { IMetadata, IConfiguration, IProduct } from '../types';
|
|
3
3
|
import { IConnectionConfig } from '../connection';
|
|
4
4
|
import { IReloadConfig } from './treble';
|
|
5
5
|
/*****************************************************
|
package/dist/store/treble.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { RootState, ThreekitDispatch } from './index';
|
|
2
|
-
import { IProject, IPlayerConfig, IThreekitDisplayAttribute, ISetConfiguration, IConfiguration } from '../
|
|
2
|
+
import { IProject, IPlayerConfig, IThreekitDisplayAttribute, ISetConfiguration, IConfiguration } from '../types';
|
|
3
3
|
/*****************************************************
|
|
4
4
|
* Types and Interfaces
|
|
5
5
|
****************************************************/
|
|
File without changes
|
|
File without changes
|
package/dist/utils.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { IThreekitCamera, IConfigurationColor, ICoordinates, IQuaternion, IThreekitDisplayAttribute, ISetConfiguration, IHydratedAttribute } from './
|
|
2
|
-
import { ITrebleConfig, IAttributeTypes } from './
|
|
1
|
+
import { IThreekitCamera, IConfigurationColor, ICoordinates, IQuaternion, IThreekitDisplayAttribute, ISetConfiguration, IHydratedAttribute } from './types';
|
|
2
|
+
import { ITrebleConfig, IAttributeTypes } from './types';
|
|
3
3
|
import { RawAttributeValue } from './hooks/useAttribute';
|
|
4
4
|
import { ITranslationMap } from './api/products';
|
|
5
5
|
interface ICameraPosition {
|