@lokalise/harmony 4.2.0 → 4.3.1
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/dist/harmony.cjs +50 -34
- package/dist/harmony.cjs.map +1 -1
- package/dist/harmony.mjs +50 -34
- package/dist/harmony.mjs.map +1 -1
- package/dist/harmony10.cjs +1 -1
- package/dist/harmony10.mjs +1 -1
- package/dist/harmony100.cjs +3 -3
- package/dist/harmony100.cjs.map +1 -1
- package/dist/harmony100.mjs +3 -3
- package/dist/harmony100.mjs.map +1 -1
- package/dist/harmony101.cjs +29 -43
- package/dist/harmony101.cjs.map +1 -1
- package/dist/harmony101.mjs +29 -43
- package/dist/harmony101.mjs.map +1 -1
- package/dist/harmony102.cjs +64 -37
- package/dist/harmony102.cjs.map +1 -1
- package/dist/harmony102.mjs +64 -37
- package/dist/harmony102.mjs.map +1 -1
- package/dist/harmony103.cjs +3 -38
- package/dist/harmony103.cjs.map +1 -1
- package/dist/harmony103.mjs +3 -38
- package/dist/harmony103.mjs.map +1 -1
- package/dist/harmony104.cjs +44 -10
- package/dist/harmony104.cjs.map +1 -1
- package/dist/harmony104.mjs +43 -9
- package/dist/harmony104.mjs.map +1 -1
- package/dist/harmony105.cjs +37 -31
- package/dist/harmony105.cjs.map +1 -1
- package/dist/harmony105.mjs +38 -32
- package/dist/harmony105.mjs.map +1 -1
- package/dist/harmony106.cjs +37 -13
- package/dist/harmony106.cjs.map +1 -1
- package/dist/harmony106.mjs +37 -13
- package/dist/harmony106.mjs.map +1 -1
- package/dist/harmony107.cjs +9 -12
- package/dist/harmony107.cjs.map +1 -1
- package/dist/harmony107.mjs +8 -11
- package/dist/harmony107.mjs.map +1 -1
- package/dist/harmony108.cjs +34 -13
- package/dist/harmony108.cjs.map +1 -1
- package/dist/harmony108.mjs +33 -12
- package/dist/harmony108.mjs.map +1 -1
- package/dist/harmony109.cjs +1 -1
- package/dist/harmony109.mjs +1 -1
- package/dist/harmony110.cjs +1 -1
- package/dist/harmony110.mjs +1 -1
- package/dist/harmony111.cjs +14 -3
- package/dist/harmony111.cjs.map +1 -1
- package/dist/harmony111.mjs +14 -3
- package/dist/harmony111.mjs.map +1 -1
- package/dist/harmony112.cjs +3 -18
- package/dist/harmony112.cjs.map +1 -1
- package/dist/harmony112.mjs +3 -18
- package/dist/harmony112.mjs.map +1 -1
- package/dist/harmony113.cjs +13 -71
- package/dist/harmony113.cjs.map +1 -1
- package/dist/harmony113.mjs +15 -73
- package/dist/harmony113.mjs.map +1 -1
- package/dist/harmony114.cjs +75 -11
- package/dist/harmony114.cjs.map +1 -1
- package/dist/harmony114.mjs +75 -11
- package/dist/harmony114.mjs.map +1 -1
- package/dist/harmony115.cjs +12 -34
- package/dist/harmony115.cjs.map +1 -1
- package/dist/harmony115.mjs +12 -34
- package/dist/harmony115.mjs.map +1 -1
- package/dist/harmony116.cjs +34 -9
- package/dist/harmony116.cjs.map +1 -1
- package/dist/harmony116.mjs +34 -9
- package/dist/harmony116.mjs.map +1 -1
- package/dist/harmony117.cjs +8 -46
- package/dist/harmony117.cjs.map +1 -1
- package/dist/harmony117.mjs +9 -47
- package/dist/harmony117.mjs.map +1 -1
- package/dist/harmony118.cjs +47 -9
- package/dist/harmony118.cjs.map +1 -1
- package/dist/harmony118.mjs +46 -8
- package/dist/harmony118.mjs.map +1 -1
- package/dist/harmony119.cjs +10 -12
- package/dist/harmony119.cjs.map +1 -1
- package/dist/harmony119.mjs +9 -11
- package/dist/harmony119.mjs.map +1 -1
- package/dist/harmony120.cjs +12 -21
- package/dist/harmony120.cjs.map +1 -1
- package/dist/harmony120.mjs +11 -20
- package/dist/harmony120.mjs.map +1 -1
- package/dist/harmony121.cjs +12 -99
- package/dist/harmony121.cjs.map +1 -1
- package/dist/harmony121.mjs +11 -81
- package/dist/harmony121.mjs.map +1 -1
- package/dist/harmony122.cjs +11 -20
- package/dist/harmony122.cjs.map +1 -1
- package/dist/harmony122.mjs +11 -20
- package/dist/harmony122.mjs.map +1 -1
- package/dist/harmony123.cjs +21 -8
- package/dist/harmony123.cjs.map +1 -1
- package/dist/harmony123.mjs +20 -7
- package/dist/harmony123.mjs.map +1 -1
- package/dist/harmony124.cjs +98 -7
- package/dist/harmony124.cjs.map +1 -1
- package/dist/harmony124.mjs +81 -7
- package/dist/harmony124.mjs.map +1 -1
- package/dist/harmony125.cjs +21 -17
- package/dist/harmony125.cjs.map +1 -1
- package/dist/harmony125.mjs +21 -17
- package/dist/harmony125.mjs.map +1 -1
- package/dist/harmony126.cjs +20 -87
- package/dist/harmony126.cjs.map +1 -1
- package/dist/harmony126.mjs +20 -87
- package/dist/harmony126.mjs.map +1 -1
- package/dist/harmony127.cjs +8 -30
- package/dist/harmony127.cjs.map +1 -1
- package/dist/harmony127.mjs +8 -30
- package/dist/harmony127.mjs.map +1 -1
- package/dist/harmony128.cjs +8 -9
- package/dist/harmony128.cjs.map +1 -1
- package/dist/harmony128.mjs +7 -8
- package/dist/harmony128.mjs.map +1 -1
- package/dist/harmony129.cjs +16 -11
- package/dist/harmony129.cjs.map +1 -1
- package/dist/harmony129.mjs +16 -11
- package/dist/harmony129.mjs.map +1 -1
- package/dist/harmony130.cjs +86 -14
- package/dist/harmony130.cjs.map +1 -1
- package/dist/harmony130.mjs +86 -14
- package/dist/harmony130.mjs.map +1 -1
- package/dist/harmony131.cjs +29 -18
- package/dist/harmony131.cjs.map +1 -1
- package/dist/harmony131.mjs +29 -18
- package/dist/harmony131.mjs.map +1 -1
- package/dist/harmony132.cjs +9 -10
- package/dist/harmony132.cjs.map +1 -1
- package/dist/harmony132.mjs +8 -9
- package/dist/harmony132.mjs.map +1 -1
- package/dist/harmony133.cjs +6 -20
- package/dist/harmony133.cjs.map +1 -1
- package/dist/harmony133.mjs +7 -21
- package/dist/harmony133.mjs.map +1 -1
- package/dist/harmony134.cjs +9 -6
- package/dist/harmony134.cjs.map +1 -1
- package/dist/harmony134.mjs +11 -8
- package/dist/harmony134.mjs.map +1 -1
- package/dist/harmony135.cjs +14 -33
- package/dist/harmony135.cjs.map +1 -1
- package/dist/harmony135.mjs +16 -35
- package/dist/harmony135.mjs.map +1 -1
- package/dist/harmony136.cjs +7 -9
- package/dist/harmony136.cjs.map +1 -1
- package/dist/harmony136.mjs +9 -11
- package/dist/harmony136.mjs.map +1 -1
- package/dist/harmony137.cjs +18 -14
- package/dist/harmony137.cjs.map +1 -1
- package/dist/harmony137.mjs +19 -15
- package/dist/harmony137.mjs.map +1 -1
- package/dist/harmony138.cjs +7 -31
- package/dist/harmony138.cjs.map +1 -1
- package/dist/harmony138.mjs +8 -32
- package/dist/harmony138.mjs.map +1 -1
- package/dist/harmony139.cjs +38 -21
- package/dist/harmony139.cjs.map +1 -1
- package/dist/harmony139.mjs +37 -20
- package/dist/harmony139.mjs.map +1 -1
- package/dist/harmony140.cjs +9 -18
- package/dist/harmony140.cjs.map +1 -1
- package/dist/harmony140.mjs +10 -19
- package/dist/harmony140.mjs.map +1 -1
- package/dist/harmony141.cjs +22 -6
- package/dist/harmony141.cjs.map +1 -1
- package/dist/harmony141.mjs +21 -5
- package/dist/harmony141.mjs.map +1 -1
- package/dist/harmony142.cjs +36 -15
- package/dist/harmony142.cjs.map +1 -1
- package/dist/harmony142.mjs +35 -14
- package/dist/harmony142.mjs.map +1 -1
- package/dist/harmony143.cjs +21 -5
- package/dist/harmony143.cjs.map +1 -1
- package/dist/harmony143.mjs +21 -5
- package/dist/harmony143.mjs.map +1 -1
- package/dist/harmony144.cjs +22 -6
- package/dist/harmony144.cjs.map +1 -1
- package/dist/harmony144.mjs +21 -5
- package/dist/harmony144.mjs.map +1 -1
- package/dist/harmony145.cjs +7 -3
- package/dist/harmony145.cjs.map +1 -1
- package/dist/harmony145.mjs +6 -2
- package/dist/harmony145.mjs.map +1 -1
- package/dist/harmony146.cjs +16 -4
- package/dist/harmony146.cjs.map +1 -1
- package/dist/harmony146.mjs +15 -3
- package/dist/harmony146.mjs.map +1 -1
- package/dist/harmony147.cjs +6 -4
- package/dist/harmony147.cjs.map +1 -1
- package/dist/harmony147.mjs +5 -3
- package/dist/harmony147.mjs.map +1 -1
- package/dist/harmony148.cjs +6 -4
- package/dist/harmony148.cjs.map +1 -1
- package/dist/harmony148.mjs +5 -3
- package/dist/harmony148.mjs.map +1 -1
- package/dist/harmony149.cjs +10 -14
- package/dist/harmony149.cjs.map +1 -1
- package/dist/harmony149.mjs +10 -14
- package/dist/harmony149.mjs.map +1 -1
- package/dist/harmony150.cjs +2 -3
- package/dist/harmony150.cjs.map +1 -1
- package/dist/harmony150.mjs +2 -3
- package/dist/harmony150.mjs.map +1 -1
- package/dist/harmony151.cjs +3 -14
- package/dist/harmony151.cjs.map +1 -1
- package/dist/harmony151.mjs +3 -14
- package/dist/harmony151.mjs.map +1 -1
- package/dist/harmony152.cjs +3 -10
- package/dist/harmony152.cjs.map +1 -1
- package/dist/harmony152.mjs +3 -10
- package/dist/harmony152.mjs.map +1 -1
- package/dist/harmony153.cjs +3 -96
- package/dist/harmony153.cjs.map +1 -1
- package/dist/harmony153.mjs +3 -96
- package/dist/harmony153.mjs.map +1 -1
- package/dist/harmony154.cjs +14 -13
- package/dist/harmony154.cjs.map +1 -1
- package/dist/harmony154.mjs +14 -13
- package/dist/harmony154.mjs.map +1 -1
- package/dist/harmony155.cjs +3 -14
- package/dist/harmony155.cjs.map +1 -1
- package/dist/harmony155.mjs +3 -14
- package/dist/harmony155.mjs.map +1 -1
- package/dist/harmony156.cjs +14 -36
- package/dist/harmony156.cjs.map +1 -1
- package/dist/harmony156.mjs +14 -36
- package/dist/harmony156.mjs.map +1 -1
- package/dist/harmony157.cjs +87 -19
- package/dist/harmony157.cjs.map +1 -1
- package/dist/harmony157.mjs +87 -19
- package/dist/harmony157.mjs.map +1 -1
- package/dist/harmony158.cjs +14 -10
- package/dist/harmony158.cjs.map +1 -1
- package/dist/harmony158.mjs +13 -9
- package/dist/harmony158.mjs.map +1 -1
- package/dist/harmony159.cjs +15 -7
- package/dist/harmony159.cjs.map +1 -1
- package/dist/harmony159.mjs +14 -6
- package/dist/harmony159.mjs.map +1 -1
- package/dist/harmony160.cjs +37 -10
- package/dist/harmony160.cjs.map +1 -1
- package/dist/harmony160.mjs +36 -9
- package/dist/harmony160.mjs.map +1 -1
- package/dist/harmony161.cjs +29 -25
- package/dist/harmony161.cjs.map +1 -1
- package/dist/harmony161.mjs +28 -24
- package/dist/harmony161.mjs.map +1 -1
- package/dist/harmony162.cjs +32 -6
- package/dist/harmony162.cjs.map +1 -1
- package/dist/harmony162.mjs +31 -5
- package/dist/harmony162.mjs.map +1 -1
- package/dist/harmony163.cjs +14 -13
- package/dist/harmony163.cjs.map +1 -1
- package/dist/harmony163.mjs +13 -12
- package/dist/harmony163.mjs.map +1 -1
- package/dist/harmony164.cjs +16 -7
- package/dist/harmony164.cjs.map +1 -1
- package/dist/harmony164.mjs +15 -6
- package/dist/harmony164.mjs.map +1 -1
- package/dist/harmony165.cjs +15 -31
- package/dist/harmony165.cjs.map +1 -1
- package/dist/harmony165.mjs +15 -31
- package/dist/harmony165.mjs.map +1 -1
- package/dist/harmony166.cjs +10 -14
- package/dist/harmony166.cjs.map +1 -1
- package/dist/harmony166.mjs +9 -13
- package/dist/harmony166.mjs.map +1 -1
- package/dist/harmony167.cjs +7 -16
- package/dist/harmony167.cjs.map +1 -1
- package/dist/harmony167.mjs +6 -15
- package/dist/harmony167.mjs.map +1 -1
- package/dist/harmony168.cjs +10 -17
- package/dist/harmony168.cjs.map +1 -1
- package/dist/harmony168.mjs +9 -16
- package/dist/harmony168.mjs.map +1 -1
- package/dist/harmony169.cjs +25 -12
- package/dist/harmony169.cjs.map +1 -1
- package/dist/harmony169.mjs +24 -11
- package/dist/harmony169.mjs.map +1 -1
- package/dist/harmony17.cjs +1 -1
- package/dist/harmony17.mjs +1 -1
- package/dist/harmony170.cjs +7 -17
- package/dist/harmony170.cjs.map +1 -1
- package/dist/harmony170.mjs +6 -16
- package/dist/harmony170.mjs.map +1 -1
- package/dist/harmony171.cjs +13 -22
- package/dist/harmony171.cjs.map +1 -1
- package/dist/harmony171.mjs +12 -21
- package/dist/harmony171.mjs.map +1 -1
- package/dist/harmony172.cjs +7 -13
- package/dist/harmony172.cjs.map +1 -1
- package/dist/harmony172.mjs +6 -12
- package/dist/harmony172.mjs.map +1 -1
- package/dist/harmony173.cjs +11 -4
- package/dist/harmony173.cjs.map +1 -1
- package/dist/harmony173.mjs +11 -4
- package/dist/harmony173.mjs.map +1 -1
- package/dist/harmony174.cjs +15 -5
- package/dist/harmony174.cjs.map +1 -1
- package/dist/harmony174.mjs +15 -5
- package/dist/harmony174.mjs.map +1 -1
- package/dist/harmony175.cjs +20 -11
- package/dist/harmony175.cjs.map +1 -1
- package/dist/harmony175.mjs +20 -11
- package/dist/harmony175.mjs.map +1 -1
- package/dist/harmony176.cjs +10 -30
- package/dist/harmony176.cjs.map +1 -1
- package/dist/harmony176.mjs +10 -30
- package/dist/harmony176.mjs.map +1 -1
- package/dist/harmony177.cjs +5 -13
- package/dist/harmony177.cjs.map +1 -1
- package/dist/harmony177.mjs +5 -13
- package/dist/harmony177.mjs.map +1 -1
- package/dist/harmony178.cjs +15 -0
- package/dist/harmony178.cjs.map +1 -0
- package/dist/harmony178.mjs +15 -0
- package/dist/harmony178.mjs.map +1 -0
- package/dist/harmony179.cjs +35 -0
- package/dist/harmony179.cjs.map +1 -0
- package/dist/harmony179.mjs +35 -0
- package/dist/harmony179.mjs.map +1 -0
- package/dist/harmony180.cjs +17 -0
- package/dist/harmony180.cjs.map +1 -0
- package/dist/harmony180.mjs +17 -0
- package/dist/harmony180.mjs.map +1 -0
- package/dist/harmony181.cjs +7 -0
- package/dist/harmony181.cjs.map +1 -0
- package/dist/harmony181.mjs +7 -0
- package/dist/harmony181.mjs.map +1 -0
- package/dist/harmony2.cjs +3 -3
- package/dist/harmony2.mjs +3 -3
- package/dist/harmony20.cjs +1 -1
- package/dist/harmony20.mjs +1 -1
- package/dist/harmony28.cjs +2 -2
- package/dist/harmony28.mjs +2 -2
- package/dist/harmony29.cjs +1 -1
- package/dist/harmony29.mjs +1 -1
- package/dist/harmony3.cjs +4 -4
- package/dist/harmony3.mjs +4 -4
- package/dist/harmony30.cjs +1 -1
- package/dist/harmony30.mjs +1 -1
- package/dist/harmony31.cjs +1 -1
- package/dist/harmony31.mjs +1 -1
- package/dist/harmony4.cjs +4 -19
- package/dist/harmony4.cjs.map +1 -1
- package/dist/harmony4.mjs +4 -19
- package/dist/harmony4.mjs.map +1 -1
- package/dist/harmony40.cjs +1 -1
- package/dist/harmony40.mjs +1 -1
- package/dist/harmony41.cjs +1 -1
- package/dist/harmony41.mjs +1 -1
- package/dist/harmony42.cjs +1 -1
- package/dist/harmony42.mjs +1 -1
- package/dist/harmony47.cjs +1 -1
- package/dist/harmony47.mjs +1 -1
- package/dist/harmony48.cjs +2 -2
- package/dist/harmony48.mjs +2 -2
- package/dist/harmony49.cjs +2 -2
- package/dist/harmony49.mjs +2 -2
- package/dist/harmony5.cjs +3 -3
- package/dist/harmony5.mjs +3 -3
- package/dist/harmony50.cjs +1 -1
- package/dist/harmony50.mjs +1 -1
- package/dist/harmony51.cjs +2 -2
- package/dist/harmony51.mjs +2 -2
- package/dist/harmony52.cjs +1 -1
- package/dist/harmony52.mjs +1 -1
- package/dist/harmony53.cjs +1 -1
- package/dist/harmony53.mjs +1 -1
- package/dist/harmony54.cjs +1 -1
- package/dist/harmony54.mjs +1 -1
- package/dist/harmony58.cjs +6 -6
- package/dist/harmony58.cjs.map +1 -1
- package/dist/harmony58.mjs +6 -6
- package/dist/harmony58.mjs.map +1 -1
- package/dist/harmony59.cjs +6 -5
- package/dist/harmony59.cjs.map +1 -1
- package/dist/harmony59.mjs +6 -5
- package/dist/harmony59.mjs.map +1 -1
- package/dist/harmony6.cjs +2 -2
- package/dist/harmony6.mjs +2 -2
- package/dist/harmony60.cjs +6 -15
- package/dist/harmony60.cjs.map +1 -1
- package/dist/harmony60.mjs +7 -16
- package/dist/harmony60.mjs.map +1 -1
- package/dist/harmony61.cjs +16 -7
- package/dist/harmony61.cjs.map +1 -1
- package/dist/harmony61.mjs +16 -7
- package/dist/harmony61.mjs.map +1 -1
- package/dist/harmony62.cjs +4 -4
- package/dist/harmony62.cjs.map +1 -1
- package/dist/harmony62.mjs +4 -4
- package/dist/harmony62.mjs.map +1 -1
- package/dist/harmony63.cjs +7 -11
- package/dist/harmony63.cjs.map +1 -1
- package/dist/harmony63.mjs +9 -13
- package/dist/harmony63.mjs.map +1 -1
- package/dist/harmony64.cjs +8 -8
- package/dist/harmony64.cjs.map +1 -1
- package/dist/harmony64.mjs +8 -8
- package/dist/harmony64.mjs.map +1 -1
- package/dist/harmony65.cjs +14 -12
- package/dist/harmony65.cjs.map +1 -1
- package/dist/harmony65.mjs +14 -12
- package/dist/harmony65.mjs.map +1 -1
- package/dist/harmony66.cjs +8 -8
- package/dist/harmony66.cjs.map +1 -1
- package/dist/harmony66.mjs +9 -9
- package/dist/harmony66.mjs.map +1 -1
- package/dist/harmony67.cjs +9 -9
- package/dist/harmony67.cjs.map +1 -1
- package/dist/harmony67.mjs +10 -10
- package/dist/harmony67.mjs.map +1 -1
- package/dist/harmony68.cjs +8 -8
- package/dist/harmony68.cjs.map +1 -1
- package/dist/harmony68.mjs +8 -8
- package/dist/harmony68.mjs.map +1 -1
- package/dist/harmony69.cjs +12 -14
- package/dist/harmony69.cjs.map +1 -1
- package/dist/harmony69.mjs +12 -14
- package/dist/harmony69.mjs.map +1 -1
- package/dist/harmony7.cjs +2 -2
- package/dist/harmony7.mjs +2 -2
- package/dist/harmony70.cjs +10 -10
- package/dist/harmony70.cjs.map +1 -1
- package/dist/harmony70.mjs +10 -10
- package/dist/harmony70.mjs.map +1 -1
- package/dist/harmony71.cjs +8 -8
- package/dist/harmony71.cjs.map +1 -1
- package/dist/harmony71.mjs +8 -8
- package/dist/harmony71.mjs.map +1 -1
- package/dist/harmony72.cjs +8 -8
- package/dist/harmony72.cjs.map +1 -1
- package/dist/harmony72.mjs +8 -8
- package/dist/harmony72.mjs.map +1 -1
- package/dist/harmony73.cjs +14 -12
- package/dist/harmony73.cjs.map +1 -1
- package/dist/harmony73.mjs +14 -12
- package/dist/harmony73.mjs.map +1 -1
- package/dist/harmony74.cjs +8 -8
- package/dist/harmony74.cjs.map +1 -1
- package/dist/harmony74.mjs +8 -8
- package/dist/harmony74.mjs.map +1 -1
- package/dist/harmony75.cjs +12 -14
- package/dist/harmony75.cjs.map +1 -1
- package/dist/harmony75.mjs +12 -14
- package/dist/harmony75.mjs.map +1 -1
- package/dist/harmony76.cjs +8 -9
- package/dist/harmony76.cjs.map +1 -1
- package/dist/harmony76.mjs +9 -10
- package/dist/harmony76.mjs.map +1 -1
- package/dist/harmony77.cjs +10 -7
- package/dist/harmony77.cjs.map +1 -1
- package/dist/harmony77.mjs +12 -9
- package/dist/harmony77.mjs.map +1 -1
- package/dist/harmony78.cjs +11 -7
- package/dist/harmony78.cjs.map +1 -1
- package/dist/harmony78.mjs +12 -8
- package/dist/harmony78.mjs.map +1 -1
- package/dist/harmony79.cjs +13 -123
- package/dist/harmony79.cjs.map +1 -1
- package/dist/harmony79.mjs +13 -123
- package/dist/harmony79.mjs.map +1 -1
- package/dist/harmony80.cjs +13 -81
- package/dist/harmony80.cjs.map +1 -1
- package/dist/harmony80.mjs +13 -81
- package/dist/harmony80.mjs.map +1 -1
- package/dist/harmony81.cjs +58 -4
- package/dist/harmony81.cjs.map +1 -1
- package/dist/harmony81.mjs +58 -4
- package/dist/harmony81.mjs.map +1 -1
- package/dist/harmony82.cjs +123 -21
- package/dist/harmony82.cjs.map +1 -1
- package/dist/harmony82.mjs +122 -20
- package/dist/harmony82.mjs.map +1 -1
- package/dist/harmony83.cjs +81 -23
- package/dist/harmony83.cjs.map +1 -1
- package/dist/harmony83.mjs +80 -22
- package/dist/harmony83.mjs.map +1 -1
- package/dist/harmony84.cjs +2 -137
- package/dist/harmony84.cjs.map +1 -1
- package/dist/harmony84.mjs +2 -137
- package/dist/harmony84.mjs.map +1 -1
- package/dist/harmony85.cjs +18 -33
- package/dist/harmony85.cjs.map +1 -1
- package/dist/harmony85.mjs +18 -33
- package/dist/harmony85.mjs.map +1 -1
- package/dist/harmony86.cjs +21 -23
- package/dist/harmony86.cjs.map +1 -1
- package/dist/harmony86.mjs +21 -23
- package/dist/harmony86.mjs.map +1 -1
- package/dist/harmony87.cjs +136 -79
- package/dist/harmony87.cjs.map +1 -1
- package/dist/harmony87.mjs +136 -79
- package/dist/harmony87.mjs.map +1 -1
- package/dist/harmony88.cjs +36 -46
- package/dist/harmony88.cjs.map +1 -1
- package/dist/harmony88.mjs +35 -45
- package/dist/harmony88.mjs.map +1 -1
- package/dist/harmony89.cjs +23 -15
- package/dist/harmony89.cjs.map +1 -1
- package/dist/harmony89.mjs +22 -14
- package/dist/harmony89.mjs.map +1 -1
- package/dist/harmony9.cjs +1 -1
- package/dist/harmony9.mjs +1 -1
- package/dist/harmony90.cjs +85 -3
- package/dist/harmony90.cjs.map +1 -1
- package/dist/harmony90.mjs +84 -2
- package/dist/harmony90.mjs.map +1 -1
- package/dist/harmony91.cjs +48 -3
- package/dist/harmony91.cjs.map +1 -1
- package/dist/harmony91.mjs +47 -2
- package/dist/harmony91.mjs.map +1 -1
- package/dist/harmony92.cjs +19 -16
- package/dist/harmony92.cjs.map +1 -1
- package/dist/harmony92.mjs +18 -15
- package/dist/harmony92.mjs.map +1 -1
- package/dist/harmony93.cjs +2 -18
- package/dist/harmony93.cjs.map +1 -1
- package/dist/harmony93.mjs +2 -18
- package/dist/harmony93.mjs.map +1 -1
- package/dist/harmony94.cjs +2 -61
- package/dist/harmony94.cjs.map +1 -1
- package/dist/harmony94.mjs +2 -61
- package/dist/harmony94.mjs.map +1 -1
- package/dist/harmony95.cjs +16 -9
- package/dist/harmony95.cjs.map +1 -1
- package/dist/harmony95.mjs +15 -8
- package/dist/harmony95.mjs.map +1 -1
- package/dist/harmony96.cjs +19 -30
- package/dist/harmony96.cjs.map +1 -1
- package/dist/harmony96.mjs +18 -29
- package/dist/harmony96.mjs.map +1 -1
- package/dist/harmony97.cjs +62 -4
- package/dist/harmony97.cjs.map +1 -1
- package/dist/harmony97.mjs +61 -3
- package/dist/harmony97.mjs.map +1 -1
- package/dist/harmony98.cjs +7 -28
- package/dist/harmony98.cjs.map +1 -1
- package/dist/harmony98.mjs +8 -29
- package/dist/harmony98.mjs.map +1 -1
- package/dist/harmony99.cjs +27 -64
- package/dist/harmony99.cjs.map +1 -1
- package/dist/harmony99.mjs +27 -64
- package/dist/harmony99.mjs.map +1 -1
- package/dist/types/src/features/navigation/ProjectNavigationPanel.d.ts +1 -1
- package/dist/types/src/features/publicApi/aiConfigurations.d.ts +136 -0
- package/dist/types/src/features/publicApi/hooks/useCreateAiConfigurationMutation.d.ts +54 -0
- package/dist/types/src/features/publicApi/hooks/useListAiConfigurationQuery.d.ts +19 -0
- package/dist/types/src/features/publicApi/node.d.ts +3 -0
- package/dist/types/src/features/publicApi/types/aiConfigurationTypes.d.ts +177 -0
- package/package.json +1 -1
package/dist/harmony4.mjs
CHANGED
|
@@ -2,8 +2,8 @@ import { jsxs, jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import { NavigationPanel } from "./harmony2.mjs";
|
|
3
3
|
import { Breadcrumbs } from "./harmony9.mjs";
|
|
4
4
|
import { NavigationTabs } from "./harmony3.mjs";
|
|
5
|
-
import { useNavigation } from "./
|
|
6
|
-
import { useNavigationData } from "./
|
|
5
|
+
import { useNavigation } from "./harmony101.mjs";
|
|
6
|
+
import { useNavigationData } from "./harmony102.mjs";
|
|
7
7
|
const ProjectNavigationPanel = ({ page, projectId }) => {
|
|
8
8
|
const {
|
|
9
9
|
data: { project, contributor },
|
|
@@ -11,23 +11,8 @@ const ProjectNavigationPanel = ({ page, projectId }) => {
|
|
|
11
11
|
error
|
|
12
12
|
} = useNavigationData(projectId);
|
|
13
13
|
const navigationItems = useNavigation(page, project, contributor);
|
|
14
|
-
if (isLoading) {
|
|
15
|
-
return
|
|
16
|
-
// TODO: replace with loading state
|
|
17
|
-
/* @__PURE__ */ jsxs(NavigationPanel, { children: [
|
|
18
|
-
/* @__PURE__ */ jsx(NavigationPanel.Header, { children: /* @__PURE__ */ jsx("div", { children: "Loading navigation..." }) }),
|
|
19
|
-
/* @__PURE__ */ jsx(NavigationPanel.Tabs, { children: /* @__PURE__ */ jsx("div", { children: "Loading..." }) })
|
|
20
|
-
] })
|
|
21
|
-
);
|
|
22
|
-
}
|
|
23
|
-
if (error) {
|
|
24
|
-
return (
|
|
25
|
-
// TODO: replace with error state
|
|
26
|
-
/* @__PURE__ */ jsxs(NavigationPanel, { children: [
|
|
27
|
-
/* @__PURE__ */ jsx(NavigationPanel.Header, { children: /* @__PURE__ */ jsx("div", { children: "Error loading navigation" }) }),
|
|
28
|
-
/* @__PURE__ */ jsx(NavigationPanel.Tabs, { children: /* @__PURE__ */ jsx("div", { children: "Failed to load navigation data" }) })
|
|
29
|
-
] })
|
|
30
|
-
);
|
|
14
|
+
if (isLoading || error) {
|
|
15
|
+
return null;
|
|
31
16
|
}
|
|
32
17
|
const breadcrumbsItems = [
|
|
33
18
|
{
|
package/dist/harmony4.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"harmony4.mjs","sources":["../src/features/navigation/ProjectNavigationPanel.tsx"],"sourcesContent":["import { NavigationPanel } from '@components/NavigationPanel/NavigationPanel'\nimport { Breadcrumbs } from '@components/NavigationPanel/components/Breadcrumbs/Breadcrumbs'\nimport { NavigationTabs } from '@components/NavigationPanel/components/NavigationTabs/NavigationTabs'\nimport { useNavigation } from '@features/navigation/hooks/useNavigation'\nimport { useNavigationData } from '@features/navigation/hooks/useNavigationQueries'\nimport type { Project } from '@features/node'\nimport type { Page } from './types/navigation'\n\nexport interface ProjectNavigationPanelProps {\n\tprojectId: Project['project_id']\n\tpage: Page\n}\n\nconst ProjectNavigationPanel = ({ page, projectId }: ProjectNavigationPanelProps) => {\n\tconst {\n\t\tdata: { project, contributor },\n\t\tisLoading,\n\t\terror,\n\t} = useNavigationData(projectId)\n\n\tconst navigationItems = useNavigation(page, project, contributor)\n\n\tif (isLoading
|
|
1
|
+
{"version":3,"file":"harmony4.mjs","sources":["../src/features/navigation/ProjectNavigationPanel.tsx"],"sourcesContent":["import { NavigationPanel } from '@components/NavigationPanel/NavigationPanel'\nimport { Breadcrumbs } from '@components/NavigationPanel/components/Breadcrumbs/Breadcrumbs'\nimport { NavigationTabs } from '@components/NavigationPanel/components/NavigationTabs/NavigationTabs'\nimport { useNavigation } from '@features/navigation/hooks/useNavigation'\nimport { useNavigationData } from '@features/navigation/hooks/useNavigationQueries'\nimport type { Project } from '@features/node'\nimport type { Page } from './types/navigation'\n\nexport interface ProjectNavigationPanelProps {\n\tprojectId: Project['project_id']\n\tpage: Page\n}\n\nconst ProjectNavigationPanel = ({ page, projectId }: ProjectNavigationPanelProps) => {\n\tconst {\n\t\tdata: { project, contributor },\n\t\tisLoading,\n\t\terror,\n\t} = useNavigationData(projectId)\n\n\tconst navigationItems = useNavigation(page, project, contributor)\n\n\tif (isLoading || error) {\n\t\treturn null\n\t}\n\n\tconst breadcrumbsItems = [\n\t\t{\n\t\t\tname: 'Projects',\n\t\t\tlink: '/projects',\n\t\t},\n\t\t{\n\t\t\tname: project?.name || 'Project',\n\t\t\tlink: `/project/${project?.uuid}/`,\n\t\t},\n\t]\n\n\treturn (\n\t\t<NavigationPanel>\n\t\t\t<NavigationPanel.Header>\n\t\t\t\t<Breadcrumbs items={breadcrumbsItems} />\n\t\t\t\t{/* TODO: Add branch selector */}\n\t\t\t</NavigationPanel.Header>\n\n\t\t\t<NavigationPanel.Tabs>\n\t\t\t\t<NavigationTabs navigation={navigationItems} activeItem={page} />\n\t\t\t</NavigationPanel.Tabs>\n\t\t</NavigationPanel>\n\t)\n}\n\n/**\n * Complete self-contained ProjectNavigationPanel component.\n * Must be used within a NavigationProvider.\n */\nexport { ProjectNavigationPanel }\n"],"names":[],"mappings":";;;;;;AAaA,MAAM,yBAAyB,CAAC,EAAE,MAAM,gBAA6C;AAC9E,QAAA;AAAA,IACL,MAAM,EAAE,SAAS,YAAY;AAAA,IAC7B;AAAA,IACA;AAAA,EAAA,IACG,kBAAkB,SAAS;AAE/B,QAAM,kBAAkB,cAAc,MAAM,SAAS,WAAW;AAEhE,MAAI,aAAa,OAAO;AAChB,WAAA;AAAA,EAAA;AAGR,QAAM,mBAAmB;AAAA,IACxB;AAAA,MACC,MAAM;AAAA,MACN,MAAM;AAAA,IACP;AAAA,IACA;AAAA,MACC,OAAM,mCAAS,SAAQ;AAAA,MACvB,MAAM,YAAY,mCAAS,IAAI;AAAA,IAAA;AAAA,EAEjC;AAEA,8BACE,iBACA,EAAA,UAAA;AAAA,IAAA,oBAAC,gBAAgB,QAAhB,EACA,8BAAC,aAAY,EAAA,OAAO,iBAAkB,CAAA,GAEvC;AAAA,IAEA,oBAAC,gBAAgB,MAAhB,EACA,UAAA,oBAAC,kBAAe,YAAY,iBAAiB,YAAY,KAAM,CAAA,EAChE,CAAA;AAAA,EAAA,GACD;AAEF;"}
|
package/dist/harmony40.cjs
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const React = require("react");
|
|
4
4
|
const ActionResolverContext = require("./harmony36.cjs");
|
|
5
|
-
const hasAny = require("./
|
|
5
|
+
const hasAny = require("./harmony127.cjs");
|
|
6
6
|
const useHasAnyFeatureFlags = (...features) => {
|
|
7
7
|
const { enabledFeatureFlags } = ActionResolverContext.useActionResolverContext();
|
|
8
8
|
const key = features.join("");
|
package/dist/harmony40.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useMemo } from "react";
|
|
2
2
|
import { useActionResolverContext } from "./harmony36.mjs";
|
|
3
|
-
import { hasAny } from "./
|
|
3
|
+
import { hasAny } from "./harmony127.mjs";
|
|
4
4
|
const useHasAnyFeatureFlags = (...features) => {
|
|
5
5
|
const { enabledFeatureFlags } = useActionResolverContext();
|
|
6
6
|
const key = features.join("");
|
package/dist/harmony41.cjs
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const React = require("react");
|
|
4
4
|
const ActionResolverContext = require("./harmony36.cjs");
|
|
5
|
-
const has = require("./
|
|
5
|
+
const has = require("./harmony128.cjs");
|
|
6
6
|
const useHasAllFeatureFlags = (...features) => {
|
|
7
7
|
const { enabledFeatureFlags } = ActionResolverContext.useActionResolverContext();
|
|
8
8
|
const key = features.join("");
|
package/dist/harmony41.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useMemo } from "react";
|
|
2
2
|
import { useActionResolverContext } from "./harmony36.mjs";
|
|
3
|
-
import { has } from "./
|
|
3
|
+
import { has } from "./harmony128.mjs";
|
|
4
4
|
const useHasAllFeatureFlags = (...features) => {
|
|
5
5
|
const { enabledFeatureFlags } = useActionResolverContext();
|
|
6
6
|
const key = features.join("");
|
package/dist/harmony42.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const actionResolvers = require("./
|
|
3
|
+
const actionResolvers = require("./harmony129.cjs");
|
|
4
4
|
function canPerformAction(action, context) {
|
|
5
5
|
const resolver = actionResolvers.actionResolvers[action];
|
|
6
6
|
if (!resolver) {
|
package/dist/harmony42.mjs
CHANGED
package/dist/harmony47.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const contributorTypes = require("./
|
|
3
|
+
const contributorTypes = require("./harmony82.cjs");
|
|
4
4
|
const apiContracts = require("@lokalise/api-contracts");
|
|
5
5
|
const resolveContributorTargetPath = (contributor) => {
|
|
6
6
|
if ("authenticatedUser" in contributor) return "me";
|
package/dist/harmony47.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { LIST_CONTRIBUTORS_RESPONSE_SCHEMA, LIST_CONTRIBUTORS_PATH_PARAMS_SCHEMA, CONTRIBUTOR_API_BASE_HEADER_SCHEMA, RETRIEVE_CONTRIBUTOR_RESPONSE_SCHEMA, RETRIEVE_CONTRIBUTOR_PATH_PARAMS_SCHEMA, DELETE_CONTRIBUTOR_RESPONSE_SCHEMA, DELETE_CONTRIBUTOR_PATH_PARAMS_SCHEMA, ADD_CONTRIBUTORS_RESPONSE_SCHEMA, ADD_CONTRIBUTORS_REQUEST_BODY_SCHEMA, ADD_CONTRIBUTORS_PATH_PARAMS_SCHEMA, UPDATE_CONTRIBUTORS_RESPONSE_SCHEMA, UPDATE_CONTRIBUTORS_REQUEST_BODY_SCHEMA, UPDATE_CONTRIBUTORS_PATH_PARAMS_SCHEMA } from "./
|
|
1
|
+
import { LIST_CONTRIBUTORS_RESPONSE_SCHEMA, LIST_CONTRIBUTORS_PATH_PARAMS_SCHEMA, CONTRIBUTOR_API_BASE_HEADER_SCHEMA, RETRIEVE_CONTRIBUTOR_RESPONSE_SCHEMA, RETRIEVE_CONTRIBUTOR_PATH_PARAMS_SCHEMA, DELETE_CONTRIBUTOR_RESPONSE_SCHEMA, DELETE_CONTRIBUTOR_PATH_PARAMS_SCHEMA, ADD_CONTRIBUTORS_RESPONSE_SCHEMA, ADD_CONTRIBUTORS_REQUEST_BODY_SCHEMA, ADD_CONTRIBUTORS_PATH_PARAMS_SCHEMA, UPDATE_CONTRIBUTORS_RESPONSE_SCHEMA, UPDATE_CONTRIBUTORS_REQUEST_BODY_SCHEMA, UPDATE_CONTRIBUTORS_PATH_PARAMS_SCHEMA } from "./harmony82.mjs";
|
|
2
2
|
import { buildGetRoute, buildDeleteRoute, buildPayloadRoute } from "@lokalise/api-contracts";
|
|
3
3
|
const resolveContributorTargetPath = (contributor) => {
|
|
4
4
|
if ("authenticatedUser" in contributor) return "me";
|
package/dist/harmony48.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const languageTypes = require("./
|
|
4
|
-
const sharedTypes = require("./
|
|
3
|
+
const languageTypes = require("./harmony83.cjs");
|
|
4
|
+
const sharedTypes = require("./harmony89.cjs");
|
|
5
5
|
const apiContracts = require("@lokalise/api-contracts");
|
|
6
6
|
const listProjectLanguages = apiContracts.buildGetRoute({
|
|
7
7
|
description: "List of project languages",
|
package/dist/harmony48.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { LIST_PROJECT_LANGUAGES_RESPONSE_SCHEMA, LIST_PROJECT_LANGUAGES_PATH_PARAMS_SCHEMA, ADD_LANGUAGES_TO_PROJECT_RESPONSE_SCHEMA, ADD_LANGUAGES_TO_PROJECT_REQUEST_BODY_SCHEMA, ADD_LANGUAGES_TO_PROJECT_PATH_PARAMS_SCHEMA, BULK_UPDATE_PROJECT_LANGUAGES_RESPONSE_SCHEMA, BULK_UPDATE_PROJECT_LANGUAGES_REQUEST_BODY_SCHEMA, BULK_UPDATE_PROJECT_LANGUAGES_PATH_PARAMS_SCHEMA } from "./
|
|
2
|
-
import { BASE_API_ENDPOINT_HEADER_SCHEMA } from "./
|
|
1
|
+
import { LIST_PROJECT_LANGUAGES_RESPONSE_SCHEMA, LIST_PROJECT_LANGUAGES_PATH_PARAMS_SCHEMA, ADD_LANGUAGES_TO_PROJECT_RESPONSE_SCHEMA, ADD_LANGUAGES_TO_PROJECT_REQUEST_BODY_SCHEMA, ADD_LANGUAGES_TO_PROJECT_PATH_PARAMS_SCHEMA, BULK_UPDATE_PROJECT_LANGUAGES_RESPONSE_SCHEMA, BULK_UPDATE_PROJECT_LANGUAGES_REQUEST_BODY_SCHEMA, BULK_UPDATE_PROJECT_LANGUAGES_PATH_PARAMS_SCHEMA } from "./harmony83.mjs";
|
|
2
|
+
import { BASE_API_ENDPOINT_HEADER_SCHEMA } from "./harmony89.mjs";
|
|
3
3
|
import { buildGetRoute, buildPayloadRoute } from "@lokalise/api-contracts";
|
|
4
4
|
const listProjectLanguages = buildGetRoute({
|
|
5
5
|
description: "List of project languages",
|
package/dist/harmony49.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const permissionTemplateTypes = require("./
|
|
4
|
-
const sharedTypes = require("./
|
|
3
|
+
const permissionTemplateTypes = require("./harmony85.cjs");
|
|
4
|
+
const sharedTypes = require("./harmony89.cjs");
|
|
5
5
|
const apiContracts = require("@lokalise/api-contracts");
|
|
6
6
|
const listPermissionTemplates = apiContracts.buildGetRoute({
|
|
7
7
|
description: "List permission templates for a team",
|
package/dist/harmony49.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { LIST_PERMISSION_TEMPLATES_RESPONSE, LIST_PERMISSION_TEMPLATES_PATH_PARAMS } from "./
|
|
2
|
-
import { BASE_API_ENDPOINT_HEADER_SCHEMA } from "./
|
|
1
|
+
import { LIST_PERMISSION_TEMPLATES_RESPONSE, LIST_PERMISSION_TEMPLATES_PATH_PARAMS } from "./harmony85.mjs";
|
|
2
|
+
import { BASE_API_ENDPOINT_HEADER_SCHEMA } from "./harmony89.mjs";
|
|
3
3
|
import { buildGetRoute } from "@lokalise/api-contracts";
|
|
4
4
|
const listPermissionTemplates = buildGetRoute({
|
|
5
5
|
description: "List permission templates for a team",
|
package/dist/harmony5.cjs
CHANGED
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const jsxRuntime = require("react/jsx-runtime");
|
|
4
4
|
const useAuthenticatedSessionPayload = require("./harmony29.cjs");
|
|
5
|
-
const expertLogoIcon = require("./
|
|
5
|
+
const expertLogoIcon = require("./harmony94.cjs");
|
|
6
6
|
const headerBuilderFactories = require("./harmony24.cjs");
|
|
7
7
|
const Sidebar = require("./harmony7.cjs");
|
|
8
8
|
const content = require("./harmony8.cjs");
|
|
9
9
|
const NavigationClientProvider = require("./harmony16.cjs");
|
|
10
|
-
const useListTeamsQuery = require("./
|
|
11
|
-
const useRetrieveTeamQuery = require("./
|
|
10
|
+
const useListTeamsQuery = require("./harmony73.cjs");
|
|
11
|
+
const useRetrieveTeamQuery = require("./harmony77.cjs");
|
|
12
12
|
const AppSidebar = () => {
|
|
13
13
|
const jwtPayload = useAuthenticatedSessionPayload.useAuthenticatedSessionPayload();
|
|
14
14
|
const navigationClient = NavigationClientProvider.useNavigationClient();
|
package/dist/harmony5.mjs
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useAuthenticatedSessionPayload } from "./harmony29.mjs";
|
|
3
|
-
import expertLogoIcon from "./
|
|
3
|
+
import expertLogoIcon from "./harmony94.mjs";
|
|
4
4
|
import { createPublicApiHeaderBuilder } from "./harmony24.mjs";
|
|
5
5
|
import { Sidebar } from "./harmony7.mjs";
|
|
6
6
|
import { teamResponseToSidebarTeamExtended, listTeamsResponseToSidebarTeams } from "./harmony8.mjs";
|
|
7
7
|
import { useNavigationClient } from "./harmony16.mjs";
|
|
8
|
-
import { useListTeamsQuery } from "./
|
|
9
|
-
import { useRetrieveTeamQuery } from "./
|
|
8
|
+
import { useListTeamsQuery } from "./harmony73.mjs";
|
|
9
|
+
import { useRetrieveTeamQuery } from "./harmony77.mjs";
|
|
10
10
|
const AppSidebar = () => {
|
|
11
11
|
const jwtPayload = useAuthenticatedSessionPayload();
|
|
12
12
|
const navigationClient = useNavigationClient();
|
package/dist/harmony50.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const apiContracts = require("@lokalise/api-contracts");
|
|
4
|
-
const projectTypes = require("./
|
|
4
|
+
const projectTypes = require("./harmony87.cjs");
|
|
5
5
|
const createProject = apiContracts.buildPayloadRoute({
|
|
6
6
|
description: "Create a new project",
|
|
7
7
|
requestHeaderSchema: projectTypes.PROJECT_API_BASE_HEADERS_SCHEMA,
|
package/dist/harmony50.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { buildPayloadRoute, buildGetRoute, buildDeleteRoute } from "@lokalise/api-contracts";
|
|
2
|
-
import { PROJECT_SCHEMA, CREATE_PROJECT_REQUEST_BODY_SCHEMA, PROJECT_API_BASE_HEADERS_SCHEMA, LIST_PROJECTS_SUCCESS_RESPONSE_BODY, LIST_PROJECTS_REQUEST_QUERY_SCHEMA, PROJECT_ID_PATH_PARAM_SCHEMA, UPDATE_PROJECT_REQUEST_BODY_SCHEMA, GET_PROJECT_PERMISSION_META_RESPONSE_BODY_SCHEMA, DELETE_PROJECT_RESPONSE_SCHEMA } from "./
|
|
2
|
+
import { PROJECT_SCHEMA, CREATE_PROJECT_REQUEST_BODY_SCHEMA, PROJECT_API_BASE_HEADERS_SCHEMA, LIST_PROJECTS_SUCCESS_RESPONSE_BODY, LIST_PROJECTS_REQUEST_QUERY_SCHEMA, PROJECT_ID_PATH_PARAM_SCHEMA, UPDATE_PROJECT_REQUEST_BODY_SCHEMA, GET_PROJECT_PERMISSION_META_RESPONSE_BODY_SCHEMA, DELETE_PROJECT_RESPONSE_SCHEMA } from "./harmony87.mjs";
|
|
3
3
|
const createProject = buildPayloadRoute({
|
|
4
4
|
description: "Create a new project",
|
|
5
5
|
requestHeaderSchema: PROJECT_API_BASE_HEADERS_SCHEMA,
|
package/dist/harmony51.cjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const apiContracts = require("@lokalise/api-contracts");
|
|
4
|
-
const scoreTypes = require("./
|
|
5
|
-
const sharedTypes = require("./
|
|
4
|
+
const scoreTypes = require("./harmony88.cjs");
|
|
5
|
+
const sharedTypes = require("./harmony89.cjs");
|
|
6
6
|
const getScore = apiContracts.buildGetRoute({
|
|
7
7
|
description: "Fetch translation quality score",
|
|
8
8
|
requestHeaderSchema: sharedTypes.BASE_API_ENDPOINT_HEADER_SCHEMA,
|
package/dist/harmony51.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { buildGetRoute, buildDeleteRoute, buildPayloadRoute } from "@lokalise/api-contracts";
|
|
2
|
-
import { GET_SCORE_RESPONSE_SCHEMA, SCORE_REQUEST_QUERY_SCHEMA, DELETE_SCORE_RESPONSE_SCHEMA, CREATE_SCORE_RESPONSE_SCHEMA, CREATE_SCORE_REQUEST_BODY_SCHEMA } from "./
|
|
3
|
-
import { BASE_API_ENDPOINT_HEADER_SCHEMA } from "./
|
|
2
|
+
import { GET_SCORE_RESPONSE_SCHEMA, SCORE_REQUEST_QUERY_SCHEMA, DELETE_SCORE_RESPONSE_SCHEMA, CREATE_SCORE_RESPONSE_SCHEMA, CREATE_SCORE_REQUEST_BODY_SCHEMA } from "./harmony88.mjs";
|
|
3
|
+
import { BASE_API_ENDPOINT_HEADER_SCHEMA } from "./harmony89.mjs";
|
|
4
4
|
const getScore = buildGetRoute({
|
|
5
5
|
description: "Fetch translation quality score",
|
|
6
6
|
requestHeaderSchema: BASE_API_ENDPOINT_HEADER_SCHEMA,
|
package/dist/harmony52.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const teamTypes = require("./
|
|
3
|
+
const teamTypes = require("./harmony90.cjs");
|
|
4
4
|
const apiContracts = require("@lokalise/api-contracts");
|
|
5
5
|
const listTeams = apiContracts.buildGetRoute({
|
|
6
6
|
description: "List all teams available for the user",
|
package/dist/harmony52.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { LIST_TEAMS_RESPONSE_SCHEMA, LIST_TEAMS_QUERY_SCHEMA, TEAM_API_BASE_HEADERS_SCHEMA, RETRIEVE_TEAM_RESPONSE_SCHEMA, RETRIEVE_TEAM_PATH_PARAMS_SCHEMA } from "./
|
|
1
|
+
import { LIST_TEAMS_RESPONSE_SCHEMA, LIST_TEAMS_QUERY_SCHEMA, TEAM_API_BASE_HEADERS_SCHEMA, RETRIEVE_TEAM_RESPONSE_SCHEMA, RETRIEVE_TEAM_PATH_PARAMS_SCHEMA } from "./harmony90.mjs";
|
|
2
2
|
import { buildGetRoute } from "@lokalise/api-contracts";
|
|
3
3
|
const listTeams = buildGetRoute({
|
|
4
4
|
description: "List all teams available for the user",
|
package/dist/harmony53.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const teamUserTypes = require("./
|
|
3
|
+
const teamUserTypes = require("./harmony91.cjs");
|
|
4
4
|
const apiContracts = require("@lokalise/api-contracts");
|
|
5
5
|
const listTeamUsers = apiContracts.buildGetRoute({
|
|
6
6
|
description: "Get the details of the users in a team",
|
package/dist/harmony53.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { LIST_TEAM_USERS_RESPONSE_SCHEMA, TEAM_PATH_PARAMS_SCHEMA, TEAM_USER_API_BASE_HEADERS_SCHEMA, TEAM_USER_RESPONSE_SCHEMA, TEAM_USER_PATH_PARAMS_SCHEMA, GET_TEAM_USER_PERMISSIONS_RESPONSE_SCHEMA, GET_TEAM_USER_PERMISSIONS_REQUEST_BODY_SCHEMA } from "./
|
|
1
|
+
import { LIST_TEAM_USERS_RESPONSE_SCHEMA, TEAM_PATH_PARAMS_SCHEMA, TEAM_USER_API_BASE_HEADERS_SCHEMA, TEAM_USER_RESPONSE_SCHEMA, TEAM_USER_PATH_PARAMS_SCHEMA, GET_TEAM_USER_PERMISSIONS_RESPONSE_SCHEMA, GET_TEAM_USER_PERMISSIONS_REQUEST_BODY_SCHEMA } from "./harmony91.mjs";
|
|
2
2
|
import { buildGetRoute, buildPayloadRoute } from "@lokalise/api-contracts";
|
|
3
3
|
const listTeamUsers = buildGetRoute({
|
|
4
4
|
description: "Get the details of the users in a team",
|
package/dist/harmony54.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const userTokenTypes = require("./
|
|
3
|
+
const userTokenTypes = require("./harmony92.cjs");
|
|
4
4
|
const apiContracts = require("@lokalise/api-contracts");
|
|
5
5
|
const v4 = require("zod/v4");
|
|
6
6
|
const getUserToken = apiContracts.buildPayloadRoute({
|
package/dist/harmony54.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { JWT_TOKEN_SCHEMA, USER_TOKEN_REQUEST_HEADER_SCHEMA } from "./
|
|
1
|
+
import { JWT_TOKEN_SCHEMA, USER_TOKEN_REQUEST_HEADER_SCHEMA } from "./harmony92.mjs";
|
|
2
2
|
import { buildPayloadRoute } from "@lokalise/api-contracts";
|
|
3
3
|
import { z } from "zod/v4";
|
|
4
4
|
const getUserToken = buildPayloadRoute({
|
package/dist/harmony58.cjs
CHANGED
|
@@ -2,16 +2,16 @@
|
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const frontendHttpClient = require("@lokalise/frontend-http-client");
|
|
4
4
|
const reactQuery = require("@tanstack/react-query");
|
|
5
|
-
const
|
|
6
|
-
function
|
|
5
|
+
const aiConfigurations = require("./harmony125.cjs");
|
|
6
|
+
function useCreateAiConfigurationMutation(wretchClient, headers, params, overrides = {}) {
|
|
7
7
|
return reactQuery.useMutation({
|
|
8
8
|
...overrides,
|
|
9
|
-
mutationFn: async (
|
|
9
|
+
mutationFn: async (variables) => frontendHttpClient.sendByPayloadRoute(wretchClient, aiConfigurations.createAiConfiguration, {
|
|
10
10
|
headers: await headers.resolve(),
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
body: variables,
|
|
12
|
+
pathParams: params
|
|
13
13
|
})
|
|
14
14
|
});
|
|
15
15
|
}
|
|
16
|
-
exports.
|
|
16
|
+
exports.useCreateAiConfigurationMutation = useCreateAiConfigurationMutation;
|
|
17
17
|
//# sourceMappingURL=harmony58.cjs.map
|
package/dist/harmony58.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"harmony58.cjs","sources":["../src/features/publicApi/hooks/
|
|
1
|
+
{"version":3,"file":"harmony58.cjs","sources":["../src/features/publicApi/hooks/useCreateAiConfigurationMutation.ts"],"sourcesContent":["import type { HeaderBuilder } from '@features/auth/core/headers/headerBuilder'\nimport { sendByPayloadRoute } from '@lokalise/frontend-http-client'\nimport { useMutation } from '@tanstack/react-query'\nimport type { ApiMutationOverrides } from '@utils/types/apiMutationOverrides'\nimport type { Wretch } from 'wretch'\n\nimport { createAiConfiguration } from '../aiConfigurations'\nimport type {\n\tAiConfigsPathParams,\n\tCreateAiConfigsRequestBody,\n\tCreateAiConfigsResponseBody,\n} from '../types/aiConfigurationTypes'\nimport type { BaseApiEndpointHeader } from '../types/sharedTypes'\n\n/**\n * A react-query wrapper around the createAiConfiguration public API endpoint\n *\n * @param wretchClient - Wretch instance configured to a public API instance.\n * @param headers - A header builder instance to resolve the headers for the request.\n * @param overrides - Additional options to pass to the mutation.\n */\nexport function useCreateAiConfigurationMutation<T>(\n\twretchClient: Wretch<T>,\n\theaders: HeaderBuilder<BaseApiEndpointHeader>,\n\tparams: AiConfigsPathParams,\n\toverrides: ApiMutationOverrides<CreateAiConfigsResponseBody, CreateAiConfigsRequestBody> = {},\n) {\n\treturn useMutation({\n\t\t...overrides,\n\t\tmutationFn: async (variables) =>\n\t\t\tsendByPayloadRoute(wretchClient, createAiConfiguration, {\n\t\t\t\theaders: await headers.resolve(),\n\t\t\t\tbody: variables,\n\t\t\t\tpathParams: params,\n\t\t\t}),\n\t})\n}\n"],"names":["useMutation","sendByPayloadRoute","createAiConfiguration"],"mappings":";;;;;AAqBO,SAAS,iCACf,cACA,SACA,QACA,YAA2F,CAAA,GAC1F;AACD,SAAOA,uBAAY;AAAA,IAClB,GAAG;AAAA,IACH,YAAY,OAAO,cAClBC,sCAAmB,cAAcC,iBAAAA,uBAAuB;AAAA,MACvD,SAAS,MAAM,QAAQ,QAAQ;AAAA,MAC/B,MAAM;AAAA,MACN,YAAY;AAAA,IACZ,CAAA;AAAA,EAAA,CACF;AACF;;"}
|
package/dist/harmony58.mjs
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { sendByPayloadRoute } from "@lokalise/frontend-http-client";
|
|
2
2
|
import { useMutation } from "@tanstack/react-query";
|
|
3
|
-
import {
|
|
4
|
-
function
|
|
3
|
+
import { createAiConfiguration } from "./harmony125.mjs";
|
|
4
|
+
function useCreateAiConfigurationMutation(wretchClient, headers, params, overrides = {}) {
|
|
5
5
|
return useMutation({
|
|
6
6
|
...overrides,
|
|
7
|
-
mutationFn: async (
|
|
7
|
+
mutationFn: async (variables) => sendByPayloadRoute(wretchClient, createAiConfiguration, {
|
|
8
8
|
headers: await headers.resolve(),
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
body: variables,
|
|
10
|
+
pathParams: params
|
|
11
11
|
})
|
|
12
12
|
});
|
|
13
13
|
}
|
|
14
14
|
export {
|
|
15
|
-
|
|
15
|
+
useCreateAiConfigurationMutation
|
|
16
16
|
};
|
|
17
17
|
//# sourceMappingURL=harmony58.mjs.map
|
package/dist/harmony58.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"harmony58.mjs","sources":["../src/features/publicApi/hooks/
|
|
1
|
+
{"version":3,"file":"harmony58.mjs","sources":["../src/features/publicApi/hooks/useCreateAiConfigurationMutation.ts"],"sourcesContent":["import type { HeaderBuilder } from '@features/auth/core/headers/headerBuilder'\nimport { sendByPayloadRoute } from '@lokalise/frontend-http-client'\nimport { useMutation } from '@tanstack/react-query'\nimport type { ApiMutationOverrides } from '@utils/types/apiMutationOverrides'\nimport type { Wretch } from 'wretch'\n\nimport { createAiConfiguration } from '../aiConfigurations'\nimport type {\n\tAiConfigsPathParams,\n\tCreateAiConfigsRequestBody,\n\tCreateAiConfigsResponseBody,\n} from '../types/aiConfigurationTypes'\nimport type { BaseApiEndpointHeader } from '../types/sharedTypes'\n\n/**\n * A react-query wrapper around the createAiConfiguration public API endpoint\n *\n * @param wretchClient - Wretch instance configured to a public API instance.\n * @param headers - A header builder instance to resolve the headers for the request.\n * @param overrides - Additional options to pass to the mutation.\n */\nexport function useCreateAiConfigurationMutation<T>(\n\twretchClient: Wretch<T>,\n\theaders: HeaderBuilder<BaseApiEndpointHeader>,\n\tparams: AiConfigsPathParams,\n\toverrides: ApiMutationOverrides<CreateAiConfigsResponseBody, CreateAiConfigsRequestBody> = {},\n) {\n\treturn useMutation({\n\t\t...overrides,\n\t\tmutationFn: async (variables) =>\n\t\t\tsendByPayloadRoute(wretchClient, createAiConfiguration, {\n\t\t\t\theaders: await headers.resolve(),\n\t\t\t\tbody: variables,\n\t\t\t\tpathParams: params,\n\t\t\t}),\n\t})\n}\n"],"names":[],"mappings":";;;AAqBO,SAAS,iCACf,cACA,SACA,QACA,YAA2F,CAAA,GAC1F;AACD,SAAO,YAAY;AAAA,IAClB,GAAG;AAAA,IACH,YAAY,OAAO,cAClB,mBAAmB,cAAc,uBAAuB;AAAA,MACvD,SAAS,MAAM,QAAQ,QAAQ;AAAA,MAC/B,MAAM;AAAA,MACN,YAAY;AAAA,IACZ,CAAA;AAAA,EAAA,CACF;AACF;"}
|
package/dist/harmony59.cjs
CHANGED
|
@@ -2,15 +2,16 @@
|
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const frontendHttpClient = require("@lokalise/frontend-http-client");
|
|
4
4
|
const reactQuery = require("@tanstack/react-query");
|
|
5
|
-
const
|
|
6
|
-
function
|
|
5
|
+
const score = require("./harmony51.cjs");
|
|
6
|
+
function useCreateScoreMutation(wretchClient, headers, overrides = {}) {
|
|
7
7
|
return reactQuery.useMutation({
|
|
8
8
|
...overrides,
|
|
9
|
-
mutationFn: async (
|
|
9
|
+
mutationFn: async ({ segmentId, sourceLanguageId, projectId, keyId, languageId }) => frontendHttpClient.sendByPayloadRoute(wretchClient, score.createScore, {
|
|
10
10
|
headers: await headers.resolve(),
|
|
11
|
-
|
|
11
|
+
pathParams: { projectId, keyId, languageId },
|
|
12
|
+
body: { segmentId, sourceLanguageId }
|
|
12
13
|
})
|
|
13
14
|
});
|
|
14
15
|
}
|
|
15
|
-
exports.
|
|
16
|
+
exports.useCreateScoreMutation = useCreateScoreMutation;
|
|
16
17
|
//# sourceMappingURL=harmony59.cjs.map
|
package/dist/harmony59.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"harmony59.cjs","sources":["../src/features/publicApi/hooks/
|
|
1
|
+
{"version":3,"file":"harmony59.cjs","sources":["../src/features/publicApi/hooks/useCreateScoreMutation.ts"],"sourcesContent":["import type { HeaderBuilder } from '@features/auth/core/headers/headerBuilder'\nimport { sendByPayloadRoute } from '@lokalise/frontend-http-client'\nimport { useMutation } from '@tanstack/react-query'\nimport type { ApiMutationOverrides } from '@utils/types/apiMutationOverrides'\nimport type { Wretch } from 'wretch'\nimport { createScore } from '../score'\nimport type {\n\tCreateScoreRequestBody,\n\tCreateScoreResponseBody,\n\tScoreRequestQuery,\n} from '../types/scoreTypes'\nimport type { BaseApiEndpointHeader } from '../types/sharedTypes'\n\n/**\n * A react-router wrapper about the createProject public API endpoint\n *\n * @param wretchClient - Wretch instance configured to a public API instance.\n * @param headers - A header builder instance to resolve the headers for the request.\n * @param overrides - Additional options to pass to the query.\n */\nexport function useCreateScoreMutation<T>(\n\twretchClient: Wretch<T>,\n\theaders: HeaderBuilder<BaseApiEndpointHeader>,\n\toverrides: ApiMutationOverrides<\n\t\tCreateScoreResponseBody,\n\t\tCreateScoreRequestBody & ScoreRequestQuery\n\t> = {},\n) {\n\treturn useMutation({\n\t\t...overrides,\n\t\tmutationFn: async ({ segmentId, sourceLanguageId, projectId, keyId, languageId }) =>\n\t\t\tsendByPayloadRoute(wretchClient, createScore, {\n\t\t\t\theaders: await headers.resolve(),\n\t\t\t\tpathParams: { projectId, keyId, languageId },\n\t\t\t\tbody: { segmentId, sourceLanguageId },\n\t\t\t}),\n\t})\n}\n"],"names":["useMutation","sendByPayloadRoute","createScore"],"mappings":";;;;;AAoBO,SAAS,uBACf,cACA,SACA,YAGI,CAAA,GACH;AACD,SAAOA,uBAAY;AAAA,IAClB,GAAG;AAAA,IACH,YAAY,OAAO,EAAE,WAAW,kBAAkB,WAAW,OAAO,iBACnEC,mBAAAA,mBAAmB,cAAcC,mBAAa;AAAA,MAC7C,SAAS,MAAM,QAAQ,QAAQ;AAAA,MAC/B,YAAY,EAAE,WAAW,OAAO,WAAW;AAAA,MAC3C,MAAM,EAAE,WAAW,iBAAiB;AAAA,IACpC,CAAA;AAAA,EAAA,CACF;AACF;;"}
|
package/dist/harmony59.mjs
CHANGED
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
import { sendByPayloadRoute } from "@lokalise/frontend-http-client";
|
|
2
2
|
import { useMutation } from "@tanstack/react-query";
|
|
3
|
-
import {
|
|
4
|
-
function
|
|
3
|
+
import { createScore } from "./harmony51.mjs";
|
|
4
|
+
function useCreateScoreMutation(wretchClient, headers, overrides = {}) {
|
|
5
5
|
return useMutation({
|
|
6
6
|
...overrides,
|
|
7
|
-
mutationFn: async (
|
|
7
|
+
mutationFn: async ({ segmentId, sourceLanguageId, projectId, keyId, languageId }) => sendByPayloadRoute(wretchClient, createScore, {
|
|
8
8
|
headers: await headers.resolve(),
|
|
9
|
-
|
|
9
|
+
pathParams: { projectId, keyId, languageId },
|
|
10
|
+
body: { segmentId, sourceLanguageId }
|
|
10
11
|
})
|
|
11
12
|
});
|
|
12
13
|
}
|
|
13
14
|
export {
|
|
14
|
-
|
|
15
|
+
useCreateScoreMutation
|
|
15
16
|
};
|
|
16
17
|
//# sourceMappingURL=harmony59.mjs.map
|
package/dist/harmony59.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"harmony59.mjs","sources":["../src/features/publicApi/hooks/
|
|
1
|
+
{"version":3,"file":"harmony59.mjs","sources":["../src/features/publicApi/hooks/useCreateScoreMutation.ts"],"sourcesContent":["import type { HeaderBuilder } from '@features/auth/core/headers/headerBuilder'\nimport { sendByPayloadRoute } from '@lokalise/frontend-http-client'\nimport { useMutation } from '@tanstack/react-query'\nimport type { ApiMutationOverrides } from '@utils/types/apiMutationOverrides'\nimport type { Wretch } from 'wretch'\nimport { createScore } from '../score'\nimport type {\n\tCreateScoreRequestBody,\n\tCreateScoreResponseBody,\n\tScoreRequestQuery,\n} from '../types/scoreTypes'\nimport type { BaseApiEndpointHeader } from '../types/sharedTypes'\n\n/**\n * A react-router wrapper about the createProject public API endpoint\n *\n * @param wretchClient - Wretch instance configured to a public API instance.\n * @param headers - A header builder instance to resolve the headers for the request.\n * @param overrides - Additional options to pass to the query.\n */\nexport function useCreateScoreMutation<T>(\n\twretchClient: Wretch<T>,\n\theaders: HeaderBuilder<BaseApiEndpointHeader>,\n\toverrides: ApiMutationOverrides<\n\t\tCreateScoreResponseBody,\n\t\tCreateScoreRequestBody & ScoreRequestQuery\n\t> = {},\n) {\n\treturn useMutation({\n\t\t...overrides,\n\t\tmutationFn: async ({ segmentId, sourceLanguageId, projectId, keyId, languageId }) =>\n\t\t\tsendByPayloadRoute(wretchClient, createScore, {\n\t\t\t\theaders: await headers.resolve(),\n\t\t\t\tpathParams: { projectId, keyId, languageId },\n\t\t\t\tbody: { segmentId, sourceLanguageId },\n\t\t\t}),\n\t})\n}\n"],"names":[],"mappings":";;;AAoBO,SAAS,uBACf,cACA,SACA,YAGI,CAAA,GACH;AACD,SAAO,YAAY;AAAA,IAClB,GAAG;AAAA,IACH,YAAY,OAAO,EAAE,WAAW,kBAAkB,WAAW,OAAO,iBACnE,mBAAmB,cAAc,aAAa;AAAA,MAC7C,SAAS,MAAM,QAAQ,QAAQ;AAAA,MAC/B,YAAY,EAAE,WAAW,OAAO,WAAW;AAAA,MAC3C,MAAM,EAAE,WAAW,iBAAiB;AAAA,IACpC,CAAA;AAAA,EAAA,CACF;AACF;"}
|
package/dist/harmony6.cjs
CHANGED
|
@@ -3,8 +3,8 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
|
3
3
|
const jsxRuntime = require("react/jsx-runtime");
|
|
4
4
|
const reactQuery = require("@tanstack/react-query");
|
|
5
5
|
const React = require("react");
|
|
6
|
-
const queryClient = require("./
|
|
7
|
-
const NavigationClient = require("./
|
|
6
|
+
const queryClient = require("./harmony103.cjs");
|
|
7
|
+
const NavigationClient = require("./harmony104.cjs");
|
|
8
8
|
const NavigationClientProvider = require("./harmony16.cjs");
|
|
9
9
|
const NavigationProvider = ({ config, children }) => {
|
|
10
10
|
const navigationClient = React.useMemo(() => new NavigationClient.NavigationClient(config), [config]);
|
package/dist/harmony6.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { QueryClientProvider } from "@tanstack/react-query";
|
|
3
3
|
import { useMemo } from "react";
|
|
4
|
-
import { queryClient } from "./
|
|
5
|
-
import { NavigationClient } from "./
|
|
4
|
+
import { queryClient } from "./harmony103.mjs";
|
|
5
|
+
import { NavigationClient } from "./harmony104.mjs";
|
|
6
6
|
import { NavigationClientProvider } from "./harmony16.mjs";
|
|
7
7
|
import { useNavigationClient } from "./harmony16.mjs";
|
|
8
8
|
const NavigationProvider = ({ config, children }) => {
|
package/dist/harmony60.cjs
CHANGED
|
@@ -2,24 +2,15 @@
|
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const frontendHttpClient = require("@lokalise/frontend-http-client");
|
|
4
4
|
const reactQuery = require("@tanstack/react-query");
|
|
5
|
-
const
|
|
6
|
-
function
|
|
5
|
+
const projects = require("./harmony50.cjs");
|
|
6
|
+
function useCreateProjectMutation(wretchClient, headers, overrides = {}) {
|
|
7
7
|
return reactQuery.useMutation({
|
|
8
8
|
...overrides,
|
|
9
|
-
mutationFn: async (variables) => frontendHttpClient.
|
|
9
|
+
mutationFn: async (variables) => frontendHttpClient.sendByPayloadRoute(wretchClient, projects.createProject, {
|
|
10
10
|
headers: await headers.resolve(),
|
|
11
|
-
|
|
12
|
-
})
|
|
13
|
-
/**
|
|
14
|
-
* When the request is successful, we expect to receive a 204 with no response body (i.e undefined)
|
|
15
|
-
* react-query doesn't allow for undefined to be returned, so we need to return null instead
|
|
16
|
-
* See references for more information:
|
|
17
|
-
* https://github.com/TanStack/query/discussions/4964
|
|
18
|
-
* https://github.com/TanStack/query/discussions/6380
|
|
19
|
-
**/
|
|
20
|
-
// @ts-expect-error react-query requires non-undefined return
|
|
21
|
-
onSuccess: () => null
|
|
11
|
+
body: variables
|
|
12
|
+
})
|
|
22
13
|
});
|
|
23
14
|
}
|
|
24
|
-
exports.
|
|
15
|
+
exports.useCreateProjectMutation = useCreateProjectMutation;
|
|
25
16
|
//# sourceMappingURL=harmony60.cjs.map
|
package/dist/harmony60.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"harmony60.cjs","sources":["../src/features/publicApi/hooks/
|
|
1
|
+
{"version":3,"file":"harmony60.cjs","sources":["../src/features/publicApi/hooks/useCreateProjectMutation.ts"],"sourcesContent":["import type { HeaderBuilder } from '@features/auth/core/headers/headerBuilder'\nimport { sendByPayloadRoute } from '@lokalise/frontend-http-client'\nimport { useMutation } from '@tanstack/react-query'\nimport type { ApiMutationOverrides } from '@utils/types/apiMutationOverrides'\nimport type { Wretch } from 'wretch'\nimport { createProject } from '../projects'\nimport type {\n\tCreateProjectRequestBody,\n\tProject,\n\tProjectApiBaseHeaders,\n} from '../types/projectTypes'\n\n/**\n * A react-router wrapper about the createProject public API endpoint\n *\n * @param wretchClient - Wretch instance configured to a public API instance.\n * @param headers - A header builder instance to resolve the headers for the request.\n * @param overrides - Additional options to pass to the query.\n */\nexport function useCreateProjectMutation<T>(\n\twretchClient: Wretch<T>,\n\theaders: HeaderBuilder<ProjectApiBaseHeaders>,\n\toverrides: ApiMutationOverrides<Project, CreateProjectRequestBody> = {},\n) {\n\treturn useMutation({\n\t\t...overrides,\n\t\tmutationFn: async (variables) =>\n\t\t\tsendByPayloadRoute(wretchClient, createProject, {\n\t\t\t\theaders: await headers.resolve(),\n\t\t\t\tbody: variables,\n\t\t\t}),\n\t})\n}\n"],"names":["useMutation","sendByPayloadRoute","createProject"],"mappings":";;;;;AAmBO,SAAS,yBACf,cACA,SACA,YAAqE,CAAA,GACpE;AACD,SAAOA,uBAAY;AAAA,IAClB,GAAG;AAAA,IACH,YAAY,OAAO,cAClBC,sCAAmB,cAAcC,SAAAA,eAAe;AAAA,MAC/C,SAAS,MAAM,QAAQ,QAAQ;AAAA,MAC/B,MAAM;AAAA,IACN,CAAA;AAAA,EAAA,CACF;AACF;;"}
|
package/dist/harmony60.mjs
CHANGED
|
@@ -1,25 +1,16 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { sendByPayloadRoute } from "@lokalise/frontend-http-client";
|
|
2
2
|
import { useMutation } from "@tanstack/react-query";
|
|
3
|
-
import {
|
|
4
|
-
function
|
|
3
|
+
import { createProject } from "./harmony50.mjs";
|
|
4
|
+
function useCreateProjectMutation(wretchClient, headers, overrides = {}) {
|
|
5
5
|
return useMutation({
|
|
6
6
|
...overrides,
|
|
7
|
-
mutationFn: async (variables) =>
|
|
7
|
+
mutationFn: async (variables) => sendByPayloadRoute(wretchClient, createProject, {
|
|
8
8
|
headers: await headers.resolve(),
|
|
9
|
-
|
|
10
|
-
})
|
|
11
|
-
/**
|
|
12
|
-
* When the request is successful, we expect to receive a 204 with no response body (i.e undefined)
|
|
13
|
-
* react-query doesn't allow for undefined to be returned, so we need to return null instead
|
|
14
|
-
* See references for more information:
|
|
15
|
-
* https://github.com/TanStack/query/discussions/4964
|
|
16
|
-
* https://github.com/TanStack/query/discussions/6380
|
|
17
|
-
**/
|
|
18
|
-
// @ts-expect-error react-query requires non-undefined return
|
|
19
|
-
onSuccess: () => null
|
|
9
|
+
body: variables
|
|
10
|
+
})
|
|
20
11
|
});
|
|
21
12
|
}
|
|
22
13
|
export {
|
|
23
|
-
|
|
14
|
+
useCreateProjectMutation
|
|
24
15
|
};
|
|
25
16
|
//# sourceMappingURL=harmony60.mjs.map
|
package/dist/harmony60.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"harmony60.mjs","sources":["../src/features/publicApi/hooks/
|
|
1
|
+
{"version":3,"file":"harmony60.mjs","sources":["../src/features/publicApi/hooks/useCreateProjectMutation.ts"],"sourcesContent":["import type { HeaderBuilder } from '@features/auth/core/headers/headerBuilder'\nimport { sendByPayloadRoute } from '@lokalise/frontend-http-client'\nimport { useMutation } from '@tanstack/react-query'\nimport type { ApiMutationOverrides } from '@utils/types/apiMutationOverrides'\nimport type { Wretch } from 'wretch'\nimport { createProject } from '../projects'\nimport type {\n\tCreateProjectRequestBody,\n\tProject,\n\tProjectApiBaseHeaders,\n} from '../types/projectTypes'\n\n/**\n * A react-router wrapper about the createProject public API endpoint\n *\n * @param wretchClient - Wretch instance configured to a public API instance.\n * @param headers - A header builder instance to resolve the headers for the request.\n * @param overrides - Additional options to pass to the query.\n */\nexport function useCreateProjectMutation<T>(\n\twretchClient: Wretch<T>,\n\theaders: HeaderBuilder<ProjectApiBaseHeaders>,\n\toverrides: ApiMutationOverrides<Project, CreateProjectRequestBody> = {},\n) {\n\treturn useMutation({\n\t\t...overrides,\n\t\tmutationFn: async (variables) =>\n\t\t\tsendByPayloadRoute(wretchClient, createProject, {\n\t\t\t\theaders: await headers.resolve(),\n\t\t\t\tbody: variables,\n\t\t\t}),\n\t})\n}\n"],"names":[],"mappings":";;;AAmBO,SAAS,yBACf,cACA,SACA,YAAqE,CAAA,GACpE;AACD,SAAO,YAAY;AAAA,IAClB,GAAG;AAAA,IACH,YAAY,OAAO,cAClB,mBAAmB,cAAc,eAAe;AAAA,MAC/C,SAAS,MAAM,QAAQ,QAAQ;AAAA,MAC/B,MAAM;AAAA,IACN,CAAA;AAAA,EAAA,CACF;AACF;"}
|