foobara-typescript-react-command-form-generator 1.2.0 → 1.3.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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/templates/CommandForm.tsx.erb +4 -4
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: f18b9a30777f3848ff7cbc0d74f8b8c819fb5f19e5a1487c736bd71639fe1a7d
|
|
4
|
+
data.tar.gz: 1dbff7b46bb3b2ca78023d951c6f90002c00dbeb5ddb4b486b00063b9ae3a134
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 8d292d1f9aa4eb2cc318717bfe64b349ffa93f3f5f5ca501d519f888d31d81bcfd297b35feed7a57830b4fdb7f585a3cd2a901946c3ed13f134603d9dd20d9a8
|
|
7
|
+
data.tar.gz: a6f7cfec9844a2c974df232d1aea237fe30e2ef4056e4deaf6256e083dae4e90dafeb821653012d28ba21cf1cc4d1c50234a1d1376f65b948b6cc4a1f965b152
|
data/CHANGELOG.md
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { useState, type JSX } from 'react'
|
|
2
2
|
|
|
3
3
|
import { Outcome } from "<%= path_to_root %>base/Outcome"
|
|
4
4
|
|
|
5
5
|
import { <%= command_name %> } from "<%= path_to_root %><%= command_generator.import_path %>"
|
|
6
6
|
<% unless empty_inputs? %>
|
|
7
|
-
import <%= inputs_class_name %> from "<%= path_to_root %><%= command_generator.import_path %>/Inputs"
|
|
7
|
+
import type <%= inputs_class_name %> from "<%= path_to_root %><%= command_generator.import_path %>/Inputs"
|
|
8
8
|
<% end %>
|
|
9
9
|
<%# TODO: why isn't the result type handled via dependency_roots to avoid collisions with other types? %>
|
|
10
|
-
import <%= result_class_name %> from "<%= path_to_root %><%= command_generator.import_path %>/Result"
|
|
11
|
-
import { Error as <%= error_class_name %> } from "<%= path_to_root %><%= command_generator.import_path %>/Errors"
|
|
10
|
+
import type <%= result_class_name %> from "<%= path_to_root %><%= command_generator.import_path %>/Result"
|
|
11
|
+
import { type Error as <%= error_class_name %> } from "<%= path_to_root %><%= command_generator.import_path %>/Errors"
|
|
12
12
|
|
|
13
13
|
<% dependency_roots.each do |dependency_root| %>
|
|
14
14
|
import <%= dependency_root.import_destructure %> from "<%= path_to_root %><%= dependency_root.import_path %>"
|