Releases: ElecTreeFrying/nativescript-snippets
Releases · ElecTreeFrying/nativescript-snippets
Release list
v1.0.0 — multi-flavor rebuild
Install: VS Code Marketplace ·
ext install ElecTreeFrying.nativescript-angular-html-snippets
Added
- Multiplatform support — snippets now cover five NativeScript flavors: Angular (
html), Core (xml), Vue (vue), React (typescriptreact/javascriptreact), and Svelte (svelte). 805 snippets total. - Code generator (
tools/, run withnpm run generate) — snippet content is derived from@nativescript/corev9 TypeScript types, walking inheritance for each component's full property set. It reads both@nsProperty/@nsEventannotations andProperty/CssPropertyregistrations (which carry most real markup props), and folds in the implementation<Name>Baseclasses that the public.d.tsflattens away. README andreference.mdtables are generated too, so they can no longer drift. - Two-way binding in
-prop/-compfor two-way-capable props (where a<prop>Changeevent exists): Angular[(prop)], Sveltebind:prop. - Ready-made layout examples (
ns-<layout>-snippet-N) carried forward from the original pack and rendered for every flavor. NavigationButton(Angular/Core/Vue/Svelte) andActionBarExtension(Angular) restored;Repeater(legacy@nsViewlist component) added.LiquidGlassandLiquidGlassContainer— iOS Liquid Glass effect containers (driven by the inheritediosGlassEffectView property), for all five flavors.- Enum-typed properties now expand to value hints, e.g.
iosIndicatorViewStyle="${2:(medium|large)}". .gitattributesenforcing LF (fixes the recurring CRLF spurious-diff problem); snippet validator (npm run validate).
Changes
- Rebuilt every snippet against current NativeScript (v9.0.20) — a three-major-version leap across more than six years, from the v6.4.0 the original pack was authored against.
-prop/-compvariants now use sequential tab-stops + a final$0(fixes the mirrored-tab-stop bug) and document the inheritedViewproperties.- Corrected event names derived from the static member (e.g.
blur, notblurEvent;isLoadingChange, notisLoading). - Accurate property attribution: component-specific CSS props (
placeholderColor,tintColor, tab/segmented colors, …) are scoped to their component instead of listed as universalViewprops; read-only status getters (e.g.Image.isLoading) are excluded. - Cleaner enum hints: drop noise CSS-wide keywords (
initial/inherit/unset/revert), expand string-literal aliases/enums, resolve trivial aliases to primitives, and cap oversized unions.-propuses two-way binding (Angular[(x)], Sveltebind:x);-compshows every property + event explicitly. Source:URLs verified against the current docs (/api/class/<Tag>, gestures →/guide/gestures, icons →/ui/action-bar).- Broadened extension display name/description to all flavors; fixed
anuglarkeyword typo.
Removed
- The whole modern tab-navigation family —
Tabs,BottomNavigation,TabStrip,TabStripItem,TabContentItem— verified absent from@nativescript/corev9.0.20 (0 class declarations); it ships in a separate plugin now. Planned for a future plugin-aware release. SplitViewis emitted only for Angular/Core (it is not registered in the Vue/React/Svelte element registries).
Full Changelog: v0.1.4...v1.0.0
v0.1.4
Added
- A Support section in the README with two donation paths — a Bitcoin (BTC) address accompanied by a new QR-code image (
images/BITCOIN.png), and a "Donate by Mining" option listing a NiceHash mining address.
Changes
- Refreshed the README Installation instructions: raised the minimum supported editor from VS Code 1.30.0 to 1.42.0, converted the steps to an explicit numbered list, and clarified the command-palette step (
Extensions: Install Extensions). - Minor wording polish in the Contributing section. No snippet changes — the last release of the original Angular-only pack before the v1.0.0 rebuild.
Full Changelog: v0.1.3...v0.1.4
v0.1.3
Changes
- Tidied two README labels for consistent punctuation — a trailing period on the "Select Install Extensions" install step and on the "More extensions of mine" link in the Related section (both the link text and its reference definition were updated so the link kept resolving). A cosmetic copy-edit only; no snippet or reference changes.
Full Changelog: v0.1.2...v0.1.3
v0.1.2
Added
- Rebuilt
reference.md(143 → 361 lines) from a bare prefix listing into a fully sectioned guide — a## Contentstable of contents plus Syntax, Usage, Snippets, Examples, and Demo sections. The new Examples section walks through renderedns-datepicker(default /-prop/-comp) andns-absolute-layoutoutput; the Snippets section now enumerates the 8 gestures and all 24ns-icon-*values explicitly. - Two animated demo GIFs embedded in
reference.md—images/demo1.gif(ns-search-bar) andimages/demo2.gif(ns-stack-layout). - Added
htmlto the Marketplacekeywords.
Changes
- Reworked the README to mirror the reference: split the old description table into separate Syntax and Usage tables, added an
ns-dock-layout-snippet-2"In Action" example, and promoted the Demo/Snippets headings. - Reworded the extension
descriptionto "…snippets in your HTML." to signal the Angular/HTML language target. Docs and metadata only — no snippet JSON changed.
Removed
- Dropped the redundant, misspelled
snipetkeyword frompackage.json(replaced byhtml).
Full Changelog: v0.1.1...v0.1.2
v0.1.1
Fixes
- Fixed the
vsce publishfailure that blocked the first Marketplace upload:package.json'siconfield pointed atimages/ns-ns.png, a file that never existed in the repo — the actual icon isimages/ns-ng.png. Correcting the path letvscefind the icon and the publish succeed. - Corrected the
versionmetadata inpackage.json, settling on0.1.1after a same-day publish scramble (a transient0.2.0bump and an accidental0.0.1were both walked back; no0.2.0was ever tagged or released). - Cleaned up
CHANGELOG.md— fixed a misspelledFixexheading and split the release notes into their own section.
Full Changelog: v0.1.0...v0.1.1
v0.1.0
Added
- Initial public release — Nativescript: Angular HTML Snippets, a declarative VS Code snippet pack (no runtime or activation code) scoped to a single flavor: Angular, contributed to the
htmllanguage. 145 snippets across four files, every prefix namespacedns-. Hand-authored against NativeScript v6.4.0 / Angular v9.0.0; requires VS Code^1.43.0; MIT licensed. - Component snippets (
snippets/ns-components.json, 77 entries) — 30 NativeScript UI components in up to three variant tiers each:ns-<name>(bare tag, e.g.ns-button→<Button></Button>),ns-<name>-prop(properties as${n:hint}tab-stops with enum value hints and Angular two-way[(…)]bindings), andns-<name>-comp(properties + Angular(event)=""handlers + a trailing documentation comment). Includes the then-current tab-navigation family —Tabs,TabStrip,TabStripItem,TabContentItem,BottomNavigation— plus aTabViewset carrying NativeScript's v6 deprecation notice. Every snippet links its docs page via aSource:URL. - Layout snippets (
snippets/ns-layouts.json, 36 entries) — the 6 layout containers (Absolute, Dock, Grid, Stack, Wrap, Flexbox), each with a bare tag, a-compdoc variant, and ready-madens-<layout>-snippet-Nexamples: 24 complete, sized, color-coded demo layouts lifted from the NativeScript docs. - Gesture snippets (
snippets/ns-gestures.json) — 8 gestures as Angular event-binding fragments:ns-tap→(tap)="", plusdoubleTap,longPress,swipe,pan,pinch,rotation,touch. - ActionBar icon snippets (
snippets/ns-settings-icon.json) — 24ns-icon-<name>snippets expanding to the numericios.systemIconvalue (0–23) for an ActionBarActionItem(ns-icon-done→0…ns-icon-pageCurl→23). - Reference documentation —
reference.mdcataloguing every prefix (Layouts / Components / System Icons) with the full icon-value table, and a README documenting the default /-prop/-comp/ layout-snippet / gesture / icon grammar with workedns-buttonandns-dock-layout-snippet-2examples plus a demo GIF.