Skip to content

Commit cb5945e

Browse files
committed
fix: rename import-map prop to import-map-file for MDC compatibility
Rename the import-map prop to import-map-file in barcode and zod plugin docs to avoid conflicts with MDC prop parsing when used alongside show-import-map boolean prop. Also fix corrupted intro.vue in multi-step example.
1 parent 88e4cf7 commit cb5945e

File tree

3 files changed

+12
-13
lines changed

3 files changed

+12
-13
lines changed

4.plugins/barcode.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -62,11 +62,11 @@ You can now use the `barcode` input type in your `<FormKit />` components. By in
6262
---
6363
name: "Barcode basic usage"
6464
file: [
65-
'_examples/barcode/basic.vue',
66-
'_examples/barcode/formkit.config.ts',
65+
"_examples/barcode/basic.vue",
66+
"_examples/barcode/formkit.config.ts",
6767
]
6868
show-import-map: true
69-
import-map: '_examples/barcode/importMap.json'
69+
import-map-file: "_examples/barcode/importMap.json"
7070
min-height: 500
7171
---
7272
::
@@ -79,11 +79,11 @@ By default the `barcode` input will scan every supported barcode type. The list
7979
---
8080
name: "Barcode formats"
8181
file: [
82-
'_examples/barcode/formats.vue',
83-
'_examples/barcode/formkit.config.ts',
82+
"_examples/barcode/formats.vue",
83+
"_examples/barcode/formkit.config.ts",
8484
]
8585
show-import-map: true
86-
import-map: '_examples/barcode/importMap.json'
86+
import-map-file: "_examples/barcode/importMap.json"
8787
min-height: 500
8888
---
8989
::

4.plugins/zod.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,9 @@ Here is an example of using a Zod schema to validate a FormKit form. It's import
4141
---
4242
name: 'Zod Validation'
4343
file: [
44-
'_examples/zod/validation.vue',
44+
"_examples/zod/validation.vue",
4545
]
46-
import-map: '_examples/zod/importMap.json'
46+
import-map-file: "_examples/zod/importMap.json"
4747
---
4848
::
4949

@@ -65,9 +65,9 @@ Here's the same form as before, but now using FormKit validation messages in add
6565
---
6666
name: 'Zod Validation with FormKit Validation'
6767
file: [
68-
'_examples/zod/with-formkit-validation.vue',
68+
"_examples/zod/with-formkit-validation.vue",
6969
]
70-
import-map: '_examples/zod/importMap.json'
70+
import-map-file: "_examples/zod/importMap.json"
7171
---
7272
::
7373

@@ -79,8 +79,8 @@ If you need to set errors on your form you can do so with the `node.setZodErrors
7979
---
8080
name: 'Zod Errors'
8181
file: [
82-
'_examples/zod/errors.vue',
82+
"_examples/zod/errors.vue",
8383
]
84-
import-map: '_examples/zod/importMap.json'
84+
import-map-file: "_examples/zod/importMap.json"
8585
---
8686
::

_examples/multi-step/intro/intro.vue

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,3 @@ import StepThree from '@content/_examples/multi-step/step-three.vue'
3030
</FormKit>
3131
</template>
3232
<!-- %partial% -->
33-
./stepOne.vue./stepThree.vue./stepTwo.vue../stepOne.vue../stepThree.vue../stepTwo.vue

0 commit comments

Comments
 (0)