@jchat/create-addon 1.0.0-alpha.21 → 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 CHANGED
@@ -1,5 +1,17 @@
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
+
3
15
  ## 1.0.0-alpha.21
4
16
 
5
17
  ### 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://jchatlive.com) addon development workspaces and interactive sandbox environments.
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
 
@@ -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];
@@ -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
- "siteId" VARCHAR(36) NOT NULL,
159
- "roomId" VARCHAR(36) NOT NULL,
160
- "userId" VARCHAR(36) NOT NULL,
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
- "createdAt" TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT CURRENT_TIMESTAMP
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}" ("siteId", "roomId", "createdAt" DESC);
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
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jchat/create-addon",
3
- "version": "1.0.0-alpha.21",
3
+ "version": "1.0.0-alpha.22",
4
4
  "private": false,
5
5
  "description": "Command line tool for jchat addon creation.",
6
6
  "keywords": [