@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 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 { RichTextContent, StyledRichTextContent } from '@01.software/sdk/ui/rich-text'
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-D8-G1PiT.js';
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-D8-G1PiT.cjs';
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).
package/dist/index.cjs CHANGED
@@ -1235,6 +1235,7 @@ var INTERNAL_COLLECTIONS = [
1235
1235
  "payload-locked-documents",
1236
1236
  "payload-preferences",
1237
1237
  "payload-migrations",
1238
+ "payload-folders",
1238
1239
  "field-configs",
1239
1240
  "system-media",
1240
1241
  "track-assets",