@lokalise/harmony 2.0.7 → 2.0.8
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 +135 -135
- package/dist/harmony.mjs +79 -79
- package/dist/harmony105.cjs +2 -2
- package/dist/harmony105.mjs +2 -2
- package/dist/harmony106.cjs +1 -1
- package/dist/harmony106.mjs +1 -1
- package/dist/harmony108.cjs +1 -1
- package/dist/harmony108.mjs +1 -1
- package/dist/harmony109.cjs +12 -12
- package/dist/harmony109.mjs +12 -12
- package/dist/harmony11.cjs +30 -55
- package/dist/harmony11.cjs.map +1 -1
- package/dist/harmony11.mjs +30 -55
- package/dist/harmony11.mjs.map +1 -1
- package/dist/harmony111.cjs +1 -1
- package/dist/harmony111.mjs +1 -1
- package/dist/harmony112.cjs +1 -1
- package/dist/harmony112.mjs +1 -1
- package/dist/harmony113.cjs +1 -1
- package/dist/harmony113.mjs +1 -1
- package/dist/harmony115.cjs +165 -11
- package/dist/harmony115.cjs.map +1 -1
- package/dist/harmony115.mjs +165 -11
- package/dist/harmony115.mjs.map +1 -1
- package/dist/harmony116.cjs +44 -12
- package/dist/harmony116.cjs.map +1 -1
- package/dist/harmony116.mjs +43 -11
- package/dist/harmony116.mjs.map +1 -1
- package/dist/harmony117.cjs +10 -9
- package/dist/harmony117.cjs.map +1 -1
- package/dist/harmony117.mjs +12 -11
- package/dist/harmony117.mjs.map +1 -1
- package/dist/harmony118.cjs +11 -20
- package/dist/harmony118.cjs.map +1 -1
- package/dist/harmony118.mjs +11 -20
- package/dist/harmony118.mjs.map +1 -1
- package/dist/harmony119.cjs +11 -166
- package/dist/harmony119.cjs.map +1 -1
- package/dist/harmony119.mjs +11 -166
- package/dist/harmony119.mjs.map +1 -1
- package/dist/harmony12.cjs +22 -30
- package/dist/harmony12.cjs.map +1 -1
- package/dist/harmony12.mjs +22 -30
- package/dist/harmony12.mjs.map +1 -1
- package/dist/harmony120.cjs +21 -44
- package/dist/harmony120.cjs.map +1 -1
- package/dist/harmony120.mjs +20 -43
- package/dist/harmony120.mjs.map +1 -1
- package/dist/harmony122.cjs +7 -20
- package/dist/harmony122.cjs.map +1 -1
- package/dist/harmony122.mjs +7 -20
- package/dist/harmony122.mjs.map +1 -1
- package/dist/harmony123.cjs +17 -9
- package/dist/harmony123.cjs.map +1 -1
- package/dist/harmony123.mjs +16 -8
- package/dist/harmony123.mjs.map +1 -1
- package/dist/harmony124.cjs +7 -11
- package/dist/harmony124.cjs.map +1 -1
- package/dist/harmony124.mjs +7 -11
- package/dist/harmony124.mjs.map +1 -1
- package/dist/harmony125.cjs +7 -14
- package/dist/harmony125.cjs.map +1 -1
- package/dist/harmony125.mjs +7 -14
- package/dist/harmony125.mjs.map +1 -1
- package/dist/harmony126.cjs +14 -18
- package/dist/harmony126.cjs.map +1 -1
- package/dist/harmony126.mjs +14 -18
- package/dist/harmony126.mjs.map +1 -1
- package/dist/harmony127.cjs +20 -10
- package/dist/harmony127.cjs.map +1 -1
- package/dist/harmony127.mjs +20 -10
- package/dist/harmony127.mjs.map +1 -1
- package/dist/harmony128.cjs +9 -26
- package/dist/harmony128.cjs.map +1 -1
- package/dist/harmony128.mjs +8 -25
- package/dist/harmony128.mjs.map +1 -1
- package/dist/harmony129.cjs +4 -4
- package/dist/harmony129.cjs.map +1 -1
- package/dist/harmony129.mjs +5 -5
- package/dist/harmony129.mjs.map +1 -1
- package/dist/harmony13.cjs +52 -11
- package/dist/harmony13.cjs.map +1 -1
- package/dist/harmony13.mjs +52 -11
- package/dist/harmony13.mjs.map +1 -1
- package/dist/harmony130.cjs +9 -32
- package/dist/harmony130.cjs.map +1 -1
- package/dist/harmony130.mjs +11 -34
- package/dist/harmony130.mjs.map +1 -1
- package/dist/harmony131.cjs +11 -4
- package/dist/harmony131.cjs.map +1 -1
- package/dist/harmony131.mjs +14 -7
- package/dist/harmony131.mjs.map +1 -1
- package/dist/harmony132.cjs +8 -20
- package/dist/harmony132.cjs.map +1 -1
- package/dist/harmony132.mjs +9 -21
- package/dist/harmony132.mjs.map +1 -1
- package/dist/harmony133.cjs +15 -25
- package/dist/harmony133.cjs.map +1 -1
- package/dist/harmony133.mjs +17 -27
- package/dist/harmony133.mjs.map +1 -1
- package/dist/harmony134.cjs +12 -21
- package/dist/harmony134.cjs.map +1 -1
- package/dist/harmony134.mjs +11 -20
- package/dist/harmony134.mjs.map +1 -1
- package/dist/harmony135.cjs +32 -15
- package/dist/harmony135.cjs.map +1 -1
- package/dist/harmony135.mjs +34 -17
- package/dist/harmony135.mjs.map +1 -1
- package/dist/harmony136.cjs +12 -6
- package/dist/harmony136.cjs.map +1 -1
- package/dist/harmony136.mjs +11 -5
- package/dist/harmony136.mjs.map +1 -1
- package/dist/harmony137.cjs +22 -15
- package/dist/harmony137.cjs.map +1 -1
- package/dist/harmony137.mjs +21 -14
- package/dist/harmony137.mjs.map +1 -1
- package/dist/harmony138.cjs +36 -7
- package/dist/harmony138.cjs.map +1 -1
- package/dist/harmony138.mjs +36 -7
- package/dist/harmony138.mjs.map +1 -1
- package/dist/harmony139.cjs +21 -17
- package/dist/harmony139.cjs.map +1 -1
- package/dist/harmony139.mjs +20 -16
- package/dist/harmony139.mjs.map +1 -1
- package/dist/harmony14.cjs +9 -55
- package/dist/harmony14.cjs.map +1 -1
- package/dist/harmony14.mjs +9 -55
- package/dist/harmony14.mjs.map +1 -1
- package/dist/harmony140.cjs +20 -7
- package/dist/harmony140.cjs.map +1 -1
- package/dist/harmony140.mjs +20 -7
- package/dist/harmony140.mjs.map +1 -1
- package/dist/harmony141.cjs +6 -8
- package/dist/harmony141.cjs.map +1 -1
- package/dist/harmony141.mjs +5 -7
- package/dist/harmony141.mjs.map +1 -1
- package/dist/harmony142.cjs +15 -15
- package/dist/harmony142.cjs.map +1 -1
- package/dist/harmony142.mjs +14 -14
- package/dist/harmony142.mjs.map +1 -1
- package/dist/harmony143.cjs +1 -1
- package/dist/harmony143.mjs +1 -1
- package/dist/harmony145.cjs +2 -2
- package/dist/harmony145.mjs +2 -2
- package/dist/harmony146.cjs +2 -2
- package/dist/harmony146.mjs +2 -2
- package/dist/harmony147.cjs +4 -10
- package/dist/harmony147.cjs.map +1 -1
- package/dist/harmony147.mjs +3 -9
- package/dist/harmony147.mjs.map +1 -1
- package/dist/harmony148.cjs +4 -7
- package/dist/harmony148.cjs.map +1 -1
- package/dist/harmony148.mjs +3 -6
- package/dist/harmony148.mjs.map +1 -1
- package/dist/harmony149.cjs +4 -10
- package/dist/harmony149.cjs.map +1 -1
- package/dist/harmony149.mjs +3 -9
- package/dist/harmony149.mjs.map +1 -1
- package/dist/harmony15.cjs +5 -30
- package/dist/harmony15.cjs.map +1 -1
- package/dist/harmony15.mjs +5 -30
- package/dist/harmony15.mjs.map +1 -1
- package/dist/harmony150.cjs +15 -25
- package/dist/harmony150.cjs.map +1 -1
- package/dist/harmony150.mjs +14 -24
- package/dist/harmony150.mjs.map +1 -1
- package/dist/harmony151.cjs +15 -7
- package/dist/harmony151.cjs.map +1 -1
- package/dist/harmony151.mjs +14 -6
- package/dist/harmony151.mjs.map +1 -1
- package/dist/harmony152.cjs +4 -13
- package/dist/harmony152.cjs.map +1 -1
- package/dist/harmony152.mjs +3 -12
- package/dist/harmony152.mjs.map +1 -1
- package/dist/harmony153.cjs +97 -7
- package/dist/harmony153.cjs.map +1 -1
- package/dist/harmony153.mjs +96 -6
- package/dist/harmony153.mjs.map +1 -1
- package/dist/harmony154.cjs +11 -94
- package/dist/harmony154.cjs.map +1 -1
- package/dist/harmony154.mjs +11 -94
- package/dist/harmony154.mjs.map +1 -1
- package/dist/harmony155.cjs +13 -12
- package/dist/harmony155.cjs.map +1 -1
- package/dist/harmony155.mjs +13 -12
- package/dist/harmony155.mjs.map +1 -1
- package/dist/harmony156.cjs +35 -13
- package/dist/harmony156.cjs.map +1 -1
- package/dist/harmony156.mjs +35 -13
- package/dist/harmony156.mjs.map +1 -1
- package/dist/harmony157.cjs +24 -32
- package/dist/harmony157.cjs.map +1 -1
- package/dist/harmony157.mjs +24 -32
- package/dist/harmony157.mjs.map +1 -1
- package/dist/harmony158.cjs +10 -29
- package/dist/harmony158.cjs.map +1 -1
- package/dist/harmony158.mjs +9 -28
- package/dist/harmony158.mjs.map +1 -1
- package/dist/harmony159.cjs +6 -10
- package/dist/harmony159.cjs.map +1 -1
- package/dist/harmony159.mjs +5 -9
- package/dist/harmony159.mjs.map +1 -1
- package/dist/harmony16.cjs +15 -18
- package/dist/harmony16.cjs.map +1 -1
- package/dist/harmony16.mjs +15 -18
- package/dist/harmony16.mjs.map +1 -1
- package/dist/harmony160.cjs +10 -4
- package/dist/harmony160.cjs.map +1 -1
- package/dist/harmony160.mjs +9 -3
- package/dist/harmony160.mjs.map +1 -1
- package/dist/harmony161.cjs +25 -4
- package/dist/harmony161.cjs.map +1 -1
- package/dist/harmony161.mjs +24 -3
- package/dist/harmony161.mjs.map +1 -1
- package/dist/harmony162.cjs +7 -4
- package/dist/harmony162.cjs.map +1 -1
- package/dist/harmony162.mjs +6 -3
- package/dist/harmony162.mjs.map +1 -1
- package/dist/harmony163.cjs +13 -15
- package/dist/harmony163.cjs.map +1 -1
- package/dist/harmony163.mjs +12 -14
- package/dist/harmony163.mjs.map +1 -1
- package/dist/harmony164.cjs +7 -15
- package/dist/harmony164.cjs.map +1 -1
- package/dist/harmony164.mjs +6 -14
- package/dist/harmony164.mjs.map +1 -1
- package/dist/harmony165.cjs +32 -3
- package/dist/harmony165.cjs.map +1 -1
- package/dist/harmony165.mjs +32 -3
- package/dist/harmony165.mjs.map +1 -1
- package/dist/harmony166.cjs +10 -13
- package/dist/harmony166.cjs.map +1 -1
- package/dist/harmony166.mjs +10 -13
- package/dist/harmony166.mjs.map +1 -1
- package/dist/harmony167.cjs +12 -14
- package/dist/harmony167.cjs.map +1 -1
- package/dist/harmony167.mjs +12 -14
- package/dist/harmony167.mjs.map +1 -1
- package/dist/harmony168.cjs +13 -14
- package/dist/harmony168.cjs.map +1 -1
- package/dist/harmony168.mjs +13 -14
- package/dist/harmony168.mjs.map +1 -1
- package/dist/harmony169.cjs +15 -10
- package/dist/harmony169.cjs.map +1 -1
- package/dist/harmony169.mjs +15 -10
- package/dist/harmony169.mjs.map +1 -1
- package/dist/harmony17.cjs +32 -28
- package/dist/harmony17.cjs.map +1 -1
- package/dist/harmony17.mjs +32 -28
- package/dist/harmony17.mjs.map +1 -1
- package/dist/harmony170.cjs +10 -15
- package/dist/harmony170.cjs.map +1 -1
- package/dist/harmony170.mjs +10 -15
- package/dist/harmony170.mjs.map +1 -1
- package/dist/harmony171.cjs +13 -18
- package/dist/harmony171.cjs.map +1 -1
- package/dist/harmony171.mjs +13 -18
- package/dist/harmony171.mjs.map +1 -1
- package/dist/harmony172.cjs +19 -10
- package/dist/harmony172.cjs.map +1 -1
- package/dist/harmony172.mjs +19 -10
- package/dist/harmony172.mjs.map +1 -1
- package/dist/harmony173.cjs +12 -32
- package/dist/harmony173.cjs.map +1 -1
- package/dist/harmony173.mjs +12 -32
- package/dist/harmony173.mjs.map +1 -1
- package/dist/harmony174.cjs +4 -6
- package/dist/harmony174.cjs.map +1 -1
- package/dist/harmony174.mjs +4 -6
- package/dist/harmony174.mjs.map +1 -1
- package/dist/harmony175.cjs +5 -11
- package/dist/harmony175.cjs.map +1 -1
- package/dist/harmony175.mjs +5 -11
- package/dist/harmony175.mjs.map +1 -1
- package/dist/harmony176.cjs +11 -31
- package/dist/harmony176.cjs.map +1 -1
- package/dist/harmony176.mjs +11 -31
- package/dist/harmony176.mjs.map +1 -1
- package/dist/harmony177.cjs +28 -10
- package/dist/harmony177.cjs.map +1 -1
- package/dist/harmony177.mjs +28 -10
- package/dist/harmony177.mjs.map +1 -1
- package/dist/harmony178.cjs +14 -4
- package/dist/harmony178.cjs.map +1 -1
- package/dist/harmony178.mjs +14 -4
- package/dist/harmony178.mjs.map +1 -1
- package/dist/harmony18.cjs +5 -14
- package/dist/harmony18.cjs.map +1 -1
- package/dist/harmony18.mjs +5 -14
- package/dist/harmony18.mjs.map +1 -1
- package/dist/harmony19.cjs +10 -13
- package/dist/harmony19.cjs.map +1 -1
- package/dist/harmony19.mjs +10 -13
- package/dist/harmony19.mjs.map +1 -1
- package/dist/harmony20.cjs +10 -13
- package/dist/harmony20.cjs.map +1 -1
- package/dist/harmony20.mjs +10 -13
- package/dist/harmony20.mjs.map +1 -1
- package/dist/harmony21.cjs +17 -13
- package/dist/harmony21.cjs.map +1 -1
- package/dist/harmony21.mjs +17 -13
- package/dist/harmony21.mjs.map +1 -1
- package/dist/harmony22.cjs +15 -13
- package/dist/harmony22.cjs.map +1 -1
- package/dist/harmony22.mjs +15 -13
- package/dist/harmony22.mjs.map +1 -1
- package/dist/harmony23.cjs +141 -12
- package/dist/harmony23.cjs.map +1 -1
- package/dist/harmony23.mjs +141 -12
- package/dist/harmony23.mjs.map +1 -1
- package/dist/harmony24.cjs +20 -22
- package/dist/harmony24.cjs.map +1 -1
- package/dist/harmony24.mjs +20 -22
- package/dist/harmony24.mjs.map +1 -1
- package/dist/harmony25.cjs +14 -13
- package/dist/harmony25.cjs.map +1 -1
- package/dist/harmony25.mjs +14 -13
- package/dist/harmony25.mjs.map +1 -1
- package/dist/harmony26.cjs +16 -12
- package/dist/harmony26.cjs.map +1 -1
- package/dist/harmony26.mjs +17 -13
- package/dist/harmony26.mjs.map +1 -1
- package/dist/harmony27.cjs +16 -15
- package/dist/harmony27.cjs.map +1 -1
- package/dist/harmony27.mjs +17 -16
- package/dist/harmony27.mjs.map +1 -1
- package/dist/harmony28.cjs +18 -15
- package/dist/harmony28.cjs.map +1 -1
- package/dist/harmony28.mjs +18 -15
- package/dist/harmony28.mjs.map +1 -1
- package/dist/harmony29.cjs +20 -15
- package/dist/harmony29.cjs.map +1 -1
- package/dist/harmony29.mjs +20 -15
- package/dist/harmony29.mjs.map +1 -1
- package/dist/harmony30.cjs +10 -15
- package/dist/harmony30.cjs.map +1 -1
- package/dist/harmony30.mjs +10 -15
- package/dist/harmony30.mjs.map +1 -1
- package/dist/harmony31.cjs +11 -15
- package/dist/harmony31.cjs.map +1 -1
- package/dist/harmony31.mjs +11 -15
- package/dist/harmony31.mjs.map +1 -1
- package/dist/harmony32.cjs +8 -16
- package/dist/harmony32.cjs.map +1 -1
- package/dist/harmony32.mjs +8 -16
- package/dist/harmony32.mjs.map +1 -1
- package/dist/harmony33.cjs +8 -16
- package/dist/harmony33.cjs.map +1 -1
- package/dist/harmony33.mjs +8 -16
- package/dist/harmony33.mjs.map +1 -1
- package/dist/harmony34.cjs +14 -16
- package/dist/harmony34.cjs.map +1 -1
- package/dist/harmony34.mjs +14 -16
- package/dist/harmony34.mjs.map +1 -1
- package/dist/harmony35.cjs +9 -16
- package/dist/harmony35.cjs.map +1 -1
- package/dist/harmony35.mjs +9 -16
- package/dist/harmony35.mjs.map +1 -1
- package/dist/harmony36.cjs +12 -16
- package/dist/harmony36.cjs.map +1 -1
- package/dist/harmony36.mjs +12 -16
- package/dist/harmony36.mjs.map +1 -1
- package/dist/harmony37.cjs +9 -14
- package/dist/harmony37.cjs.map +1 -1
- package/dist/harmony37.mjs +9 -14
- package/dist/harmony37.mjs.map +1 -1
- package/dist/harmony38.cjs +13 -16
- package/dist/harmony38.cjs.map +1 -1
- package/dist/harmony38.mjs +13 -16
- package/dist/harmony38.mjs.map +1 -1
- package/dist/harmony39.cjs +7 -16
- package/dist/harmony39.cjs.map +1 -1
- package/dist/harmony39.mjs +7 -16
- package/dist/harmony39.mjs.map +1 -1
- package/dist/harmony40.cjs +10 -17
- package/dist/harmony40.cjs.map +1 -1
- package/dist/harmony40.mjs +10 -17
- package/dist/harmony40.mjs.map +1 -1
- package/dist/harmony41.cjs +11 -14
- package/dist/harmony41.cjs.map +1 -1
- package/dist/harmony41.mjs +11 -14
- package/dist/harmony41.mjs.map +1 -1
- package/dist/harmony42.cjs +9 -14
- package/dist/harmony42.cjs.map +1 -1
- package/dist/harmony42.mjs +9 -14
- package/dist/harmony42.mjs.map +1 -1
- package/dist/harmony43.cjs +9 -124
- package/dist/harmony43.cjs.map +1 -1
- package/dist/harmony43.mjs +9 -124
- package/dist/harmony43.mjs.map +1 -1
- package/dist/harmony44.cjs +9 -82
- package/dist/harmony44.cjs.map +1 -1
- package/dist/harmony44.mjs +9 -82
- package/dist/harmony44.mjs.map +1 -1
- package/dist/harmony45.cjs +88 -6
- package/dist/harmony45.cjs.map +1 -1
- package/dist/harmony45.mjs +88 -6
- package/dist/harmony45.mjs.map +1 -1
- package/dist/harmony46.cjs +52 -25
- package/dist/harmony46.cjs.map +1 -1
- package/dist/harmony46.mjs +52 -25
- package/dist/harmony46.mjs.map +1 -1
- package/dist/harmony47.cjs +30 -23
- package/dist/harmony47.cjs.map +1 -1
- package/dist/harmony47.mjs +30 -23
- package/dist/harmony47.mjs.map +1 -1
- package/dist/harmony48.cjs +11 -141
- package/dist/harmony48.cjs.map +1 -1
- package/dist/harmony48.mjs +10 -140
- package/dist/harmony48.mjs.map +1 -1
- package/dist/harmony49.cjs +50 -32
- package/dist/harmony49.cjs.map +1 -1
- package/dist/harmony49.mjs +50 -32
- package/dist/harmony49.mjs.map +1 -1
- package/dist/harmony5.cjs +5 -5
- package/dist/harmony5.mjs +5 -5
- package/dist/harmony50.cjs +30 -26
- package/dist/harmony50.cjs.map +1 -1
- package/dist/harmony50.mjs +30 -26
- package/dist/harmony50.mjs.map +1 -1
- package/dist/harmony51.cjs +18 -4
- package/dist/harmony51.cjs.map +1 -1
- package/dist/harmony51.mjs +18 -4
- package/dist/harmony51.mjs.map +1 -1
- package/dist/harmony52.cjs +25 -81
- package/dist/harmony52.cjs.map +1 -1
- package/dist/harmony52.mjs +25 -81
- package/dist/harmony52.mjs.map +1 -1
- package/dist/harmony53.cjs +13 -57
- package/dist/harmony53.cjs.map +1 -1
- package/dist/harmony53.mjs +12 -56
- package/dist/harmony53.mjs.map +1 -1
- package/dist/harmony54.cjs +14 -18
- package/dist/harmony54.cjs.map +1 -1
- package/dist/harmony54.mjs +14 -18
- package/dist/harmony54.mjs.map +1 -1
- package/dist/harmony55.cjs +14 -30
- package/dist/harmony55.cjs.map +1 -1
- package/dist/harmony55.mjs +14 -30
- package/dist/harmony55.mjs.map +1 -1
- package/dist/harmony56.cjs +13 -22
- package/dist/harmony56.cjs.map +1 -1
- package/dist/harmony56.mjs +13 -22
- package/dist/harmony56.mjs.map +1 -1
- package/dist/harmony57.cjs +14 -52
- package/dist/harmony57.cjs.map +1 -1
- package/dist/harmony57.mjs +14 -52
- package/dist/harmony57.mjs.map +1 -1
- package/dist/harmony58.cjs +13 -9
- package/dist/harmony58.cjs.map +1 -1
- package/dist/harmony58.mjs +13 -9
- package/dist/harmony58.mjs.map +1 -1
- package/dist/harmony59.cjs +22 -5
- package/dist/harmony59.cjs.map +1 -1
- package/dist/harmony59.mjs +22 -5
- package/dist/harmony59.mjs.map +1 -1
- package/dist/harmony6.cjs +1 -1
- package/dist/harmony6.mjs +2 -2
- package/dist/harmony60.cjs +12 -14
- package/dist/harmony60.cjs.map +1 -1
- package/dist/harmony60.mjs +12 -14
- package/dist/harmony60.mjs.map +1 -1
- package/dist/harmony61.cjs +12 -31
- package/dist/harmony61.cjs.map +1 -1
- package/dist/harmony61.mjs +12 -31
- package/dist/harmony61.mjs.map +1 -1
- package/dist/harmony62.cjs +17 -5
- package/dist/harmony62.cjs.map +1 -1
- package/dist/harmony62.mjs +17 -5
- package/dist/harmony62.mjs.map +1 -1
- package/dist/harmony63.cjs +16 -10
- package/dist/harmony63.cjs.map +1 -1
- package/dist/harmony63.mjs +16 -10
- package/dist/harmony63.mjs.map +1 -1
- package/dist/harmony64.cjs +15 -11
- package/dist/harmony64.cjs.map +1 -1
- package/dist/harmony64.mjs +15 -11
- package/dist/harmony64.mjs.map +1 -1
- package/dist/harmony65.cjs +15 -18
- package/dist/harmony65.cjs.map +1 -1
- package/dist/harmony65.mjs +15 -18
- package/dist/harmony65.mjs.map +1 -1
- package/dist/harmony66.cjs +15 -16
- package/dist/harmony66.cjs.map +1 -1
- package/dist/harmony66.mjs +15 -16
- package/dist/harmony66.mjs.map +1 -1
- package/dist/harmony67.cjs +17 -142
- package/dist/harmony67.cjs.map +1 -1
- package/dist/harmony67.mjs +17 -142
- package/dist/harmony67.mjs.map +1 -1
- package/dist/harmony68.cjs +16 -19
- package/dist/harmony68.cjs.map +1 -1
- package/dist/harmony68.mjs +16 -19
- package/dist/harmony68.mjs.map +1 -1
- package/dist/harmony69.cjs +16 -13
- package/dist/harmony69.cjs.map +1 -1
- package/dist/harmony69.mjs +16 -13
- package/dist/harmony69.mjs.map +1 -1
- package/dist/harmony70.cjs +15 -15
- package/dist/harmony70.cjs.map +1 -1
- package/dist/harmony70.mjs +16 -16
- package/dist/harmony70.mjs.map +1 -1
- package/dist/harmony71.cjs +15 -16
- package/dist/harmony71.cjs.map +1 -1
- package/dist/harmony71.mjs +16 -17
- package/dist/harmony71.mjs.map +1 -1
- package/dist/harmony72.cjs +15 -20
- package/dist/harmony72.cjs.map +1 -1
- package/dist/harmony72.mjs +15 -20
- package/dist/harmony72.mjs.map +1 -1
- package/dist/harmony73.cjs +16 -19
- package/dist/harmony73.cjs.map +1 -1
- package/dist/harmony73.mjs +16 -19
- package/dist/harmony73.mjs.map +1 -1
- package/dist/harmony74.cjs +15 -8
- package/dist/harmony74.cjs.map +1 -1
- package/dist/harmony74.mjs +15 -8
- package/dist/harmony74.mjs.map +1 -1
- package/dist/harmony75.cjs +16 -9
- package/dist/harmony75.cjs.map +1 -1
- package/dist/harmony75.mjs +16 -9
- package/dist/harmony75.mjs.map +1 -1
- package/dist/harmony76.cjs +14 -9
- package/dist/harmony76.cjs.map +1 -1
- package/dist/harmony76.mjs +14 -9
- package/dist/harmony76.mjs.map +1 -1
- package/dist/harmony77.cjs +14 -9
- package/dist/harmony77.cjs.map +1 -1
- package/dist/harmony77.mjs +14 -9
- package/dist/harmony77.mjs.map +1 -1
- package/dist/harmony78.cjs +124 -15
- package/dist/harmony78.cjs.map +1 -1
- package/dist/harmony78.mjs +124 -15
- package/dist/harmony78.mjs.map +1 -1
- package/dist/harmony79.cjs +82 -10
- package/dist/harmony79.cjs.map +1 -1
- package/dist/harmony79.mjs +82 -10
- package/dist/harmony79.mjs.map +1 -1
- package/dist/harmony80.cjs +6 -13
- package/dist/harmony80.cjs.map +1 -1
- package/dist/harmony80.mjs +6 -13
- package/dist/harmony80.mjs.map +1 -1
- package/dist/harmony81.cjs +28 -10
- package/dist/harmony81.cjs.map +1 -1
- package/dist/harmony81.mjs +28 -10
- package/dist/harmony81.mjs.map +1 -1
- package/dist/harmony82.cjs +24 -14
- package/dist/harmony82.cjs.map +1 -1
- package/dist/harmony82.mjs +24 -14
- package/dist/harmony82.mjs.map +1 -1
- package/dist/harmony83.cjs +141 -8
- package/dist/harmony83.cjs.map +1 -1
- package/dist/harmony83.mjs +141 -8
- package/dist/harmony83.mjs.map +1 -1
- package/dist/harmony84.cjs +37 -11
- package/dist/harmony84.cjs.map +1 -1
- package/dist/harmony84.mjs +37 -11
- package/dist/harmony84.mjs.map +1 -1
- package/dist/harmony85.cjs +26 -11
- package/dist/harmony85.cjs.map +1 -1
- package/dist/harmony85.mjs +26 -11
- package/dist/harmony85.mjs.map +1 -1
- package/dist/harmony86.cjs +4 -9
- package/dist/harmony86.cjs.map +1 -1
- package/dist/harmony86.mjs +4 -9
- package/dist/harmony86.mjs.map +1 -1
- package/dist/harmony87.cjs +84 -9
- package/dist/harmony87.cjs.map +1 -1
- package/dist/harmony87.mjs +84 -9
- package/dist/harmony87.mjs.map +1 -1
- package/dist/harmony88.cjs +58 -9
- package/dist/harmony88.cjs.map +1 -1
- package/dist/harmony88.mjs +58 -9
- package/dist/harmony88.mjs.map +1 -1
- package/dist/harmony89.cjs +18 -88
- package/dist/harmony89.cjs.map +1 -1
- package/dist/harmony89.mjs +18 -88
- package/dist/harmony89.mjs.map +1 -1
- package/dist/harmony96.cjs +2 -2
- package/dist/harmony96.mjs +2 -2
- package/dist/harmony98.cjs +2 -2
- package/dist/harmony98.mjs +2 -2
- package/dist/harmony99.cjs +4 -4
- package/dist/harmony99.mjs +4 -4
- package/dist/types/src/features/publicApi/teamUsers.d.ts +2 -2
- package/dist/types/src/features/publicApi/types/teamUserTypes.d.ts +4 -4
- package/package.json +1 -1
package/dist/harmony54.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"harmony54.cjs","sources":["../src/features/publicApi/
|
|
1
|
+
{"version":3,"file":"harmony54.cjs","sources":["../src/features/publicApi/hooks/useAddContributorsMutation.ts"],"sourcesContent":["import type { HeaderBuilder } from '@features/auth/core/headers/headerBuilder'\nimport { addContributors } from '@features/publicApi/contributors'\nimport type {\n\tAddContributorsPathParams,\n\tAddContributorsRequestBody,\n\tAddContributorsResponse,\n\tContributorApiBaseHeader,\n} from '@features/publicApi/types/contributorTypes'\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\n/**\n * A react-query wrapper about the addContributor public API endpoint\n *\n * @param wretchClient - Wretch instance configured to a public API instance.\n * @param headers - Headers to include in the request.\n * @param params - URL parameters\n * @param overrides - Additional options to pass to the query.\n */\nexport function useAddContributorMutation<T>(\n\twretchClient: Wretch<T>,\n\theaders: HeaderBuilder<ContributorApiBaseHeader>,\n\tparams: AddContributorsPathParams,\n\toverrides: ApiMutationOverrides<AddContributorsResponse, AddContributorsRequestBody> = {},\n) {\n\treturn useMutation({\n\t\t...overrides,\n\t\tmutationFn: async (variables) =>\n\t\t\tsendByPayloadRoute(wretchClient, addContributors, {\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","addContributors"],"mappings":";;;;;AAqBO,SAAS,0BACf,cACA,SACA,QACA,YAAuF,CAAA,GACtF;AACD,SAAOA,uBAAY;AAAA,IAClB,GAAG;AAAA,IACH,YAAY,OAAO,cAClBC,sCAAmB,cAAcC,aAAAA,iBAAiB;AAAA,MACjD,SAAS,MAAM,QAAQ,QAAQ;AAAA,MAC/B,MAAM;AAAA,MACN,YAAY;AAAA,IACZ,CAAA;AAAA,EAAA,CACF;AACF;;"}
|
package/dist/harmony54.mjs
CHANGED
|
@@ -1,21 +1,17 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
AUTHORIZATION_HEADER_SCHEMA,
|
|
15
|
-
X_CSRF_TOKEN_SCHEMA
|
|
16
|
-
]);
|
|
1
|
+
import { addContributors } from "./harmony46.mjs";
|
|
2
|
+
import { sendByPayloadRoute } from "@lokalise/frontend-http-client";
|
|
3
|
+
import { useMutation } from "@tanstack/react-query";
|
|
4
|
+
function useAddContributorMutation(wretchClient, headers, params, overrides = {}) {
|
|
5
|
+
return useMutation({
|
|
6
|
+
...overrides,
|
|
7
|
+
mutationFn: async (variables) => sendByPayloadRoute(wretchClient, addContributors, {
|
|
8
|
+
headers: await headers.resolve(),
|
|
9
|
+
body: variables,
|
|
10
|
+
pathParams: params
|
|
11
|
+
})
|
|
12
|
+
});
|
|
13
|
+
}
|
|
17
14
|
export {
|
|
18
|
-
|
|
19
|
-
USER_TOKEN_REQUEST_HEADER_SCHEMA
|
|
15
|
+
useAddContributorMutation
|
|
20
16
|
};
|
|
21
17
|
//# sourceMappingURL=harmony54.mjs.map
|
package/dist/harmony54.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"harmony54.mjs","sources":["../src/features/publicApi/
|
|
1
|
+
{"version":3,"file":"harmony54.mjs","sources":["../src/features/publicApi/hooks/useAddContributorsMutation.ts"],"sourcesContent":["import type { HeaderBuilder } from '@features/auth/core/headers/headerBuilder'\nimport { addContributors } from '@features/publicApi/contributors'\nimport type {\n\tAddContributorsPathParams,\n\tAddContributorsRequestBody,\n\tAddContributorsResponse,\n\tContributorApiBaseHeader,\n} from '@features/publicApi/types/contributorTypes'\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\n/**\n * A react-query wrapper about the addContributor public API endpoint\n *\n * @param wretchClient - Wretch instance configured to a public API instance.\n * @param headers - Headers to include in the request.\n * @param params - URL parameters\n * @param overrides - Additional options to pass to the query.\n */\nexport function useAddContributorMutation<T>(\n\twretchClient: Wretch<T>,\n\theaders: HeaderBuilder<ContributorApiBaseHeader>,\n\tparams: AddContributorsPathParams,\n\toverrides: ApiMutationOverrides<AddContributorsResponse, AddContributorsRequestBody> = {},\n) {\n\treturn useMutation({\n\t\t...overrides,\n\t\tmutationFn: async (variables) =>\n\t\t\tsendByPayloadRoute(wretchClient, addContributors, {\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,0BACf,cACA,SACA,QACA,YAAuF,CAAA,GACtF;AACD,SAAO,YAAY;AAAA,IAClB,GAAG;AAAA,IACH,YAAY,OAAO,cAClB,mBAAmB,cAAc,iBAAiB;AAAA,MACjD,SAAS,MAAM,QAAQ,QAAQ;AAAA,MAC/B,MAAM;AAAA,MACN,YAAY;AAAA,IACZ,CAAA;AAAA,EAAA,CACF;AACF;"}
|
package/dist/harmony55.cjs
CHANGED
|
@@ -1,33 +1,17 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const
|
|
4
|
-
const
|
|
5
|
-
const
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
const isEnterpriseOpenSourcePlan = (planId) => planId === ENTERPRISE_OPENSOURCE_PLAN_ID;
|
|
18
|
-
exports.ENTERPRISE_OPENSOURCE_PLAN_ID = ENTERPRISE_OPENSOURCE_PLAN_ID;
|
|
19
|
-
exports.ENTERPRISE_PLAN_IDS = ENTERPRISE_PLAN_IDS;
|
|
20
|
-
exports.ESSENTIAL_PLAN_IDS = ESSENTIAL_PLAN_IDS;
|
|
21
|
-
exports.FREE_PLAN_ID = FREE_PLAN_ID;
|
|
22
|
-
exports.PRO_PLAN_IDS = PRO_PLAN_IDS;
|
|
23
|
-
exports.START_PLAN_IDS = START_PLAN_IDS;
|
|
24
|
-
exports.TRIAL_PLAN_ID = TRIAL_PLAN_ID;
|
|
25
|
-
exports.isEnterpriseOpenSourcePlan = isEnterpriseOpenSourcePlan;
|
|
26
|
-
exports.isEnterprisePlan = isEnterprisePlan;
|
|
27
|
-
exports.isEssentialPlan = isEssentialPlan;
|
|
28
|
-
exports.isFreePlan = isFreePlan;
|
|
29
|
-
exports.isPaidPlan = isPaidPlan;
|
|
30
|
-
exports.isProPlan = isProPlan;
|
|
31
|
-
exports.isStartPlan = isStartPlan;
|
|
32
|
-
exports.isTrialPlan = isTrialPlan;
|
|
3
|
+
const languages = require("./harmony47.cjs");
|
|
4
|
+
const frontendHttpClient = require("@lokalise/frontend-http-client");
|
|
5
|
+
const reactQuery = require("@tanstack/react-query");
|
|
6
|
+
function useAddLanguagesToProjectMutation(wretchClient, params, headers, overrides = {}) {
|
|
7
|
+
return reactQuery.useMutation({
|
|
8
|
+
...overrides,
|
|
9
|
+
mutationFn: async (variables) => frontendHttpClient.sendByPayloadRoute(wretchClient, languages.addLanguagesToProject, {
|
|
10
|
+
pathParams: params,
|
|
11
|
+
headers: await headers.resolve(),
|
|
12
|
+
body: variables
|
|
13
|
+
})
|
|
14
|
+
});
|
|
15
|
+
}
|
|
16
|
+
exports.useAddLanguagesToProjectMutation = useAddLanguagesToProjectMutation;
|
|
33
17
|
//# sourceMappingURL=harmony55.cjs.map
|
package/dist/harmony55.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"harmony55.cjs","sources":["../src/
|
|
1
|
+
{"version":3,"file":"harmony55.cjs","sources":["../src/features/publicApi/hooks/useAddLanguagesToProjectMutation.ts"],"sourcesContent":["import type { HeaderBuilder } from '@features/auth/core/headers/headerBuilder'\nimport { addLanguagesToProject } from '@features/publicApi/languages'\nimport type {\n\tAddLanguagesToProjectPathParams,\n\tAddLanguagesToProjectRequestBody,\n\tAddLanguagesToProjectResponse,\n} from '@features/publicApi/types/languageTypes'\nimport type { BaseApiEndpointHeader } from '@features/publicApi/types/sharedTypes'\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\n/**\n * A react-router wrapper about the addLanguagesToProject public API endpoint\n *\n * @param wretchClient - Wretch instance configured to a public API instance.\n * @param params - URL parameters\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 useAddLanguagesToProjectMutation<T>(\n\twretchClient: Wretch<T>,\n\tparams: AddLanguagesToProjectPathParams,\n\theaders: HeaderBuilder<BaseApiEndpointHeader>,\n\toverrides: ApiMutationOverrides<\n\t\tAddLanguagesToProjectResponse,\n\t\tAddLanguagesToProjectRequestBody\n\t> = {},\n) {\n\treturn useMutation({\n\t\t...overrides,\n\t\tmutationFn: async (variables) =>\n\t\t\tsendByPayloadRoute(wretchClient, addLanguagesToProject, {\n\t\t\t\tpathParams: params,\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","addLanguagesToProject"],"mappings":";;;;;AAqBO,SAAS,iCACf,cACA,QACA,SACA,YAGI,CAAA,GACH;AACD,SAAOA,uBAAY;AAAA,IAClB,GAAG;AAAA,IACH,YAAY,OAAO,cAClBC,sCAAmB,cAAcC,UAAAA,uBAAuB;AAAA,MACvD,YAAY;AAAA,MACZ,SAAS,MAAM,QAAQ,QAAQ;AAAA,MAC/B,MAAM;AAAA,IACN,CAAA;AAAA,EAAA,CACF;AACF;;"}
|
package/dist/harmony55.mjs
CHANGED
|
@@ -1,33 +1,17 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
const isPaidPlan = (planId) => planId > FREE_PLAN_ID && planId < ENTERPRISE_OPENSOURCE_PLAN_ID;
|
|
15
|
-
const isEnterpriseOpenSourcePlan = (planId) => planId === ENTERPRISE_OPENSOURCE_PLAN_ID;
|
|
1
|
+
import { addLanguagesToProject } from "./harmony47.mjs";
|
|
2
|
+
import { sendByPayloadRoute } from "@lokalise/frontend-http-client";
|
|
3
|
+
import { useMutation } from "@tanstack/react-query";
|
|
4
|
+
function useAddLanguagesToProjectMutation(wretchClient, params, headers, overrides = {}) {
|
|
5
|
+
return useMutation({
|
|
6
|
+
...overrides,
|
|
7
|
+
mutationFn: async (variables) => sendByPayloadRoute(wretchClient, addLanguagesToProject, {
|
|
8
|
+
pathParams: params,
|
|
9
|
+
headers: await headers.resolve(),
|
|
10
|
+
body: variables
|
|
11
|
+
})
|
|
12
|
+
});
|
|
13
|
+
}
|
|
16
14
|
export {
|
|
17
|
-
|
|
18
|
-
ENTERPRISE_PLAN_IDS,
|
|
19
|
-
ESSENTIAL_PLAN_IDS,
|
|
20
|
-
FREE_PLAN_ID,
|
|
21
|
-
PRO_PLAN_IDS,
|
|
22
|
-
START_PLAN_IDS,
|
|
23
|
-
TRIAL_PLAN_ID,
|
|
24
|
-
isEnterpriseOpenSourcePlan,
|
|
25
|
-
isEnterprisePlan,
|
|
26
|
-
isEssentialPlan,
|
|
27
|
-
isFreePlan,
|
|
28
|
-
isPaidPlan,
|
|
29
|
-
isProPlan,
|
|
30
|
-
isStartPlan,
|
|
31
|
-
isTrialPlan
|
|
15
|
+
useAddLanguagesToProjectMutation
|
|
32
16
|
};
|
|
33
17
|
//# sourceMappingURL=harmony55.mjs.map
|
package/dist/harmony55.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"harmony55.mjs","sources":["../src/
|
|
1
|
+
{"version":3,"file":"harmony55.mjs","sources":["../src/features/publicApi/hooks/useAddLanguagesToProjectMutation.ts"],"sourcesContent":["import type { HeaderBuilder } from '@features/auth/core/headers/headerBuilder'\nimport { addLanguagesToProject } from '@features/publicApi/languages'\nimport type {\n\tAddLanguagesToProjectPathParams,\n\tAddLanguagesToProjectRequestBody,\n\tAddLanguagesToProjectResponse,\n} from '@features/publicApi/types/languageTypes'\nimport type { BaseApiEndpointHeader } from '@features/publicApi/types/sharedTypes'\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\n/**\n * A react-router wrapper about the addLanguagesToProject public API endpoint\n *\n * @param wretchClient - Wretch instance configured to a public API instance.\n * @param params - URL parameters\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 useAddLanguagesToProjectMutation<T>(\n\twretchClient: Wretch<T>,\n\tparams: AddLanguagesToProjectPathParams,\n\theaders: HeaderBuilder<BaseApiEndpointHeader>,\n\toverrides: ApiMutationOverrides<\n\t\tAddLanguagesToProjectResponse,\n\t\tAddLanguagesToProjectRequestBody\n\t> = {},\n) {\n\treturn useMutation({\n\t\t...overrides,\n\t\tmutationFn: async (variables) =>\n\t\t\tsendByPayloadRoute(wretchClient, addLanguagesToProject, {\n\t\t\t\tpathParams: params,\n\t\t\t\theaders: await headers.resolve(),\n\t\t\t\tbody: variables,\n\t\t\t}),\n\t})\n}\n"],"names":[],"mappings":";;;AAqBO,SAAS,iCACf,cACA,QACA,SACA,YAGI,CAAA,GACH;AACD,SAAO,YAAY;AAAA,IAClB,GAAG;AAAA,IACH,YAAY,OAAO,cAClB,mBAAmB,cAAc,uBAAuB;AAAA,MACvD,YAAY;AAAA,MACZ,SAAS,MAAM,QAAQ,QAAQ;AAAA,MAC/B,MAAM;AAAA,IACN,CAAA;AAAA,EAAA,CACF;AACF;"}
|
package/dist/harmony56.cjs
CHANGED
|
@@ -1,26 +1,17 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const
|
|
4
|
-
const
|
|
5
|
-
const
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
return replaceString(input, search, replace);
|
|
15
|
-
}
|
|
16
|
-
return input.flatMap((item) => {
|
|
17
|
-
if (typeof item === "string") {
|
|
18
|
-
return replaceString(item, search, replace);
|
|
19
|
-
}
|
|
20
|
-
return item;
|
|
3
|
+
const languages = require("./harmony47.cjs");
|
|
4
|
+
const frontendHttpClient = require("@lokalise/frontend-http-client");
|
|
5
|
+
const reactQuery = require("@tanstack/react-query");
|
|
6
|
+
function useBulkUpdateProjectLanguagesMutation(wretchClient, params, headers, overrides = {}) {
|
|
7
|
+
return reactQuery.useMutation({
|
|
8
|
+
...overrides,
|
|
9
|
+
mutationFn: async (variables) => frontendHttpClient.sendByPayloadRoute(wretchClient, languages.bulkUpdateProjectLanguages, {
|
|
10
|
+
pathParams: params,
|
|
11
|
+
headers: await headers.resolve(),
|
|
12
|
+
body: variables
|
|
13
|
+
})
|
|
21
14
|
});
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
exports.convertNewLineToBreakTag = convertNewLineToBreakTag;
|
|
25
|
-
exports.replaceStringWithElement = replaceStringWithElement;
|
|
15
|
+
}
|
|
16
|
+
exports.useBulkUpdateProjectLanguagesMutation = useBulkUpdateProjectLanguagesMutation;
|
|
26
17
|
//# sourceMappingURL=harmony56.cjs.map
|
package/dist/harmony56.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"harmony56.cjs","sources":["../src/
|
|
1
|
+
{"version":3,"file":"harmony56.cjs","sources":["../src/features/publicApi/hooks/useBulkUpdateProjectLanguagesMutation.ts"],"sourcesContent":["import type { HeaderBuilder } from '@features/auth/core/headers/headerBuilder'\nimport { bulkUpdateProjectLanguages } from '@features/publicApi/languages'\nimport type {\n\tBulkUpdateProjectLanguagesPathParams,\n\tBulkUpdateProjectLanguagesRequestBody,\n\tBulkUpdateProjectLanguagesResponse,\n} from '@features/publicApi/types/languageTypes'\nimport type { BaseApiEndpointHeader } from '@features/publicApi/types/sharedTypes'\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\n/**\n * A react-router wrapper about the bulkUpdateProjectLanguages public API endpoint\n *\n * @param wretchClient - Wretch instance configured to a public API instance.\n * @param params - URL parameters\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 useBulkUpdateProjectLanguagesMutation<T>(\n\twretchClient: Wretch<T>,\n\tparams: BulkUpdateProjectLanguagesPathParams,\n\theaders: HeaderBuilder<BaseApiEndpointHeader>,\n\toverrides: ApiMutationOverrides<\n\t\tBulkUpdateProjectLanguagesResponse,\n\t\tBulkUpdateProjectLanguagesRequestBody\n\t> = {},\n) {\n\treturn useMutation({\n\t\t...overrides,\n\t\tmutationFn: async (variables) =>\n\t\t\tsendByPayloadRoute(wretchClient, bulkUpdateProjectLanguages, {\n\t\t\t\tpathParams: params,\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","bulkUpdateProjectLanguages"],"mappings":";;;;;AAqBO,SAAS,sCACf,cACA,QACA,SACA,YAGI,CAAA,GACH;AACD,SAAOA,uBAAY;AAAA,IAClB,GAAG;AAAA,IACH,YAAY,OAAO,cAClBC,sCAAmB,cAAcC,UAAAA,4BAA4B;AAAA,MAC5D,YAAY;AAAA,MACZ,SAAS,MAAM,QAAQ,QAAQ;AAAA,MAC/B,MAAM;AAAA,IACN,CAAA;AAAA,EAAA,CACF;AACF;;"}
|
package/dist/harmony56.mjs
CHANGED
|
@@ -1,26 +1,17 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
return replaceString(input, search, replace);
|
|
13
|
-
}
|
|
14
|
-
return input.flatMap((item) => {
|
|
15
|
-
if (typeof item === "string") {
|
|
16
|
-
return replaceString(item, search, replace);
|
|
17
|
-
}
|
|
18
|
-
return item;
|
|
1
|
+
import { bulkUpdateProjectLanguages } from "./harmony47.mjs";
|
|
2
|
+
import { sendByPayloadRoute } from "@lokalise/frontend-http-client";
|
|
3
|
+
import { useMutation } from "@tanstack/react-query";
|
|
4
|
+
function useBulkUpdateProjectLanguagesMutation(wretchClient, params, headers, overrides = {}) {
|
|
5
|
+
return useMutation({
|
|
6
|
+
...overrides,
|
|
7
|
+
mutationFn: async (variables) => sendByPayloadRoute(wretchClient, bulkUpdateProjectLanguages, {
|
|
8
|
+
pathParams: params,
|
|
9
|
+
headers: await headers.resolve(),
|
|
10
|
+
body: variables
|
|
11
|
+
})
|
|
19
12
|
});
|
|
20
|
-
}
|
|
21
|
-
const convertNewLineToBreakTag = (text) => replaceStringWithElement(text, newLineRegExp, /* @__PURE__ */ jsx("br", {}));
|
|
13
|
+
}
|
|
22
14
|
export {
|
|
23
|
-
|
|
24
|
-
replaceStringWithElement
|
|
15
|
+
useBulkUpdateProjectLanguagesMutation
|
|
25
16
|
};
|
|
26
17
|
//# sourceMappingURL=harmony56.mjs.map
|
package/dist/harmony56.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"harmony56.mjs","sources":["../src/
|
|
1
|
+
{"version":3,"file":"harmony56.mjs","sources":["../src/features/publicApi/hooks/useBulkUpdateProjectLanguagesMutation.ts"],"sourcesContent":["import type { HeaderBuilder } from '@features/auth/core/headers/headerBuilder'\nimport { bulkUpdateProjectLanguages } from '@features/publicApi/languages'\nimport type {\n\tBulkUpdateProjectLanguagesPathParams,\n\tBulkUpdateProjectLanguagesRequestBody,\n\tBulkUpdateProjectLanguagesResponse,\n} from '@features/publicApi/types/languageTypes'\nimport type { BaseApiEndpointHeader } from '@features/publicApi/types/sharedTypes'\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\n/**\n * A react-router wrapper about the bulkUpdateProjectLanguages public API endpoint\n *\n * @param wretchClient - Wretch instance configured to a public API instance.\n * @param params - URL parameters\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 useBulkUpdateProjectLanguagesMutation<T>(\n\twretchClient: Wretch<T>,\n\tparams: BulkUpdateProjectLanguagesPathParams,\n\theaders: HeaderBuilder<BaseApiEndpointHeader>,\n\toverrides: ApiMutationOverrides<\n\t\tBulkUpdateProjectLanguagesResponse,\n\t\tBulkUpdateProjectLanguagesRequestBody\n\t> = {},\n) {\n\treturn useMutation({\n\t\t...overrides,\n\t\tmutationFn: async (variables) =>\n\t\t\tsendByPayloadRoute(wretchClient, bulkUpdateProjectLanguages, {\n\t\t\t\tpathParams: params,\n\t\t\t\theaders: await headers.resolve(),\n\t\t\t\tbody: variables,\n\t\t\t}),\n\t})\n}\n"],"names":[],"mappings":";;;AAqBO,SAAS,sCACf,cACA,QACA,SACA,YAGI,CAAA,GACH;AACD,SAAO,YAAY;AAAA,IAClB,GAAG;AAAA,IACH,YAAY,OAAO,cAClB,mBAAmB,cAAc,4BAA4B;AAAA,MAC5D,YAAY;AAAA,MACZ,SAAS,MAAM,QAAQ,QAAQ;AAAA,MAC/B,MAAM;AAAA,IACN,CAAA;AAAA,EAAA,CACF;AACF;"}
|
package/dist/harmony57.cjs
CHANGED
|
@@ -1,55 +1,17 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const
|
|
4
|
-
const
|
|
5
|
-
const
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
components.pop();
|
|
18
|
-
}
|
|
19
|
-
result.push(
|
|
20
|
-
/* @__PURE__ */ jsxRuntime.jsx("a", { href: pattern, target: "_blank", rel: "noreferrer noopener", children: pattern }, pattern + index)
|
|
21
|
-
);
|
|
22
|
-
result.push(components.join(pattern));
|
|
23
|
-
return result.filter((item) => item !== "");
|
|
24
|
-
};
|
|
25
|
-
const matchUrlsAndReplace = (text) => {
|
|
26
|
-
const matchedUrls = matchUrl(text);
|
|
27
|
-
if (!(matchedUrls == null ? void 0 : matchedUrls.length)) {
|
|
28
|
-
return text;
|
|
29
|
-
}
|
|
30
|
-
return matchedUrls.reduce((accumulator, pattern, index) => {
|
|
31
|
-
if (typeof accumulator === "string") {
|
|
32
|
-
return replaceWithAnchor(accumulator, pattern, index);
|
|
33
|
-
}
|
|
34
|
-
return accumulator.flatMap((item) => {
|
|
35
|
-
if (typeof item === "string") {
|
|
36
|
-
return replaceWithAnchor(item, pattern, index);
|
|
37
|
-
}
|
|
38
|
-
return item;
|
|
39
|
-
});
|
|
40
|
-
}, text);
|
|
41
|
-
};
|
|
42
|
-
const makeUrlClickable = (text) => {
|
|
43
|
-
if (typeof text === "string") {
|
|
44
|
-
return matchUrlsAndReplace(text);
|
|
45
|
-
}
|
|
46
|
-
return text.flatMap((item) => {
|
|
47
|
-
if (typeof item === "string") {
|
|
48
|
-
return matchUrlsAndReplace(item);
|
|
49
|
-
}
|
|
50
|
-
return item;
|
|
51
|
-
}, text);
|
|
52
|
-
};
|
|
53
|
-
exports.makeUrlClickable = makeUrlClickable;
|
|
54
|
-
exports.matchUrl = matchUrl;
|
|
3
|
+
const frontendHttpClient = require("@lokalise/frontend-http-client");
|
|
4
|
+
const reactQuery = require("@tanstack/react-query");
|
|
5
|
+
const score = require("./harmony50.cjs");
|
|
6
|
+
function useCreateScoreMutation(wretchClient, headers, overrides = {}) {
|
|
7
|
+
return reactQuery.useMutation({
|
|
8
|
+
...overrides,
|
|
9
|
+
mutationFn: async ({ segmentId, sourceLanguageId, projectId, keyId, languageId }) => frontendHttpClient.sendByPayloadRoute(wretchClient, score.createScore, {
|
|
10
|
+
headers: await headers.resolve(),
|
|
11
|
+
pathParams: { projectId, keyId, languageId },
|
|
12
|
+
body: { segmentId, sourceLanguageId }
|
|
13
|
+
})
|
|
14
|
+
});
|
|
15
|
+
}
|
|
16
|
+
exports.useCreateScoreMutation = useCreateScoreMutation;
|
|
55
17
|
//# sourceMappingURL=harmony57.cjs.map
|
package/dist/harmony57.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"harmony57.cjs","sources":["../src/
|
|
1
|
+
{"version":3,"file":"harmony57.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/harmony57.mjs
CHANGED
|
@@ -1,55 +1,17 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
if (components[components.length - 1] === "") {
|
|
15
|
-
components.pop();
|
|
16
|
-
}
|
|
17
|
-
result.push(
|
|
18
|
-
/* @__PURE__ */ jsx("a", { href: pattern, target: "_blank", rel: "noreferrer noopener", children: pattern }, pattern + index)
|
|
19
|
-
);
|
|
20
|
-
result.push(components.join(pattern));
|
|
21
|
-
return result.filter((item) => item !== "");
|
|
22
|
-
};
|
|
23
|
-
const matchUrlsAndReplace = (text) => {
|
|
24
|
-
const matchedUrls = matchUrl(text);
|
|
25
|
-
if (!(matchedUrls == null ? void 0 : matchedUrls.length)) {
|
|
26
|
-
return text;
|
|
27
|
-
}
|
|
28
|
-
return matchedUrls.reduce((accumulator, pattern, index) => {
|
|
29
|
-
if (typeof accumulator === "string") {
|
|
30
|
-
return replaceWithAnchor(accumulator, pattern, index);
|
|
31
|
-
}
|
|
32
|
-
return accumulator.flatMap((item) => {
|
|
33
|
-
if (typeof item === "string") {
|
|
34
|
-
return replaceWithAnchor(item, pattern, index);
|
|
35
|
-
}
|
|
36
|
-
return item;
|
|
37
|
-
});
|
|
38
|
-
}, text);
|
|
39
|
-
};
|
|
40
|
-
const makeUrlClickable = (text) => {
|
|
41
|
-
if (typeof text === "string") {
|
|
42
|
-
return matchUrlsAndReplace(text);
|
|
43
|
-
}
|
|
44
|
-
return text.flatMap((item) => {
|
|
45
|
-
if (typeof item === "string") {
|
|
46
|
-
return matchUrlsAndReplace(item);
|
|
47
|
-
}
|
|
48
|
-
return item;
|
|
49
|
-
}, text);
|
|
50
|
-
};
|
|
1
|
+
import { sendByPayloadRoute } from "@lokalise/frontend-http-client";
|
|
2
|
+
import { useMutation } from "@tanstack/react-query";
|
|
3
|
+
import { createScore } from "./harmony50.mjs";
|
|
4
|
+
function useCreateScoreMutation(wretchClient, headers, overrides = {}) {
|
|
5
|
+
return useMutation({
|
|
6
|
+
...overrides,
|
|
7
|
+
mutationFn: async ({ segmentId, sourceLanguageId, projectId, keyId, languageId }) => sendByPayloadRoute(wretchClient, createScore, {
|
|
8
|
+
headers: await headers.resolve(),
|
|
9
|
+
pathParams: { projectId, keyId, languageId },
|
|
10
|
+
body: { segmentId, sourceLanguageId }
|
|
11
|
+
})
|
|
12
|
+
});
|
|
13
|
+
}
|
|
51
14
|
export {
|
|
52
|
-
|
|
53
|
-
matchUrl
|
|
15
|
+
useCreateScoreMutation
|
|
54
16
|
};
|
|
55
17
|
//# sourceMappingURL=harmony57.mjs.map
|
package/dist/harmony57.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"harmony57.mjs","sources":["../src/
|
|
1
|
+
{"version":3,"file":"harmony57.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/harmony58.cjs
CHANGED
|
@@ -1,12 +1,16 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const
|
|
4
|
-
const
|
|
5
|
-
const
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
3
|
+
const frontendHttpClient = require("@lokalise/frontend-http-client");
|
|
4
|
+
const reactQuery = require("@tanstack/react-query");
|
|
5
|
+
const projects = require("./harmony49.cjs");
|
|
6
|
+
function useCreateProjectMutation(wretchClient, headers, overrides = {}) {
|
|
7
|
+
return reactQuery.useMutation({
|
|
8
|
+
...overrides,
|
|
9
|
+
mutationFn: async (variables) => frontendHttpClient.sendByPayloadRoute(wretchClient, projects.createProject, {
|
|
10
|
+
headers: await headers.resolve(),
|
|
11
|
+
body: variables
|
|
12
|
+
})
|
|
13
|
+
});
|
|
14
|
+
}
|
|
15
|
+
exports.useCreateProjectMutation = useCreateProjectMutation;
|
|
12
16
|
//# sourceMappingURL=harmony58.cjs.map
|
package/dist/harmony58.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"harmony58.cjs","sources":["../src/
|
|
1
|
+
{"version":3,"file":"harmony58.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/harmony58.mjs
CHANGED
|
@@ -1,12 +1,16 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
import { sendByPayloadRoute } from "@lokalise/frontend-http-client";
|
|
2
|
+
import { useMutation } from "@tanstack/react-query";
|
|
3
|
+
import { createProject } from "./harmony49.mjs";
|
|
4
|
+
function useCreateProjectMutation(wretchClient, headers, overrides = {}) {
|
|
5
|
+
return useMutation({
|
|
6
|
+
...overrides,
|
|
7
|
+
mutationFn: async (variables) => sendByPayloadRoute(wretchClient, createProject, {
|
|
8
|
+
headers: await headers.resolve(),
|
|
9
|
+
body: variables
|
|
10
|
+
})
|
|
11
|
+
});
|
|
12
|
+
}
|
|
8
13
|
export {
|
|
9
|
-
|
|
10
|
-
formatDateTz
|
|
14
|
+
useCreateProjectMutation
|
|
11
15
|
};
|
|
12
16
|
//# sourceMappingURL=harmony58.mjs.map
|
package/dist/harmony58.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"harmony58.mjs","sources":["../src/
|
|
1
|
+
{"version":3,"file":"harmony58.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;"}
|