@premium-ai/preview-ui 1.0.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/.github/index.js +3 -0
- package/.github/workflows/release.yml +42 -0
- package/CHANGELOG.md +25 -0
- package/LICENSE +21 -0
- package/README.md +18 -0
- package/index.js +3 -0
- package/package.json +40 -0
- package/release.config.js +22 -0
- package/tailwind-ai-preview-plugin.js +67 -0
package/.github/index.js
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
name: ๐ Semantic Release
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches:
|
|
6
|
+
- main
|
|
7
|
+
|
|
8
|
+
jobs:
|
|
9
|
+
release:
|
|
10
|
+
name: Publish via semantic-release
|
|
11
|
+
runs-on: ubuntu-latest
|
|
12
|
+
|
|
13
|
+
permissions:
|
|
14
|
+
contents: write
|
|
15
|
+
issues: write
|
|
16
|
+
pull-requests: write
|
|
17
|
+
|
|
18
|
+
steps:
|
|
19
|
+
- name: ๐งฉ Checkout repository
|
|
20
|
+
uses: actions/checkout@v4
|
|
21
|
+
with:
|
|
22
|
+
fetch-depth: 0
|
|
23
|
+
|
|
24
|
+
- name: ๐งฐ Setup Node.js
|
|
25
|
+
uses: actions/setup-node@v4
|
|
26
|
+
with:
|
|
27
|
+
node-version: 22
|
|
28
|
+
registry-url: 'https://registry.npmjs.org/'
|
|
29
|
+
|
|
30
|
+
- name: ๐ฆ Install dependencies
|
|
31
|
+
run: npm ci
|
|
32
|
+
|
|
33
|
+
- name: ๐งน Lint check
|
|
34
|
+
run: |
|
|
35
|
+
npm install eslint --no-save
|
|
36
|
+
npx eslint . --ext .js || echo "Lint warnings only, continuing..."
|
|
37
|
+
|
|
38
|
+
- name: ๐ Run semantic-release
|
|
39
|
+
env:
|
|
40
|
+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
41
|
+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
42
|
+
run: npx semantic-release
|
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
## [1.0.2](https://github.com/tdogga14-ctrl/preview-ui/compare/v1.0.1...v1.0.2) (2025-12-19)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* correct npmrc for public package publishing ([bbb9fd4](https://github.com/tdogga14-ctrl/preview-ui/commit/bbb9fd434d804c553922677c8cae5dc143049cea))
|
|
7
|
+
|
|
8
|
+
## [1.0.1](https://github.com/tdogga14-ctrl/preview-ui/compare/v1.0.0...v1.0.1) (2025-12-19)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* correct npm package scope to [@tdogga14](https://github.com/tdogga14) ([b49e304](https://github.com/tdogga14-ctrl/preview-ui/commit/b49e304238f5569e3ae437bd4623e3954be263b3))
|
|
14
|
+
|
|
15
|
+
# 1.0.0 (2025-12-19)
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
### Bug Fixes
|
|
19
|
+
|
|
20
|
+
* update node version ([1570243](https://github.com/tdogga14-ctrl/preview-ui/commit/157024340046f5320e70e9df6efbc933279e3680))
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
### Features
|
|
24
|
+
|
|
25
|
+
* initial setup ([fa58d4d](https://github.com/tdogga14-ctrl/preview-ui/commit/fa58d4db705c31dd3fd045cd142618de69364fc8))
|
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 Premium AI
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# @premium-ai/preview-ui
|
|
2
|
+
|
|
3
|
+
Tailwind plugin that adds production-grade styling and adaptive dark-mode components for **Premium AI Headshots** realtime preview.
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## ๐ง Installation
|
|
8
|
+
```bash
|
|
9
|
+
npm install @premium-ai/preview-ui --save-dev
|
|
10
|
+
```
|
|
11
|
+
|
|
12
|
+
```html
|
|
13
|
+
<div class="ai-preview fade-in">
|
|
14
|
+
<div class="preview-loading">
|
|
15
|
+
<i class="fas fa-spinner fa-spin"></i>
|
|
16
|
+
</div>
|
|
17
|
+
</div>
|
|
18
|
+
```
|
package/index.js
ADDED
package/package.json
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@premium-ai/preview-ui",
|
|
3
|
+
"version": "1.0.2",
|
|
4
|
+
"description": "Tailwind plugin providing adaptive, dark-mode UI components for Premium AI Headshots realtime preview.",
|
|
5
|
+
"main": "index.js",
|
|
6
|
+
"publishConfig": {
|
|
7
|
+
"access": "public"
|
|
8
|
+
},
|
|
9
|
+
"repository": {
|
|
10
|
+
"type": "git",
|
|
11
|
+
"url": "https://github.com/tdogga14-ctrl/preview-ui.git"
|
|
12
|
+
},
|
|
13
|
+
"bugs": {
|
|
14
|
+
"url": "https://github.com/tdogga14-ctrl/preview-ui/issues"
|
|
15
|
+
},
|
|
16
|
+
"homepage": "https://github.com/tdogga14-ctrl/preview-ui#readme",
|
|
17
|
+
"license": "MIT",
|
|
18
|
+
"keywords": [
|
|
19
|
+
"tailwind",
|
|
20
|
+
"plugin",
|
|
21
|
+
"ai",
|
|
22
|
+
"preview",
|
|
23
|
+
"dark-mode"
|
|
24
|
+
],
|
|
25
|
+
"peerDependencies": {
|
|
26
|
+
"tailwindcss": ">=3.0.0"
|
|
27
|
+
},
|
|
28
|
+
"release": {
|
|
29
|
+
"extends": "./release.config.js"
|
|
30
|
+
},
|
|
31
|
+
"devDependencies": {
|
|
32
|
+
"@semantic-release/changelog": "^6.0.2",
|
|
33
|
+
"@semantic-release/commit-analyzer": "^11.1.0",
|
|
34
|
+
"@semantic-release/git": "^10.0.1",
|
|
35
|
+
"@semantic-release/github": "^9.2.1",
|
|
36
|
+
"@semantic-release/npm": "^13.1.3",
|
|
37
|
+
"@semantic-release/release-notes-generator": "^12.1.0",
|
|
38
|
+
"semantic-release": "^25.0.2"
|
|
39
|
+
}
|
|
40
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Semantic-release configuration for @premium-ai/preview-ui
|
|
3
|
+
* Auto bumps versions, updates changelog, publishes to npm,
|
|
4
|
+
* and creates GitHub releases.
|
|
5
|
+
*/
|
|
6
|
+
module.exports = {
|
|
7
|
+
branches: ['main'],
|
|
8
|
+
plugins: [
|
|
9
|
+
'@semantic-release/commit-analyzer',
|
|
10
|
+
'@semantic-release/release-notes-generator',
|
|
11
|
+
'@semantic-release/changelog',
|
|
12
|
+
'@semantic-release/npm',
|
|
13
|
+
'@semantic-release/github',
|
|
14
|
+
[
|
|
15
|
+
'@semantic-release/git',
|
|
16
|
+
{
|
|
17
|
+
assets: ['package.json', 'CHANGELOG.md'],
|
|
18
|
+
message: 'chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}'
|
|
19
|
+
}
|
|
20
|
+
]
|
|
21
|
+
]
|
|
22
|
+
};
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
// ============================================================
|
|
2
|
+
// Premium AI Headshots - Tailwind Plugin v1.0
|
|
3
|
+
// Module: aiPreviewUI (auto Dark Mode support)
|
|
4
|
+
// ============================================================
|
|
5
|
+
const plugin = require('tailwindcss/plugin');
|
|
6
|
+
|
|
7
|
+
module.exports = plugin(function ({ addComponents }) {
|
|
8
|
+
addComponents({
|
|
9
|
+
'.fade-in': { '@apply opacity-0 transition-opacity duration-700 ease-out': {} },
|
|
10
|
+
'.fade-in.loaded, .fade-in.show': { '@apply opacity-100': {} },
|
|
11
|
+
|
|
12
|
+
'.preview-loading': { '@apply flex flex-col items-center justify-center text-center space-y-2': {} },
|
|
13
|
+
'.preview-loading i': { '@apply text-blue-500 text-3xl animate-spin': {} },
|
|
14
|
+
|
|
15
|
+
'.progress': { '@apply w-full bg-gray-200 rounded-full overflow-hidden h-2 mt-2': {} },
|
|
16
|
+
'.progress-bar': { '@apply h-2 bg-blue-500 transition-all duration-500 ease-out': {} },
|
|
17
|
+
|
|
18
|
+
'.skeleton': { '@apply animate-pulse bg-gray-200 rounded-xl': {}, height: '280px', width: '100%' },
|
|
19
|
+
|
|
20
|
+
'.preview-image-container': { '@apply relative rounded-xl overflow-hidden shadow-md': {} },
|
|
21
|
+
'.preview-image': { '@apply opacity-0 transition-opacity duration-700 ease-in': {} },
|
|
22
|
+
'.preview-image.loaded': { '@apply opacity-100': {} },
|
|
23
|
+
|
|
24
|
+
'.preview-overlay': { '@apply absolute bottom-3 left-3 flex gap-2': {} },
|
|
25
|
+
'.preview-overlay button': {
|
|
26
|
+
'@apply bg-gray-800 bg-opacity-70 text-white px-3 py-1 rounded-md text-xs font-medium hover:bg-opacity-100 hover:shadow-md transition-all duration-200': {}
|
|
27
|
+
},
|
|
28
|
+
|
|
29
|
+
'.error-state': {
|
|
30
|
+
'@apply flex flex-col items-center justify-center bg-red-50 border border-red-200 rounded-lg p-5 text-red-600 space-y-2': {}
|
|
31
|
+
},
|
|
32
|
+
'.error-state i': { '@apply text-3xl': {} },
|
|
33
|
+
'.error-state button': {
|
|
34
|
+
'@apply bg-red-500 text-white px-4 py-1 rounded shadow hover:bg-red-600 transition': {}
|
|
35
|
+
},
|
|
36
|
+
|
|
37
|
+
'.upsell-card': { '@apply transition-all duration-300 ease-out bg-white': {} },
|
|
38
|
+
'.upsell-card:hover': { '@apply transform scale-[1.02] shadow-md bg-gray-50': {} },
|
|
39
|
+
|
|
40
|
+
'.quality-badge': { '@apply inline-block px-2 py-1 text-xs font-semibold rounded-md mt-1': {} },
|
|
41
|
+
|
|
42
|
+
'@media (prefers-color-scheme: dark)': {
|
|
43
|
+
body: { '@apply bg-gray-900 text-gray-100': {} },
|
|
44
|
+
'.ai-preview': { '@apply bg-gray-800 border border-gray-700 rounded-xl shadow-xl': {} },
|
|
45
|
+
'.preview-loading i': { '@apply text-blue-400': {} },
|
|
46
|
+
'.progress': { '@apply bg-gray-700': {} },
|
|
47
|
+
'.progress-bar': { '@apply bg-blue-400': {} },
|
|
48
|
+
'.skeleton': { '@apply bg-gray-700': {} },
|
|
49
|
+
'.preview-image-container': { '@apply border border-gray-700': {} },
|
|
50
|
+
'.preview-overlay button': { '@apply bg-gray-700 bg-opacity-80 hover:bg-gray-600 hover:shadow-lg': {} },
|
|
51
|
+
'.upsell-card': { '@apply bg-gray-800 border border-gray-700 text-gray-200': {} },
|
|
52
|
+
'.upsell-card:hover': { '@apply bg-gray-700 shadow-lg': {} },
|
|
53
|
+
'.error-state': { '@apply bg-red-900 border border-red-700 text-red-300': {} },
|
|
54
|
+
'.error-state button': { '@apply bg-red-600 hover:bg-red-500': {} },
|
|
55
|
+
'.quality-badge.text-green-500': { '@apply text-green-400': {} },
|
|
56
|
+
'.quality-badge.text-yellow-500': { '@apply text-yellow-400': {} },
|
|
57
|
+
'.quality-badge.text-orange-500': { '@apply text-orange-400': {} },
|
|
58
|
+
'#satisfactionText': { '@apply text-gray-300': {} }
|
|
59
|
+
}
|
|
60
|
+
});
|
|
61
|
+
});const previewUI = require('@premium-ai/preview-ui');
|
|
62
|
+
|
|
63
|
+
module.exports = {
|
|
64
|
+
content: ['./src/**/*.{html,js}'],
|
|
65
|
+
darkMode: 'media',
|
|
66
|
+
plugins: [previewUI],
|
|
67
|
+
};
|