@immense/vue-pom-generator 1.0.34 → 1.0.35

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/RELEASE_NOTES.md CHANGED
@@ -1,39 +1,28 @@
1
- ● # v1.0.34
1
+ ● # Release Notes: v1.0.35
2
2
 
3
3
  ## Highlights
4
-
5
- - Fixed strict click collision detection to prevent false positives
6
- - Improved lazy route component naming for better code generation
7
- - Enhanced router introspection with significant improvements to route handling
8
- - Added comprehensive test coverage for class generation and router introspection
4
+ - Fixed wrapper collision fallbacks in transform logic
5
+ - Added comprehensive test coverage for wrapper collision scenarios
6
+ - Improved PR workflow with release-notes preview comments
9
7
 
10
8
  ## Changes
11
9
 
12
- **Bug Fixes**
13
- - Fixed strict click collision detection logic in transform pipeline
14
- - Corrected lazy route component naming in class generation
10
+ ### Bug Fixes
11
+ - Resolved issues with wrapper collision fallback behavior in transform module
15
12
 
16
- **Testing & Quality**
17
- - Added 70+ lines of new tests for class-generation coverage
18
- - Added 64+ lines of new tests for router introspection
19
- - Added 37+ lines of new tests for transform logic
13
+ ### Testing
14
+ - Added 41 lines of new tests for wrapper collision scenarios in `transform.test.ts`
20
15
 
21
- **Internal Improvements**
22
- - Enhanced router introspection with 140+ lines of improvements
23
- - Updated plugin path utilities with better handling
24
- - Improved support plugins for both build and dev modes
16
+ ### Developer Experience
17
+ - Integrated automated release-notes preview comments on pull requests
25
18
 
26
19
  ## Breaking Changes
27
-
28
- None.
20
+ None
29
21
 
30
22
  ## Pull Requests Included
31
-
32
23
  - #1 Add PR release-notes preview comments (https://github.com/immense/vue-pom-generator/pull/1)
33
24
  by @dkattan
34
25
 
35
26
  ## Testing
36
-
37
- Comprehensive test coverage added across class generation, router introspection, and transform
38
- modules. All tests passing.
27
+ New test cases added to validate wrapper collision fallback fixes. All tests passing.
39
28
 
package/dist/index.cjs CHANGED
@@ -5642,14 +5642,23 @@ Fix: remove the explicit ${attrLabel}, or change existingIdBehavior to "overwrit
5642
5642
  upsertAttribute(element, "option-data-testid-prefix", optionDataTestIdPrefixValue);
5643
5643
  }
5644
5644
  const nativeRole = nativeWrappers[element.tag]?.role ?? element.tag;
5645
- const primarySemanticHint = semanticNameHint || conditionalHint || void 0;
5646
- const alternates = nameCollisionBehavior === "error" && semanticNameHint && conditionalHint ? [`${semanticNameHint} ${conditionalHint}`] : void 0;
5645
+ const wrapperHintCandidates = [
5646
+ semanticNameHint,
5647
+ getStaticAttributeContent(element, "title"),
5648
+ getStaticAttributeContent(element, "label"),
5649
+ getStaticAttributeContent(element, "okTitle"),
5650
+ getStaticAttributeContent(element, "cancelTitle"),
5651
+ getStaticAttributeContent(element, "id") || getStaticAttributeContent(element, "name"),
5652
+ getInnerText(element) || null,
5653
+ nameCollisionBehavior === "error" && semanticNameHint && conditionalHint ? `${semanticNameHint} ${conditionalHint}` : conditionalHint
5654
+ ].map((value) => (value ?? "").trim()).filter(Boolean).filter((value, index, values) => values.indexOf(value) === index);
5655
+ const [primarySemanticHint, ...alternates] = wrapperHintCandidates;
5647
5656
  const pomMergeKey = semanticNameHint && conditionalMergeGroupKey ? `wrapper:ifgroup:${conditionalMergeGroupKey}:model:${semanticNameHint}` : void 0;
5648
5657
  applyResolvedDataTestIdForElement({
5649
5658
  preferredGeneratedValue: nativeWrappersValue,
5650
5659
  nativeRoleOverride: nativeRole,
5651
5660
  semanticNameHint: primarySemanticHint,
5652
- semanticNameHintAlternates: alternates,
5661
+ semanticNameHintAlternates: alternates.length ? alternates : void 0,
5653
5662
  pomMergeKey
5654
5663
  });
5655
5664
  return;