@mat3ra/made 2024.3.25-0 → 2024.3.25-2

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.
Files changed (97) hide show
  1. package/.husky/post-checkout +3 -0
  2. package/.husky/post-commit +3 -0
  3. package/.husky/post-merge +3 -0
  4. package/.husky/pre-commit +6 -0
  5. package/.husky/pre-push +3 -0
  6. package/dist/{basis → js/basis}/basis.d.ts +1 -1
  7. package/dist/{cell → js/cell}/cell.js +1 -1
  8. package/dist/{cell → js/cell}/conventional_cell.d.ts +1 -1
  9. package/dist/{cell → js/cell}/primitive_cell.d.ts +1 -1
  10. package/dist/js/constants.d.ts +2 -0
  11. package/dist/{constants.js → js/constants.js} +2 -2
  12. package/dist/{lattice → js/lattice}/lattice.d.ts +2 -2
  13. package/dist/{lattice → js/lattice}/lattice_bravais.d.ts +1 -1
  14. package/dist/{lattice → js/lattice}/lattice_vectors.d.ts +1 -1
  15. package/dist/{lattice → js/lattice}/reciprocal/lattice_reciprocal.js +1 -1
  16. package/dist/{lattice → js/lattice}/types.d.ts +1 -1
  17. package/dist/{made.d.ts → js/made.d.ts} +4 -4
  18. package/dist/{material.d.ts → js/material.d.ts} +27 -28
  19. package/dist/{material.js → js/material.js} +1 -1
  20. package/dist/{math.d.ts → js/math.d.ts} +1 -1
  21. package/dist/{math.js → js/math.js} +1 -1
  22. package/dist/{parsers → js/parsers}/espresso.d.ts +1 -1
  23. package/dist/{parsers → js/parsers}/xyz.d.ts +2 -2
  24. package/dist/{parsers → js/parsers}/xyz_combinatorial_basis.d.ts +2 -2
  25. package/dist/{tools → js/tools}/supercell.d.ts +1 -1
  26. package/dist/{tools → js/tools}/surface.d.ts +1 -1
  27. package/dist/js/types.d.ts +3 -0
  28. package/package.json +7 -6
  29. package/src/js/cell/cell.ts +1 -1
  30. package/src/js/cell/conventional_cell.ts +1 -1
  31. package/src/js/cell/primitive_cell.ts +1 -1
  32. package/src/js/constants.js +2 -2
  33. package/src/js/lattice/lattice.ts +1 -1
  34. package/src/js/lattice/lattice_bravais.ts +1 -1
  35. package/src/js/lattice/lattice_vectors.ts +1 -1
  36. package/src/js/lattice/reciprocal/lattice_reciprocal.js +1 -1
  37. package/src/js/lattice/reciprocal/symmetry_points.ts +1 -1
  38. package/src/js/lattice/types.ts +1 -1
  39. package/src/js/material.ts +4 -4
  40. package/src/js/math.js +1 -1
  41. package/src/js/parsers/espresso.ts +1 -1
  42. package/src/js/parsers/xyz.ts +1 -1
  43. package/src/js/types.ts +2 -2
  44. package/tsconfig-transpile.json +3 -0
  45. package/tsconfig.json +1 -1
  46. package/dist/constants.d.ts +0 -2
  47. package/dist/types.d.ts +0 -3
  48. /package/dist/{abstract → js/abstract}/array_with_ids.d.ts +0 -0
  49. /package/dist/{abstract → js/abstract}/array_with_ids.js +0 -0
  50. /package/dist/{abstract → js/abstract}/scalar_with_id.d.ts +0 -0
  51. /package/dist/{abstract → js/abstract}/scalar_with_id.js +0 -0
  52. /package/dist/{basis → js/basis}/basis.js +0 -0
  53. /package/dist/{basis → js/basis}/constrained_basis.d.ts +0 -0
  54. /package/dist/{basis → js/basis}/constrained_basis.js +0 -0
  55. /package/dist/{basis → js/basis}/types.d.ts +0 -0
  56. /package/dist/{basis → js/basis}/types.js +0 -0
  57. /package/dist/{cell → js/cell}/cell.d.ts +0 -0
  58. /package/dist/{cell → js/cell}/conventional_cell.js +0 -0
  59. /package/dist/{cell → js/cell}/primitive_cell.js +0 -0
  60. /package/dist/{constraints → js/constraints}/constraints.d.ts +0 -0
  61. /package/dist/{constraints → js/constraints}/constraints.js +0 -0
  62. /package/dist/{lattice → js/lattice}/lattice.js +0 -0
  63. /package/dist/{lattice → js/lattice}/lattice_bravais.js +0 -0
  64. /package/dist/{lattice → js/lattice}/lattice_vectors.js +0 -0
  65. /package/dist/{lattice → js/lattice}/reciprocal/lattice_reciprocal.d.ts +0 -0
  66. /package/dist/{lattice → js/lattice}/reciprocal/paths.d.ts +0 -0
  67. /package/dist/{lattice → js/lattice}/reciprocal/paths.js +0 -0
  68. /package/dist/{lattice → js/lattice}/reciprocal/symmetry_points.d.ts +0 -0
  69. /package/dist/{lattice → js/lattice}/reciprocal/symmetry_points.js +0 -0
  70. /package/dist/{lattice → js/lattice}/types.js +0 -0
  71. /package/dist/{lattice → js/lattice}/unit_cell.d.ts +0 -0
  72. /package/dist/{lattice → js/lattice}/unit_cell.js +0 -0
  73. /package/dist/{made.js → js/made.js} +0 -0
  74. /package/dist/{parsers → js/parsers}/cif.d.ts +0 -0
  75. /package/dist/{parsers → js/parsers}/cif.js +0 -0
  76. /package/dist/{parsers → js/parsers}/errors.d.ts +0 -0
  77. /package/dist/{parsers → js/parsers}/errors.js +0 -0
  78. /package/dist/{parsers → js/parsers}/espresso.js +0 -0
  79. /package/dist/{parsers → js/parsers}/native_format_parsers.d.ts +0 -0
  80. /package/dist/{parsers → js/parsers}/native_format_parsers.js +0 -0
  81. /package/dist/{parsers → js/parsers}/parsers.d.ts +0 -0
  82. /package/dist/{parsers → js/parsers}/parsers.js +0 -0
  83. /package/dist/{parsers → js/parsers}/poscar.d.ts +0 -0
  84. /package/dist/{parsers → js/parsers}/poscar.js +0 -0
  85. /package/dist/{parsers → js/parsers}/xyz.js +0 -0
  86. /package/dist/{parsers → js/parsers}/xyz_combinatorial_basis.js +0 -0
  87. /package/dist/{tools → js/tools}/basis.d.ts +0 -0
  88. /package/dist/{tools → js/tools}/basis.js +0 -0
  89. /package/dist/{tools → js/tools}/cell.d.ts +0 -0
  90. /package/dist/{tools → js/tools}/cell.js +0 -0
  91. /package/dist/{tools → js/tools}/index.d.ts +0 -0
  92. /package/dist/{tools → js/tools}/index.js +0 -0
  93. /package/dist/{tools → js/tools}/material.d.ts +0 -0
  94. /package/dist/{tools → js/tools}/material.js +0 -0
  95. /package/dist/{tools → js/tools}/supercell.js +0 -0
  96. /package/dist/{tools → js/tools}/surface.js +0 -0
  97. /package/dist/{types.js → js/types.js} +0 -0
