@zcomponent/core 0.0.28 → 0.0.29

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.
@@ -3,9 +3,7 @@ export interface DefaultLoaderConstructorProps {
3
3
  /** @zprop
4
4
  * @zgroup Appearance
5
5
  * @zgrouppriority 10
6
- * @zvalues files *.jpeg
7
- * @zvalues files *.png
8
- * @zvalues files *.jpg
6
+ * @zvalues files *.+(jpg|jpeg|png)
9
7
  */
10
8
  backgroundImage: string;
11
9
  }
package/lib/inflate.js CHANGED
@@ -170,7 +170,6 @@ export function populateAnimationTracksFromData(zcomp, anim, data) {
170
170
  }
171
171
  }
172
172
  export function populateAnimationStructureFromData(zcomp, anim, data) {
173
- console.log('ANIM', data);
174
173
  const clips = resolveClipDependencies(data.clips).reverse();
175
174
  for (const clip of Object.values(clips)) {
176
175
  if (!clip)
package/lib/types.d.ts CHANGED
@@ -100,6 +100,8 @@ export interface Prop {
100
100
  group?: string;
101
101
  groupPriority?: number;
102
102
  values?: Values[];
103
+ order?: number;
104
+ priority?: number;
103
105
  }
104
106
  export interface DefaultChild {
105
107
  label: string;
package/lib/types.js CHANGED
@@ -142,7 +142,9 @@ export function mergeProps(a, b) {
142
142
  default: def,
143
143
  group: a.group === b.group ? a.group : undefined,
144
144
  groupPriority: Math.max(a.groupPriority ?? 0, b.groupPriority ?? 0),
145
+ priority: Math.max(a.priority ?? 0, b.priority ?? 0),
145
146
  values: mergeValues(a.values, b.values),
147
+ order: Math.min(a.order ?? 0, b.order ?? 0),
146
148
  };
147
149
  }
148
150
  function mergeComments(a, b) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zcomponent/core",
3
- "version": "0.0.28",
3
+ "version": "0.0.29",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
@@ -19,7 +19,7 @@
19
19
  "css/**/*"
20
20
  ],
21
21
  "scripts": {
22
- "build": "tsc",
22
+ "build": "rm -rf lib && tsc",
23
23
  "build-animation-tests": "tsc -p ./tsconfig.test.animation.json",
24
24
  "test": "PW_EXPERIMENTAL_TS_ESM=1 playwright test",
25
25
  "tests": "parcel serve tests/index.html -p 8088"