@teachinglab/omd 0.5.2 → 0.5.3

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/index.js CHANGED
@@ -11,31 +11,12 @@
11
11
  * const { omdTable } = await import('@teachinglab/omd')
12
12
  */
13
13
 
14
- // Force synchronous side-effect imports to initialize the class hierarchy
15
- // These MUST load in dependency order before anything else
16
- import './src/omdMetaExpression.js'; // Base of omdNode
17
- import './omd/nodes/omdNode.js'; // Extends omdMetaExpression
18
- import './omd/nodes/omdLeafNode.js'; // Extends omdNode
14
+ // Import everything first to ensure proper loading order
15
+ import * as omdCore from './omd/core/index.js';
16
+ import * as omdCanvas from './canvas/index.js';
17
+ import * as omdVisualizations from './src/index.js';
19
18
 
20
- // Now load classes that depend on omdLeafNode
21
- import './omd/nodes/omdConstantNode.js';
22
- import './omd/nodes/omdOperatorNode.js';
23
- import './omd/nodes/omdVariableNode.js';
24
- import './omd/nodes/omdGroupNode.js';
25
-
26
- // Load other node classes that extend omdNode
27
- import './omd/nodes/omdBinaryExpressionNode.js';
28
- import './omd/nodes/omdUnaryExpressionNode.js';
29
- import './omd/nodes/omdParenthesisNode.js';
30
- import './omd/nodes/omdPowerNode.js';
31
- import './omd/nodes/omdRationalNode.js';
32
- import './omd/nodes/omdSqrtNode.js';
33
- import './omd/nodes/omdFunctionNode.js';
34
- import './omd/nodes/omdEquationNode.js';
35
- import './omd/nodes/omdEquationSequenceNode.js';
36
- import './omd/nodes/omdOperationDisplayNode.js';
37
-
38
- // Now that classes are initialized, we can safely import and re-export
19
+ // Re-export everything
39
20
  export * from './omd/core/index.js';
40
21
  export * from './canvas/index.js';
41
22
  export * from './src/index.js';
package/omd/core/index.js CHANGED
@@ -1,28 +1,20 @@
1
- // Core node classes - imported in dependency order
2
- // Level 1: Base class
1
+ // Core node classes
3
2
  import { omdNode } from '../nodes/omdNode.js';
4
-
5
- // Level 2: First-level descendants of omdNode
6
- import { omdLeafNode } from '../nodes/omdLeafNode.js';
7
-
8
- // Level 3: Classes that extend omdLeafNode - MUST come after omdLeafNode
3
+ import { omdBinaryExpressionNode } from '../nodes/omdBinaryExpressionNode.js';
9
4
  import { omdConstantNode } from '../nodes/omdConstantNode.js';
10
- import { omdOperatorNode } from '../nodes/omdOperatorNode.js';
11
- import { omdVariableNode } from '../nodes/omdVariableNode.js';
5
+ import { omdEquationNode } from '../nodes/omdEquationNode.js';
6
+ import { omdFunctionNode } from '../nodes/omdFunctionNode.js';
12
7
  import { omdGroupNode } from '../nodes/omdGroupNode.js';
13
-
14
- // Level 2: Other classes that extend omdNode directly
15
- import { omdBinaryExpressionNode } from '../nodes/omdBinaryExpressionNode.js';
16
- import { omdUnaryExpressionNode } from '../nodes/omdUnaryExpressionNode.js';
8
+ import { omdLeafNode } from '../nodes/omdLeafNode.js';
9
+ import { omdOperationDisplayNode } from '../nodes/omdOperationDisplayNode.js';
10
+ import { omdOperatorNode } from '../nodes/omdOperatorNode.js';
17
11
  import { omdParenthesisNode } from '../nodes/omdParenthesisNode.js';
18
12
  import { omdPowerNode } from '../nodes/omdPowerNode.js';
19
13
  import { omdRationalNode } from '../nodes/omdRationalNode.js';
20
- import { omdSqrtNode } from '../nodes/omdSqrtNode.js';
21
- import { omdFunctionNode } from '../nodes/omdFunctionNode.js';
22
- import { omdOperationDisplayNode } from '../nodes/omdOperationDisplayNode.js';
23
- import { omdEquationNode } from '../nodes/omdEquationNode.js';
24
14
  import { omdEquationSequenceNode } from '../nodes/omdEquationSequenceNode.js';
25
-
15
+ import { omdSqrtNode } from '../nodes/omdSqrtNode.js';
16
+ import { omdUnaryExpressionNode } from '../nodes/omdUnaryExpressionNode.js';
17
+ import { omdVariableNode } from '../nodes/omdVariableNode.js';
26
18
  import { omdEquationStack } from './omdEquationStack.js';
27
19
 
28
20
  // Visualization components
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@teachinglab/omd",
3
- "version": "0.5.2",
3
+ "version": "0.5.3",
4
4
  "description": "omd",
5
5
  "main": "./index.js",
6
6
  "module": "./index.js",