@@ -0,0 +1,3 @@
1
+ #!/bin/sh
2
+ command -v git-lfs >/dev/null 2>&1 || { echo >&2 "\nThis repository is configured for Git LFS but 'git-lfs' was not found on your path. If you no longer wish to use Git LFS, remove this hook by deleting '.git/hooks/post-checkout'.\n"; exit 2; }
3
+ git lfs post-checkout "$@"
@@ -0,0 +1,3 @@
1
+ #!/bin/sh
2
+ command -v git-lfs >/dev/null 2>&1 || { echo >&2 "\nThis repository is configured for Git LFS but 'git-lfs' was not found on your path. If you no longer wish to use Git LFS, remove this hook by deleting '.git/hooks/post-commit'.\n"; exit 2; }
3
+ git lfs post-commit "$@"
@@ -0,0 +1,3 @@
1
+ #!/bin/sh
2
+ command -v git-lfs >/dev/null 2>&1 || { echo >&2 "\nThis repository is configured for Git LFS but 'git-lfs' was not found on your path. If you no longer wish to use Git LFS, remove this hook by deleting '.git/hooks/post-merge'.\n"; exit 2; }
3
+ git lfs post-merge "$@"
@@ -0,0 +1,6 @@
1
+ #!/bin/sh
2
+ . "$(dirname "$0")/_/husky.sh"
3
+
4
+ npx lint-staged
5
+ npm run transpile
6
+ git add dist
@@ -0,0 +1,3 @@
1
+ #!/bin/sh
2
+ command -v git-lfs >/dev/null 2>&1 || { echo >&2 "\nThis repository is configured for Git LFS but 'git-lfs' was not found on your path. If you no longer wish to use Git LFS, remove this hook by deleting '.git/hooks/pre-push'.\n"; exit 2; }
3
+ git lfs pre-push "$@"
@@ -57,7 +57,7 @@ export declare class Basis {
57
57
  labels, }: BasisProps);
58
58
  static get unitsOptionsConfig(): typeof ATOMIC_COORD_UNITS;
59
59
  static get unitsOptionsDefaultValue(): string;
60
- static get defaultCell(): [import("@mat3ra/esse/lib/js/types").ArrayOf3NumberElementsSchema, import("@mat3ra/esse/lib/js/types").ArrayOf3NumberElementsSchema, import("@mat3ra/esse/lib/js/types").ArrayOf3NumberElementsSchema];
60
+ static get defaultCell(): [import("@mat3ra/esse/dist/js/types").ArrayOf3NumberElementsSchema, import("@mat3ra/esse/dist/js/types").ArrayOf3NumberElementsSchema, import("@mat3ra/esse/dist/js/types").ArrayOf3NumberElementsSchema];
61
61
  /**
62
62
  * Serialize class instance to JSON.
63
63
  * @example As below:
@@ -4,7 +4,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.Cell = void 0;
7
- const math_1 = require("@exabyte-io/code.js/dist/math");
7
+ const math_1 = require("@mat3ra/code/dist/js/math");
8
8
  const constants_1 = __importDefault(require("../constants"));
9
9
  const MATRIX = math_1.math.matrix;
10
10
  const MULT = math_1.math.multiply;
@@ -1,4 +1,4 @@
1
- import { LatticeTypeSchema } from "@mat3ra/esse/lib/js/types";
1
+ import { LatticeTypeSchema } from "@mat3ra/esse/dist/js/types";
2
2
  export declare const PRIMITIVE_TO_CONVENTIONAL_CELL_MULTIPLIERS: {
3
3
  CUB: number[][];
4
4
  FCC: number[][];
@@ -1,4 +1,4 @@
1
- import { LatticeImplicitSchema } from "@mat3ra/esse/lib/js/types";
1
+ import { LatticeImplicitSchema } from "@mat3ra/esse/dist/js/types";
2
2
  import { VectorsAsArray } from "../lattice/types";
3
3
  /**
4
4
  * Returns lattice vectors for a primitive cell for a lattice.
@@ -0,0 +1,2 @@
1
+ export * from "@mat3ra/code/dist/js/constants";
2
+ export { default } from "@mat3ra/code/dist/js/constants";
@@ -19,7 +19,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
19
19
  Object.defineProperty(exports, "__esModule", { value: true });
20
20
  exports.default = void 0;
21
21
  // TODO: adjust the imports and remove the need for re-exporting
22
- __exportStar(require("@exabyte-io/code.js/dist/constants"), exports);
22
+ __exportStar(require("@mat3ra/code/dist/js/constants"), exports);
23
23
  // eslint-disable-next-line no-restricted-exports
24
- var constants_1 = require("@exabyte-io/code.js/dist/constants");
24
+ var constants_1 = require("@mat3ra/code/dist/js/constants");
25
25
  Object.defineProperty(exports, "default", { enumerable: true, get: function () { return __importDefault(constants_1).default; } });
@@ -1,4 +1,4 @@
1
- import { LatticeImplicitSchema, LatticeSchema, LatticeTypeExtendedSchema } from "@mat3ra/esse/lib/js/types";
1
+ import { LatticeImplicitSchema, LatticeSchema, LatticeTypeExtendedSchema } from "@mat3ra/esse/dist/js/types";
2
2
  import { Cell } from "../cell/cell";
3
3
  import { FromVectorsProps, LatticeBravais } from "./lattice_bravais";
4
4
  import { BravaisConfigProps, LatticeVectors } from "./lattice_vectors";
@@ -61,7 +61,7 @@ export declare class Lattice extends LatticeBravais implements LatticeSchema {
61
61
  /**
62
62
  * Get lattice vectors as a nested array
63
63
  */
