rimelight-components 2.1.35 → 2.1.37

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/dist/module.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rimelight-components",
3
- "version": "2.1.35",
3
+ "version": "2.1.37",
4
4
  "docs": "https://rimelight.com/tools/rimelight-components",
5
5
  "configKey": "rimelightComponents",
6
6
  "compatibility": {
package/dist/module.mjs CHANGED
@@ -4,7 +4,7 @@ import { readdirSync } from 'node:fs';
4
4
  import { basename } from 'node:path';
5
5
 
6
6
  const name = "rimelight-components";
7
- const version = "2.1.35";
7
+ const version = "2.1.37";
8
8
  const homepage = "https://rimelight.com/tools/rimelight-components";
9
9
 
10
10
  const defaultOptions = {
@@ -281,7 +281,7 @@ const handleDeleteConfirm = async () => {
281
281
  <span
282
282
  >Created At:
283
283
  <NuxtTime
284
- :datetime="page.created_at ?? ''"
284
+ :datetime="page.createdAt ?? ''"
285
285
  year="numeric"
286
286
  month="numeric"
287
287
  day="numeric"
@@ -293,7 +293,7 @@ const handleDeleteConfirm = async () => {
293
293
  <span
294
294
  >Posted At:
295
295
  <NuxtTime
296
- :datetime="page.created_at ?? ''"
296
+ :datetime="page.createdAt ?? ''"
297
297
  year="numeric"
298
298
  month="numeric"
299
299
  day="numeric"
@@ -305,7 +305,7 @@ const handleDeleteConfirm = async () => {
305
305
  <span
306
306
  >Updated At:
307
307
  <NuxtTime
308
- :datetime="page.created_at ?? ''"
308
+ :datetime="page.createdAt ?? ''"
309
309
  year="numeric"
310
310
  month="numeric"
311
311
  day="numeric"
@@ -121,7 +121,7 @@ const hasSurround = computed(() => !!(surround?.previous || surround?.next));
121
121
  <span
122
122
  >Created At:
123
123
  <NuxtTime
124
- :datetime="page.created_at ?? ''"
124
+ :datetime="page.createdAt ?? ''"
125
125
  year="numeric"
126
126
  month="numeric"
127
127
  day="numeric"
@@ -133,7 +133,7 @@ const hasSurround = computed(() => !!(surround?.previous || surround?.next));
133
133
  <span
134
134
  >Posted At:
135
135
  <NuxtTime
136
- :datetime="page.created_at ?? ''"
136
+ :datetime="page.createdAt ?? ''"
137
137
  year="numeric"
138
138
  month="numeric"
139
139
  day="numeric"
@@ -145,7 +145,7 @@ const hasSurround = computed(() => !!(surround?.previous || surround?.next));
145
145
  <span
146
146
  >Updated At:
147
147
  <NuxtTime
148
- :datetime="page.created_at ?? ''"
148
+ :datetime="page.createdAt ?? ''"
149
149
  year="numeric"
150
150
  month="numeric"
151
151
  day="numeric"
@@ -1,6 +1,6 @@
1
1
  export declare const id: import("drizzle-orm").NotNull<import("drizzle-orm").HasDefault<import("drizzle-orm/pg-core").PgUUIDBuilderInitial<"id">>>;
2
2
  export declare const timestamps: {
3
- updated_at: import("drizzle-orm").HasDefault<import("drizzle-orm/pg-core").PgTimestampBuilderInitial<"updated_at">>;
4
- created_at: import("drizzle-orm").NotNull<import("drizzle-orm").HasDefault<import("drizzle-orm/pg-core").PgTimestampBuilderInitial<"created_at">>>;
5
- deleted_at: import("drizzle-orm/pg-core").PgTimestampBuilderInitial<"deleted_at">;
3
+ updatedAt: import("drizzle-orm").HasDefault<import("drizzle-orm/pg-core").PgTimestampBuilderInitial<"updated_at">>;
4
+ createdAt: import("drizzle-orm").NotNull<import("drizzle-orm").HasDefault<import("drizzle-orm/pg-core").PgTimestampBuilderInitial<"created_at">>>;
5
+ deletedAt: import("drizzle-orm/pg-core").PgTimestampBuilderInitial<"deleted_at">;
6
6
  };
@@ -2,9 +2,9 @@ import { uuid, timestamp } from "drizzle-orm/pg-core";
2
2
  import { sql } from "drizzle-orm";
3
3
  export const id = uuid("id").default(sql`uuidv7()`).notNull();
4
4
  export const timestamps = {
5
- updated_at: timestamp("updated_at", {
5
+ updatedAt: timestamp("updated_at", {
6
6
  withTimezone: true
7
7
  }).$onUpdate(() => /* @__PURE__ */ new Date()),
8
- created_at: timestamp("created_at", { withTimezone: true }).defaultNow().notNull(),
9
- deleted_at: timestamp("deleted_at", { withTimezone: true })
8
+ createdAt: timestamp("created_at", { withTimezone: true }).defaultNow().notNull(),
9
+ deletedAt: timestamp("deleted_at", { withTimezone: true })
10
10
  };
@@ -2,9 +2,9 @@ import { uuid, timestamp } from "drizzle-orm/pg-core";
2
2
  import { sql } from "drizzle-orm";
3
3
  export const id = uuid("id").default(sql`uuidv7()`).notNull();
4
4
  export const timestamps = {
5
- updated_at: timestamp("updated_at", {
5
+ updatedAt: timestamp("updated_at", {
6
6
  withTimezone: true
7
7
  }).$onUpdate(() => /* @__PURE__ */ new Date()),
8
- created_at: timestamp("created_at", { withTimezone: true }).defaultNow().notNull(),
9
- deleted_at: timestamp("deleted_at", { withTimezone: true })
8
+ createdAt: timestamp("created_at", { withTimezone: true }).defaultNow().notNull(),
9
+ deletedAt: timestamp("deleted_at", { withTimezone: true })
10
10
  };
@@ -49,9 +49,9 @@ export interface BasePage {
49
49
  links?: Link[];
50
50
  authorsIds?: string[];
51
51
  blocks: Block[];
52
- posted_at?: Date | null;
53
- created_at: Date;
54
- updated_at: Date;
52
+ postedAt?: Date | null;
53
+ createdAt: Date;
54
+ updatedAt: Date;
55
55
  }
56
56
  /**
57
57
  * Discriminated Union for Page Data structure
@@ -77,7 +77,7 @@ export function syncPageWithDefinition(page, definition) {
77
77
  page.blocks = filteredCurrent;
78
78
  }
79
79
  if (hasChanged) {
80
- page.updated_at = /* @__PURE__ */ new Date();
80
+ page.updatedAt = /* @__PURE__ */ new Date();
81
81
  }
82
82
  return page;
83
83
  }
@@ -77,7 +77,7 @@ export function syncPageWithDefinition(page, definition) {
77
77
  page.blocks = filteredCurrent;
78
78
  }
79
79
  if (hasChanged) {
80
- page.updated_at = /* @__PURE__ */ new Date();
80
+ page.updatedAt = /* @__PURE__ */ new Date();
81
81
  }
82
82
  return page;
83
83
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rimelight-components",
3
- "version": "2.1.35",
3
+ "version": "2.1.37",
4
4
  "description": "A component library by Rimelight Entertainment.",
5
5
  "keywords": [
6
6
  "nuxt",