iqc-maker 0.0.0-stage → 1.0.4
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/CHANGELOG.md +48 -0
- package/LICENSE +25 -0
- package/README.md +641 -2
- package/index.d.ts +222 -0
- package/index.mjs +21 -0
- package/package.json +68 -4
- package/src/assets.js +179 -0
- package/src/constants.js +109 -0
- package/src/icons.js +79 -0
- package/src/index.js +130 -0
- package/src/render.js +787 -0
- package/src/themes.js +292 -0
- package/src/utils.js +60 -0
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
## 1.0.4 — 2026-11-30
|
|
4
|
+
|
|
5
|
+
### Dokumentasi
|
|
6
|
+
- Thumbnail di awal README.
|
|
7
|
+
- Bagian kredit diganti jadi **Kontributor**.
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
### Ditambahkan
|
|
11
|
+
- Tema bawaan baru **`whatsapp`** (dark) dan **`whatsapp-light`**, mirip menu WhatsApp iOS versi terbaru:
|
|
12
|
+
- background chat WhatsApp yang di-blur
|
|
13
|
+
- status bar klasik (sinyal + operator di kiri, jam di tengah, Wi-Fi + persen baterai di kanan)
|
|
14
|
+
- reaction bar gelap dengan border tipis, tetap ada tombol **+**
|
|
15
|
+
- bubble tanpa ekor
|
|
16
|
+
- menu dalam kartu, ikon outline di kanan, garis pemisah tiap baris, **Lainnya...** di kartu terpisah
|
|
17
|
+
- Gaya menu `native` / `glass` yang bisa dipaksa lewat opsi `style` untuk tema apa pun.
|
|
18
|
+
- Opsi `statusBarStyle`, `carrier`, `wifi`, dan `batteryPercent`.
|
|
19
|
+
- Key tema baru: `style`, `statusBar.style`, `background.chat`, `pill.border`, `bubble.tail`, `menu.card`, `menu.cardBorder`, `menu.separator`.
|
|
20
|
+
- Alias tema: `default`, `bawaan`, `wa`, `wa-dark`, `wa-light`, `wa-terang`.
|
|
21
|
+
|
|
22
|
+
### Diubah
|
|
23
|
+
- Tema default sekarang `whatsapp` (sebelumnya `blue`). Tema lain dan tema custom tetap pakai gaya `glass`.
|
|
24
|
+
- Emoji di reaction bar gaya `native` diberi jarak supaya nggak ketimpa tombol **+**.
|
|
25
|
+
|
|
26
|
+
## 1.0.0 — 2026-11-30
|
|
27
|
+
|
|
28
|
+
Rilis pertama sebagai package npm.
|
|
29
|
+
|
|
30
|
+
### Ditambahkan
|
|
31
|
+
- `render()` dan class `IQC` untuk bikin gambar fake chat WhatsApp gaya iPhone.
|
|
32
|
+
- Bubble reply chat (nama + kutipan 2 baris, warna bar bisa diatur per pesan).
|
|
33
|
+
- Font SF Pro Text asli (Regular / Semibold / Bold), diunduh sekali lalu di-cache.
|
|
34
|
+
- Emoji Apple lewat emoji map dari Ditzzx, fallback ke emoji sistem.
|
|
35
|
+
- 86 tema bawaan: 22 warna dasar, 19 varian `dark-*`, 5 tema hitam (black, dark, amoled, graphite, onyx), dan 40 tema alam.
|
|
36
|
+
- Alias nama tema dalam bahasa Indonesia (`hitam`, `biru`, `biru-dark`, `senja`, `laut`, ...).
|
|
37
|
+
- `buildTheme`, `createTheme`, `registerTheme`, override `colors`, dan wallpaper sendiri lewat `background`.
|
|
38
|
+
- Label menu 9 bahasa (`id`, `en`, `ms`, `jv`, `su`, `es`, `pt`, `ar`, `ja`) + label custom.
|
|
39
|
+
- Output `png` / `jpeg` / `webp` / `avif`, `scale` 0.25–4×, atau objek `Canvas` mentah.
|
|
40
|
+
- Bisa dipakai lewat ESM dan CommonJS, sudah ada typing TypeScript.
|
|
41
|
+
|
|
42
|
+
### Diperbaiki (dibanding plugin lama)
|
|
43
|
+
- Jarak antarbaris teks dan jarak teks ke jam sekarang konsisten, jam nggak lagi mepet ke teks.
|
|
44
|
+
- Jam otomatis turun ke baris baru kalau baris terakhir nggak muat.
|
|
45
|
+
- Teks panjang dipotong rapi pakai `…`, nggak keluar dari bubble.
|
|
46
|
+
- Font cuma dimuat sekali dan unduhan yang rusak dibersihkan otomatis.
|
|
47
|
+
- Nggak lagi pakai file sementara di disk.
|
|
48
|
+
- Nggak lagi pakai sintaks `||=`, jadi aman buat loader plugin yang parser-nya lama.
|
package/LICENSE
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Ditzzx (original author)
|
|
4
|
+
Copyright (c) 2026 Lynx Decode (enhancements & maintenance)
|
|
5
|
+
|
|
6
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
7
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
8
|
+
in the Software without restriction, including without limitation the rights
|
|
9
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
10
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
11
|
+
furnished to do so, subject to the following conditions:
|
|
12
|
+
|
|
13
|
+
The above copyright notice and this permission notice shall be included in all
|
|
14
|
+
copies or substantial portions of the Software.
|
|
15
|
+
|
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
17
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
18
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
19
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
20
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
21
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
22
|
+
SOFTWARE.
|
|
23
|
+
|
|
24
|
+
Third-party assets fetched at runtime (SF Pro fonts, Apple emoji images) are
|
|
25
|
+
NOT part of this Software and remain the property of their respective owners.
|