@wonderlandlabs-pixi-ux/box 1.0.2 → 1.1.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.
package/CHANGELOG.md CHANGED
@@ -1,9 +1,5 @@
1
1
  # CHANGELOG
2
2
 
3
- ## 1.0.2 - 2026-02-26
4
-
5
- - Bumped package version by +0.0.1.
6
- - Bumped dependency ranges by +0.0.1 where applicable.
7
3
  ## 1.0
8
4
 
9
5
  Achieved a basic system to use nested containers / tree system
@@ -14,4 +10,9 @@ to express flex -like containment in pixi
14
10
  Refactored for a single - class expression; full reboot with
15
11
  fewer size modes and more robust updating. Fully removed all pixi/
16
12
  rendering from the boxes; child classes/external utilities responsible
17
- for rendering content.
13
+ for rendering content.
14
+
15
+ ## 1.1.1 - 2026-02-27
16
+
17
+ - Instituted a deeper style-key pattern using dot-separated noun parts, with interCaps compatibility in style-tree.
18
+ - Raised the Node runtime baseline to `>=20.0.0`.
package/dist/index.d.ts CHANGED
@@ -1,12 +1,12 @@
1
- export { AxisSchema as TreeAxisSchema, DirectionSchema as TreeDirectionSchema, BoxContentTypeSchema as TreeBoxContentTypeSchema, BoxContentSchema as TreeBoxContentSchema, StyleNameSchema as TreeStyleNameSchema, VerbSchema as TreeVerbSchema, VerbListSchema as TreeVerbListSchema, AlignmentsSchema as TreeAlignmentsSchema, AlignKeywordSchema as TreeAlignKeywordSchema, AlignAliasSchema as TreeAlignAliasSchema, AlignInputSchema as TreeAlignInputSchema, XYPositionSchema as TreeXYPositionSchema, BoxSizeSchema as TreeBoxSizeSchema, AreaPivotKeywordSchema as TreeAreaPivotKeywordSchema, AreaPivotAliasSchema as TreeAreaPivotAliasSchema, AreaPivotInputSchema as TreeAreaPivotInputSchema, AreaPivotSchema as TreeAreaPivotSchema, BoxAreaSchema as TreeAreaSchema, BoxAreaSchema as TreeRectSchema, AxisAlignmentsSchema as TreeAxisAlignmentsSchema, BoxAlignSchema as TreeAlignSchema, AxisConstraintsByAxisSchema as TreeAxisConstraintsByAxisSchema, BoxConstrainSchema as TreeConstrainSchema, BoxTreeStateBaseSchema, BoxTreeNodeStateSchema, BoxTreeStateSchema, BoxTreeNodeConfigSchema, type BoxTreeConfig, type BoxTreeState, type Axis, type Direction as TreeDirection, type BoxContentType, type BoxContent, type StyleName, type Verb, type VerbList, type Alignments, type AlignKeyword, type AlignAlias, type AlignInput, type XYPosition, type BoxSize2D, type AreaPivotKeyword, type AreaPivotAlias, type AreaPivotInput, type AreaPivot, type BoxArea, type BoxRect, type AxisAlignments, type AxisConstraintsByAxis, type BoxSize, type AxisConstrain, type BoxAlign, type BoxConstrain, } from './types.boxtree';
2
- export { BoxTree, createBoxTreeState, type BoxUx, type BoxUxMapFn, type BoxRenderer, type BoxRenderMapFn, type BoxTreeRuntimeConfig, } from './BoxTree';
3
- export { MapEnhanced, } from './BoxUxContextMap';
4
- export { BoxUxBase, } from './BoxUxBase';
5
- export { BoxUxPixi, BoxTreeUx, BoxTreeRenderer, type BoxTreeStyleManagerLike, } from './BoxUx';
6
- export { ROOT_CONTAINER, BACKGROUND_CONTAINER, CHILD_CONTAINER, CONTENT_CONTAINER, OVERLAY_CONTAINER, STROKE_CONTAINER, BOX_UX_ENV, } from './constants.ux';
7
- export { type BoxTreeFillStyle, type BoxTreeStrokeStyle, type BoxTreeStyleMap, type BoxTreeUxStyleManagerLike, } from './types.ux';
8
- export { SizeModeSchema as TreeSizeModeSchema, FractionalMeasurementModeSchema as TreeFractionalMeasurementModeSchema, MeasurementRatioModeSchema as TreeMeasurementRatioModeSchema, MeasurementInputModeSchema as TreeMeasurementInputModeSchema, FractionalMeasurementValueSchema as TreeFractionalMeasurementValueSchema, MeasurementRatioValueSchema as TreeMeasurementRatioValueSchema, FractionalMeasurementBaseSchema as TreeFractionalMeasurementBaseSchema, MeasurementRatioBaseSchema as TreeMeasurementRatioBaseSchema, BaseMeasurementObjectSchema as TreeBaseMeasurementObjectSchema, FractionalMeasurementObjectSchema as TreeFractionalMeasurementObjectSchema, MeasurementConfigSchema as TreeMeasurementConfigSchema, MeasurementSchema as TreeMeasurementSchema, PxValueSchema as TreePxValueSchema, AxisConstraintSchema as TreeAxisConstraintSchema, type SizeMode as TreeSizeMode, type FractionalMeasurementMode, type MeasurementRatioMode, type MeasurementInputMode, type FractionalMeasurementValue, type MeasurementRatioValue, type FractionalMeasurementBase, type MeasurementRatioBase, type AlignLabel, type MeasurementModeLabel, type Measurement, type PxValue, type AxisConstraintLike, } from './types';
9
- export { AXIS, ALIGN_ENUM_KEYWORDS, ALIGN_ENUM_ALIASES, ALIGN, BOX_UX_LAYER, BOX_UX_ORDER, getUxOrder, setUxOrder, BOX_UX_CONTENT_ORDER, BOX_RENDER_CONTENT_ORDER, MEASUREMENT_ENUM_CANONICAL, MEASUREMENT_ENUM_INPUT, MEASUREMENT_MODE, SIZE_MODE_INPUT, SIZE_MODE, } from './constants';
10
- export { resolveMeasurement as resolveTreeMeasurement, resolveMeasurementPx, resolveConstraintValuePx, applyAxisConstraints, } from './sizeUtils';
11
- export { boxTreeToPixi, boxTreeToSvg, type BoxTreeToPixiNodeStyle, type BoxTreeToPixiOptions, type BoxTreeToSvgNodeStyle, type BoxTreeToSvgOptions, } from './boxTreeRenderers';
12
- export { combinePaths, pathString, pathToString, type Path } from './pathUtils';
1
+ export { AxisSchema as TreeAxisSchema, DirectionSchema as TreeDirectionSchema, BoxContentTypeSchema as TreeBoxContentTypeSchema, BoxContentSchema as TreeBoxContentSchema, StyleNameSchema as TreeStyleNameSchema, VerbSchema as TreeVerbSchema, VerbListSchema as TreeVerbListSchema, AlignmentsSchema as TreeAlignmentsSchema, AlignKeywordSchema as TreeAlignKeywordSchema, AlignAliasSchema as TreeAlignAliasSchema, AlignInputSchema as TreeAlignInputSchema, XYPositionSchema as TreeXYPositionSchema, BoxSizeSchema as TreeBoxSizeSchema, AreaPivotKeywordSchema as TreeAreaPivotKeywordSchema, AreaPivotAliasSchema as TreeAreaPivotAliasSchema, AreaPivotInputSchema as TreeAreaPivotInputSchema, AreaPivotSchema as TreeAreaPivotSchema, BoxAreaSchema as TreeAreaSchema, BoxAreaSchema as TreeRectSchema, AxisAlignmentsSchema as TreeAxisAlignmentsSchema, BoxAlignSchema as TreeAlignSchema, AxisConstraintsByAxisSchema as TreeAxisConstraintsByAxisSchema, BoxConstrainSchema as TreeConstrainSchema, BoxTreeStateBaseSchema, BoxTreeNodeStateSchema, BoxTreeStateSchema, BoxTreeNodeConfigSchema, type BoxTreeConfig, type BoxTreeState, type Axis, type Direction as TreeDirection, type BoxContentType, type BoxContent, type StyleName, type Verb, type VerbList, type Alignments, type AlignKeyword, type AlignAlias, type AlignInput, type XYPosition, type BoxSize2D, type AreaPivotKeyword, type AreaPivotAlias, type AreaPivotInput, type AreaPivot, type BoxArea, type BoxRect, type AxisAlignments, type AxisConstraintsByAxis, type BoxSize, type AxisConstrain, type BoxAlign, type BoxConstrain, } from './types.boxtree.js';
2
+ export { BoxTree, createBoxTreeState, type BoxUx, type BoxUxMapFn, type BoxRenderer, type BoxRenderMapFn, type BoxTreeRuntimeConfig, } from './BoxTree.js';
3
+ export { MapEnhanced, } from './BoxUxContextMap.js';
4
+ export { BoxUxBase, } from './BoxUxBase.js';
5
+ export { BoxUxPixi, BoxTreeUx, BoxTreeRenderer, type BoxTreeStyleManagerLike, } from './BoxUx.js';
6
+ export { ROOT_CONTAINER, BACKGROUND_CONTAINER, CHILD_CONTAINER, CONTENT_CONTAINER, OVERLAY_CONTAINER, STROKE_CONTAINER, BOX_UX_ENV, } from './constants.ux.js';
7
+ export { type BoxTreeFillStyle, type BoxTreeStrokeStyle, type BoxTreeStyleMap, type BoxTreeUxStyleManagerLike, } from './types.ux.js';
8
+ export { SizeModeSchema as TreeSizeModeSchema, FractionalMeasurementModeSchema as TreeFractionalMeasurementModeSchema, MeasurementRatioModeSchema as TreeMeasurementRatioModeSchema, MeasurementInputModeSchema as TreeMeasurementInputModeSchema, FractionalMeasurementValueSchema as TreeFractionalMeasurementValueSchema, MeasurementRatioValueSchema as TreeMeasurementRatioValueSchema, FractionalMeasurementBaseSchema as TreeFractionalMeasurementBaseSchema, MeasurementRatioBaseSchema as TreeMeasurementRatioBaseSchema, BaseMeasurementObjectSchema as TreeBaseMeasurementObjectSchema, FractionalMeasurementObjectSchema as TreeFractionalMeasurementObjectSchema, MeasurementConfigSchema as TreeMeasurementConfigSchema, MeasurementSchema as TreeMeasurementSchema, PxValueSchema as TreePxValueSchema, AxisConstraintSchema as TreeAxisConstraintSchema, type SizeMode as TreeSizeMode, type FractionalMeasurementMode, type MeasurementRatioMode, type MeasurementInputMode, type FractionalMeasurementValue, type MeasurementRatioValue, type FractionalMeasurementBase, type MeasurementRatioBase, type AlignLabel, type MeasurementModeLabel, type Measurement, type PxValue, type AxisConstraintLike, } from './types.js';
9
+ export { AXIS, ALIGN_ENUM_KEYWORDS, ALIGN_ENUM_ALIASES, ALIGN, BOX_UX_LAYER, BOX_UX_ORDER, getUxOrder, setUxOrder, BOX_UX_CONTENT_ORDER, BOX_RENDER_CONTENT_ORDER, MEASUREMENT_ENUM_CANONICAL, MEASUREMENT_ENUM_INPUT, MEASUREMENT_MODE, SIZE_MODE_INPUT, SIZE_MODE, } from './constants.js';
10
+ export { resolveMeasurement as resolveTreeMeasurement, resolveMeasurementPx, resolveConstraintValuePx, applyAxisConstraints, } from './sizeUtils.js';
11
+ export { boxTreeToPixi, boxTreeToSvg, type BoxTreeToPixiNodeStyle, type BoxTreeToPixiOptions, type BoxTreeToSvgNodeStyle, type BoxTreeToSvgOptions, } from './boxTreeRenderers.js';
12
+ export { combinePaths, pathString, pathToString, type Path } from './pathUtils.js';
package/dist/index.js CHANGED
@@ -1,11 +1,11 @@
1
- export { AxisSchema as TreeAxisSchema, DirectionSchema as TreeDirectionSchema, BoxContentTypeSchema as TreeBoxContentTypeSchema, BoxContentSchema as TreeBoxContentSchema, StyleNameSchema as TreeStyleNameSchema, VerbSchema as TreeVerbSchema, VerbListSchema as TreeVerbListSchema, AlignmentsSchema as TreeAlignmentsSchema, AlignKeywordSchema as TreeAlignKeywordSchema, AlignAliasSchema as TreeAlignAliasSchema, AlignInputSchema as TreeAlignInputSchema, XYPositionSchema as TreeXYPositionSchema, BoxSizeSchema as TreeBoxSizeSchema, AreaPivotKeywordSchema as TreeAreaPivotKeywordSchema, AreaPivotAliasSchema as TreeAreaPivotAliasSchema, AreaPivotInputSchema as TreeAreaPivotInputSchema, AreaPivotSchema as TreeAreaPivotSchema, BoxAreaSchema as TreeAreaSchema, BoxAreaSchema as TreeRectSchema, AxisAlignmentsSchema as TreeAxisAlignmentsSchema, BoxAlignSchema as TreeAlignSchema, AxisConstraintsByAxisSchema as TreeAxisConstraintsByAxisSchema, BoxConstrainSchema as TreeConstrainSchema, BoxTreeStateBaseSchema, BoxTreeNodeStateSchema, BoxTreeStateSchema, BoxTreeNodeConfigSchema, } from './types.boxtree';
2
- export { BoxTree, createBoxTreeState, } from './BoxTree';
3
- export { MapEnhanced, } from './BoxUxContextMap';
4
- export { BoxUxBase, } from './BoxUxBase';
5
- export { BoxUxPixi, BoxTreeUx, BoxTreeRenderer, } from './BoxUx';
6
- export { ROOT_CONTAINER, BACKGROUND_CONTAINER, CHILD_CONTAINER, CONTENT_CONTAINER, OVERLAY_CONTAINER, STROKE_CONTAINER, BOX_UX_ENV, } from './constants.ux';
7
- export { SizeModeSchema as TreeSizeModeSchema, FractionalMeasurementModeSchema as TreeFractionalMeasurementModeSchema, MeasurementRatioModeSchema as TreeMeasurementRatioModeSchema, MeasurementInputModeSchema as TreeMeasurementInputModeSchema, FractionalMeasurementValueSchema as TreeFractionalMeasurementValueSchema, MeasurementRatioValueSchema as TreeMeasurementRatioValueSchema, FractionalMeasurementBaseSchema as TreeFractionalMeasurementBaseSchema, MeasurementRatioBaseSchema as TreeMeasurementRatioBaseSchema, BaseMeasurementObjectSchema as TreeBaseMeasurementObjectSchema, FractionalMeasurementObjectSchema as TreeFractionalMeasurementObjectSchema, MeasurementConfigSchema as TreeMeasurementConfigSchema, MeasurementSchema as TreeMeasurementSchema, PxValueSchema as TreePxValueSchema, AxisConstraintSchema as TreeAxisConstraintSchema, } from './types';
8
- export { AXIS, ALIGN_ENUM_KEYWORDS, ALIGN_ENUM_ALIASES, ALIGN, BOX_UX_LAYER, BOX_UX_ORDER, getUxOrder, setUxOrder, BOX_UX_CONTENT_ORDER, BOX_RENDER_CONTENT_ORDER, MEASUREMENT_ENUM_CANONICAL, MEASUREMENT_ENUM_INPUT, MEASUREMENT_MODE, SIZE_MODE_INPUT, SIZE_MODE, } from './constants';
9
- export { resolveMeasurement as resolveTreeMeasurement, resolveMeasurementPx, resolveConstraintValuePx, applyAxisConstraints, } from './sizeUtils';
10
- export { boxTreeToPixi, boxTreeToSvg, } from './boxTreeRenderers';
11
- export { combinePaths, pathString, pathToString } from './pathUtils';
1
+ export { AxisSchema as TreeAxisSchema, DirectionSchema as TreeDirectionSchema, BoxContentTypeSchema as TreeBoxContentTypeSchema, BoxContentSchema as TreeBoxContentSchema, StyleNameSchema as TreeStyleNameSchema, VerbSchema as TreeVerbSchema, VerbListSchema as TreeVerbListSchema, AlignmentsSchema as TreeAlignmentsSchema, AlignKeywordSchema as TreeAlignKeywordSchema, AlignAliasSchema as TreeAlignAliasSchema, AlignInputSchema as TreeAlignInputSchema, XYPositionSchema as TreeXYPositionSchema, BoxSizeSchema as TreeBoxSizeSchema, AreaPivotKeywordSchema as TreeAreaPivotKeywordSchema, AreaPivotAliasSchema as TreeAreaPivotAliasSchema, AreaPivotInputSchema as TreeAreaPivotInputSchema, AreaPivotSchema as TreeAreaPivotSchema, BoxAreaSchema as TreeAreaSchema, BoxAreaSchema as TreeRectSchema, AxisAlignmentsSchema as TreeAxisAlignmentsSchema, BoxAlignSchema as TreeAlignSchema, AxisConstraintsByAxisSchema as TreeAxisConstraintsByAxisSchema, BoxConstrainSchema as TreeConstrainSchema, BoxTreeStateBaseSchema, BoxTreeNodeStateSchema, BoxTreeStateSchema, BoxTreeNodeConfigSchema, } from './types.boxtree.js';
2
+ export { BoxTree, createBoxTreeState, } from './BoxTree.js';
3
+ export { MapEnhanced, } from './BoxUxContextMap.js';
4
+ export { BoxUxBase, } from './BoxUxBase.js';
5
+ export { BoxUxPixi, BoxTreeUx, BoxTreeRenderer, } from './BoxUx.js';
6
+ export { ROOT_CONTAINER, BACKGROUND_CONTAINER, CHILD_CONTAINER, CONTENT_CONTAINER, OVERLAY_CONTAINER, STROKE_CONTAINER, BOX_UX_ENV, } from './constants.ux.js';
7
+ export { SizeModeSchema as TreeSizeModeSchema, FractionalMeasurementModeSchema as TreeFractionalMeasurementModeSchema, MeasurementRatioModeSchema as TreeMeasurementRatioModeSchema, MeasurementInputModeSchema as TreeMeasurementInputModeSchema, FractionalMeasurementValueSchema as TreeFractionalMeasurementValueSchema, MeasurementRatioValueSchema as TreeMeasurementRatioValueSchema, FractionalMeasurementBaseSchema as TreeFractionalMeasurementBaseSchema, MeasurementRatioBaseSchema as TreeMeasurementRatioBaseSchema, BaseMeasurementObjectSchema as TreeBaseMeasurementObjectSchema, FractionalMeasurementObjectSchema as TreeFractionalMeasurementObjectSchema, MeasurementConfigSchema as TreeMeasurementConfigSchema, MeasurementSchema as TreeMeasurementSchema, PxValueSchema as TreePxValueSchema, AxisConstraintSchema as TreeAxisConstraintSchema, } from './types.js';
8
+ export { AXIS, ALIGN_ENUM_KEYWORDS, ALIGN_ENUM_ALIASES, ALIGN, BOX_UX_LAYER, BOX_UX_ORDER, getUxOrder, setUxOrder, BOX_UX_CONTENT_ORDER, BOX_RENDER_CONTENT_ORDER, MEASUREMENT_ENUM_CANONICAL, MEASUREMENT_ENUM_INPUT, MEASUREMENT_MODE, SIZE_MODE_INPUT, SIZE_MODE, } from './constants.js';
9
+ export { resolveMeasurement as resolveTreeMeasurement, resolveMeasurementPx, resolveConstraintValuePx, applyAxisConstraints, } from './sizeUtils.js';
10
+ export { boxTreeToPixi, boxTreeToSvg, } from './boxTreeRenderers.js';
11
+ export { combinePaths, pathString, pathToString } from './pathUtils.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wonderlandlabs-pixi-ux/box",
3
- "version": "1.0.2",
3
+ "version": "1.1.2",
4
4
  "description": "Box component with size, padding, anchor, and content alignment for wonderlandlabs-pixi-ux",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -25,5 +25,8 @@
