@jchat/create-addon 1.0.0-alpha.21 → 1.0.0-alpha.23
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 +2 -0
- 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.23
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Bumped `@jchat/*` dependencies:
|
|
8
|
+
- [`addon-sdk@1.0.0-alpha.23`](https://github.com/mjjabarullah/jchat/releases/tag/addon-sdk@v1.0.0-alpha.23)
|
|
9
|
+
|
|
10
|
+
## 1.0.0-alpha.22
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- Update addon scaffolding templates to snake_case database conventions
|
|
15
|
+
|
|
16
|
+
- Update default database migration templates to snake_case naming conventions
|
|
17
|
+
- Update default service and documentation domains to jchatplatform.com
|
|
18
|
+
|
|
19
|
+
- Bumped `@jchat/*` dependencies:
|
|
20
|
+
- [`addon-sdk@1.0.0-alpha.22`](https://github.com/mjjabarullah/jchat/releases/tag/addon-sdk@v1.0.0-alpha.22)
|
|
21
|
+
|
|
3
22
|
## 1.0.0-alpha.21
|
|
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
|
@@ -35,6 +35,8 @@ declare const MOUNT_POINTS: {
|
|
|
35
35
|
readonly CHAT_MESSAGE_CARD: "chat-message-card";
|
|
36
36
|
/** Custom badge, audio equalizer, or particle aura rendered on a chat bubble */
|
|
37
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";
|
|
38
40
|
};
|
|
39
41
|
/** Union type of all valid addon mount points. */
|
|
40
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
|
|