@carlonicora/nextjs-jsonapi 1.57.1 → 1.58.1
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/{AuthComponent-IqFWLNIU.d.ts → AuthComponent-B4rNZRYE.d.ts} +4 -1
- package/dist/{AuthComponent-CK9aRRW2.d.mts → AuthComponent-nzabiz68.d.mts} +4 -1
- package/dist/{BlockNoteEditor-7TXNOVKN.mjs → BlockNoteEditor-I7N4N6MZ.mjs} +4 -4
- package/dist/{BlockNoteEditor-XKW6GQ7Z.js → BlockNoteEditor-LPMGYNE7.js} +14 -14
- package/dist/{BlockNoteEditor-XKW6GQ7Z.js.map → BlockNoteEditor-LPMGYNE7.js.map} +1 -1
- package/dist/billing/index.js +346 -346
- package/dist/billing/index.mjs +3 -3
- package/dist/{chunk-4J2JLZXB.js → chunk-74TRO667.js} +4153 -4127
- package/dist/chunk-74TRO667.js.map +1 -0
- package/dist/{chunk-UJBUJALX.js → chunk-BQSMP4NU.js} +11 -11
- package/dist/{chunk-UJBUJALX.js.map → chunk-BQSMP4NU.js.map} +1 -1
- package/dist/{chunk-FE26PIZK.mjs → chunk-HRG4EAOG.mjs} +2 -2
- package/dist/{chunk-QOLVON35.js → chunk-NAST4OSM.js} +77 -60
- package/dist/chunk-NAST4OSM.js.map +1 -0
- package/dist/{chunk-YRLM4PNR.mjs → chunk-OAJFQZXY.mjs} +6554 -6528
- package/dist/chunk-OAJFQZXY.mjs.map +1 -0
- package/dist/{chunk-J2PYGXVD.mjs → chunk-YHNDD34Z.mjs} +18 -1
- package/dist/chunk-YHNDD34Z.mjs.map +1 -0
- package/dist/client/index.js +4 -4
- package/dist/client/index.mjs +3 -3
- package/dist/components/index.d.mts +17 -3
- package/dist/components/index.d.ts +17 -3
- package/dist/components/index.js +10 -4
- package/dist/components/index.js.map +1 -1
- package/dist/components/index.mjs +10 -4
- package/dist/contexts/index.js +4 -4
- package/dist/contexts/index.mjs +3 -3
- package/dist/core/index.d.mts +2 -2
- package/dist/core/index.d.ts +2 -2
- package/dist/core/index.js +4 -2
- package/dist/core/index.js.map +1 -1
- package/dist/core/index.mjs +3 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +5 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +4 -2
- package/dist/server/index.js +3 -3
- package/dist/server/index.mjs +1 -1
- package/package.json +1 -1
- package/src/components/EntityAvatar.tsx +23 -0
- package/src/components/TableCellAvatar.tsx +16 -0
- package/src/components/index.ts +3 -0
- package/src/utils/getInitials.ts +16 -0
- package/src/utils/index.ts +1 -0
- package/dist/chunk-4J2JLZXB.js.map +0 -1
- package/dist/chunk-J2PYGXVD.mjs.map +0 -1
- package/dist/chunk-QOLVON35.js.map +0 -1
- package/dist/chunk-YRLM4PNR.mjs.map +0 -1
- /package/dist/{BlockNoteEditor-7TXNOVKN.mjs.map → BlockNoteEditor-I7N4N6MZ.mjs.map} +0 -0
- /package/dist/{chunk-FE26PIZK.mjs.map → chunk-HRG4EAOG.mjs.map} +0 -0
|
@@ -1238,6 +1238,22 @@ var entityObjectSchema = z2.object({
|
|
|
1238
1238
|
name: z2.string()
|
|
1239
1239
|
});
|
|
1240
1240
|
|
|
1241
|
+
// src/utils/getInitials.ts
|
|
1242
|
+
function getInitials(firstOrName, lastName) {
|
|
1243
|
+
if (lastName !== void 0) {
|
|
1244
|
+
const first = firstOrName?.trim()?.[0] ?? "";
|
|
1245
|
+
const last = lastName?.trim()?.[0] ?? "";
|
|
1246
|
+
if (first && last) return (first + last).toUpperCase();
|
|
1247
|
+
return (firstOrName || lastName || "").slice(0, 2).toUpperCase();
|
|
1248
|
+
}
|
|
1249
|
+
const words = firstOrName.trim().split(/\s+/);
|
|
1250
|
+
if (words.length >= 2) {
|
|
1251
|
+
return (words[0][0] + words[1][0]).toUpperCase();
|
|
1252
|
+
}
|
|
1253
|
+
return firstOrName.slice(0, 2).toUpperCase();
|
|
1254
|
+
}
|
|
1255
|
+
__name(getInitials, "getInitials");
|
|
1256
|
+
|
|
1241
1257
|
// src/utils/blocknote-diff.util.ts
|
|
1242
1258
|
import { v4 } from "uuid";
|
|
1243
1259
|
var BlockNoteDiffUtil = class {
|
|
@@ -6673,6 +6689,7 @@ export {
|
|
|
6673
6689
|
getTableComponents,
|
|
6674
6690
|
userObjectSchema,
|
|
6675
6691
|
entityObjectSchema,
|
|
6692
|
+
getInitials,
|
|
6676
6693
|
BlockNoteDiffUtil,
|
|
6677
6694
|
BlockNoteWordDiffRendererUtil,
|
|
6678
6695
|
getIconByModule,
|
|
@@ -6804,4 +6821,4 @@ export {
|
|
|
6804
6821
|
ReferralModule,
|
|
6805
6822
|
ReferralStatsModule
|
|
6806
6823
|
};
|
|
6807
|
-
//# sourceMappingURL=chunk-
|
|
6824
|
+
//# sourceMappingURL=chunk-YHNDD34Z.mjs.map
|