25
25
  "devDependencies": {
26
26
  "typescript": "^5.5.4",
27
27
  "vitest": "^4.0.18"
28
+ },
29
+ "engines": {
30
+ "node": ">=20.0.0"
28
31
  }
29
32
  }
package/src/index.ts CHANGED
@@ -53,7 +53,7 @@ export {
53
53
  type AxisConstrain,
54
54
  type BoxAlign,
55
55
  type BoxConstrain,
56
- } from './types.boxtree';
56
+ } from './types.boxtree.js';
57
57
  export {
58
58
  BoxTree,
59
59
  createBoxTreeState,
@@ -62,19 +62,19 @@ export {
62
62
  type BoxRenderer,
63
63
  type BoxRenderMapFn,
64
64
  type BoxTreeRuntimeConfig,
65
- } from './BoxTree';
65
+ } from './BoxTree.js';
66
66
  export {
67
67
  MapEnhanced,
68
- } from './BoxUxContextMap';
68
+ } from './BoxUxContextMap.js';
69
69
  export {
70
70
  BoxUxBase,
71
- } from './BoxUxBase';
71
+ } from './BoxUxBase.js';
72
72
  export {
73
73
  BoxUxPixi,
74
74
  BoxTreeUx,
75
75
  BoxTreeRenderer,
76
76
  type BoxTreeStyleManagerLike,
77
- } from './BoxUx';
77
+ } from './BoxUx.js';
78
78
  export {
79
79
  ROOT_CONTAINER,
80
80
  BACKGROUND_CONTAINER,
@@ -83,13 +83,13 @@ export {
83
83
  OVERLAY_CONTAINER,
84
84
  STROKE_CONTAINER,
85
85
  BOX_UX_ENV,
86
- } from './constants.ux';
86
+ } from './constants.ux.js';
87
87
  export {
88
88
  type BoxTreeFillStyle,
89
89
  type BoxTreeStrokeStyle,
90
90
  type BoxTreeStyleMap,
91
91
  type BoxTreeUxStyleManagerLike,
92
- } from './types.ux';
92
+ } from './types.ux.js';
93
93
  export {
94
94
  SizeModeSchema as TreeSizeModeSchema,
95
95
  FractionalMeasurementModeSchema as TreeFractionalMeasurementModeSchema,
@@ -118,7 +118,7 @@ export {
118
118
  type Measurement,
119
119
  type PxValue,
120
120
  type AxisConstraintLike,
121
- } from './types';
121
+ } from './types.js';
122
122
  export {
123
123
  AXIS,
124
124
  ALIGN_ENUM_KEYWORDS,
@@ -135,13 +135,13 @@ export {
135
135
  MEASUREMENT_MODE,
136
136
  SIZE_MODE_INPUT,
137
137
  SIZE_MODE,
138
- } from './constants';
138
+ } from './constants.js';
139
139
  export {
140
140
  resolveMeasurement as resolveTreeMeasurement,
141
141
  resolveMeasurementPx,
142
142
  resolveConstraintValuePx,
143
143
  applyAxisConstraints,
144
- } from './sizeUtils';
144
+ } from './sizeUtils.js';
145
145
  export {
146
146
  boxTreeToPixi,
147
147
  boxTreeToSvg,
@@ -149,5 +149,5 @@ export {
149
149
  type BoxTreeToPixiOptions,
150
150
  type BoxTreeToSvgNodeStyle,
151
151
  type BoxTreeToSvgOptions,
152
- } from './boxTreeRenderers';
153
- export { combinePaths, pathString, pathToString, type Path } from './pathUtils';
152
+ } from './boxTreeRenderers.js';
153
+ export { combinePaths, pathString, pathToString, type Path } from './pathUtils.js';