@01.software/sdk 0.23.0 → 0.25.0
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/README.md +9 -2
- package/dist/{const-CMdmNgEs.d.ts → const-Bs-QcTj0.d.ts} +2 -2
- package/dist/{const-Cgd4op4V.d.cts → const-C8UhtzLn.d.cts} +2 -2
- package/dist/index.cjs +1 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +7 -7
- package/dist/index.d.ts +7 -7
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/{payload-types-D8-G1PiT.d.cts → payload-types-BaK4zCQ8.d.cts} +63 -8
- package/dist/{payload-types-D8-G1PiT.d.ts → payload-types-BaK4zCQ8.d.ts} +63 -8
- package/dist/realtime.d.cts +2 -2
- package/dist/realtime.d.ts +2 -2
- package/dist/{server-DJcDyOmM.d.cts → server-CkGfBnSx.d.cts} +3 -3
- package/dist/{server-D7FcHj7J.d.ts → server-DQYWLnkt.d.ts} +3 -3
- package/dist/server.d.cts +4 -4
- package/dist/server.d.ts +4 -4
- package/dist/{types-C_kwEIvY.d.cts → types-BH-YBrFs.d.cts} +1 -1
- package/dist/{types-BQqfXbB2.d.ts → types-DjaaBExv.d.ts} +1 -1
- package/dist/ui/code-block.cjs.map +1 -1
- package/dist/ui/code-block.js.map +1 -1
- package/dist/ui/form.d.cts +1 -1
- package/dist/ui/form.d.ts +1 -1
- package/dist/ui/rich-text.cjs +170 -10
- package/dist/ui/rich-text.cjs.map +1 -1
- package/dist/ui/rich-text.d.cts +22 -3
- package/dist/ui/rich-text.d.ts +22 -3
- package/dist/ui/rich-text.js +165 -5
- package/dist/ui/rich-text.js.map +1 -1
- package/dist/ui/video.d.cts +1 -1
- package/dist/ui/video.d.ts +1 -1
- package/dist/webhook.d.cts +3 -3
- package/dist/webhook.d.ts +3 -3
- package/package.json +5 -4
package/README.md
CHANGED
|
@@ -555,11 +555,15 @@ formatOrderName([
|
|
|
555
555
|
|
|
556
556
|
React component for rendering Payload CMS Lexical rich text. Two variants:
|
|
557
557
|
|
|
558
|
-
- **`RichTextContent`** — Base component with maximum flexibility (`converters`, `blocks`, `disableDefaultConverters`)
|
|
558
|
+
- **`RichTextContent`** — Base component with maximum flexibility (`converters`, `blocks`, `nodeMap`, `disableDefaultConverters`)
|
|
559
559
|
- **`StyledRichTextContent`** — Headless component with slot-based customization (`components` prop)
|
|
560
560
|
|
|
561
561
|
```tsx
|
|
562
|
-
import {
|
|
562
|
+
import {
|
|
563
|
+
RichTextContent,
|
|
564
|
+
StyledRichTextContent,
|
|
565
|
+
richTextNodeMap,
|
|
566
|
+
} from '@01.software/sdk/ui/rich-text'
|
|
563
567
|
|
|
564
568
|
// Base: full converter control
|
|
565
569
|
<RichTextContent
|
|
@@ -572,6 +576,9 @@ import { RichTextContent, StyledRichTextContent } from '@01.software/sdk/ui/rich
|
|
|
572
576
|
}}
|
|
573
577
|
/>
|
|
574
578
|
|
|
579
|
+
// Shared Payload view-map rendering for supported lightweight blocks
|
|
580
|
+
<RichTextContent data={content} nodeMap={richTextNodeMap} />
|
|
581
|
+
|
|
575
582
|
// Headless: component slots (Radix-style)
|
|
576
583
|
<StyledRichTextContent
|
|
577
584
|
data={content}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as Config } from './payload-types-
|
|
1
|
+
import { c as Config } from './payload-types-BaK4zCQ8.js';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Collection type derived from Payload Config.
|
|
@@ -9,7 +9,7 @@ type Collection = keyof Config['collections'];
|
|
|
9
9
|
* Internal collections that should not be exposed via SDK.
|
|
10
10
|
* Includes Payload system collections and admin-only collections.
|
|
11
11
|
*/
|
|
12
|
-
declare const INTERNAL_COLLECTIONS: readonly ["users", "payload-kv", "payload-locked-documents", "payload-preferences", "payload-migrations", "field-configs", "system-media", "track-assets", "audiences", "email-logs", "api-usage", "tenant-analytics-daily", "analytics-event-schemas", "subscriptions", "billing-history", "order-status-logs", "api-keys", "personal-access-tokens", "tenant-entitlements", "direct-upload-sessions", "webhook-events", "webhook-deliveries", "audit-logs", "plans", "webhooks", "event-registrations"];
|
|
12
|
+
declare const INTERNAL_COLLECTIONS: readonly ["users", "payload-kv", "payload-locked-documents", "payload-preferences", "payload-migrations", "payload-folders", "field-configs", "system-media", "track-assets", "audiences", "email-logs", "api-usage", "tenant-analytics-daily", "analytics-event-schemas", "subscriptions", "billing-history", "order-status-logs", "api-keys", "personal-access-tokens", "tenant-entitlements", "direct-upload-sessions", "webhook-events", "webhook-deliveries", "audit-logs", "plans", "webhooks", "event-registrations"];
|
|
13
13
|
type InternalCollection = (typeof INTERNAL_COLLECTIONS)[number];
|
|
14
14
|
/**
|
|
15
15
|
* Array of all public collection names for runtime use (e.g., Zod enum validation).
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as Config } from './payload-types-
|
|
1
|
+
import { c as Config } from './payload-types-BaK4zCQ8.cjs';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Collection type derived from Payload Config.
|
|
@@ -9,7 +9,7 @@ type Collection = keyof Config['collections'];
|
|
|
9
9
|
* Internal collections that should not be exposed via SDK.
|
|
10
10
|
* Includes Payload system collections and admin-only collections.
|
|
11
11
|
*/
|
|
12
|
-
declare const INTERNAL_COLLECTIONS: readonly ["users", "payload-kv", "payload-locked-documents", "payload-preferences", "payload-migrations", "field-configs", "system-media", "track-assets", "audiences", "email-logs", "api-usage", "tenant-analytics-daily", "analytics-event-schemas", "subscriptions", "billing-history", "order-status-logs", "api-keys", "personal-access-tokens", "tenant-entitlements", "direct-upload-sessions", "webhook-events", "webhook-deliveries", "audit-logs", "plans", "webhooks", "event-registrations"];
|
|
12
|
+
declare const INTERNAL_COLLECTIONS: readonly ["users", "payload-kv", "payload-locked-documents", "payload-preferences", "payload-migrations", "payload-folders", "field-configs", "system-media", "track-assets", "audiences", "email-logs", "api-usage", "tenant-analytics-daily", "analytics-event-schemas", "subscriptions", "billing-history", "order-status-logs", "api-keys", "personal-access-tokens", "tenant-entitlements", "direct-upload-sessions", "webhook-events", "webhook-deliveries", "audit-logs", "plans", "webhooks", "event-registrations"];
|
|
13
13
|
type InternalCollection = (typeof INTERNAL_COLLECTIONS)[number];
|
|
14
14
|
/**
|
|
15
15
|
* Array of all public collection names for runtime use (e.g., Zod enum validation).
|