64
- get vectorArrays(): [import("@mat3ra/esse/lib/js/types").ArrayOf3NumberElementsSchema, import("@mat3ra/esse/lib/js/types").ArrayOf3NumberElementsSchema, import("@mat3ra/esse/lib/js/types").ArrayOf3NumberElementsSchema];
64
+ get vectorArrays(): [import("@mat3ra/esse/dist/js/types").ArrayOf3NumberElementsSchema, import("@mat3ra/esse/dist/js/types").ArrayOf3NumberElementsSchema, import("@mat3ra/esse/dist/js/types").ArrayOf3NumberElementsSchema];
65
65
  get Cell(): Cell;
66
66
  /**
67
67
  * Get a short label for the type of the lattice, eg. "MCLC".
@@ -1,4 +1,4 @@
1
- import { LatticeImplicitSchema, LatticeTypeSchema } from "@mat3ra/esse/lib/js/types";
1
+ import { LatticeImplicitSchema, LatticeTypeSchema } from "@mat3ra/esse/dist/js/types";
2
2
  import { Vector, VectorsAsArray } from "./types";
3
3
  export type Units = Required<LatticeImplicitSchema>["units"];
4
4
  export interface FromVectorsProps {
@@ -1,4 +1,4 @@
1
- import { LatticeExplicitUnit, LatticeImplicitSchema } from "@mat3ra/esse/lib/js/types";
1
+ import { LatticeExplicitUnit, LatticeImplicitSchema } from "@mat3ra/esse/dist/js/types";
2
2
  import { Vector } from "./types";
3
3
  type RequiredLatticeExplicitUnit = Required<LatticeExplicitUnit>;
4
4
  export interface BravaisConfigProps extends Partial<LatticeImplicitSchema> {
@@ -4,7 +4,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.ReciprocalLattice = void 0;
7
- const constants_1 = require("@exabyte-io/code.js/dist/constants");
7
+ const constants_1 = require("@mat3ra/code/dist/js/constants");
8
8
  const array_almost_equal_1 = __importDefault(require("array-almost-equal"));
9
9
  const lodash_1 = __importDefault(require("lodash"));
10
10
  const math_1 = __importDefault(require("../../math"));
@@ -1,4 +1,4 @@
1
- import { ArrayOf3NumberElementsSchema, LatticeTypeSchema } from "@mat3ra/esse/lib/js/types";
1
+ import { ArrayOf3NumberElementsSchema, LatticeTypeSchema } from "@mat3ra/esse/dist/js/types";
2
2
  export declare const DEFAULT_LATTICE_UNITS: {
3
3
  length: {
4
4
  angstrom: string;
@@ -20,10 +20,10 @@ export namespace Made {
20
20
  export { ArrayWithIds };
21
21
  }
22
22
  }
23
- import { coefficients } from "@exabyte-io/code.js/dist/constants";
24
- import { tolerance } from "@exabyte-io/code.js/dist/constants";
25
- import { units } from "@exabyte-io/code.js/dist/constants";
26
- import { ATOMIC_COORD_UNITS } from "@exabyte-io/code.js/dist/constants";
23
+ import { coefficients } from "@mat3ra/code/dist/js/constants";
24
+ import { tolerance } from "@mat3ra/code/dist/js/constants";
25
+ import { units } from "@mat3ra/code/dist/js/constants";
26
+ import { ATOMIC_COORD_UNITS } from "@mat3ra/code/dist/js/constants";
27
27
  import MadeMath from "./math";
28
28
  import { Material } from "./material";
29
29
  import { MaterialMixin } from "./material";
@@ -1,6 +1,6 @@
1
- import { HasConsistencyChecksHasMetadataNamedDefaultableInMemoryEntity } from "@exabyte-io/code.js/dist/entity";
2
- import { AnyObject } from "@exabyte-io/code.js/dist/entity/in_memory";
3
- import { ConsistencyCheck, DerivedPropertiesSchema, FileSourceSchema, MaterialSchema } from "@mat3ra/esse/lib/js/types";
1
+ import { HasConsistencyChecksHasMetadataNamedDefaultableInMemoryEntity } from "@mat3ra/code/dist/js/entity";
2
+ import { AnyObject } from "@mat3ra/code/dist/js/entity/in_memory";
3
+ import { ConsistencyCheck, DerivedPropertiesSchema, FileSourceSchema, MaterialSchema } from "@mat3ra/esse/dist/js/types";
4
4
  import { ConstrainedBasis } from "./basis/constrained_basis";
5
5
  import { Constraint } from "./constraints/constraints";
6
6
  import { Lattice } from "./lattice/lattice";
@@ -194,6 +194,7 @@ export declare function MaterialMixin<T extends MaterialBaseEntityConstructor =
194
194
  };
195
195
  setProp: ((name: string, value: unknown) => void) & ((name: string, value: unknown) => void) & ((name: string, value: unknown) => void) & ((name: string, value: unknown) => void) & ((name: string, value: unknown) => void);
196
196
  unsetProp: ((name: string) => void) & ((name: string) => void) & ((name: string) => void) & ((name: string) => void) & ((name: string) => void);
197
+ setProps: ((json?: AnyObject | undefined) => any) & ((json?: AnyObject | undefined) => any) & ((json?: AnyObject | undefined) => any) & ((json?: AnyObject | undefined) => any) & ((json?: AnyObject | undefined) => any);
197
198
  toJSONSafe: ((exclude?: string[] | undefined) => AnyObject) & ((exclude?: string[] | undefined) => AnyObject) & ((exclude?: string[] | undefined) => AnyObject) & ((exclude?: string[] | undefined) => AnyObject) & ((exclude?: string[] | undefined) => AnyObject);
198
199
  toJSONQuick: ((exclude?: string[] | undefined) => AnyObject) & ((exclude?: string[] | undefined) => AnyObject) & ((exclude?: string[] | undefined) => AnyObject) & ((exclude?: string[] | undefined) => AnyObject) & ((exclude?: string[] | undefined) => AnyObject);
199
200
  clone: ((extraContext?: object | undefined) => any) & ((extraContext?: object | undefined) => any) & ((extraContext?: object | undefined) => any) & ((extraContext?: object | undefined) => any) & ((extraContext?: object | undefined) => any);
@@ -205,8 +206,8 @@ export declare function MaterialMixin<T extends MaterialBaseEntityConstructor =
205
206
  getClsName: (() => string) & (() => string) & (() => string) & (() => string) & (() => string);
206
207
  readonly slug: string;
207
208
  readonly isSystemEntity: boolean;
208
- getAsEntityReference: ((byIdOnly?: boolean | undefined) => import("@mat3ra/esse/lib/js/types").EntityReferenceSchema) & ((byIdOnly?: boolean | undefined) => import("@mat3ra/esse/lib/js/types").EntityReferenceSchema) & ((byIdOnly?: boolean | undefined) => import("@mat3ra/esse/lib/js/types").EntityReferenceSchema) & ((byIdOnly?: boolean | undefined) => import("@mat3ra/esse/lib/js/types").EntityReferenceSchema) & ((byIdOnly?: boolean | undefined) => import("@mat3ra/esse/lib/js/types").EntityReferenceSchema);
209
- getEntityByName: ((entities: import("@exabyte-io/code.js/dist/entity").InMemoryEntity[], entity: string, name: string) => import("@exabyte-io/code.js/dist/entity").InMemoryEntity) & ((entities: import("@exabyte-io/code.js/dist/entity").InMemoryEntity[], entity: string, name: string) => import("@exabyte-io/code.js/dist/entity").InMemoryEntity) & ((entities: import("@exabyte-io/code.js/dist/entity").InMemoryEntity[], entity: string, name: string) => import("@exabyte-io/code.js/dist/entity").InMemoryEntity) & ((entities: import("@exabyte-io/code.js/dist/entity").InMemoryEntity[], entity: string, name: string) => import("@exabyte-io/code.js/dist/entity").InMemoryEntity) & ((entities: import("@exabyte-io/code.js/dist/entity").InMemoryEntity[], entity: string, name: string) => import("@exabyte-io/code.js/dist/entity").InMemoryEntity);
209
+ getAsEntityReference: ((byIdOnly?: boolean | undefined) => import("@mat3ra/esse/dist/js/types").EntityReferenceSchema) & ((byIdOnly?: boolean | undefined) => import("@mat3ra/esse/dist/js/types").EntityReferenceSchema) & ((byIdOnly?: boolean | undefined) => import("@mat3ra/esse/dist/js/types").EntityReferenceSchema) & ((byIdOnly?: boolean | undefined) => import("@mat3ra/esse/dist/js/types").EntityReferenceSchema) & ((byIdOnly?: boolean | undefined) => import("@mat3ra/esse/dist/js/types").EntityReferenceSchema);
210
+ getEntityByName: ((entities: import("@mat3ra/code/dist/js/entity").InMemoryEntity[], entity: string, name: string) => import("@mat3ra/code/dist/js/entity").InMemoryEntity) & ((entities: import("@mat3ra/code/dist/js/entity").InMemoryEntity[], entity: string, name: string) => import("@mat3ra/code/dist/js/entity").InMemoryEntity) & ((entities: import("@mat3ra/code/dist/js/entity").InMemoryEntity[], entity: string, name: string) => import("@mat3ra/code/dist/js/entity").InMemoryEntity) & ((entities: import("@mat3ra/code/dist/js/entity").InMemoryEntity[], entity: string, name: string) => import("@mat3ra/code/dist/js/entity").InMemoryEntity) & ((entities: import("@mat3ra/code/dist/js/entity").InMemoryEntity[], entity: string, name: string) => import("@mat3ra/code/dist/js/entity").InMemoryEntity);
210
211
  metadata: object;
211
212
  updateMetadata(object: object): void;
212
213
  name: string;
@@ -397,6 +398,7 @@ export declare const Material: {
397
398
  };
398
399
  setProp: ((name: string, value: unknown) => void) & ((name: string, value: unknown) => void) & ((name: string, value: unknown) => void) & ((name: string, value: unknown) => void) & ((name: string, value: unknown) => void);
399
400
  unsetProp: ((name: string) => void) & ((name: string) => void) & ((name: string) => void) & ((name: string) => void) & ((name: string) => void);
401
+ setProps: ((json?: AnyObject | undefined) => any) & ((json?: AnyObject | undefined) => any) & ((json?: AnyObject | undefined) => any) & ((json?: AnyObject | undefined) => any) & ((json?: AnyObject | undefined) => any);
400
402
  toJSONSafe: ((exclude?: string[] | undefined) => AnyObject) & ((exclude?: string[] | undefined) => AnyObject) & ((exclude?: string[] | undefined) => AnyObject) & ((exclude?: string[] | undefined) => AnyObject) & ((exclude?: string[] | undefined) => AnyObject);
401
403
  toJSONQuick: ((exclude?: string[] | undefined) => AnyObject) & ((exclude?: string[] | undefined) => AnyObject) & ((exclude?: string[] | undefined) => AnyObject) & ((exclude?: string[] | undefined) => AnyObject) & ((exclude?: string[] | undefined) => AnyObject);
402
404
  clone: ((extraContext?: object | undefined) => any) & ((extraContext?: object | undefined) => any) & ((extraContext?: object | undefined) => any) & ((extraContext?: object | undefined) => any) & ((extraContext?: object | undefined) => any);
@@ -408,8 +410,8 @@ export declare const Material: {
408
410
  getClsName: (() => string) & (() => string) & (() => string) & (() => string) & (() => string);
409
411
  readonly slug: string;
410
412
  readonly isSystemEntity: boolean;
411
- getAsEntityReference: ((byIdOnly?: boolean | undefined) => import("@mat3ra/esse/lib/js/types").EntityReferenceSchema) & ((byIdOnly?: boolean | undefined) => import("@mat3ra/esse/lib/js/types").EntityReferenceSchema) & ((byIdOnly?: boolean | undefined) => import("@mat3ra/esse/lib/js/types").EntityReferenceSchema) & ((byIdOnly?: boolean | undefined) => import("@mat3ra/esse/lib/js/types").EntityReferenceSchema) & ((byIdOnly?: boolean | undefined) => import("@mat3ra/esse/lib/js/types").EntityReferenceSchema);
412
- getEntityByName: ((entities: import("@exabyte-io/code.js/dist/entity").InMemoryEntity[], entity: string, name: string) => import("@exabyte-io/code.js/dist/entity").InMemoryEntity) & ((entities: import("@exabyte-io/code.js/dist/entity").InMemoryEntity[], entity: string, name: string) => import("@exabyte-io/code.js/dist/entity").InMemoryEntity) & ((entities: import("@exabyte-io/code.js/dist/entity").InMemoryEntity[], entity: string, name: string) => import("@exabyte-io/code.js/dist/entity").InMemoryEntity) & ((entities: import("@exabyte-io/code.js/dist/entity").InMemoryEntity[], entity: string, name: string) => import("@exabyte-io/code.js/dist/entity").InMemoryEntity) & ((entities: import("@exabyte-io/code.js/dist/entity").InMemoryEntity[], entity: string, name: string) => import("@exabyte-io/code.js/dist/entity").InMemoryEntity);
413
+ getAsEntityReference: ((byIdOnly?: boolean | undefined) => import("@mat3ra/esse/dist/js/types").EntityReferenceSchema) & ((byIdOnly?: boolean | undefined) => import("@mat3ra/esse/dist/js/types").EntityReferenceSchema) & ((byIdOnly?: boolean | undefined) => import("@mat3ra/esse/dist/js/types").EntityReferenceSchema) & ((byIdOnly?: boolean | undefined) => import("@mat3ra/esse/dist/js/types").EntityReferenceSchema) & ((byIdOnly?: boolean | undefined) => import("@mat3ra/esse/dist/js/types").EntityReferenceSchema);
414
+ getEntityByName: ((entities: import("@mat3ra/code/dist/js/entity").InMemoryEntity[], entity: string, name: string) => import("@mat3ra/code/dist/js/entity").InMemoryEntity) & ((entities: import("@mat3ra/code/dist/js/entity").InMemoryEntity[], entity: string, name: string) => import("@mat3ra/code/dist/js/entity").InMemoryEntity) & ((entities: import("@mat3ra/code/dist/js/entity").InMemoryEntity[], entity: string, name: string) => import("@mat3ra/code/dist/js/entity").InMemoryEntity) & ((entities: import("@mat3ra/code/dist/js/entity").InMemoryEntity[], entity: string, name: string) => import("@mat3ra/code/dist/js/entity").InMemoryEntity) & ((entities: import("@mat3ra/code/dist/js/entity").InMemoryEntity[], entity: string, name: string) => import("@mat3ra/code/dist/js/entity").InMemoryEntity);
413
415
  metadata: object;
414
416
  updateMetadata(object: object): void;
415
417
  name: string;
@@ -447,14 +449,11 @@ export declare const Material: {
447
449
  consistencyChecks: object[];
448
450
  addConsistencyChecks(array: object[]): void;
449
451
  _json: AnyObject;
450
- prop<T = undefined>(name: string, defaultValue: T): T; /**
451
- * Converts basis to crystal/fractional coordinates.
452
- */
453
- prop<T_1 = undefined>(name: string): T_1 | undefined; /**
454
- * Converts basis to crystal/fractional coordinates.
455
- */
452
+ prop<T = undefined>(name: string, defaultValue: T): T;
453
+ prop<T_1 = undefined>(name: string): T_1 | undefined;
456
454
  setProp(name: string, value: unknown): void;
