@aws/nx-plugin 0.31.1 → 0.32.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.
- package/LICENSE-THIRD-PARTY +0 -401
- package/package.json +1 -1
- package/src/cloudscape-website/app/__snapshots__/generator.spec.ts.snap +43 -5
- package/src/cloudscape-website/app/files/app/src/main.tsx.template +21 -2
- package/src/cloudscape-website/app/files/app/src/routes/__root.tsx.template +3 -2
- package/src/cloudscape-website/app/generator.js +7 -1
- package/src/cloudscape-website/app/generator.js.map +1 -1
- package/src/cloudscape-website/cognito-auth/__snapshots__/generator.spec.ts.snap +4 -2
- package/src/cloudscape-website/runtime-config/__snapshots__/generator.spec.ts.snap +3 -1
- package/src/cloudscape-website/runtime-config/generator.js +2 -2
- package/src/cloudscape-website/runtime-config/generator.js.map +1 -1
- package/src/py/fast-api/react/__snapshots__/generator.spec.ts.snap +3 -2
- package/src/py/fast-api/react/generator.js +2 -2
- package/src/py/fast-api/react/generator.js.map +1 -1
- package/src/trpc/react/__snapshots__/generator.spec.ts.snap +3 -2
- package/src/trpc/react/generator.js +2 -2
- package/src/trpc/react/generator.js.map +1 -1
- package/src/utils/versions.d.ts +6 -3
- package/src/utils/versions.js +5 -2
- package/src/utils/versions.js.map +1 -1
package/LICENSE-THIRD-PARTY
CHANGED
|
@@ -37565,407 +37565,6 @@ limitations under the License.
|
|
|
37565
37565
|
|
|
37566
37566
|
---
|
|
37567
37567
|
|
|
37568
|
-
The following software may be included in this product: caniuse-lite (1.0.30001707)
|
|
37569
|
-
This software contains the following license and notice below:
|
|
37570
|
-
|
|
37571
|
-
Attribution 4.0 International
|
|
37572
|
-
|
|
37573
|
-
=======================================================================
|
|
37574
|
-
|
|
37575
|
-
Creative Commons Corporation ("Creative Commons") is not a law firm and
|
|
37576
|
-
does not provide legal services or legal advice. Distribution of
|
|
37577
|
-
Creative Commons public licenses does not create a lawyer-client or
|
|
37578
|
-
other relationship. Creative Commons makes its licenses and related
|
|
37579
|
-
information available on an "as-is" basis. Creative Commons gives no
|
|
37580
|
-
warranties regarding its licenses, any material licensed under their
|
|
37581
|
-
terms and conditions, or any related information. Creative Commons
|
|
37582
|
-
disclaims all liability for damages resulting from their use to the
|
|
37583
|
-
fullest extent possible.
|
|
37584
|
-
|
|
37585
|
-
Using Creative Commons Public Licenses
|
|
37586
|
-
|
|
37587
|
-
Creative Commons public licenses provide a standard set of terms and
|
|
37588
|
-
conditions that creators and other rights holders may use to share
|
|
37589
|
-
original works of authorship and other material subject to copyright
|
|
37590
|
-
and certain other rights specified in the public license below. The
|
|
37591
|
-
following considerations are for informational purposes only, are not
|
|
37592
|
-
exhaustive, and do not form part of our licenses.
|
|
37593
|
-
|
|
37594
|
-
Considerations for licensors: Our public licenses are
|
|
37595
|
-
intended for use by those authorized to give the public
|
|
37596
|
-
permission to use material in ways otherwise restricted by
|
|
37597
|
-
copyright and certain other rights. Our licenses are
|
|
37598
|
-
irrevocable. Licensors should read and understand the terms
|
|
37599
|
-
and conditions of the license they choose before applying it.
|
|
37600
|
-
Licensors should also secure all rights necessary before
|
|
37601
|
-
applying our licenses so that the public can reuse the
|
|
37602
|
-
material as expected. Licensors should clearly mark any
|
|
37603
|
-
material not subject to the license. This includes other CC-
|
|
37604
|
-
licensed material, or material used under an exception or
|
|
37605
|
-
limitation to copyright. More considerations for licensors:
|
|
37606
|
-
wiki.creativecommons.org/Considerations_for_licensors
|
|
37607
|
-
|
|
37608
|
-
Considerations for the public: By using one of our public
|
|
37609
|
-
licenses, a licensor grants the public permission to use the
|
|
37610
|
-
licensed material under specified terms and conditions. If
|
|
37611
|
-
the licensor's permission is not necessary for any reason--for
|
|
37612
|
-
example, because of any applicable exception or limitation to
|
|
37613
|
-
copyright--then that use is not regulated by the license. Our
|
|
37614
|
-
licenses grant only permissions under copyright and certain
|
|
37615
|
-
other rights that a licensor has authority to grant. Use of
|
|
37616
|
-
the licensed material may still be restricted for other
|
|
37617
|
-
reasons, including because others have copyright or other
|
|
37618
|
-
rights in the material. A licensor may make special requests,
|
|
37619
|
-
such as asking that all changes be marked or described.
|
|
37620
|
-
Although not required by our licenses, you are encouraged to
|
|
37621
|
-
respect those requests where reasonable. More_considerations
|
|
37622
|
-
for the public:
|
|
37623
|
-
wiki.creativecommons.org/Considerations_for_licensees
|
|
37624
|
-
|
|
37625
|
-
=======================================================================
|
|
37626
|
-
|
|
37627
|
-
Creative Commons Attribution 4.0 International Public License
|
|
37628
|
-
|
|
37629
|
-
By exercising the Licensed Rights (defined below), You accept and agree
|
|
37630
|
-
to be bound by the terms and conditions of this Creative Commons
|
|
37631
|
-
Attribution 4.0 International Public License ("Public License"). To the
|
|
37632
|
-
extent this Public License may be interpreted as a contract, You are
|
|
37633
|
-
granted the Licensed Rights in consideration of Your acceptance of
|
|
37634
|
-
these terms and conditions, and the Licensor grants You such rights in
|
|
37635
|
-
consideration of benefits the Licensor receives from making the
|
|
37636
|
-
Licensed Material available under these terms and conditions.
|
|
37637
|
-
|
|
37638
|
-
|
|
37639
|
-
Section 1 -- Definitions.
|
|
37640
|
-
|
|
37641
|
-
a. Adapted Material means material subject to Copyright and Similar
|
|
37642
|
-
Rights that is derived from or based upon the Licensed Material
|
|
37643
|
-
and in which the Licensed Material is translated, altered,
|
|
37644
|
-
arranged, transformed, or otherwise modified in a manner requiring
|
|
37645
|
-
permission under the Copyright and Similar Rights held by the
|
|
37646
|
-
Licensor. For purposes of this Public License, where the Licensed
|
|
37647
|
-
Material is a musical work, performance, or sound recording,
|
|
37648
|
-
Adapted Material is always produced where the Licensed Material is
|
|
37649
|
-
synched in timed relation with a moving image.
|
|
37650
|
-
|
|
37651
|
-
b. Adapter's License means the license You apply to Your Copyright
|
|
37652
|
-
and Similar Rights in Your contributions to Adapted Material in
|
|
37653
|
-
accordance with the terms and conditions of this Public License.
|
|
37654
|
-
|
|
37655
|
-
c. Copyright and Similar Rights means copyright and/or similar rights
|
|
37656
|
-
closely related to copyright including, without limitation,
|
|
37657
|
-
performance, broadcast, sound recording, and Sui Generis Database
|
|
37658
|
-
Rights, without regard to how the rights are labeled or
|
|
37659
|
-
categorized. For purposes of this Public License, the rights
|
|
37660
|
-
specified in Section 2(b)(1)-(2) are not Copyright and Similar
|
|
37661
|
-
Rights.
|
|
37662
|
-
|
|
37663
|
-
d. Effective Technological Measures means those measures that, in the
|
|
37664
|
-
absence of proper authority, may not be circumvented under laws
|
|
37665
|
-
fulfilling obligations under Article 11 of the WIPO Copyright
|
|
37666
|
-
Treaty adopted on December 20, 1996, and/or similar international
|
|
37667
|
-
agreements.
|
|
37668
|
-
|
|
37669
|
-
e. Exceptions and Limitations means fair use, fair dealing, and/or
|
|
37670
|
-
any other exception or limitation to Copyright and Similar Rights
|
|
37671
|
-
that applies to Your use of the Licensed Material.
|
|
37672
|
-
|
|
37673
|
-
f. Licensed Material means the artistic or literary work, database,
|
|
37674
|
-
or other material to which the Licensor applied this Public
|
|
37675
|
-
License.
|
|
37676
|
-
|
|
37677
|
-
g. Licensed Rights means the rights granted to You subject to the
|
|
37678
|
-
terms and conditions of this Public License, which are limited to
|
|
37679
|
-
all Copyright and Similar Rights that apply to Your use of the
|
|
37680
|
-
Licensed Material and that the Licensor has authority to license.
|
|
37681
|
-
|
|
37682
|
-
h. Licensor means the individual(s) or entity(ies) granting rights
|
|
37683
|
-
under this Public License.
|
|
37684
|
-
|
|
37685
|
-
i. Share means to provide material to the public by any means or
|
|
37686
|
-
process that requires permission under the Licensed Rights, such
|
|
37687
|
-
as reproduction, public display, public performance, distribution,
|
|
37688
|
-
dissemination, communication, or importation, and to make material
|
|
37689
|
-
available to the public including in ways that members of the
|
|
37690
|
-
public may access the material from a place and at a time
|
|
37691
|
-
individually chosen by them.
|
|
37692
|
-
|
|
37693
|
-
j. Sui Generis Database Rights means rights other than copyright
|
|
37694
|
-
resulting from Directive 96/9/EC of the European Parliament and of
|
|
37695
|
-
the Council of 11 March 1996 on the legal protection of databases,
|
|
37696
|
-
as amended and/or succeeded, as well as other essentially
|
|
37697
|
-
equivalent rights anywhere in the world.
|
|
37698
|
-
|
|
37699
|
-
k. You means the individual or entity exercising the Licensed Rights
|
|
37700
|
-
under this Public License. Your has a corresponding meaning.
|
|
37701
|
-
|
|
37702
|
-
|
|
37703
|
-
Section 2 -- Scope.
|
|
37704
|
-
|
|
37705
|
-
a. License grant.
|
|
37706
|
-
|
|
37707
|
-
1. Subject to the terms and conditions of this Public License,
|
|
37708
|
-
the Licensor hereby grants You a worldwide, royalty-free,
|
|
37709
|
-
non-sublicensable, non-exclusive, irrevocable license to
|
|
37710
|
-
exercise the Licensed Rights in the Licensed Material to:
|
|
37711
|
-
|
|
37712
|
-
a. reproduce and Share the Licensed Material, in whole or
|
|
37713
|
-
in part; and
|
|
37714
|
-
|
|
37715
|
-
b. produce, reproduce, and Share Adapted Material.
|
|
37716
|
-
|
|
37717
|
-
2. Exceptions and Limitations. For the avoidance of doubt, where
|
|
37718
|
-
Exceptions and Limitations apply to Your use, this Public
|
|
37719
|
-
License does not apply, and You do not need to comply with
|
|
37720
|
-
its terms and conditions.
|
|
37721
|
-
|
|
37722
|
-
3. Term. The term of this Public License is specified in Section
|
|
37723
|
-
6(a).
|
|
37724
|
-
|
|
37725
|
-
4. Media and formats; technical modifications allowed. The
|
|
37726
|
-
Licensor authorizes You to exercise the Licensed Rights in
|
|
37727
|
-
all media and formats whether now known or hereafter created,
|
|
37728
|
-
and to make technical modifications necessary to do so. The
|
|
37729
|
-
Licensor waives and/or agrees not to assert any right or
|
|
37730
|
-
authority to forbid You from making technical modifications
|
|
37731
|
-
necessary to exercise the Licensed Rights, including
|
|
37732
|
-
technical modifications necessary to circumvent Effective
|
|
37733
|
-
Technological Measures. For purposes of this Public License,
|
|
37734
|
-
simply making modifications authorized by this Section 2(a)
|
|
37735
|
-
(4) never produces Adapted Material.
|
|
37736
|
-
|
|
37737
|
-
5. Downstream recipients.
|
|
37738
|
-
|
|
37739
|
-
a. Offer from the Licensor -- Licensed Material. Every
|
|
37740
|
-
recipient of the Licensed Material automatically
|
|
37741
|
-
receives an offer from the Licensor to exercise the
|
|
37742
|
-
Licensed Rights under the terms and conditions of this
|
|
37743
|
-
Public License.
|
|
37744
|
-
|
|
37745
|
-
b. No downstream restrictions. You may not offer or impose
|
|
37746
|
-
any additional or different terms or conditions on, or
|
|
37747
|
-
apply any Effective Technological Measures to, the
|
|
37748
|
-
Licensed Material if doing so restricts exercise of the
|
|
37749
|
-
Licensed Rights by any recipient of the Licensed
|
|
37750
|
-
Material.
|
|
37751
|
-
|
|
37752
|
-
6. No endorsement. Nothing in this Public License constitutes or
|
|
37753
|
-
may be construed as permission to assert or imply that You
|
|
37754
|
-
are, or that Your use of the Licensed Material is, connected
|
|
37755
|
-
with, or sponsored, endorsed, or granted official status by,
|
|
37756
|
-
the Licensor or others designated to receive attribution as
|
|
37757
|
-
provided in Section 3(a)(1)(A)(i).
|
|
37758
|
-
|
|
37759
|
-
b. Other rights.
|
|
37760
|
-
|
|
37761
|
-
1. Moral rights, such as the right of integrity, are not
|
|
37762
|
-
licensed under this Public License, nor are publicity,
|
|
37763
|
-
privacy, and/or other similar personality rights; however, to
|
|
37764
|
-
the extent possible, the Licensor waives and/or agrees not to
|
|
37765
|
-
assert any such rights held by the Licensor to the limited
|
|
37766
|
-
extent necessary to allow You to exercise the Licensed
|
|
37767
|
-
Rights, but not otherwise.
|
|
37768
|
-
|
|
37769
|
-
2. Patent and trademark rights are not licensed under this
|
|
37770
|
-
Public License.
|
|
37771
|
-
|
|
37772
|
-
3. To the extent possible, the Licensor waives any right to
|
|
37773
|
-
collect royalties from You for the exercise of the Licensed
|
|
37774
|
-
Rights, whether directly or through a collecting society
|
|
37775
|
-
under any voluntary or waivable statutory or compulsory
|
|
37776
|
-
licensing scheme. In all other cases the Licensor expressly
|
|
37777
|
-
reserves any right to collect such royalties.
|
|
37778
|
-
|
|
37779
|
-
|
|
37780
|
-
Section 3 -- License Conditions.
|
|
37781
|
-
|
|
37782
|
-
Your exercise of the Licensed Rights is expressly made subject to the
|
|
37783
|
-
following conditions.
|
|
37784
|
-
|
|
37785
|
-
a. Attribution.
|
|
37786
|
-
|
|
37787
|
-
1. If You Share the Licensed Material (including in modified
|
|
37788
|
-
form), You must:
|
|
37789
|
-
|
|
37790
|
-
a. retain the following if it is supplied by the Licensor
|
|
37791
|
-
with the Licensed Material:
|
|
37792
|
-
|
|
37793
|
-
i. identification of the creator(s) of the Licensed
|
|
37794
|
-
Material and any others designated to receive
|
|
37795
|
-
attribution, in any reasonable manner requested by
|
|
37796
|
-
the Licensor (including by pseudonym if
|
|
37797
|
-
designated);
|
|
37798
|
-
|
|
37799
|
-
ii. a copyright notice;
|
|
37800
|
-
|
|
37801
|
-
iii. a notice that refers to this Public License;
|
|
37802
|
-
|
|
37803
|
-
iv. a notice that refers to the disclaimer of
|
|
37804
|
-
warranties;
|
|
37805
|
-
|
|
37806
|
-
v. a URI or hyperlink to the Licensed Material to the
|
|
37807
|
-
extent reasonably practicable;
|
|
37808
|
-
|
|
37809
|
-
b. indicate if You modified the Licensed Material and
|
|
37810
|
-
retain an indication of any previous modifications; and
|
|
37811
|
-
|
|
37812
|
-
c. indicate the Licensed Material is licensed under this
|
|
37813
|
-
Public License, and include the text of, or the URI or
|
|
37814
|
-
hyperlink to, this Public License.
|
|
37815
|
-
|
|
37816
|
-
2. You may satisfy the conditions in Section 3(a)(1) in any
|
|
37817
|
-
reasonable manner based on the medium, means, and context in
|
|
37818
|
-
which You Share the Licensed Material. For example, it may be
|
|
37819
|
-
reasonable to satisfy the conditions by providing a URI or
|
|
37820
|
-
hyperlink to a resource that includes the required
|
|
37821
|
-
information.
|
|
37822
|
-
|
|
37823
|
-
3. If requested by the Licensor, You must remove any of the
|
|
37824
|
-
information required by Section 3(a)(1)(A) to the extent
|
|
37825
|
-
reasonably practicable.
|
|
37826
|
-
|
|
37827
|
-
4. If You Share Adapted Material You produce, the Adapter's
|
|
37828
|
-
License You apply must not prevent recipients of the Adapted
|
|
37829
|
-
Material from complying with this Public License.
|
|
37830
|
-
|
|
37831
|
-
|
|
37832
|
-
Section 4 -- Sui Generis Database Rights.
|
|
37833
|
-
|
|
37834
|
-
Where the Licensed Rights include Sui Generis Database Rights that
|
|
37835
|
-
apply to Your use of the Licensed Material:
|
|
37836
|
-
|
|
37837
|
-
a. for the avoidance of doubt, Section 2(a)(1) grants You the right
|
|
37838
|
-
to extract, reuse, reproduce, and Share all or a substantial
|
|
37839
|
-
portion of the contents of the database;
|
|
37840
|
-
|
|
37841
|
-
b. if You include all or a substantial portion of the database
|
|
37842
|
-
contents in a database in which You have Sui Generis Database
|
|
37843
|
-
Rights, then the database in which You have Sui Generis Database
|
|
37844
|
-
Rights (but not its individual contents) is Adapted Material; and
|
|
37845
|
-
|
|
37846
|
-
c. You must comply with the conditions in Section 3(a) if You Share
|
|
37847
|
-
all or a substantial portion of the contents of the database.
|
|
37848
|
-
|
|
37849
|
-
For the avoidance of doubt, this Section 4 supplements and does not
|
|
37850
|
-
replace Your obligations under this Public License where the Licensed
|
|
37851
|
-
Rights include other Copyright and Similar Rights.
|
|
37852
|
-
|
|
37853
|
-
|
|
37854
|
-
Section 5 -- Disclaimer of Warranties and Limitation of Liability.
|
|
37855
|
-
|
|
37856
|
-
a. UNLESS OTHERWISE SEPARATELY UNDERTAKEN BY THE LICENSOR, TO THE
|
|
37857
|
-
EXTENT POSSIBLE, THE LICENSOR OFFERS THE LICENSED MATERIAL AS-IS
|
|
37858
|
-
AND AS-AVAILABLE, AND MAKES NO REPRESENTATIONS OR WARRANTIES OF
|
|
37859
|
-
ANY KIND CONCERNING THE LICENSED MATERIAL, WHETHER EXPRESS,
|
|
37860
|
-
IMPLIED, STATUTORY, OR OTHER. THIS INCLUDES, WITHOUT LIMITATION,
|
|
37861
|
-
WARRANTIES OF TITLE, MERCHANTABILITY, FITNESS FOR A PARTICULAR
|
|
37862
|
-
PURPOSE, NON-INFRINGEMENT, ABSENCE OF LATENT OR OTHER DEFECTS,
|
|
37863
|
-
ACCURACY, OR THE PRESENCE OR ABSENCE OF ERRORS, WHETHER OR NOT
|
|
37864
|
-
KNOWN OR DISCOVERABLE. WHERE DISCLAIMERS OF WARRANTIES ARE NOT
|
|
37865
|
-
ALLOWED IN FULL OR IN PART, THIS DISCLAIMER MAY NOT APPLY TO YOU.
|
|
37866
|
-
|
|
37867
|
-
b. TO THE EXTENT POSSIBLE, IN NO EVENT WILL THE LICENSOR BE LIABLE
|
|
37868
|
-
TO YOU ON ANY LEGAL THEORY (INCLUDING, WITHOUT LIMITATION,
|
|
37869
|
-
NEGLIGENCE) OR OTHERWISE FOR ANY DIRECT, SPECIAL, INDIRECT,
|
|
37870
|
-
INCIDENTAL, CONSEQUENTIAL, PUNITIVE, EXEMPLARY, OR OTHER LOSSES,
|
|
37871
|
-
COSTS, EXPENSES, OR DAMAGES ARISING OUT OF THIS PUBLIC LICENSE OR
|
|
37872
|
-
USE OF THE LICENSED MATERIAL, EVEN IF THE LICENSOR HAS BEEN
|
|
37873
|
-
ADVISED OF THE POSSIBILITY OF SUCH LOSSES, COSTS, EXPENSES, OR
|
|
37874
|
-
DAMAGES. WHERE A LIMITATION OF LIABILITY IS NOT ALLOWED IN FULL OR
|
|
37875
|
-
IN PART, THIS LIMITATION MAY NOT APPLY TO YOU.
|
|
37876
|
-
|
|
37877
|
-
c. The disclaimer of warranties and limitation of liability provided
|
|
37878
|
-
above shall be interpreted in a manner that, to the extent
|
|
37879
|
-
possible, most closely approximates an absolute disclaimer and
|
|
37880
|
-
waiver of all liability.
|
|
37881
|
-
|
|
37882
|
-
|
|
37883
|
-
Section 6 -- Term and Termination.
|
|
37884
|
-
|
|
37885
|
-
a. This Public License applies for the term of the Copyright and
|
|
37886
|
-
Similar Rights licensed here. However, if You fail to comply with
|
|
37887
|
-
this Public License, then Your rights under this Public License
|
|
37888
|
-
terminate automatically.
|
|
37889
|
-
|
|
37890
|
-
b. Where Your right to use the Licensed Material has terminated under
|
|
37891
|
-
Section 6(a), it reinstates:
|
|
37892
|
-
|
|
37893
|
-
1. automatically as of the date the violation is cured, provided
|
|
37894
|
-
it is cured within 30 days of Your discovery of the
|
|
37895
|
-
violation; or
|
|
37896
|
-
|
|
37897
|
-
2. upon express reinstatement by the Licensor.
|
|
37898
|
-
|
|
37899
|
-
For the avoidance of doubt, this Section 6(b) does not affect any
|
|
37900
|
-
right the Licensor may have to seek remedies for Your violations
|
|
37901
|
-
of this Public License.
|
|
37902
|
-
|
|
37903
|
-
c. For the avoidance of doubt, the Licensor may also offer the
|
|
37904
|
-
Licensed Material under separate terms or conditions or stop
|
|
37905
|
-
distributing the Licensed Material at any time; however, doing so
|
|
37906
|
-
will not terminate this Public License.
|
|
37907
|
-
|
|
37908
|
-
d. Sections 1, 5, 6, 7, and 8 survive termination of this Public
|
|
37909
|
-
License.
|
|
37910
|
-
|
|
37911
|
-
|
|
37912
|
-
Section 7 -- Other Terms and Conditions.
|
|
37913
|
-
|
|
37914
|
-
a. The Licensor shall not be bound by any additional or different
|
|
37915
|
-
terms or conditions communicated by You unless expressly agreed.
|
|
37916
|
-
|
|
37917
|
-
b. Any arrangements, understandings, or agreements regarding the
|
|
37918
|
-
Licensed Material not stated herein are separate from and
|
|
37919
|
-
independent of the terms and conditions of this Public License.
|
|
37920
|
-
|
|
37921
|
-
|
|
37922
|
-
Section 8 -- Interpretation.
|
|
37923
|
-
|
|
37924
|
-
a. For the avoidance of doubt, this Public License does not, and
|
|
37925
|
-
shall not be interpreted to, reduce, limit, restrict, or impose
|
|
37926
|
-
conditions on any use of the Licensed Material that could lawfully
|
|
37927
|
-
be made without permission under this Public License.
|
|
37928
|
-
|
|
37929
|
-
b. To the extent possible, if any provision of this Public License is
|
|
37930
|
-
deemed unenforceable, it shall be automatically reformed to the
|
|
37931
|
-
minimum extent necessary to make it enforceable. If the provision
|
|
37932
|
-
cannot be reformed, it shall be severed from this Public License
|
|
37933
|
-
without affecting the enforceability of the remaining terms and
|
|
37934
|
-
conditions.
|
|
37935
|
-
|
|
37936
|
-
c. No term or condition of this Public License will be waived and no
|
|
37937
|
-
failure to comply consented to unless expressly agreed to by the
|
|
37938
|
-
Licensor.
|
|
37939
|
-
|
|
37940
|
-
d. Nothing in this Public License constitutes or may be interpreted
|
|
37941
|
-
as a limitation upon, or waiver of, any privileges and immunities
|
|
37942
|
-
that apply to the Licensor or You, including from the legal
|
|
37943
|
-
processes of any jurisdiction or authority.
|
|
37944
|
-
|
|
37945
|
-
|
|
37946
|
-
=======================================================================
|
|
37947
|
-
|
|
37948
|
-
Creative Commons is not a party to its public
|
|
37949
|
-
licenses. Notwithstanding, Creative Commons may elect to apply one of
|
|
37950
|
-
its public licenses to material it publishes and in those instances
|
|
37951
|
-
will be considered the “Licensor.” The text of the Creative Commons
|
|
37952
|
-
public licenses is dedicated to the public domain under the CC0 Public
|
|
37953
|
-
Domain Dedication. Except for the limited purpose of indicating that
|
|
37954
|
-
material is shared under a Creative Commons public license or as
|
|
37955
|
-
otherwise permitted by the Creative Commons policies published at
|
|
37956
|
-
creativecommons.org/policies, Creative Commons does not authorize the
|
|
37957
|
-
use of the trademark "Creative Commons" or any other trademark or logo
|
|
37958
|
-
of Creative Commons without its prior written consent including,
|
|
37959
|
-
without limitation, in connection with any unauthorized modifications
|
|
37960
|
-
to any of its public licenses or any other arrangements,
|
|
37961
|
-
understandings, or agreements concerning use of licensed material. For
|
|
37962
|
-
the avoidance of doubt, this paragraph does not form part of the
|
|
37963
|
-
public licenses.
|
|
37964
|
-
|
|
37965
|
-
Creative Commons may be contacted at creativecommons.org.
|
|
37966
|
-
|
|
37967
|
-
---
|
|
37968
|
-
|
|
37969
37568
|
The following software may be included in this product: caniuse-lite (1.0.30001717)
|
|
37970
37569
|
This software contains the following license and notice below:
|
|
37971
37570
|
|
package/package.json
CHANGED
|
@@ -241,10 +241,23 @@ import { I18nProvider } from '@cloudscape-design/components/i18n';
|
|
|
241
241
|
import messages from '@cloudscape-design/components/i18n/messages/all.en';
|
|
242
242
|
import { RouterProvider, createRouter } from '@tanstack/react-router';
|
|
243
243
|
import { routeTree } from './routeTree.gen';
|
|
244
|
+
import { useAuth } from 'react-oidc-context';
|
|
245
|
+
import { useRuntimeConfig } from './hooks/useRuntimeConfig';
|
|
244
246
|
|
|
245
247
|
import '@cloudscape-design/global-styles/index.css';
|
|
246
248
|
|
|
247
|
-
|
|
249
|
+
export type RouterProviderContextType = {
|
|
250
|
+
auth: ReturnType<typeof useAuth> | undefined;
|
|
251
|
+
runtimeConfig: ReturnType<typeof useRuntimeConfig> | undefined;
|
|
252
|
+
};
|
|
253
|
+
|
|
254
|
+
const router = createRouter({
|
|
255
|
+
routeTree,
|
|
256
|
+
context: {
|
|
257
|
+
auth: undefined,
|
|
258
|
+
runtimeConfig: undefined,
|
|
259
|
+
},
|
|
260
|
+
});
|
|
248
261
|
|
|
249
262
|
// Register the router instance for type safety
|
|
250
263
|
declare module '@tanstack/react-router' {
|
|
@@ -253,12 +266,18 @@ declare module '@tanstack/react-router' {
|
|
|
253
266
|
}
|
|
254
267
|
}
|
|
255
268
|
|
|
269
|
+
const App = () => {
|
|
270
|
+
const auth = useAuth();
|
|
271
|
+
const runtimeConfig = useRuntimeConfig();
|
|
272
|
+
return <RouterProvider router={router} context={{ auth, runtimeConfig }} />;
|
|
273
|
+
};
|
|
274
|
+
|
|
256
275
|
const root = document.getElementById('root');
|
|
257
276
|
root &&
|
|
258
277
|
createRoot(root).render(
|
|
259
278
|
<React.StrictMode>
|
|
260
279
|
<I18nProvider locale="en" messages={[messages]}>
|
|
261
|
-
<
|
|
280
|
+
<App />
|
|
262
281
|
</I18nProvider>
|
|
263
282
|
</React.StrictMode>,
|
|
264
283
|
);
|
|
@@ -532,10 +551,23 @@ import { I18nProvider } from '@cloudscape-design/components/i18n';
|
|
|
532
551
|
import messages from '@cloudscape-design/components/i18n/messages/all.en';
|
|
533
552
|
import { RouterProvider, createRouter } from '@tanstack/react-router';
|
|
534
553
|
import { routeTree } from './routeTree.gen';
|
|
554
|
+
import { useAuth } from 'react-oidc-context';
|
|
555
|
+
import { useRuntimeConfig } from './hooks/useRuntimeConfig';
|
|
535
556
|
|
|
536
557
|
import '@cloudscape-design/global-styles/index.css';
|
|
537
558
|
|
|
538
|
-
|
|
559
|
+
export type RouterProviderContextType = {
|
|
560
|
+
auth: ReturnType<typeof useAuth> | undefined;
|
|
561
|
+
runtimeConfig: ReturnType<typeof useRuntimeConfig> | undefined;
|
|
562
|
+
};
|
|
563
|
+
|
|
564
|
+
const router = createRouter({
|
|
565
|
+
routeTree,
|
|
566
|
+
context: {
|
|
567
|
+
auth: undefined,
|
|
568
|
+
runtimeConfig: undefined,
|
|
569
|
+
},
|
|
570
|
+
});
|
|
539
571
|
|
|
540
572
|
// Register the router instance for type safety
|
|
541
573
|
declare module '@tanstack/react-router' {
|
|
@@ -544,12 +576,18 @@ declare module '@tanstack/react-router' {
|
|
|
544
576
|
}
|
|
545
577
|
}
|
|
546
578
|
|
|
579
|
+
const App = () => {
|
|
580
|
+
const auth = useAuth();
|
|
581
|
+
const runtimeConfig = useRuntimeConfig();
|
|
582
|
+
return <RouterProvider router={router} context={{ auth, runtimeConfig }} />;
|
|
583
|
+
};
|
|
584
|
+
|
|
547
585
|
const root = document.getElementById('root');
|
|
548
586
|
root &&
|
|
549
587
|
createRoot(root).render(
|
|
550
588
|
<React.StrictMode>
|
|
551
589
|
<I18nProvider locale="en" messages={[messages]}>
|
|
552
|
-
<
|
|
590
|
+
<App />
|
|
553
591
|
</I18nProvider>
|
|
554
592
|
</React.StrictMode>,
|
|
555
593
|
);
|
|
@@ -561,7 +599,7 @@ exports[`cloudscape-website generator > should handle npm scope prefix correctly
|
|
|
561
599
|
"@cloudscape-design/board-components": "^3.0.94",
|
|
562
600
|
"@cloudscape-design/components": "^3.0.928",
|
|
563
601
|
"@cloudscape-design/global-styles": "^1.0.38",
|
|
564
|
-
"@tanstack/react-router": "^1.121.
|
|
602
|
+
"@tanstack/react-router": "^1.121.16",
|
|
565
603
|
"aws-cdk-lib": "^2.200.0",
|
|
566
604
|
"constructs": "^10.4.2",
|
|
567
605
|
"react": "19.0.0",
|
|
@@ -4,10 +4,23 @@ import { I18nProvider } from '@cloudscape-design/components/i18n';
|
|
|
4
4
|
import messages from '@cloudscape-design/components/i18n/messages/all.en';
|
|
5
5
|
import { RouterProvider, createRouter } from '@tanstack/react-router';
|
|
6
6
|
import { routeTree } from './routeTree.gen';
|
|
7
|
+
import { useAuth } from 'react-oidc-context';
|
|
8
|
+
import { useRuntimeConfig } from './hooks/useRuntimeConfig';
|
|
7
9
|
|
|
8
10
|
import '@cloudscape-design/global-styles/index.css';
|
|
9
11
|
|
|
10
|
-
|
|
12
|
+
export type RouterProviderContextType = {
|
|
13
|
+
auth: ReturnType<typeof useAuth> | undefined;
|
|
14
|
+
runtimeConfig: ReturnType<typeof useRuntimeConfig> | undefined;
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
const router = createRouter({
|
|
18
|
+
routeTree,
|
|
19
|
+
context: {
|
|
20
|
+
auth: undefined,
|
|
21
|
+
runtimeConfig: undefined,
|
|
22
|
+
},
|
|
23
|
+
});
|
|
11
24
|
|
|
12
25
|
// Register the router instance for type safety
|
|
13
26
|
declare module '@tanstack/react-router' {
|
|
@@ -16,12 +29,18 @@ declare module '@tanstack/react-router' {
|
|
|
16
29
|
}
|
|
17
30
|
}
|
|
18
31
|
|
|
32
|
+
const App = () => {
|
|
33
|
+
const auth = useAuth();
|
|
34
|
+
const runtimeConfig = useRuntimeConfig();
|
|
35
|
+
return <RouterProvider router={router} context={{ auth, runtimeConfig }} />;
|
|
36
|
+
};
|
|
37
|
+
|
|
19
38
|
const root = document.getElementById('root');
|
|
20
39
|
root &&
|
|
21
40
|
createRoot(root).render(
|
|
22
41
|
<React.StrictMode>
|
|
23
42
|
<I18nProvider locale="en" messages={[messages]}>
|
|
24
|
-
<
|
|
43
|
+
<App/>
|
|
25
44
|
</I18nProvider>
|
|
26
45
|
</React.StrictMode>,
|
|
27
46
|
);
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { createRootRouteWithContext } from '@tanstack/react-router';
|
|
2
2
|
import AppLayout from '../components/AppLayout';
|
|
3
|
+
import { RouterProviderContextType } from '../main';
|
|
3
4
|
|
|
4
|
-
export const Route =
|
|
5
|
+
export const Route = createRootRouteWithContext<RouterProviderContextType>()({
|
|
5
6
|
component: () => <AppLayout />,
|
|
6
7
|
});
|
|
@@ -203,7 +203,13 @@ function tsCloudScapeWebsiteGenerator(tree, schema) {
|
|
|
203
203
|
'@cloudscape-design/board-components',
|
|
204
204
|
'@cloudscape-design/global-styles',
|
|
205
205
|
'@tanstack/react-router',
|
|
206
|
-
]), (0, versions_1.withVersions)([
|
|
206
|
+
]), (0, versions_1.withVersions)([
|
|
207
|
+
'@tanstack/router-plugin',
|
|
208
|
+
'@tanstack/router-generator',
|
|
209
|
+
'@tanstack/virtual-file-routes',
|
|
210
|
+
'@tanstack/router-utils',
|
|
211
|
+
'vite-tsconfig-paths',
|
|
212
|
+
]));
|
|
207
213
|
yield (0, metrics_1.addGeneratorMetricsIfApplicable)(tree, [
|
|
208
214
|
exports.CLOUDSCAPE_WEBSITE_APP_GENERATOR_INFO,
|
|
209
215
|
]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"generator.js","sourceRoot":"","sources":["../../../../../../packages/nx-plugin/src/cloudscape-website/app/generator.ts"],"names":[],"mappings":";;;AAwDA,
|
|
1
|
+
{"version":3,"file":"generator.js","sourceRoot":"","sources":["../../../../../../packages/nx-plugin/src/cloudscape-website/app/generator.ts"],"names":[],"mappings":";;;AAwDA,oEAocC;;AA5fD;;;GAGG;AACH,uCAaoB;AACpB,2CAKoB;AAEpB,qCAAiD;AACjD,qEAA0E;AAC1E,yFAGiD;AACjD,qDAAwE;AACxE,oEAAmE;AACnE,mDAAoD;AACpD,6CAA0D;AAC1D,6CAA6D;AAC7D,yCAKyB;AACzB,+CAA0D;AAC1D,+BAAgC;AAChC,gFAAyC;AACzC,+CAAoD;AAC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AA4B,EAC1B,IAAI,EACJ,IAAA,uBAAY,EAAC;YACX,+BAA+B;YAC/B,qCAAqC;YACrC,kCAAkC;YAClC,wBAAwB;SACzB,CAAC,EACF,IAAA,uBAAY,EAAC;YACX,yBAAyB;YACzB,4BAA4B;YAC5B,+BAA+B;YAC/B,wBAAwB;YACxB,qBAAqB;SACtB,CAAC,CACH,CAAC;QAEF,MAAM,IAAA,yCAA+B,EAAC,IAAI,EAAE;YAC1C,6CAAqC;SACtC,CAAC,CAAC;QAEH,MAAM,IAAA,6BAAoB,EAAC,IAAI,CAAC,CAAC;QACjC,OAAO,GAAG,EAAE;YACV,IAAI,CAAC,MAAM,CAAC,WAAW,EAAE,CAAC;gBACxB,IAAA,4BAAmB,EAAC,IAAI,CAAC,CAAC;YAC5B,CAAC;QACH,CAAC,CAAC;IACJ,CAAC;CAAA;AACD,kBAAe,4BAA4B,CAAC"}
|
|
@@ -435,12 +435,14 @@ import RuntimeConfigProvider from './components/RuntimeConfig';
|
|
|
435
435
|
import { RuntimeConfigProvider } from './components/RuntimeConfig';
|
|
436
436
|
import { RouterProvider, createRouter } from '@tanstack/react-router';
|
|
437
437
|
|
|
438
|
-
export function
|
|
438
|
+
export function Main() {
|
|
439
|
+
const App = () => <RouterProvider router={router} />;
|
|
440
|
+
|
|
439
441
|
return (
|
|
440
442
|
<RuntimeConfigProvider>
|
|
441
443
|
<CognitoAuth>
|
|
442
444
|
<RuntimeConfigProvider>
|
|
443
|
-
<
|
|
445
|
+
<App />
|
|
444
446
|
</RuntimeConfigProvider>
|
|
445
447
|
</CognitoAuth>
|
|
446
448
|
</RuntimeConfigProvider>
|
|
@@ -108,9 +108,11 @@ exports[`runtime-config generator > should modify main.tsx correctly > modified-
|
|
|
108
108
|
import { RouterProvider } from '@tanstack/react-router';
|
|
109
109
|
|
|
110
110
|
export function App() {
|
|
111
|
+
const App = () => <RouterProvider router={router} />;
|
|
112
|
+
|
|
111
113
|
return (
|
|
112
114
|
<RuntimeConfigProvider>
|
|
113
|
-
<
|
|
115
|
+
<App />
|
|
114
116
|
</RuntimeConfigProvider>
|
|
115
117
|
);
|
|
116
118
|
}
|
|
@@ -38,7 +38,7 @@ function runtimeConfigGenerator(tree, options) {
|
|
|
38
38
|
(0, ast_1.prependStatements)(tree, mainTsxPath, [runtimeContextImport]);
|
|
39
39
|
let locatedTargetNode = false;
|
|
40
40
|
(0, ast_1.replaceIfExists)(tree, mainTsxPath, 'JsxSelfClosingElement', (node) => {
|
|
41
|
-
if (node.tagName.getText() !== '
|
|
41
|
+
if (node.tagName.getText() !== 'App') {
|
|
42
42
|
return node;
|
|
43
43
|
}
|
|
44
44
|
else {
|
|
@@ -47,7 +47,7 @@ function runtimeConfigGenerator(tree, options) {
|
|
|
47
47
|
return typescript_1.factory.createJsxElement(typescript_1.factory.createJsxOpeningElement(typescript_1.factory.createIdentifier('RuntimeConfigProvider'), undefined, typescript_1.factory.createJsxAttributes([])), [node], typescript_1.factory.createJsxClosingElement(typescript_1.factory.createIdentifier('RuntimeConfigProvider')));
|
|
48
48
|
});
|
|
49
49
|
if (!locatedTargetNode) {
|
|
50
|
-
throw new Error('Could not locate the
|
|
50
|
+
throw new Error('Could not locate the App element in main.tsx');
|
|
51
51
|
}
|
|
52
52
|
yield (0, metrics_1.addGeneratorMetricsIfApplicable)(tree, [exports.RUNTIME_CONFIG_GENERATOR_INFO]);
|
|
53
53
|
yield (0, format_1.formatFilesInSubtree)(tree);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"generator.js","sourceRoot":"","sources":["../../../../../../packages/nx-plugin/src/cloudscape-website/runtime-config/generator.ts"],"names":[],"mappings":";;;AA0BA,wDA6FC;;AAvHD;;;GAGG;AACH,uCAKoB;AAEpB,2CAA4D;AAC5D,qEAA0E;AAC1E,qDAAwE;AACxE,+CAA0D;AAC1D,yCAA4E;AAC5E,uCAIwB;AACxB,iDAAsE;AAEzD,QAAA,6BAA6B,GACxC,IAAA,qBAAgB,EAAC,UAAU,CA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,CAAC,4BAA4B,EAAE,IAAI,CAAC,CAChE,CAAC;QAEF,IAAA,uBAAiB,EAAC,IAAI,EAAE,WAAW,EAAE,CAAC,oBAAoB,CAAC,CAAC,CAAC;QAE7D,IAAI,iBAAiB,GAAG,KAAK,CAAC;QAC9B,IAAA,qBAAe,EACb,IAAI,EACJ,WAAW,EACX,uBAAuB,EACvB,CAAC,IAA2B,EAAE,EAAE;YAC9B,IAAI,IAAI,CAAC,OAAO,CAAC,OAAO,EAAE,KAAK,
|
|
1
|
+
{"version":3,"file":"generator.js","sourceRoot":"","sources":["../../../../../../packages/nx-plugin/src/cloudscape-website/runtime-config/generator.ts"],"names":[],"mappings":";;;AA0BA,wDA6FC;;AAvHD;;;GAGG;AACH,uCAKoB;AAEpB,2CAA4D;AAC5D,qEAA0E;AAC1E,qDAAwE;AACxE,+CAA0D;AAC1D,yCAA4E;AAC5E,uCAIwB;AACxB,iDAAsE;AAEzD,QAAA,6BAA6B,GACxC,IAAA,qBAAgB,EAAC,UAAU,CAAC,CAAC;AAE/B,SAAsB,sBAAsB,CAC1C,IAAU,EACV,OAAqC;;QAErC,MAAM,OAAO,GAAG,IAAA,wCAAmC,EACjD,IAAI,EACJ,OAAO,CAAC,OAAO,CAChB,CAAC,UAAU,CAAC;QACb,MAAM,WAAW,GAAG,IAAA,0BAAiB,EAAC,OAAO,EAAE,UAAU,CAAC,CAAC;QAC3D,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC,EAAE,CAAC;YAC9B,MAAM,IAAI,KAAK,CACb,2DAA2D,WAAW,EAAE,CACzE,CAAC;QACJ,CAAC;QAED,MAAM,iBAAiB,GAAG,IAAA,0BAAiB,EACzC,OAAO,EACP,YAAY,EACZ,eAAe,EACf,WAAW,CACZ,CAAC;QACF,IACE,IAAI,CAAC,MAAM,CAAC,iBAAiB,CAAC;YAC9B,IAAA,WAAK,EACH,IAAI,EACJ,WAAW,EACX,mEAAmE,CACpE,CAAC,MAAM,GAAG,CAA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,CAAC,IAAI,CAAC,EACN,oBAAO,CAAC,uBAAuB,CAC7B,oBAAO,CAAC,gBAAgB,CAAC,uBAAuB,CAAC,CAClD,CACF,CAAC;QACJ,CAAC,CACF,CAAC;QAEF,IAAI,CAAC,iBAAiB,EAAE,CAAC;YACvB,MAAM,IAAI,KAAK,CAAC,8CAA8C,CAAC,CAAC;QAClE,CAAC;QAED,MAAM,IAAA,yCAA+B,EAAC,IAAI,EAAE,CAAC,qCAA6B,CAAC,CAAC,CAAC;QAE7E,MAAM,IAAA,6BAAoB,EAAC,IAAI,CAAC,CAAC;IACnC,CAAC;CAAA;AACD,kBAAe,sBAAsB,CAAC"}
|
|
@@ -211,15 +211,16 @@ exports[`fastapi react generator > should instrument providers in main.tsx > mai
|
|
|
211
211
|
"import TestApiProvider from './components/TestApiProvider';
|
|
212
212
|
import QueryClientProvider from './components/QueryClientProvider';
|
|
213
213
|
import RuntimeConfigProvider from './components/RuntimeConfig';
|
|
214
|
-
import { App } from './app';
|
|
215
214
|
import { RouterProvider } from '@tanstack/react-router';
|
|
216
215
|
|
|
216
|
+
const App = () => <RouterProvider router={router} />;
|
|
217
|
+
|
|
217
218
|
export function Main() {
|
|
218
219
|
return (
|
|
219
220
|
<RuntimeConfigProvider>
|
|
220
221
|
<QueryClientProvider>
|
|
221
222
|
<TestApiProvider>
|
|
222
|
-
<
|
|
223
|
+
<App />
|
|
223
224
|
</TestApiProvider>
|
|
224
225
|
</QueryClientProvider>
|
|
225
226
|
</RuntimeConfigProvider>
|
|
@@ -107,14 +107,14 @@ const fastApiReactGenerator = (tree, options) => tslib_1.__awaiter(void 0, void
|
|
|
107
107
|
const hasQueryClientProvider = (0, ast_1.query)(tree, mainTsxPath, 'JsxOpeningElement[tagName.name="QueryClientProvider"]').length > 0;
|
|
108
108
|
if (!hasQueryClientProvider) {
|
|
109
109
|
(0, ast_1.addSingleImport)(tree, mainTsxPath, 'QueryClientProvider', './components/QueryClientProvider');
|
|
110
|
-
(0, ast_1.replace)(tree, mainTsxPath, 'JsxSelfClosingElement[tagName.name="
|
|
110
|
+
(0, ast_1.replace)(tree, mainTsxPath, 'JsxSelfClosingElement[tagName.name="App"]', (node) => (0, ast_1.createJsxElementFromIdentifier)('QueryClientProvider', [node]));
|
|
111
111
|
}
|
|
112
112
|
// Add the api provider if it does not exist
|
|
113
113
|
const providerName = `${apiNameClassName}Provider`;
|
|
114
114
|
const hasProvider = (0, ast_1.query)(tree, mainTsxPath, `JsxOpeningElement[tagName.name="${providerName}"]`).length > 0;
|
|
115
115
|
if (!hasProvider) {
|
|
116
116
|
(0, ast_1.addSingleImport)(tree, mainTsxPath, providerName, `./components/${providerName}`);
|
|
117
|
-
(0, ast_1.replace)(tree, mainTsxPath, 'JsxSelfClosingElement[tagName.name="
|
|
117
|
+
(0, ast_1.replace)(tree, mainTsxPath, 'JsxSelfClosingElement[tagName.name="App"]', (node) => (0, ast_1.createJsxElementFromIdentifier)(providerName, [node]));
|
|
118
118
|
}
|
|
119
119
|
// Update serve-local on the website to use our local FastAPI server
|
|
120
120
|
(0, serve_local_1.addTargetToServeLocal)(tree, frontendProjectConfig.name, fastApiProjectConfig.name, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"generator.js","sourceRoot":"","sources":["../../../../../../../packages/nx-plugin/src/py/fast-api/react/generator.ts"],"names":[],"mappings":";;;;AAAA;;;GAGG;AACH,uCAOoB;AAEpB,oFAA8F;AAC9F,gFAAyC;AACzC,kDAAuD;AACvD,gDAAmD;AACnD,kDAA6D;AAC7D,sDAAuD;AACvD,4CAAqD;AACrD,4CAK4B;AAE5B,0CAI2B;AAC3B,oDAAyE;AACzE,yCAAkD;AAClD,qEAA4E;AAE/D,QAAA,6BAA6B,GACxC,IAAA,qBAAgB,EAAC,UAAU,CAAC,CAAC;AAExB,MAAM,qBAAqB,GAAG,CACnC,IAAU,EACV,OAAoC,EACpC,EAAE;;IACF,MAAM,qBAAqB,GAAG,IAAA,wCAAmC,EAC/D,IAAI,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B,IAAA,qBAAe,EACb,IAAI,EACJ,WAAW,EACX,qBAAqB,EACrB,kCAAkC,CACnC,CAAC;QACF,IAAA,aAAO,EACL,IAAI,EACJ,WAAW,EACX,
|
|
1
|
+
{"version":3,"file":"generator.js","sourceRoot":"","sources":["../../../../../../../packages/nx-plugin/src/py/fast-api/react/generator.ts"],"names":[],"mappings":";;;;AAAA;;;GAGG;AACH,uCAOoB;AAEpB,oFAA8F;AAC9F,gFAAyC;AACzC,kDAAuD;AACvD,gDAAmD;AACnD,kDAA6D;AAC7D,sDAAuD;AACvD,4CAAqD;AACrD,4CAK4B;AAE5B,0CAI2B;AAC3B,oDAAyE;AACzE,yCAAkD;AAClD,qEAA4E;AAE/D,QAAA,6BAA6B,GACxC,IAAA,qBAAgB,EAAC,UAAU,CAAC,CAAC;AAExB,MAAM,qBAAqB,GAAG,CACnC,IAAU,EACV,OAAoC,EACpC,EAAE;;IACF,MAAM,qBAAqB,GAAG,IAAA,wCAAmC,EAC/D,IAAI,EACJ,OAAO,CAAC,mBAAmB,CAC5B,CAAC;IACF,MAAM,oBAAoB,GAAG,IAAA,wCAAmC,EAC9D,IAAI,EACJ,OAAO,CAAC,kBAAkB,CAC3B,CAAC;IAEF,mEAAmE;IACnE,MAAM,EAAE,QAAQ,EAAE,GAAG,IAAA,+BAAoB,EAAC,IAAI,EAAE;QAC9C,OAAO,EAAE,oBAAoB;KAC9B,CAAC,CAAC;IAEH,MAAM,QAAQ,GAAG,oBAAoB,CAAC,QAAe,CAAC;IACtD,MAAM,OAAO,GAAG,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,OAAO,CAAC;IAClC,MAAM,IAAI,GAAG,MAAA,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,IAAI,mCAAI,KAAK,CAAC;IACrC,MAAM,IAAI,GAAG,MAAA,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,IAAI,mCAAI,IAAI,CAAC;IACpC,MAAM,eAAe,GAAG,YAAY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A2C,EAC3C,CAAC,IAA2B,EAAE,EAAE,CAC9B,IAAA,oCAA8B,EAAC,YAAY,EAAE,CAAC,IAAI,CAAC,CAAC,CACvD,CAAC;IACJ,CAAC;IAED,oEAAoE;IACpE,IAAA,mCAAqB,EACnB,IAAI,EACJ,qBAAqB,CAAC,IAAI,EAC1B,oBAAoB,CAAC,IAAI,EACzB;QACE,GAAG,EAAE,oBAAoB,IAAI,GAAG;QAChC,OAAO;QACP,mFAAmF;QACnF,2DAA2D;QAC3D,2BAA2B,EAAE,CAAC,oBAAoB,CAAC;KACpD,CACF,CAAC;IAEF,IAAA,qCAA4B,EAC1B,IAAI,EACJ,IAAA,uBAAY,EAAC;QACX,GAAI,CAAC,IAAI,KAAK,KAAK;YACjB,CAAC,CAAC;gBACE,gBAAgB;gBAChB,oBAAoB;gBACpB,kCAAkC;gBAClC,+CAA+C;gBAC/C,WAAW;aACZ;YACH,CAAC,CAAC,EAAE,CAAS;QACf,GAAI,CAAC,IAAI,KAAK,SAAS,CAAC,CAAC,CAAC,CAAC,oBAAoB,CAAC,CAAC,CAAC,CAAC,EAAE,CAAS;QAC9D,uBAAuB;KACxB,CAAC,EACF,IAAA,uBAAY,EAAC,CAAC,eAAe,CAAC,CAAC,CAChC,CAAC;IAEF,MAAM,IAAA,yCAA+B,EAAC,IAAI,EAAE,CAAC,qCAA6B,CAAC,CAAC,CAAC;IAE7E,MAAM,IAAA,6BAAoB,EAAC,IAAI,CAAC,CAAC;IACjC,OAAO,GAAG,EAAE;QACV,IAAA,4BAAmB,EAAC,IAAI,CAAC,CAAC;IAC5B,CAAC,CAAC;AACJ,CAAC,CAAA,CAAC;AA5OW,QAAA,qBAAqB,yBA4OhC;AAEF,kBAAe,6BAAqB,CAAC"}
|
|
@@ -218,15 +218,16 @@ exports[`trpc react generator > should modify main.tsx correctly > main.tsx 1`]
|
|
|
218
218
|
"import TestApiClientProvider from './components/TestApiClientProvider';
|
|
219
219
|
import QueryClientProvider from './components/QueryClientProvider';
|
|
220
220
|
import RuntimeConfigProvider from './components/RuntimeConfig';
|
|
221
|
-
import { App } from './app';
|
|
222
221
|
import { RouterProvider } from '@tanstack/react-router';
|
|
223
222
|
|
|
223
|
+
const App = () => <RouterProvider router={router} />;
|
|
224
|
+
|
|
224
225
|
export function Main() {
|
|
225
226
|
return (
|
|
226
227
|
<RuntimeConfigProvider>
|
|
227
228
|
<QueryClientProvider>
|
|
228
229
|
<TestApiClientProvider>
|
|
229
|
-
<
|
|
230
|
+
<App />
|
|
230
231
|
</TestApiClientProvider>
|
|
231
232
|
</QueryClientProvider>
|
|
232
233
|
</RuntimeConfigProvider>
|
|
@@ -52,12 +52,12 @@ function reactGenerator(tree, options) {
|
|
|
52
52
|
// Check if QueryClientProvider already exists
|
|
53
53
|
const hasQueryClientProvider = (0, ast_1.query)(tree, mainTsxPath, 'JsxOpeningElement[tagName.name="QueryClientProvider"]').length > 0;
|
|
54
54
|
if (!hasQueryClientProvider) {
|
|
55
|
-
(0, ast_1.replace)(tree, mainTsxPath, 'JsxSelfClosingElement[tagName.name="
|
|
55
|
+
(0, ast_1.replace)(tree, mainTsxPath, 'JsxSelfClosingElement[tagName.name="App"]', (node) => (0, ast_1.createJsxElementFromIdentifier)('QueryClientProvider', [node]));
|
|
56
56
|
}
|
|
57
57
|
// Check if client provider already exists
|
|
58
58
|
const hasProvider = (0, ast_1.query)(tree, mainTsxPath, `JsxOpeningElement[tagName.name="${clientProviderName}"]`).length > 0;
|
|
59
59
|
if (!hasProvider) {
|
|
60
|
-
(0, ast_1.replace)(tree, mainTsxPath, 'JsxSelfClosingElement[tagName.name="
|
|
60
|
+
(0, ast_1.replace)(tree, mainTsxPath, 'JsxSelfClosingElement[tagName.name="App"]', (node) => (0, ast_1.createJsxElementFromIdentifier)(clientProviderName, [node]));
|
|
61
61
|
}
|
|
62
62
|
(0, serve_local_1.addTargetToServeLocal)(tree, frontendProjectConfig.name, backendProjectConfig.name, {
|
|
63
63
|
url: `http://localhost:${port}/`,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"generator.js","sourceRoot":"","sources":["../../../../../../packages/nx-plugin/src/trpc/react/generator.ts"],"names":[],"mappings":";;;AAoCA,wCAiKC;;AArMD;;;GAGG;AACH,uCAOoB;AAGpB,iFAA2F;AAC3F,qDAAqD;AACrD,mDAAoD;AACpD,yCAKyB;AACzB,6CAAgD;AAChD,+CAA0D;AAC1D,uCAIwB;AACxB,iDAAsE;AACtE,kEAAyE;AAE5D,QAAA,yBAAyB,GACpC,IAAA,qBAAgB,EAAC,UAAU,CAAC,CAAC;AAE/B,SAAsB,cAAc,CAClC,IAAU,EACV,OAA6B;;;QAE7B,MAAM,qBAAqB,GAAG,IAAA,wCAAmC,EAC/D,IAAI,EACJ,OAAO,CAAC,mBAAmB,CAC5B,CAAC;QACF,MAAM,oBAAoB,GAAG,IAAA,wCAAmC,EAC9D,IAAI,EACJ,OAAO,CAAC,kBAAkB,CAC3B,CAAC;QACF,uDAAuD;QACvD,MAAM,QAAQ,GAAG,oBAAoB,CAAC,QAAe,CAAC;QACtD,MAAM,OAAO,GAAG,QAAQ,CAAC,OAAO,CAAC;QACjC,MAAM,IAAI,GAAG,MAAA,QAAQ,CAAC,IAAI,mCAAI,KAAK,CAAC;QACpC,MAAM,IAAI,GAAG,MAAA,QAAQ,CAAC,IAAI,mCAAI,IAAI,CAAC;QACnC,MAAM,gBAAgB,GAAG,IAAA,mBAAW,EAAC,OAAO,CAAC,CAAC;QAC9C,MAAM,mBAAmB,GAAG,IAAA,wBAAY,EAAC,oBAAoB,CAAC,IAAI,CAAC,CAAC;QAEpE,IAAA,sBAAa,EACX,IAAI,EACJ,IAAA,0BAAiB,EAAC,SAAS,EAAE,OAAO,CAAC,EACrC,qBAAqB,CAAC,IAAI,gCAExB,OAAO,EACP,gBAAgB,EAAE,IAAA,mBAAW,EAAC,OAAO,CAAC,IACnC,OAAO,KACV,IAAI;YACJ,mBAAmB,KAErB;YACE,iBAAiB,EAAE,0BAAiB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
|
+
{"version":3,"file":"generator.js","sourceRoot":"","sources":["../../../../../../packages/nx-plugin/src/trpc/react/generator.ts"],"names":[],"mappings":";;;AAoCA,wCAiKC;;AArMD;;;GAGG;AACH,uCAOoB;AAGpB,iFAA2F;AAC3F,qDAAqD;AACrD,mDAAoD;AACpD,yCAKyB;AACzB,6CAAgD;AAChD,+CAA0D;AAC1D,uCAIwB;AACxB,iDAAsE;AACtE,kEAAyE;AAE5D,QAAA,yBAAyB,GACpC,IAAA,qBAAgB,EAAC,UAAU,CAAC,CAAC;AAE/B,SAAsB,cAAc,CAClC,IAAU,EACV,OAA6B;;;QAE7B,MAAM,qBAAqB,GAAG,IAAA,wCAAmC,EAC/D,IAAI,EACJ,OAAO,CAAC,mBAAmB,CAC5B,CAAC;QACF,MAAM,oBAAoB,GAAG,IAAA,wCAAmC,EAC9D,IAAI,EACJ,OAAO,CAAC,kBAAkB,CAC3B,CAAC;QACF,uDAAuD;QACvD,MAAM,QAAQ,GAAG,oBAAoB,CAAC,QAAe,CAAC;QACtD,MAAM,OAAO,GAAG,QAAQ,CAAC,OAAO,CAAC;QACjC,MAAM,IAAI,GAAG,MAAA,QAAQ,CAAC,IAAI,mCAAI,KAAK,CAAC;QACpC,MAAM,IAAI,GAAG,MAAA,QAAQ,CAAC,IAAI,mCAAI,IAAI,CAAC;QACnC,MAAM,gBAAgB,GAAG,IAAA,mBAAW,EAAC,OAAO,CAAC,CAAC;QAC9C,MAAM,mBAAmB,GAAG,IAAA,wBAAY,EAAC,oBAAoB,CAAC,IAAI,CAAC,CAAC;QAEpE,IAAA,sBAAa,EACX,IAAI,EACJ,IAAA,0BAAiB,EAAC,SAAS,EAAE,OAAO,CAAC,EACrC,qBAAqB,CAAC,IAAI,gCAExB,OAAO,EACP,gBAAgB,EAAE,IAAA,mBAAW,EAAC,OAAO,CAAC,IACnC,OAAO,KACV,IAAI;YACJ,mBAAmB,KAErB;YACE,iBAAiB,EAAE,0BAAiB,CAAC,YAAY;SAClD,CACF,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,CAAC,CAAC;QAC5B,CAAC,CAAC;IACJ,CAAC;CAAA;AACD,kBAAe,cAAc,CAAC"}
|
package/src/utils/versions.d.ts
CHANGED
|
@@ -13,8 +13,11 @@ export declare const VERSIONS: {
|
|
|
13
13
|
readonly '@nxlv/python': "^21.0.0";
|
|
14
14
|
readonly '@nx/devkit': "~21.0.3";
|
|
15
15
|
readonly '@modelcontextprotocol/sdk': "^1.11.3";
|
|
16
|
-
readonly '@tanstack/react-router': "^1.121.
|
|
17
|
-
readonly '@tanstack/router-plugin': "^1.121.
|
|
16
|
+
readonly '@tanstack/react-router': "^1.121.16";
|
|
17
|
+
readonly '@tanstack/router-plugin': "^1.121.16";
|
|
18
|
+
readonly '@tanstack/router-generator': "^1.121.16";
|
|
19
|
+
readonly '@tanstack/virtual-file-routes': "^1.120.17";
|
|
20
|
+
readonly '@tanstack/router-utils': "^1.121.0";
|
|
18
21
|
readonly '@cloudscape-design/board-components': "^3.0.94";
|
|
19
22
|
readonly '@cloudscape-design/components': "^3.0.928";
|
|
20
23
|
readonly '@cloudscape-design/global-styles': "^1.0.38";
|
|
@@ -47,5 +50,5 @@ export declare const VERSIONS: {
|
|
|
47
50
|
* Add versions to the given dependencies
|
|
48
51
|
*/
|
|
49
52
|
export declare const withVersions: (deps: (keyof typeof VERSIONS)[]) => {
|
|
50
|
-
[k: string]: "^0.0.60" | "^3.775.0" | "^2.17.0" | "^21.0.0" | "~21.0.3" | "^1.11.3" | "^1.121.
|
|
53
|
+
[k: string]: "^0.0.60" | "^3.775.0" | "^2.17.0" | "^21.0.0" | "~21.0.3" | "^1.11.3" | "^1.121.16" | "^1.120.17" | "^1.121.0" | "^3.0.94" | "^3.0.928" | "^1.0.38" | "^5.74.3" | "11.0.0" | "^22.13.13" | "^8.10.148" | "^2.8.18" | "^4.2.0" | "^1.0.20" | "^2.1006.0" | "^2.200.0" | "^3.10.3" | "^10.4.2" | "^2.8.5" | "^0.25.1" | "^5.2.5" | "^2.4.0" | "^3.2.0" | "^3.5.3" | "^0.5.21" | "4.20.1" | "^5.1.4" | "^3.25.50";
|
|
51
54
|
};
|
package/src/utils/versions.js
CHANGED
|
@@ -16,8 +16,11 @@ exports.VERSIONS = {
|
|
|
16
16
|
'@nxlv/python': '^21.0.0',
|
|
17
17
|
'@nx/devkit': '~21.0.3',
|
|
18
18
|
'@modelcontextprotocol/sdk': '^1.11.3',
|
|
19
|
-
'@tanstack/react-router': '^1.121.
|
|
20
|
-
'@tanstack/router-plugin': '^1.121.
|
|
19
|
+
'@tanstack/react-router': '^1.121.16',
|
|
20
|
+
'@tanstack/router-plugin': '^1.121.16',
|
|
21
|
+
'@tanstack/router-generator': '^1.121.16',
|
|
22
|
+
'@tanstack/virtual-file-routes': '^1.120.17',
|
|
23
|
+
'@tanstack/router-utils': '^1.121.0',
|
|
21
24
|
'@cloudscape-design/board-components': '^3.0.94',
|
|
22
25
|
'@cloudscape-design/components': '^3.0.928',
|
|
23
26
|
'@cloudscape-design/global-styles': '^1.0.38',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"versions.js","sourceRoot":"","sources":["../../../../../packages/nx-plugin/src/utils/versions.ts"],"names":[],"mappings":";;;AAAA;;;GAGG;AACU,QAAA,QAAQ,GAAG;IACtB,iCAAiC,EAAE,SAAS;IAC5C,kCAAkC,EAAE,UAAU;IAC9C,+BAA+B,EAAE,UAAU;IAC3C,+CAA+C,EAAE,UAAU;IAC3D,+BAA+B,EAAE,SAAS;IAC1C,gCAAgC,EAAE,SAAS;IAC3C,+BAA+B,EAAE,SAAS;IAC1C,cAAc,EAAE,SAAS;IACzB,YAAY,EAAE,SAAS;IACvB,2BAA2B,EAAE,SAAS;IACtC,wBAAwB,EAAE,
|
|
1
|
+
{"version":3,"file":"versions.js","sourceRoot":"","sources":["../../../../../packages/nx-plugin/src/utils/versions.ts"],"names":[],"mappings":";;;AAAA;;;GAGG;AACU,QAAA,QAAQ,GAAG;IACtB,iCAAiC,EAAE,SAAS;IAC5C,kCA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