@prefecthq/prefect-ui-library 3.11.23 → 3.11.24

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prefecthq/prefect-ui-library",
3
- "version": "3.11.23",
3
+ "version": "3.11.24",
4
4
  "private": false,
5
5
  "repository": {
6
6
  "type": "git",
@@ -1,5 +1,6 @@
1
1
  <template>
2
2
  <slot :open="open" :close="close" />
3
+
3
4
  <p-modal v-model:showModal="showModal" :title="schedule ? 'Edit schedule' : 'Add schedule'" @update:show-modal="resetIfFalse">
4
5
  <p-label label="Schedule type">
5
6
  <p-button-group v-model="scheduleForm" :options="scheduleFormOptions" small />
@@ -44,6 +45,10 @@
44
45
  import { DeploymentScheduleCompatible, getScheduleType, Schedule, ScheduleType, isCronSchedule, isIntervalSchedule, CronSchedule, IntervalSchedule } from '@/models'
45
46
  import { stringify } from '@/utilities'
46
47
 
48
+ defineOptions({
49
+ inheritAttrs: false,
50
+ })
51
+
47
52
  const { showModal, open, close } = useShowModal()
48
53
 
49
54
  const publicOpen = (): void => {
@@ -50,6 +50,10 @@
50
50
  const { defineValidate } = useWizardStep()
51
51
  const { validate } = useValidationObserver()
52
52
  const { state, error } = useValidation(name, 'Work pool name', value => {
53
+ if (value?.toLowerCase().startsWith('prefect')) {
54
+ return 'Work pools starting with "prefect" are reserved for internal use.'
55
+ }
56
+
53
57
  if (value) {
54
58
  return true
55
59
  }
@@ -111,7 +111,7 @@ export function getSchemaPropertyPlaceholder(property: SchemaProperty): string |
111
111
  }
112
112
 
113
113
  if (isArray(placeholder) && property.meta?.component !== JsonInput) {
114
- return placeholder.join(', ')
114
+ return `"${placeholder.join(', ')}"`
115
115
  }
116
116
 
117
117
  return stringify(placeholder)