@aitronos/freddy-plugins 0.4.41 → 0.4.42

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 (3) hide show
  1. package/CHANGELOG.md +15 -0
  2. package/README.md +0 -220
  3. package/package.json +1 -8
package/CHANGELOG.md CHANGED
@@ -1,3 +1,18 @@
1
+ ## 0.4.42 (2025-11-18)
2
+
3
+ **Removing web-components setup to avoid issues in consuming apps with error in "xg"**
4
+
5
+ ### Commit Details
6
+ - **Commit Message:** Removing web-components setup to avoid issues in consuming apps with error in "xg"
7
+ - **Branch:** `bugs/updated-freddy-plugins-bug-fix` (Other)
8
+ - **Commit Hash:** `404cc4f`
9
+ - **Author:** asif-mn-aitronos
10
+ - **Date:** 2025-11-18
11
+ - **Version Type:** patch
12
+
13
+ ### Changes
14
+ - Removing web-components setup to avoid issues in consuming apps with error in "xg"
15
+
1
16
  ## 0.4.41 (2025-11-18)
2
17
 
3
18
  ### Commit Details
package/README.md CHANGED
@@ -473,225 +473,6 @@ The Storybook provides:
473
473
  - Animation showcases
474
474
  - Utility function documentation
475
475
 
476
- ## 🅰️ Angular Usage
477
-
478
- ### Installation & Setup
479
-
480
- ```bash
481
- npm install @aitronos/freddy-plugins
482
- ```
483
-
484
- # Staging (staging branch)
485
- git push origin staging
486
- ### Import Web Components
487
-
488
- **Option 1: Global Registration (Recommended)**
489
-
490
- ```typescript
491
- // main.ts
492
- import { platformBrowserDynamic } from "@angular/platform-browser-dynamic";
493
- import { AppModule } from "./app/app.module";
494
-
495
- // Import web components and CSS
496
- import "@aitronos/freddy-plugins/web-components";
497
- import "@aitronos/freddy-plugins/dist/freddy-plugins.css";
498
-
499
- platformBrowserDynamic()
500
- .bootstrapModule(AppModule)
501
- .catch((err) => console.error(err));
502
- ```
503
-
504
- **Option 2: Component-level Import**
505
-
506
- ```typescript
507
- // app.component.ts
508
- import { Component } from "@angular/core";
509
- import "@aitronos/freddy-plugins/web-components";
510
- import "@aitronos/freddy-plugins/dist/freddy-plugins.css";
511
-
512
- @Component({
513
- selector: "app-root",
514
- template: `
515
- <div>
516
- <h1>My Angular App</h1>
517
- <freddy-button>Click me!</freddy-button>
518
- <icon-search></icon-search>
519
- </div>
520
- `,
521
- })
522
- export class AppComponent {}
523
- ```
524
-
525
- ### Using Components in Templates
526
-
527
- ```html
528
- <!-- app.component.html -->
529
- <div class="container">
530
- <!-- Buttons -->
531
- <freddy-button>Primary Button</freddy-button>
532
- <freddy-button [disabled]="true">Disabled Button</freddy-button>
533
-
534
- <!-- Icons -->
535
- <icon-search></icon-search>
536
- <icon-user></icon-user>
537
- <icon-settings></icon-settings>
538
-
539
- <!-- Form Components -->
540
- <freddy-input-field
541
- [placeholder]="'Enter your name'"
542
- [value]="name"
543
- (input)="onNameChange($event)"
544
- >
545
- </freddy-input-field>
546
-
547
- <!-- Modals -->
548
- <freddy-modal-box [isOpen]="showModal">
549
- <h2>Modal Title</h2>
550
- <p>Modal content goes here</p>
551
- </freddy-modal-box>
552
- </div>
553
- ```
554
-
555
- ### Using Utilities
556
-
557
- ```typescript
558
- // app.component.ts
559
- import { Component } from "@angular/core";
560
- import { sanitizeHTML } from "@aitronos/freddy-plugins/web-components";
561
-
562
- @Component({
563
- selector: "app-root",
564
- template: ` <div [innerHTML]="sanitizedHtml"></div> `,
565
- })
566
- export class AppComponent {
567
- rawHtml = "<p>This is <strong>safe</strong> HTML!</p>";
568
-
569
- get sanitizedHtml() {
570
- return sanitizeHTML(this.rawHtml);
571
- }
572
- }
573
- ```
574
-
575
- ### Styling
576
-
577
- ```css
578
- /* styles.css */
579
- freddy-button {
580
- margin: 10px;
581
- }
582
-
583
- icon-search {
584
- color: #007bff;
585
- font-size: 24px;
586
- }
587
-
588
- /* Custom theming with CSS variables */
589
- .my-custom-freddy-button {
590
- --freddy-button-bg-color: #28a745;
591
- --freddy-button-text-color: white;
592
- }
593
- ```
594
-
595
- ## ⚛️ React Usage
596
-
597
- ### Installation & Setup
598
-
599
- ```bash
600
- npm install @aitronos/freddy-plugins
601
- ```
602
-
603
- ### Import Web Components
604
-
605
- ```tsx
606
- // App.tsx
607
- import React from "react";
608
- import "@aitronos/freddy-plugins/web-components";
609
- import "@aitronos/freddy-plugins/dist/freddy-plugins.css";
610
-
611
- function App() {
612
- return (
613
- <div>
614
- <h1>My React App</h1>
615
- <freddy-button>Click me!</freddy-button>
616
- <icon-search></icon-search>
617
- </div>
618
- );
619
- }
620
-
621
- export default App;
622
- ```
623
-
624
- ### Setup Guide
625
-
626
- For a concise setup guide and environment notes, see `docs/development/setup-guide.md`.
627
-
628
- ### **Brand Switching Commands**
629
-
630
- ```bash
631
- # Generate clean configuration
632
- yarn generate:color-config
633
-
634
- # Build the project
635
- yarn build
636
-
637
- # Run Storybook
638
- yarn storybook
639
- ```
640
-
641
- ## 📋 **Project Structure**
642
- ### Using Components
643
-
644
- ```tsx
645
- // components/MyComponent.tsx
646
- import React from "react";
647
- import { sanitizeHTML } from "@aitronos/freddy-plugins/web-components";
648
-
649
- const MyComponent = () => {
650
- const handleClick = (event: CustomEvent) => {
651
- console.log("Button clicked:", event.detail);
652
- };
653
-
654
- return (
655
- <div>
656
- <freddy-button onClick={handleClick}>Click me!</freddy-button>
657
-
658
- <freddy-input-field
659
- placeholder="Enter text..."
660
- onInput={(e) => console.log(e.detail.value)}
661
- />
662
-
663
- <div
664
- dangerouslySetInnerHTML={{
665
- __html: sanitizeHTML("<p>Safe HTML content</p>"),
666
- }}
667
- />
668
- </div>
669
- );
670
- };
671
-
672
- export default MyComponent;
673
- ```
674
-
675
- ### TypeScript Support
676
-
677
- ```typescript
678
- // types.d.ts
679
- declare namespace JSX {
680
- interface IntrinsicElements {
681
- "freddy-button": {
682
- disabled?: boolean;
683
- onClick?: (event: CustomEvent) => void;
684
- children?: React.ReactNode;
685
- };
686
- "icon-search": {
687
- size?: string;
688
- color?: string;
689
- };
690
- // ... other components
691
- }
692
- }
693
- ```
694
-
695
476
  ## 🟢 Vue Usage
