@maccesar/titools 3.2.0 → 3.3.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.
- package/README.md +1 -1
- package/package.json +1 -1
- package/skills/purgetss/SKILL.md +181 -181
- package/skills/purgetss/references/cli-commands.md +26 -410
- package/skills/purgetss/references/custom-fonts.md +289 -0
- package/skills/purgetss/references/icon-fonts.md +206 -118
- package/skills/purgetss/references/installation-setup.md +4 -4
- package/skills/purgetss/references/version-history.md +45 -68
|
@@ -88,7 +88,7 @@ purgetss
|
|
|
88
88
|
|
|
89
89
|
- `fonts`
|
|
90
90
|
|
|
91
|
-
Place icon, serif, sans-serif, or monospace font files here. See the [`build-fonts`
|
|
91
|
+
Place icon, serif, sans-serif, or monospace font files here. See [Custom Fonts](./custom-fonts.md) for the full guide, or [`build-fonts` Command](./cli-commands.md#build-fonts-command) for the terse flag reference.
|
|
92
92
|
|
|
93
93
|
> **CAUTION**
|
|
94
94
|
> **PurgeTSS overwrites your existing `app.tss` file.**
|
|
@@ -152,9 +152,9 @@ To use the example files:
|
|
|
152
152
|
> Every time `purgetss` runs, it copies the content of `_app.tss` to `app.tss`.
|
|
153
153
|
|
|
154
154
|
```tss
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
155
|
+
// PurgeTSS v7.10.2
|
|
156
|
+
// Created by César Estrada
|
|
157
|
+
// https://purgetss.com
|
|
158
158
|
|
|
159
159
|
/* _app.tss styles */
|
|
160
160
|
'.bg-primary': {
|
|
@@ -1,82 +1,59 @@
|
|
|
1
|
-
# PurgeTSS — Version History
|
|
1
|
+
# PurgeTSS — Version History (agent summary)
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Terse, agent-facing summary of changes that affect how the skill suggests utilities, configures `config.cjs`, or invokes commands. **Not** a full changelog.
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
**Canonical source:** <https://purgetss.com/changelog> (full release notes, internal fixes, parser changes, dependency bumps).
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
- **Internal logger fix.** `logger.warning` and `logger.success` are now defined. Across `brand`, `images`, `cleanup-legacy`, and `svg-utils`, ~30 callsites of `logger.warning` and ~10 of `logger.success` referenced methods that did not exist on the logger object — any opt-in command path that hit one used to throw `TypeError: logger.warning is not a function`. The auto-purge entry point most users hit did not reach those callsites, so the bug stayed latent until commands like `purgetss brand` or `purgetss images` were run.
|
|
7
|
+
When in doubt about whether a class, flag, or config key exists in the user's installed version, consult the canonical changelog or grep `./purgetss/styles/utilities.tss` in the project.
|
|
9
8
|
|
|
10
|
-
|
|
9
|
+
---
|
|
11
10
|
|
|
12
|
-
|
|
13
|
-
-
|
|
11
|
+
## v7.10.2
|
|
12
|
+
- Pre-v7.7.0 `brand:` configs (flat layout: `brand.padding: <number>`, `brand.iosPadding`, `brand.bgColor`, top-level `brand.notification`/`brand.splash`) auto-migrate to the grouped layout in memory. A one-time per-session notice lists the migrated keys.
|
|
14
13
|
|
|
15
|
-
##
|
|
14
|
+
## v7.10.1
|
|
15
|
+
- "Tailwind" framing dropped from non-functional copy (Class Syntax Error message, `purgetss create` injected Label). Functional integrations (`tailwindcss@3` dep, `shades --tailwind`, VSCode IntelliSense extension) still ship.
|
|
16
16
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
-
|
|
23
|
-
- **Arbitrary nesting depth in `config.cjs` `theme` objects.** Property emission now walks nested values recursively instead of stopping at level 2, so `theme.extend.colors.brand.primary.500` flattens to `brand-primary-500` instead of being silently dropped. Same for `backgroundGradient` and `backgroundSelectedGradient`. Default modifier keys (`default`, `global`, `DEFAULT`) collapse without contributing to the suffix. See [Arbitrary Values](arbitrary-values.md).
|
|
24
|
-
- **Fix:** `apply:` now resolves built-in icon font classes (`fas`, `fab`, `fa-*`, `mi-*`, `ms-*`, `f7-*`) from `dist/` for projects that don't run `build-fonts`. Previously those classes were silently dropped from generated rules — `apply: 'fas fa-times-circle wh-12 ...'` produced everything except the FontAwesome family and the icon glyph. See [Apply Directive → Use icon font classes](apply-directive.md).
|
|
25
|
-
- **Fix:** `borderRadius: [...]` arrays no longer get truncated when combined with other utilities in an `apply:` string. The post-merge dedup step (from v7.9.0) tracked depth on `{}` only, so `borderRadius: [0, 0, 0, 16]` (emitted by directional `rounded-{t,b,l,r,tl,tr,bl,br}-*` utilities) was split on its internal commas. The depth tracker now respects `[]` alongside `{}`.
|
|
26
|
-
- **Fix:** `brand --padding <n>` shortcut now applies to BOTH Android paddings as the help text always promised. Previously the shortcut only fed `androidAdaptivePadding` while `androidLegacyPadding` fell through to its own config value, so `purgetss brand --padding 17` actually produced `androidAdaptive=17, androidLegacy=10`.
|
|
17
|
+
## v7.10.0
|
|
18
|
+
- `purgetss images` gains `--opacity <0-100>`, `--padding <0-40>`, `--output <relpath>`. CLI-only (no `config.cjs` equivalent). See [multi-density-images.md](multi-density-images.md).
|
|
19
|
+
- `purgetss brand` generates `MarketplaceArtworkFeature.png` (1024×500 Google Play Feature Graphic). Override via `--feature-logo <path>` or `--feature-graphic-padding <n>` (default 12%). See [app-branding.md](app-branding.md).
|
|
20
|
+
- `theme` objects in `config.cjs` walk recursively at any depth — `theme.extend.colors.brand.primary.500` flattens to class `bg-brand-primary-500`. Default modifier keys (`default`, `global`, `DEFAULT`) collapse. Same for `backgroundGradient` / `backgroundSelectedGradient`. See [arbitrary-values.md](arbitrary-values.md).
|
|
21
|
+
- Fix: `apply:` now resolves built-in icon font classes (`fas`, `fab`, `fa-*`, `mi-*`, `ms-*`, `f7-*`) from `dist/` even without `build-fonts`.
|
|
22
|
+
- Fix: `brand --padding <n>` shortcut applies to BOTH Android paddings.
|
|
27
23
|
|
|
28
|
-
##
|
|
24
|
+
## v7.9.0
|
|
25
|
+
- Opacity modifiers work on semantic colors: `bg-surface/65` auto-derives `surface_65` in `semantic.colors.json` with light/dark + alpha. **Native rebuild required** (Liveview alone does not refresh `semantic.colors.json`). See [semantic-colors.md](semantic-colors.md).
|
|
26
|
+
- `theme.Window` / `theme.View` / `theme.ImageView` at top level = **replace mode** (no framework defaults). Use `theme.extend.Window` for **extend mode** (merge with defaults). See [apply-directive.md](apply-directive.md).
|
|
27
|
+
- **Breaking:** glossary path renamed `purgetss/experimental/tailwind-classes/` → `purgetss/glossary/tailwind-classes/`. No transition shim.
|
|
29
28
|
|
|
30
|
-
|
|
31
|
-
- `
|
|
32
|
-
-
|
|
29
|
+
## v7.8.0
|
|
30
|
+
- `purgetss images --width <n>` pins Android `mdpi` / iPhone `@1x` to `<n>` pixels for SVG sources with disproportionate viewBoxes (Affinity, Illustrator). CLI-only.
|
|
31
|
+
- Class syntax pre-validation emits `Class Syntax Error` blocks for 5 patterns: inverted negative (`top-(-10)` → `-top-(10)`), brackets (`top-[10px]` → `top-(10px)`), empty parens (`wh-()`), whitespace in parens, redundant `px` unit. Generic unknown classes still flow into `// Unused or unsupported classes`.
|
|
33
32
|
|
|
34
|
-
##
|
|
33
|
+
## v7.7.0
|
|
34
|
+
- `brand:` config restructured into grouped sections: `brand.logos`, `brand.padding`, `brand.android`, `brand.ios`, `brand.colors`. Old projects keep working; new configs use grouped form. See [app-branding.md](app-branding.md).
|
|
35
|
+
- Separate Android brand inputs: `logos.androidLauncher` / `--icon-logo` and `logos.androidSplash` / `--splash-logo`.
|
|
36
|
+
- Android splash fallback `default.png` regenerated (Alloy: `app/assets/android/`, Classic: `Resources/android/`). `cleanup-legacy` preserves it.
|
|
37
|
+
- New ref: [values-and-units.md](values-and-units.md) — `ti.ui.defaultunit` interpretation of unitless PurgeTSS values.
|
|
35
38
|
|
|
36
|
-
|
|
37
|
-
-
|
|
38
|
-
-
|
|
39
|
+
## v7.6.x
|
|
40
|
+
- `purgetss brand` (v7.6.0) — full Titanium branding set from `purgetss/brand/` logos. See [app-branding.md](app-branding.md).
|
|
41
|
+
- `purgetss images` (v7.6.0) — multi-density UI images (Android `res-*` + iPhone `@1x`/`@2x`/`@3x`). See [multi-density-images.md](multi-density-images.md).
|
|
42
|
+
- `purgetss semantic` (v7.6.0) — Titanium semantic colors for Light/Dark, palette mode or `--single` purpose-based. Classic projects supported since v7.6.2. See [semantic-colors.md](semantic-colors.md).
|
|
43
|
+
- `brand:` and `images:` config sections auto-injected. Percentages may be quoted strings (`'15%'`) or plain numbers.
|
|
44
|
+
- `brand` / `images` ask `[y/N/a]` before overwriting (skip with `-y`, `PURGETSS_YES=1`, or non-TTY) (v7.6.1).
|
|
39
45
|
|
|
40
|
-
##
|
|
46
|
+
## v7.5.3
|
|
47
|
+
- `Appearance` module — Light/Dark/System mode switching with persistence (`init()`, `set()`, `get()`, `toggle()`). See [appearance-module.md](appearance-module.md).
|
|
48
|
+
- Default font family classes (`font-sans`, `font-serif`, `font-mono`) auto-generated with platform-appropriate values.
|
|
41
49
|
|
|
42
|
-
|
|
43
|
-
-
|
|
44
|
-
-
|
|
45
|
-
-
|
|
46
|
-
-
|
|
50
|
+
## v7.5.0
|
|
51
|
+
- `theme.extend.Window` / `theme.extend.View` / `theme.extend.ImageView` — customize Ti element defaults.
|
|
52
|
+
- Shorthand `apply:` directive — `{ apply: '...' }` auto-normalizes; `default:` wrapper optional.
|
|
53
|
+
- Apply directive property deduplication — applied values win over static defaults.
|
|
54
|
+
- Automatic platform resolution inside `ios:` / `android:` blocks.
|
|
47
55
|
|
|
48
|
-
##
|
|
49
|
-
|
|
50
|
-
-
|
|
51
|
-
-
|
|
52
|
-
- `semantic` command — Titanium semantic colors for Light/Dark mode (palette mode + single mode) (v7.6.0)
|
|
53
|
-
- `brand:` and `images:` config sections auto-injected into older configs (v7.6.0)
|
|
54
|
-
- Percentages as strings (`'15%'`) for self-documenting clarity in brand/images configs (v7.6.0)
|
|
55
|
-
- Confirmation prompt for destructive writes in `brand` / `images` (`y` / `N` / `a`); auto-skipped on non-TTY, with `-y`, or `PURGETSS_YES=1` (v7.6.1)
|
|
56
|
-
- `semantic` command works in Classic projects — writes to `Resources/semantic.colors.json` (v7.6.2)
|
|
57
|
-
|
|
58
|
-
## What's New in v7.5.3
|
|
59
|
-
|
|
60
|
-
- Appearance module — Light/Dark/System mode switching with persistence
|
|
61
|
-
- Default font family classes (`font-sans`, `font-serif`, `font-mono`) generated automatically with platform-appropriate values
|
|
62
|
-
- XML validation — detects illegal `--` inside XML comments during pre-validation
|
|
63
|
-
|
|
64
|
-
## What's New in v7.5.0
|
|
65
|
-
|
|
66
|
-
- `extend` support for Window, View, and ImageView in `config.cjs`
|
|
67
|
-
- Shorthand `apply` directive normalization
|
|
68
|
-
- Apply directive property deduplication
|
|
69
|
-
- Automatic platform resolution in apply directives
|
|
70
|
-
- Updated Font Awesome to 7.2.0
|
|
71
|
-
- Fixed: `extend.Window` was silently ignored
|
|
72
|
-
- Fixed: Array-type properties (`extendEdges`, `mediaTypes`) bracket notation
|
|
73
|
-
|
|
74
|
-
## What's New in v7.4.0
|
|
75
|
-
|
|
76
|
-
- 9 new Animation methods: `transition`, `pulse`, `sequence`, `swap`, `shake`, `snapTo`, `reorder`, `undraggable`, `detectCollisions` (module now has 15 methods total)
|
|
77
|
-
- Snap behavior classes: `snap-back`, `snap-center`, `snap-magnet`
|
|
78
|
-
- `keep-z-index` utility class
|
|
79
|
-
- Enriched callback event object with `action`, `state`, `id`, `targetId`, `index`, `total`, `getTarget()`
|
|
80
|
-
- Delta-based drag for views with rotate/scale transforms
|
|
81
|
-
- Position normalization for draggable views
|
|
82
|
-
- Property inheritance from Animation object for all new methods
|
|
56
|
+
## v7.4.0
|
|
57
|
+
- Animation module: 9 new methods (`transition`, `pulse`, `sequence`, `swap`, `shake`, `snapTo`, `reorder`, `undraggable`, `detectCollisions`). 15 methods total. See [animation-system.md](animation-system.md).
|
|
58
|
+
- New utility classes: `snap-back`, `snap-center`, `snap-magnet`, `keep-z-index`.
|
|
59
|
+
- Delta-based drag for transformed views; property inheritance from Animation object.
|