create-template-html-css 1.2.0 → 1.2.2

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/bin/cli.js CHANGED
@@ -1,4 +1,4 @@
1
- #!/usr/bin/env node
1
+ #!/usr/bin/env node
2
2
 
3
3
  const { program } = require('commander');
4
4
  const inquirer = require('inquirer').default || require('inquirer');
@@ -145,7 +145,7 @@ program
145
145
  .description('List all available templates')
146
146
  .action(() => {
147
147
  console.log(chalk.blue('\nAvailable templates:\n'));
148
- n console.log(' • Button - Styled button component');
148
+ console.log(' • Button - Styled button component');
149
149
  console.log(' • Card - Card component with image and content');
150
150
  console.log(' • Form - Form with input fields');
151
151
  console.log(' • Navigation - Navigation bar');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-template-html-css",
3
- "version": "1.2.0",
3
+ "version": "1.2.2",
4
4
  "description": "CLI tool to generate HTML and CSS templates for common UI elements",
5
5
  "main": "src/index.js",
6
6
  "bin": {
package/src/inserter.js CHANGED
@@ -2,7 +2,7 @@ const fs = require('fs').promises;
2
2
  const path = require('path');
3
3
 
4
4
  // Security: Validate component name against whitelist
5
- const VALID_COMPONENTS = ['button', 'card', 'form', 'navigation', 'modal', 'footer', 'hero'];
5
+ const VALID_COMPONENTS = ['button', 'card', 'form', 'navigation', 'modal', 'footer', 'hero', 'slider', 'table'];
6
6
 
7
7
  async function insertComponent(options) {
8
8
  const { component, targetFile, styleMode, scriptMode } = options;