@maccesar/titools 4.4.0 → 4.5.0

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 (45) hide show
  1. package/README.md +10 -13
  2. package/package.json +1 -1
  3. package/skills/purgetss/SKILL.md +4 -9
  4. package/skills/ti-api/references/api-core.md +24 -69
  5. package/skills/ti-api/references/api-data-network.md +18 -63
  6. package/skills/ti-api/references/api-media.md +225 -107
  7. package/skills/ti-api/references/api-modules-coremotion-urlsession.md +6 -20
  8. package/skills/ti-api/references/api-modules-map.md +45 -58
  9. package/skills/ti-api/references/api-modules-nfc.md +23 -56
  10. package/skills/ti-api/references/api-modules-social-misc.md +23 -3
  11. package/skills/ti-api/references/api-ui-android.md +16 -37
  12. package/skills/ti-api/references/api-ui-extras.md +106 -87
  13. package/skills/ti-api/references/api-ui-lists.md +103 -57
  14. package/skills/ti-api/references/api-ui-text-input.md +13 -39
  15. package/skills/ti-api/references/api-ui-windows-navigation.md +95 -93
  16. package/skills/ti-api/references/api-xml-global.md +25 -60
  17. package/skills/ti-expert/SKILL.md +8 -11
  18. package/skills/ti-expert/references/adaptive-layouts.md +15 -43
  19. package/skills/ti-expert/references/alloy-builtins.md +1 -4
  20. package/skills/ti-expert/references/alloy-structure.md +4 -12
  21. package/skills/ti-expert/references/anti-patterns.md +16 -45
  22. package/skills/ti-expert/references/code-conventions.md +2 -6
  23. package/skills/ti-expert/references/controller-patterns.md +1 -3
  24. package/skills/ti-expert/references/examples.md +3 -10
  25. package/skills/ti-expert/references/feedback-migration.md +17 -39
  26. package/skills/ti-expert/references/feedback-surfaces.md +19 -48
  27. package/skills/ti-expert/references/feedback-widget-contracts.md +31 -69
  28. package/skills/ti-expert/references/file-type-association.md +265 -0
  29. package/skills/ti-expert/references/migration-patterns.md +8 -18
  30. package/skills/ti-expert/references/sharing.md +227 -0
  31. package/skills/ti-expert/references/theming.md +20 -45
  32. package/skills/ti-guides/SKILL.md +5 -1
  33. package/skills/ti-guides/references/coding-best-practices.md +1 -2
  34. package/skills/ti-guides/references/compatibility-matrix.md +89 -0
  35. package/skills/ti-guides/references/resources.md +7 -1
  36. package/skills/ti-guides/references/sdk-release-notes.md +75 -0
  37. package/skills/ti-guides/references/style-and-conventions.md +1 -2
  38. package/skills/ti-howtos/references/debugging-profiling.md +1 -2
  39. package/skills/ti-howtos/references/location-and-maps.md +1 -2
  40. package/skills/ti-howtos/references/using-modules.md +1 -2
  41. package/skills/ti-howtos/references/web-content-integration.md +1 -2
  42. package/skills/ti-howtos/references/webpack-build-pipeline.md +1 -2
  43. package/skills/ti-ui/references/listviews-and-performance.md +5 -10
  44. package/skills/ti-ui/references/orientation.md +1 -2
  45. package/skills/ti-ui/references/scrolling-views.md +7 -1
@@ -202,8 +202,7 @@ The following views can be used as child elements in custom templates: ActivityI
202
202
 
203
203
  ### Binding syntax
204
204
 
205
- XML (Alloy): `bindId:property="value"`
206
- JavaScript: `{ bindId: { property: value } }`
205
+ XML (Alloy): `bindId:property="value"` JavaScript: `{ bindId: { property: value } }`
207
206
 
208
207
  ### Programmatic binding with custom templates
209
208
 
@@ -741,14 +740,10 @@ $.myList.cacheSize = 3; // Default
741
740
 
742
741
  ### Common issues
743
742
 
744
- Problem: Jerky scrolling
745
- Solution: Remove `Ti.UI.SIZE` from templates
743
+ Problem: Jerky scrolling Solution: Remove `Ti.UI.SIZE` from templates
746
744
 
747
- Problem: Data changes not visible
748
- Solution: Use `updateItemAt()` instead of modifying views
745
+ Problem: Data changes not visible Solution: Use `updateItemAt()` instead of modifying views
749
746
 
750
- Problem: Event not firing on template element
751
- Solution: Check `bindId` in event handler
747
+ Problem: Event not firing on template element Solution: Check `bindId` in event handler
752
748
 
753
- Problem: Wrong item updated
754
- Solution: Use `e.section.getItemAt(e.itemIndex)` not a global reference
749
+ Problem: Wrong item updated Solution: Use `e.section.getItemAt(e.itemIndex)` not a global reference
@@ -141,8 +141,7 @@ Ti.Gesture.addEventListener('orientationchange', (e) => {
141
141
  });
142
142
  ```
143
143
 
144
- Anti-pattern warning: Do not use `orientationchange` listeners to force an orientation. It causes the wrong orientation to flash, repeated firing, and bad behavior. Use `tiapp.xml` or window `orientationModes`.
145
- ...
144
+ Anti-pattern warning: Do not use `orientationchange` listeners to force an orientation. It causes the wrong orientation to flash, repeated firing, and bad behavior. Use `tiapp.xml` or window `orientationModes`. ...
146
145
  ### Window orientation events
147
146
 
148
147
  ```javascript
@@ -108,9 +108,15 @@ scrollableView.addEventListener('scroll', (e) => {
108
108
  Ti.API.info(`Views: ${e.view}`); // View object reference
109
109
  });
110
110
 
111
- scrollableView.addEventListener('dragEnd', (e) => {
111
+ // Android only, and lowercase: ScrollableView has no `dragEnd` event.
112
+ scrollableView.addEventListener('dragend', (e) => {
112
113
  Ti.API.info(`Drag ended, settled on page: ${e.currentPage}`);
113
114
  });
115
+
116
+ // Cross-platform equivalent — fires once the view stops moving.
117
+ scrollableView.addEventListener('scrollend', (e) => {
118
+ Ti.API.info(`Settled on page: ${e.currentPage}`);
119
+ });
114
120
  ```
115
121
  ...
116
122
  ### Image gallery