457
455
  unsetProp(name: string): void;
456
+ setProps(json?: AnyObject | undefined): any;
458
457
  toJSON(exclude?: string[] | undefined): AnyObject;
459
458
  toJSONSafe(exclude?: string[] | undefined): AnyObject;
460
459
  toJSONQuick(exclude?: string[] | undefined): AnyObject;
@@ -467,8 +466,8 @@ export declare const Material: {
467
466
  getClsName(): string;
468
467
  readonly slug: string;
469
468
  readonly isSystemEntity: boolean;
470
- getAsEntityReference(byIdOnly?: boolean | undefined): import("@mat3ra/esse/lib/js/types").EntityReferenceSchema;
471
- getEntityByName(entities: import("@exabyte-io/code.js/dist/entity").InMemoryEntity[], entity: string, name: string): import("@exabyte-io/code.js/dist/entity").InMemoryEntity;
469
+ getAsEntityReference(byIdOnly?: boolean | undefined): import("@mat3ra/esse/dist/js/types").EntityReferenceSchema;
470
+ getEntityByName(entities: import("@mat3ra/code/dist/js/entity").InMemoryEntity[], entity: string, name: string): import("@mat3ra/code/dist/js/entity").InMemoryEntity;
472
471
  }) & (new (...args: any[]) => {
473
472
  metadata: object;
474
473
  updateMetadata(object: object): void;
@@ -477,9 +476,10 @@ export declare const Material: {
477
476
  prop<T_1_1 = undefined>(name: string): T_1_1 | undefined;
478
477
  setProp(name: string, value: unknown): void;
479
478
  unsetProp(name: string): void;
480
- toJSON(exclude?: string[] | undefined): AnyObject; /**
481
- * Returns material in POSCAR format. Pass `true` to ignore original poscar source and re-serialize.
479
+ setProps(json?: AnyObject | undefined): any; /**
480
+ * Returns a copy of the material with conventional cell constructed instead of primitive.
482
481
  */
482
+ toJSON(exclude?: string[] | undefined): AnyObject;
483
483
  toJSONSafe(exclude?: string[] | undefined): AnyObject;
484
484
  toJSONQuick(exclude?: string[] | undefined): AnyObject;
485
485
  clone(extraContext?: object | undefined): any;
@@ -491,8 +491,8 @@ export declare const Material: {
491
491
  getClsName(): string;
492
492
  readonly slug: string;
493
493
  readonly isSystemEntity: boolean;
494
- getAsEntityReference(byIdOnly?: boolean | undefined): import("@mat3ra/esse/lib/js/types").EntityReferenceSchema;
495
- getEntityByName(entities: import("@exabyte-io/code.js/dist/entity").InMemoryEntity[], entity: string, name: string): import("@exabyte-io/code.js/dist/entity").InMemoryEntity;
494
+ getAsEntityReference(byIdOnly?: boolean | undefined): import("@mat3ra/esse/dist/js/types").EntityReferenceSchema;
495
+ getEntityByName(entities: import("@mat3ra/code/dist/js/entity").InMemoryEntity[], entity: string, name: string): import("@mat3ra/code/dist/js/entity").InMemoryEntity;
496
496
  }) & (new (...args: any[]) => {
497
497
  name: string;
498
498
  setName(name: string): void;
@@ -501,23 +501,21 @@ export declare const Material: {
501
501
  prop<T_1_2 = undefined>(name: string): T_1_2 | undefined;
502
502
  setProp(name: string, value: unknown): void;
503
503
  unsetProp(name: string): void;
504
+ setProps(json?: AnyObject | undefined): any;
504
505
  toJSON(exclude?: string[] | undefined): AnyObject;
505
506
  toJSONSafe(exclude?: string[] | undefined): AnyObject;
506
507
  toJSONQuick(exclude?: string[] | undefined): AnyObject;
507
508
  clone(extraContext?: object | undefined): any;
508
509
  validate(): void;
509
510
  clean(config: AnyObject): AnyObject;
510
- isValid(): boolean; /**
511
- * @summary a series of checks for the material and returns an array of results in ConsistencyChecks format.
512
- * @returns Array of checks results
513
- */
511
+ isValid(): boolean;
514
512
  id: string;
515
513
  readonly cls: string;
516
514
  getClsName(): string;
517
515
  readonly slug: string;
518
516
  readonly isSystemEntity: boolean;
519
- getAsEntityReference(byIdOnly?: boolean | undefined): import("@mat3ra/esse/lib/js/types").EntityReferenceSchema;
520
- getEntityByName(entities: import("@exabyte-io/code.js/dist/entity").InMemoryEntity[], entity: string, name: string): import("@exabyte-io/code.js/dist/entity").InMemoryEntity;
517
+ getAsEntityReference(byIdOnly?: boolean | undefined): import("@mat3ra/esse/dist/js/types").EntityReferenceSchema;
518
+ getEntityByName(entities: import("@mat3ra/code/dist/js/entity").InMemoryEntity[], entity: string, name: string): import("@mat3ra/code/dist/js/entity").InMemoryEntity;
521
519
  }) & {
522
520
  new (...args: any[]): {
523
521
  readonly isDefault: boolean;
@@ -526,6 +524,7 @@ export declare const Material: {
526
524
  prop<T_1_3 = undefined>(name: string): T_1_3 | undefined;
527
525
  setProp(name: string, value: unknown): void;
528
526
  unsetProp(name: string): void;
527
+ setProps(json?: AnyObject | undefined): any;
529
528
  toJSON(exclude?: string[] | undefined): AnyObject;
530
529
  toJSONSafe(exclude?: string[] | undefined): AnyObject;
531
530
  toJSONQuick(exclude?: string[] | undefined): AnyObject;
@@ -538,11 +537,11 @@ export declare const Material: {
538
537
  getClsName(): string;
539
538
  readonly slug: string;
540
539
  readonly isSystemEntity: boolean;
541
- getAsEntityReference(byIdOnly?: boolean | undefined): import("@mat3ra/esse/lib/js/types").EntityReferenceSchema;
542
- getEntityByName(entities: import("@exabyte-io/code.js/dist/entity").InMemoryEntity[], entity: string, name: string): import("@exabyte-io/code.js/dist/entity").InMemoryEntity;
540
+ getAsEntityReference(byIdOnly?: boolean | undefined): import("@mat3ra/esse/dist/js/types").EntityReferenceSchema;
541
+ getEntityByName(entities: import("@mat3ra/code/dist/js/entity").InMemoryEntity[], entity: string, name: string): import("@mat3ra/code/dist/js/entity").InMemoryEntity;
543
542
  };
544
543
  readonly defaultConfig: object | null;
545
544
  createDefault(): any;
546
- } & typeof import("@exabyte-io/code.js/dist/entity").InMemoryEntity;
545
+ } & typeof import("@mat3ra/code/dist/js/entity").InMemoryEntity;
547
546
  export type Material = InstanceType<typeof Material>;
548
547
  export {};
@@ -4,7 +4,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.Material = exports.MaterialMixin = exports.defaultMaterialConfig = void 0;
7
- const entity_1 = require("@exabyte-io/code.js/dist/entity");
7
+ const entity_1 = require("@mat3ra/code/dist/js/entity");
8
8
  const crypto_js_1 = __importDefault(require("crypto-js"));
9
9
  const constrained_basis_1 = require("./basis/constrained_basis");
10
10
  const conventional_cell_1 = require("./cell/conventional_cell");
@@ -17,7 +17,7 @@ declare const _default: {
17
17
  combinationsFromIntervals: (arrA: number[], arrB: number[], arrC: number[]) => number[][];
18
18
  calculateSegmentsBetweenPoints3D: (point1: (string | number)[], point2: (string | number)[], n: string | number) => number[][];
19
19
  roundValueToNDecimals: (value: number, decimals?: number | undefined) => number;
20
- numberToPrecision: typeof import("@exabyte-io/code.js/dist/math").numberToPrecision;
20
+ numberToPrecision: typeof import("@mat3ra/code/dist/js/math").numberToPrecision;
21
21
  e: number;
22
22
  pi: number;
23
23
  i: number;
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  // TODO: adjust the imports and remove the need for re-exporting
4
- const math_1 = require("@exabyte-io/code.js/dist/math");
4
+ const math_1 = require("@mat3ra/code/dist/js/math");
5
5
  exports.default = {
6
6
  ...math_1.math,
7
7
  };
@@ -1,4 +1,4 @@
1
- import { MaterialSchema } from "@mat3ra/esse/lib/js/types";
1
+ import { MaterialSchema } from "@mat3ra/esse/dist/js/types";
2
2
  /**
3
3
  * Construct textual representation of a materialOrConfig according to Quantum ESPRESSO pw.x input format.
4
4
  * @param materialOrConfig - material class instance or its config object
@@ -1,4 +1,4 @@
1
- import { MaterialSchema } from "@mat3ra/esse/lib/js/types";
1
+ import { MaterialSchema } from "@mat3ra/esse/dist/js/types";
2
2
  import { ConstrainedBasis } from "../basis/constrained_basis";
3
3
  import { Constraint } from "../constraints/constraints";
4
4
  import { Vector } from "../lattice/types";
@@ -36,7 +36,7 @@ export interface BasisConfig {
36
36
  * @param units Coordinate units
37
37
  * @param cell Basis Cell
38
38
  */
39
- declare function toBasisConfig(txt: string, units?: string, cell?: [import("@mat3ra/esse/lib/js/types").ArrayOf3NumberElementsSchema, import("@mat3ra/esse/lib/js/types").ArrayOf3NumberElementsSchema, import("@mat3ra/esse/lib/js/types").ArrayOf3NumberElementsSchema]): BasisConfig;
39
+ declare function toBasisConfig(txt: string, units?: string, cell?: [import("@mat3ra/esse/dist/js/types").ArrayOf3NumberElementsSchema, import("@mat3ra/esse/dist/js/types").ArrayOf3NumberElementsSchema, import("@mat3ra/esse/dist/js/types").ArrayOf3NumberElementsSchema]): BasisConfig;
40
40
  /**
41
41
  * Create XYZ from Basis class instance.
42
42
  * @param basisClsInstance Basis class instance.
@@ -3,11 +3,11 @@ export class WrongBasisFormat extends Error {
3
3
  xyz: any;
4
4
  }
5
5
  export class CombinatorialBasis {
6
- static toBasisConfig(array: any, units?: string, cell?: [import("@mat3ra/esse/lib/js/types").ArrayOf3NumberElementsSchema, import("@mat3ra/esse/lib/js/types").ArrayOf3NumberElementsSchema, import("@mat3ra/esse/lib/js/types").ArrayOf3NumberElementsSchema]): {
6
+ static toBasisConfig(array: any, units?: string, cell?: [import("@mat3ra/esse/dist/js/types").ArrayOf3NumberElementsSchema, import("@mat3ra/esse/dist/js/types").ArrayOf3NumberElementsSchema, import("@mat3ra/esse/dist/js/types").ArrayOf3NumberElementsSchema]): {
7
7
  elements: any[];
8
8
  coordinates: any[];
9
9
  units: string;
10
- cell: [import("@mat3ra/esse/lib/js/types").ArrayOf3NumberElementsSchema, import("@mat3ra/esse/lib/js/types").ArrayOf3NumberElementsSchema, import("@mat3ra/esse/lib/js/types").ArrayOf3NumberElementsSchema];
10
+ cell: [import("@mat3ra/esse/dist/js/types").ArrayOf3NumberElementsSchema, import("@mat3ra/esse/dist/js/types").ArrayOf3NumberElementsSchema, import("@mat3ra/esse/dist/js/types").ArrayOf3NumberElementsSchema];
11
11
  };
12
12
  /**
13
13
  * Creates Combinatorial basis
@@ -13,7 +13,7 @@ declare function generateNewBasisWithinSupercell(basis: Basis, cell: Cell, super
13
13
  declare function generateConfig(material: Material, supercellMatrix: number[][]): {
14
14
  name: string;
15
15
  basis: import("../basis/basis").BasisSchema;
16
- lattice: import("@mat3ra/esse/lib/js/types").LatticeImplicitSchema;
16
+ lattice: import("@mat3ra/esse/dist/js/types").LatticeImplicitSchema;
17
17
  };
18
18
  declare const _default: {
19
19
  generateConfig: typeof generateConfig;
@@ -5,6 +5,6 @@ export default _default;
5
5
  declare function generateConfig(material: any, millerIndices: any, numberOfLayers?: number, vx?: number, vy?: number): {
6
6
  name: string;
7
7
  basis: import("../basis/basis").BasisSchema;
8
- lattice: import("@mat3ra/esse/lib/js/types").LatticeImplicitSchema;
8
+ lattice: import("@mat3ra/esse/dist/js/types").LatticeImplicitSchema;
9
9
  outOfPlaneAxisIndex: any;
10
10
  };
@@ -0,0 +1,3 @@
1
+ import { AnyObject } from "@mat3ra/code/dist/js/entity/in_memory";
2
+ import { MaterialSchema } from "@mat3ra/esse/dist/js/types";
3
+ export type MaterialJSON = MaterialSchema & AnyObject;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mat3ra/made",
3
- "version": "2024.3.25-0",
3
+ "version": "2024.3.25-2",
4
4
  "description": "MAterials DEsign library",
5
5
  "scripts": {
6
6
  "lint": "eslint --cache src/js tests/js && prettier --write src/js tests/js",
@@ -9,7 +9,7 @@
9
9
  "prepare": "husky install",
10
10
  "prettier": "prettier --check src/js tests/js",
11
11
  "test": "nyc --reporter=text mocha --recursive --bail tests/js",
12
- "transpile": "tsc"
12
+ "transpile": "tsc -p tsconfig-transpile.json"
13
13
  },
14
14
  "repository": {
15
15
  "type": "git",
@@ -32,10 +32,10 @@
32
32
  "@babel/preset-react": "^7.16.7",
33
33
  "@babel/register": "^7.22.15",
34
34
  "@babel/runtime-corejs3": "^7.16.8",
35
- "@exabyte-io/code.js": "2024.2.29-0",
36
35
  "@exabyte-io/eslint-config": "^2023.8.29-1",
37
- "@mat3ra/esse": "2024.3.20-0",
38
- "@mat3ra/tsconfig": "^2024.3.21-5",
36
+ "@mat3ra/code": "2024.3.25-3",
37
+ "@mat3ra/esse": "2024.3.25-6",
38
+ "@mat3ra/tsconfig": "^2024.3.25-5",
39
39
  "@types/crypto-js": "^4.2.2",
40
40
  "@types/mathjs": "^3.21.1",
41
41
  "@typescript-eslint/eslint-plugin": "^5.9.1",
@@ -73,12 +73,13 @@
73
73
  "crypto-js": "4.2.0",
74
74
  "lodash": "^4.17.*",
75
75
  "mathjs": "12.4.1",
76
+ "ts-node": "^10.9.1",
76
77
  "typescript": "^4.5.5",
77
78
  "underscore": "^1.8.3",
78
79
  "underscore.string": "^3.3.4"
79
80
  },
80
81
  "peerDependencies": {
81
- "@exabyte-io/code.js": "*",
82
+ "@mat3ra/code": "*",
82
83
  "@mat3ra/esse": "*"
83
84
  },
84
85
  "lint-staged": {
@@ -1,4 +1,4 @@
1
- import { math } from "@exabyte-io/code.js/dist/math";
1
+ import { math } from "@mat3ra/code/dist/js/math";
2
2
 
3
3
  import { Coordinate } from "../basis/types";
4
4
  import constants from "../constants";
@@ -1,4 +1,4 @@
1
- import { LatticeTypeSchema } from "@mat3ra/esse/lib/js/types";
1
+ import { LatticeTypeSchema } from "@mat3ra/esse/dist/js/types";
2
2
 
3
3
  /**
4
4
  * Routines for calculating conventional cell vectors from primitive cell Bravais parameters.
@@ -1,5 +1,5 @@
1
1
  /* eslint no-unused-vars: 0 */
2
- import { LatticeImplicitSchema } from "@mat3ra/esse/lib/js/types";
2
+ import { LatticeImplicitSchema } from "@mat3ra/esse/dist/js/types";
3
3
 
4
4
  import { VectorsAsArray } from "../lattice/types";
5
5
  import math from "../math";
@@ -1,4 +1,4 @@
1
1
  // TODO: adjust the imports and remove the need for re-exporting
2
- export * from "@exabyte-io/code.js/dist/constants";
2
+ export * from "@mat3ra/code/dist/js/constants";
3
3
  // eslint-disable-next-line no-restricted-exports
4
- export { default } from "@exabyte-io/code.js/dist/constants";
4
+ export { default } from "@mat3ra/code/dist/js/constants";
@@ -2,7 +2,7 @@ import {
2
2
  LatticeImplicitSchema,
3
3
  LatticeSchema,
4
4
  LatticeTypeExtendedSchema,
5
- } from "@mat3ra/esse/lib/js/types";
5
+ } from "@mat3ra/esse/dist/js/types";
6
6
  import lodash from "lodash";
7
7
  import _ from "underscore";
8
8
 
@@ -1,4 +1,4 @@
1
- import { LatticeImplicitSchema, LatticeTypeSchema } from "@mat3ra/esse/lib/js/types";
1
+ import { LatticeImplicitSchema, LatticeTypeSchema } from "@mat3ra/esse/dist/js/types";
2
2
 
3
3
  import constants from "../constants";
4
4
  import math from "../math";
@@ -1,4 +1,4 @@
1
- import { LatticeExplicitUnit, LatticeImplicitSchema } from "@mat3ra/esse/lib/js/types";
1
+ import { LatticeExplicitUnit, LatticeImplicitSchema } from "@mat3ra/esse/dist/js/types";
2
2
 
3
3
  import { primitiveCell } from "../cell/primitive_cell";
4
4
  import constants from "../constants";
@@ -1,4 +1,4 @@
1
- import { ATOMIC_COORD_UNITS, units as UNITS } from "@exabyte-io/code.js/dist/constants";
1
+ import { ATOMIC_COORD_UNITS, units as UNITS } from "@mat3ra/code/dist/js/constants";
2
2
  import almostEqual from "array-almost-equal";
3
3
  import lodash from "lodash";
4
4
 
@@ -4,7 +4,7 @@
4
4
  * This file contains information about the Brillouin zone symmetry points by lattice type.
5
5
  * [AFLOW](https://arxiv.org/abs/1004.2974) methodology is used for implementation.
6
6
  */
7
- import { LatticeImplicitSchema } from "@mat3ra/esse/lib/js/types";
7
+ import { LatticeImplicitSchema } from "@mat3ra/esse/dist/js/types";
8
8
 
9
9
  import { Lattice } from "../lattice";
10
10
 
@@ -1,4 +1,4 @@
1
- import { ArrayOf3NumberElementsSchema, LatticeTypeSchema } from "@mat3ra/esse/lib/js/types";
1
+ import { ArrayOf3NumberElementsSchema, LatticeTypeSchema } from "@mat3ra/esse/dist/js/types";
2
2
 
3
3
  export const DEFAULT_LATTICE_UNITS = {
4
4
  // by default lattice vectors shall be measured in angstrom, angles - in degrees
@@ -1,13 +1,13 @@
1
- import { HasConsistencyChecksHasMetadataNamedDefaultableInMemoryEntity } from "@exabyte-io/code.js/dist/entity";
2
- import { AnyObject } from "@exabyte-io/code.js/dist/entity/in_memory";
3
- // import MaterialJSONSchemaObject from "@mat3ra/esse/lib/js/schema/material.json";
1
+ import { HasConsistencyChecksHasMetadataNamedDefaultableInMemoryEntity } from "@mat3ra/code/dist/js/entity";
2
+ import { AnyObject } from "@mat3ra/code/dist/js/entity/in_memory";
3
+ // import MaterialJSONSchemaObject from "@mat3ra/esse/dist/js/schema/material.json";
4
4
  import {
5
5
  ConsistencyCheck,
6
6
  DerivedPropertiesSchema,
7
7
  FileSourceSchema,
8
8
  InChIRepresentationSchema,
9
9
  MaterialSchema,
10
- } from "@mat3ra/esse/lib/js/types";
10
+ } from "@mat3ra/esse/dist/js/types";
11
11
  import CryptoJS from "crypto-js";
12
12
 
13
13
  import { ConstrainedBasis } from "./basis/constrained_basis";
package/src/js/math.js CHANGED
@@ -1,5 +1,5 @@
1
1
  // TODO: adjust the imports and remove the need for re-exporting
2
- import { math as codeJSMath } from "@exabyte-io/code.js/dist/math";
2
+ import { math as codeJSMath } from "@mat3ra/code/dist/js/math";
3
3
 
4
4
  export default {
5
5
  ...codeJSMath,
@@ -1,4 +1,4 @@
1
- import { MaterialSchema } from "@mat3ra/esse/lib/js/types";
1
+ import { MaterialSchema } from "@mat3ra/esse/dist/js/types";
2
2
  import _ from "underscore";
3
3
  import s from "underscore.string";
4
4
 
@@ -1,4 +1,4 @@
1
- import { MaterialSchema } from "@mat3ra/esse/lib/js/types";
1
+ import { MaterialSchema } from "@mat3ra/esse/dist/js/types";
2
2
  import _ from "underscore";
3
3
  import s from "underscore.string";
4
4
 
package/src/js/types.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { AnyObject } from "@exabyte-io/code.js/dist/entity/in_memory";
2
- import { MaterialSchema } from "@mat3ra/esse/lib/js/types";
1
+ import { AnyObject } from "@mat3ra/code/dist/js/entity/in_memory";
2
+ import { MaterialSchema } from "@mat3ra/esse/dist/js/types";
3
3
 
4
4
  export type MaterialJSON = MaterialSchema & AnyObject;
@@ -0,0 +1,3 @@
1
+ {
2
+ "extends": "@mat3ra/tsconfig/tsconfig-js-py-transpile.json"
3
+ }
package/tsconfig.json CHANGED
@@ -1,3 +1,3 @@
1
1
  {
2
- "extends": "@mat3ra/tsconfig/tsconfig.json"
2
+ "extends": "@mat3ra/tsconfig/tsconfig-js-py-dev.json"
3
3
  }
@@ -1,2 +0,0 @@
1
- export * from "@exabyte-io/code.js/dist/constants";
2
- export { default } from "@exabyte-io/code.js/dist/constants";
package/dist/types.d.ts DELETED
@@ -1,3 +0,0 @@
1
- import { AnyObject } from "@exabyte-io/code.js/dist/entity/in_memory";
2
- import { MaterialSchema } from "@mat3ra/esse/lib/js/types";
3
- export type MaterialJSON = MaterialSchema & AnyObject;
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes