@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.
@@ -1,4 +1,4 @@
1
- import { IThreekitPlayer, IConfiguration, ISetConfiguration, IThreekitPrivateConfigurator } from '../threekit';
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,5 +1,5 @@
1
1
  import { IConfigurationResponse } from '../http/configurations';
2
- import { IConfiguration, IMetadata } from '../threekit';
2
+ import { IConfiguration, IMetadata } from '../types';
3
3
  export interface ISaveConfiguration {
4
4
  assetId: string;
5
5
  customerId?: string;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { IProducts } from '../../threekit';
2
+ import { IProducts } from '../../types';
3
3
  export interface ProductLayoutProps {
4
4
  products: Record<string, IProducts>;
5
5
  }
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { IMetadata } from '../../threekit';
2
+ import { IMetadata } from '../../types';
3
3
  interface WishlistItemProps {
4
4
  thumbnail?: string;
5
5
  metadata?: IMetadata;
@@ -1,6 +1,6 @@
1
1
  import { FunctionComponent } from 'react';
2
2
  import { RawAttributeValue } from '../../hooks/useAttribute';
3
- import { IHydratedAttribute, IHydratedAttributeAssetValue } from '../../threekit';
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("../../threekit").IConfigurationAsset | import("../../threekit").IConfigurationColor;
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, { title: props.title || attribute, value: selected, onClick: handleSetAttribute, onChange: handleSetAttribute, options: options, isPlayerLoading: isLoading })));
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 '../../threekit';
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 '../../threekit';
1
+ import { ISetConfiguration, IHydratedAttribute } from '../../types';
2
2
  declare type UseConfiguratorError = [undefined, undefined];
3
3
  declare type UseConfiguratorSuccess = [
4
4
  Record<string, IHydratedAttribute>,
@@ -1,3 +1,3 @@
1
- import { IMetadata } from '../../threekit';
1
+ import { IMetadata } from '../../types';
2
2
  declare const useMetadata: () => IMetadata | undefined;
3
3
  export default useMetadata;
@@ -1,4 +1,4 @@
1
- import { IHydratedAttribute, ISetConfiguration } from '../../threekit';
1
+ import { IHydratedAttribute, ISetConfiguration } from '../../types';
2
2
  declare type UseNestedConfiguratorError = [undefined, undefined];
3
3
  declare type UseNestedConfiguratorSuccess = [
4
4
  Record<string, IHydratedAttribute>,
@@ -1,4 +1,4 @@
1
- import { ICoordinates } from '../../threekit';
1
+ import { ICoordinates } from '../../types';
2
2
  interface NodeConfig {
3
3
  nodeId: string;
4
4
  paddingStart: number;
@@ -1,5 +1,5 @@
1
1
  import { IMultiPageResponse } from './request';
2
- import { IConfiguration } from '../threekit';
2
+ import { IConfiguration } from '../types';
3
3
  export interface IConfigurationResponse {
4
4
  createdAt: string;
5
5
  customerId: null | string;
@@ -1,5 +1,5 @@
1
1
  import { RootState, ThreekitDispatch } from './index';
2
- import { ISetConfiguration, IThreekitDisplayAttribute } from '../threekit';
2
+ import { ISetConfiguration, IThreekitDisplayAttribute } from '../types';
3
3
  import { ITranslationMap } from '../api/products';
4
4
  /*****************************************************
5
5
  * Types and Interfaces
@@ -1,5 +1,5 @@
1
1
  import { RootState, ThreekitDispatch } from './index';
2
- import { IMetadata, IConfiguration, IProduct } from '../threekit';
2
+ import { IMetadata, IConfiguration, IProduct } from '../types';
3
3
  import { IConnectionConfig } from '../connection';
4
4
  import { IReloadConfig } from './treble';
5
5
  /*****************************************************
@@ -1,5 +1,5 @@
1
1
  import { RootState, ThreekitDispatch } from './index';
2
- import { IProject, IPlayerConfig, IThreekitDisplayAttribute, ISetConfiguration, IConfiguration } from '../threekit';
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 './threekit';
2
- import { ITrebleConfig, IAttributeTypes } from './threekit';
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 {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@threekit-tools/treble",
3
- "version": "0.0.64",
3
+ "version": "0.0.65",
4
4
  "author": "Amaan Saeed",
5
5
  "license": "MIT",
6
6
  "files": [