@jchat/create-addon 1.0.0-alpha.20 → 1.0.0-alpha.22
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 +19 -0
- package/README.md +1 -1
- package/dist/contracts.d.mts +6 -2
- package/dist/generator.mjs +6 -6
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,24 @@
|
|
|
1
1
|
# @jchat/create-addon
|
|
2
2
|
|
|
3
|
+
## 1.0.0-alpha.22
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Update addon scaffolding templates to snake_case database conventions
|
|
8
|
+
|
|
9
|
+
- Update default database migration templates to snake_case naming conventions
|
|
10
|
+
- Update default service and documentation domains to jchatplatform.com
|
|
11
|
+
|
|
12
|
+
- Bumped `@jchat/*` dependencies:
|
|
13
|
+
- [`addon-sdk@1.0.0-alpha.22`](https://github.com/mjjabarullah/jchat/releases/tag/addon-sdk@v1.0.0-alpha.22)
|
|
14
|
+
|
|
15
|
+
## 1.0.0-alpha.21
|
|
16
|
+
|
|
17
|
+
### Patch Changes
|
|
18
|
+
|
|
19
|
+
- Bumped `@jchat/*` dependencies:
|
|
20
|
+
- [`addon-sdk@1.0.0-alpha.21`](https://github.com/mjjabarullah/jchat/releases/tag/addon-sdk@v1.0.0-alpha.21)
|
|
21
|
+
|
|
3
22
|
## 1.0.0-alpha.20
|
|
4
23
|
|
|
5
24
|
### Patch Changes
|
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @jchat/create-addon
|
|
2
2
|
|
|
3
|
-
Official CLI scaffolding tool for generating self-contained [JChat](https://
|
|
3
|
+
Official CLI scaffolding tool for generating self-contained [JChat](https://jchatplatform.com) addon development workspaces and interactive sandbox environments.
|
|
4
4
|
|
|
5
5
|
---
|
|
6
6
|
|
package/dist/contracts.d.mts
CHANGED
|
@@ -27,12 +27,16 @@ declare const MOUNT_POINTS: {
|
|
|
27
27
|
readonly EMOJI_PICKER_GIF_TAB: "emoji-picker-gif-tab";
|
|
28
28
|
/** Custom tab in the emoji/sticker selection panel */
|
|
29
29
|
readonly EMOJI_PICKER_STICKER_TAB: "emoji-picker-sticker-tab";
|
|
30
|
-
/** Full-screen or modal dialog specifically for TubeScan */
|
|
31
|
-
readonly TUBESCAN_DIALOG: "tubescan-dialog";
|
|
32
30
|
/** Dedicated settings panel rendered in the Owner Dashboard */
|
|
33
31
|
readonly OWNER_SETTINGS: "owner-settings";
|
|
34
32
|
/** Dedicated settings panel rendered in the Site Admin Dashboard */
|
|
35
33
|
readonly ADDON_SETTINGS: "addon-settings";
|
|
34
|
+
/** Custom interactive card rendered inside an enriched chat message */
|
|
35
|
+
readonly CHAT_MESSAGE_CARD: "chat-message-card";
|
|
36
|
+
/** Custom badge, audio equalizer, or particle aura rendered on a chat bubble */
|
|
37
|
+
readonly CHAT_MESSAGE_FLAIR: "chat-message-flair";
|
|
38
|
+
/** Custom interactive preview card rendered in the message composer */
|
|
39
|
+
readonly CHAT_COMPOSER_PREVIEW: "chat-composer-preview";
|
|
36
40
|
};
|
|
37
41
|
/** Union type of all valid addon mount points. */
|
|
38
42
|
type MountPoint = (typeof MOUNT_POINTS)[keyof typeof MOUNT_POINTS];
|
package/dist/generator.mjs
CHANGED
|
@@ -153,17 +153,17 @@ export interface AddonItemTable {
|
|
|
153
153
|
export interface AddonDatabase {
|
|
154
154
|
addon_items: AddonItemTable
|
|
155
155
|
}
|
|
156
|
-
`}function w(e){let t=`${e.replace(/-/g,`_`)}_items`;return`CREATE TABLE IF NOT EXISTS "${t}" (
|
|
156
|
+
`}function w(e){let t=`${e.replace(/-/g,`_`)}_items`;return`CREATE TABLE IF NOT EXISTS "addons"."${t}" (
|
|
157
157
|
"id" VARCHAR(36) PRIMARY KEY,
|
|
158
|
-
"
|
|
159
|
-
"
|
|
160
|
-
"
|
|
158
|
+
"site_id" VARCHAR(36) NOT NULL,
|
|
159
|
+
"room_id" VARCHAR(36) NOT NULL,
|
|
160
|
+
"user_id" VARCHAR(36) NOT NULL,
|
|
161
161
|
"title" VARCHAR(255) NOT NULL,
|
|
162
|
-
"
|
|
162
|
+
"created_at" TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT CURRENT_TIMESTAMP
|
|
163
163
|
);
|
|
164
164
|
|
|
165
165
|
CREATE INDEX IF NOT EXISTS "${`idx_${t}_site_room`}"
|
|
166
|
-
ON "${t}" ("
|
|
166
|
+
ON "addons"."${t}" ("site_id", "room_id", "created_at" DESC);
|
|
167
167
|
`}function T(e){let t=`${e.replace(/-/g,`_`)}_items`;return`import type { AddonApp, AddonServerContext } from "@jchat/addon-sdk"
|
|
168
168
|
import type { AddonDatabase } from "./db"
|
|
169
169
|
|