696
477
 
697
478
  ### **Security Features**
@@ -728,7 +509,6 @@ Add these CNAME records in Hostpoint.ch:
728
509
  </template>
729
510
 
730
511
  <script setup lang="ts">
731
- import "@aitronos/freddy-plugins/web-components";
732
512
  import "@aitronos/freddy-plugins/dist/freddy-plugins.css";
733
513
 
734
514
  const handleClick = (event: CustomEvent) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aitronos/freddy-plugins",
3
- "version": "0.4.41",
3
+ "version": "0.4.42",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
@@ -28,11 +28,6 @@
28
28
  "import": "./dist/icons.js",
29
29
  "require": "./dist/icons.cjs"
30
30
  },
31
- "./web-components": {
32
- "types": "./dist/web-components.d.ts",
33
- "import": "./dist/web-components.js",
34
- "require": "./dist/web-components.iife.js"
35
- },
36
31
  "./freddy-plugins.css": {
37
32
  "default": "./dist/freddy-plugins.css"
38
33
  }
@@ -45,7 +40,6 @@
45
40
  "dev": "vite",
46
41
  "build": "node scripts/build-unified.js",
47
42
  "build:vue": "yarn clean && yarn generate:icons-export && yarn generate:animations-exports && yarn generate:components-exports && yarn generate:components-stories && yarn generate:icon-stories && vue-tsc -p tsconfig.build.json && BUILD_TARGET=library vite build",
48
- "build:webcomponents": "yarn generate:icons-export && yarn generate:animations-exports && yarn generate:components-exports && yarn generate:components-stories && yarn generate:icon-stories && yarn generate:web-component-wrapper && vue-tsc -p tsconfig.build.json && BUILD_TARGET=webcomponent vite build",
49
43
  "preview": "vite preview",
50
44
  "visualize-build": "ANALYZE=true yarn build",
51
45
  "clean": "rimraf dist",
@@ -62,7 +56,6 @@
62
56
  "generate:components-stories": "node src/scripts/generate-components-stories.js",
63
57
  "generate:helper-stories": "node src/scripts/generate-helper-story.js",
64
58
  "generate:icon-stories": "node src/scripts/generate-icon-stories.js",
65
- "generate:web-component-wrapper": "node src/scripts/generate-web-component-wrapper.js",
66
59
  "bump": "node scripts/bump-version.js",
67
60
  "version:patch": "node scripts/bump-version.js patch",
68
61
  "version:minor": "node scripts/bump-version.js minor",