SDK renderer now has full feature parity with the host: text alignment, checkListItem, toggleListItem, video, audio, file, statement blocks, and text/background color inline styles. New datasources.Datasources interface lets plugins resolve buckets directly. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
22 lines
575 B
Go
22 lines
575 B
Go
package datasources
|
|
|
|
import (
|
|
"context"
|
|
|
|
"github.com/google/uuid"
|
|
)
|
|
|
|
// Datasources provides bucket/datasource access for plugins.
|
|
// The CMS implements this interface and wires it into CoreServices.
|
|
type Datasources interface {
|
|
ResolveBucket(ctx context.Context, bucketID uuid.UUID) (*Result, error)
|
|
ResolveBucketByKey(ctx context.Context, bucketKey string) (*Result, error)
|
|
}
|
|
|
|
// Result is the output from resolving a bucket.
|
|
type Result struct {
|
|
Items []any `json:"items"`
|
|
Total int `json:"total"`
|
|
Meta map[string]any `json:"meta,omitempty"`
|
|
}
|