- |
-
+ |
$field->handle(),
'display' => $field->display(),
'config' => $field->config(),
+ 'fieldtype_title' => $field->fieldtype()->title(),
'fields' => $blueprint->fields()->toPublishArray(),
'meta' => $blueprint->fields()->meta(),
'values' => $blueprint->fields()
diff --git a/src/Transformers/AssetsTransformer.php b/src/Transformers/AssetsTransformer.php
index 597198e..ffd3d85 100644
--- a/src/Transformers/AssetsTransformer.php
+++ b/src/Transformers/AssetsTransformer.php
@@ -51,6 +51,7 @@ public function fieldItems(): array
'type' => 'select',
'display' => __('Related Field'),
'instructions' => __('Which field does the data reference?'),
+ 'default' => 'url',
'options' => [
['key' => 'path', 'value' => __('Path')],
['key' => 'url', 'value' => __('URL')],
diff --git a/src/Transformers/BardTransformer.php b/src/Transformers/BardTransformer.php
index d4ed94e..267da91 100644
--- a/src/Transformers/BardTransformer.php
+++ b/src/Transformers/BardTransformer.php
@@ -46,6 +46,8 @@ private function enableBardButtons(): void
'table',
'horizontalrule',
'codeblock',
+ 'underline',
+ 'superscript',
],
])
);
diff --git a/src/Transformers/EntriesTransformer.php b/src/Transformers/EntriesTransformer.php
index 8f5b1bc..01338c3 100644
--- a/src/Transformers/EntriesTransformer.php
+++ b/src/Transformers/EntriesTransformer.php
@@ -60,8 +60,10 @@ public function fieldItems(): array
'type' => 'select',
'display' => __('Related Field'),
'instructions' => __('Which field does the data reference?'),
+ 'default' => 'id',
'options' => $fields
->map(fn ($field) => ['key' => $field->handle(), 'value' => $field->display()])
+ ->prepend(['key' => 'id', 'value' => __('ID')])
->values()
->all(),
],
diff --git a/src/Transformers/TermsTransformer.php b/src/Transformers/TermsTransformer.php
index 464d58d..1c674df 100644
--- a/src/Transformers/TermsTransformer.php
+++ b/src/Transformers/TermsTransformer.php
@@ -51,8 +51,10 @@ public function fieldItems(): array
'type' => 'select',
'display' => __('Related Field'),
'instructions' => __('Which field does the data reference?'),
+ 'default' => 'id',
'options' => $fields
->map(fn ($field) => ['key' => $field->handle(), 'value' => $field->display()])
+ ->prepend(['key' => 'id', 'value' => __('ID')])
->values()
->all(),
],
diff --git a/src/Transformers/UsersTransformer.php b/src/Transformers/UsersTransformer.php
index 89cb2eb..d5a26fc 100644
--- a/src/Transformers/UsersTransformer.php
+++ b/src/Transformers/UsersTransformer.php
@@ -52,10 +52,12 @@ public function fieldItems(): array
'type' => 'select',
'display' => __('Related Field'),
'instructions' => __('Which field does the data reference?'),
+ 'default' => 'id',
'options' => User::blueprint()
->fields()
->all()
->map(fn ($field) => ['key' => $field->handle(), 'value' => $field->display()])
+ ->prepend(['key' => 'id', 'value' => __('ID')])
->values()
->all(),
],
|