analytica-frontend-lib 1.0.25 → 1.0.26

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "analytica-frontend-lib",
3
- "version": "1.0.25",
3
+ "version": "1.0.26",
4
4
  "description": "Repositório público dos componentes utilizados nas plataformas da Analytica Ensino",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "./dist/index.js",
@@ -8,6 +8,11 @@
8
8
  "files": [
9
9
  "dist"
10
10
  ],
11
+ "sideEffects": [
12
+ "*.css",
13
+ "./src/styles.css",
14
+ "./dist/index.css"
15
+ ],
11
16
  "exports": {
12
17
  ".": {
13
18
  "import": "./dist/index.js",
@@ -78,6 +83,16 @@
78
83
  "types": "./dist/components/Toast/Toast.d.ts",
79
84
  "import": "./dist/components/Toast/Toast.js",
80
85
  "require": "./dist/components/Toast/Toast.cjs"
86
+ },
87
+ "./Toast/Toaster": {
88
+ "types": "./dist/components/Toast/utils/Toaster.d.ts",
89
+ "import": "./dist/components/Toast/utils/Toaster.js",
90
+ "require": "./dist/components/Toast/utils/Toaster.cjs"
91
+ },
92
+ "./Toast/ToastStore": {
93
+ "types": "./dist/components/Toast/utils/ToastStore.d.ts",
94
+ "import": "./dist/components/Toast/utils/ToastStore.js",
95
+ "require": "./dist/components/Toast/utils/ToastStore.cjs"
81
96
  }
82
97
  },
83
98
  "scripts": {
@@ -90,11 +105,12 @@
90
105
  "test:sonar": "jest --coverage --testResultsProcessor=jest-sonar-reporter",
91
106
  "generate:exports": "node scripts/generate-exports.mjs",
92
107
  "build": "npm run build:main && npm run build:components",
93
- "build:main": "tsup src/index.ts --dts --format esm,cjs --out-dir dist --clean",
108
+ "build:main": "tsup src/index.ts --dts --format esm,cjs --out-dir dist --clean --treeshake",
94
109
  "build:components": "node scripts/build-components.mjs",
95
110
  "build:check": "npm run typecheck && npm run build",
96
111
  "dev": "tsup src/index.ts --dts --format esm,cjs --out-dir dist --watch",
97
- "prepack": "npm run build:check",
112
+ "prepack": "npm run build:check && npm run generate:exports",
113
+ "prepublishOnly": "npm run generate:exports",
98
114
  "check-nextjs-compat": "echo 'Checking Next.js 15 compatibility...' && npm run typecheck && npm run test",
99
115
  "ladle": "ladle serve",
100
116
  "ladle:build": "ladle build"