@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/harmony39.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"harmony39.cjs","sources":["../src/features/
|
|
1
|
+
{"version":3,"file":"harmony39.cjs","sources":["../src/features/permissions/hooks/useCanPerformAction.ts"],"sourcesContent":["import type { Action } from '@features/permissions/action'\nimport { useActionResolverPayload } from '@features/permissions/hooks/useActionResolverPayload'\nimport { canPerformAction } from '@features/permissions/utils/canPerformAction'\nimport { useMemo } from 'react'\n\n/**\n * React hook to determine if the current user has permission to perform a specific action.\n *\n * This hook is useful for conditionally rendering UI elements or triggering logic\n * based on whether the user can perform a given action.\n * It leverages the permissions context and returns a boolean indicating the user's ability.\n *\n * @param action The action to check permission for (e.g. 'accessMarketingProjects', 'deleteProjects').\n * @returns {boolean} True if the user can perform the action, otherwise false.\n *\n * @example\n * // Check if the user can access marketing projects\n * const canAccess = useCanPerformAction(\"accessMarketingProjects\");\n * if (canAccess) {\n * // show marketing dashboard\n * }\n */\nexport const useCanPerformAction = (action: Action): boolean => {\n\tconst payload = useActionResolverPayload()\n\n\treturn useMemo(() => canPerformAction(action, payload), [action, payload])\n}\n"],"names":["useActionResolverPayload","useMemo","canPerformAction"],"mappings":";;;;;AAsBa,MAAA,sBAAsB,CAAC,WAA4B;AAC/D,QAAM,UAAUA,yBAAAA,yBAAyB;AAElC,SAAAC,MAAA,QAAQ,MAAMC,iBAAAA,iBAAiB,QAAQ,OAAO,GAAG,CAAC,QAAQ,OAAO,CAAC;AAC1E;;"}
|
package/dist/harmony39.mjs
CHANGED
|
@@ -1,20 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
const
|
|
5
|
-
|
|
1
|
+
import { useActionResolverPayload } from "./harmony123.mjs";
|
|
2
|
+
import { canPerformAction } from "./harmony44.mjs";
|
|
3
|
+
import { useMemo } from "react";
|
|
4
|
+
const useCanPerformAction = (action) => {
|
|
5
|
+
const payload = useActionResolverPayload();
|
|
6
|
+
return useMemo(() => canPerformAction(action, payload), [action, payload]);
|
|
6
7
|
};
|
|
7
|
-
function useRetrieveTeamQuery(wretchClient, headers, overrides) {
|
|
8
|
-
return useQuery({
|
|
9
|
-
...overrides,
|
|
10
|
-
queryFn: async ({ queryKey: [_, teamId] }) => sendByGetRoute(wretchClient, retrieveTeam, {
|
|
11
|
-
headers: await headers.resolve(),
|
|
12
|
-
pathParams: { teamId }
|
|
13
|
-
})
|
|
14
|
-
});
|
|
15
|
-
}
|
|
16
8
|
export {
|
|
17
|
-
|
|
18
|
-
useRetrieveTeamQuery
|
|
9
|
+
useCanPerformAction
|
|
19
10
|
};
|
|
20
11
|
//# sourceMappingURL=harmony39.mjs.map
|
package/dist/harmony39.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"harmony39.mjs","sources":["../src/features/
|
|
1
|
+
{"version":3,"file":"harmony39.mjs","sources":["../src/features/permissions/hooks/useCanPerformAction.ts"],"sourcesContent":["import type { Action } from '@features/permissions/action'\nimport { useActionResolverPayload } from '@features/permissions/hooks/useActionResolverPayload'\nimport { canPerformAction } from '@features/permissions/utils/canPerformAction'\nimport { useMemo } from 'react'\n\n/**\n * React hook to determine if the current user has permission to perform a specific action.\n *\n * This hook is useful for conditionally rendering UI elements or triggering logic\n * based on whether the user can perform a given action.\n * It leverages the permissions context and returns a boolean indicating the user's ability.\n *\n * @param action The action to check permission for (e.g. 'accessMarketingProjects', 'deleteProjects').\n * @returns {boolean} True if the user can perform the action, otherwise false.\n *\n * @example\n * // Check if the user can access marketing projects\n * const canAccess = useCanPerformAction(\"accessMarketingProjects\");\n * if (canAccess) {\n * // show marketing dashboard\n * }\n */\nexport const useCanPerformAction = (action: Action): boolean => {\n\tconst payload = useActionResolverPayload()\n\n\treturn useMemo(() => canPerformAction(action, payload), [action, payload])\n}\n"],"names":[],"mappings":";;;AAsBa,MAAA,sBAAsB,CAAC,WAA4B;AAC/D,QAAM,UAAU,yBAAyB;AAElC,SAAA,QAAQ,MAAM,iBAAiB,QAAQ,OAAO,GAAG,CAAC,QAAQ,OAAO,CAAC;AAC1E;"}
|
package/dist/harmony40.cjs
CHANGED
|
@@ -1,21 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const
|
|
4
|
-
const
|
|
5
|
-
const
|
|
6
|
-
const
|
|
7
|
-
|
|
3
|
+
const useActionResolverPayload = require("./harmony123.cjs");
|
|
4
|
+
const canPerformAction = require("./harmony44.cjs");
|
|
5
|
+
const React = require("react");
|
|
6
|
+
const useCanPerformAllActions = (...actions) => {
|
|
7
|
+
const payload = useActionResolverPayload.useActionResolverPayload();
|
|
8
|
+
return React.useMemo(
|
|
9
|
+
() => actions.every((action) => canPerformAction.canPerformAction(action, payload)),
|
|
10
|
+
[payload, actions.join()]
|
|
11
|
+
);
|
|
8
12
|
};
|
|
9
|
-
|
|
10
|
-
return reactQuery.useQuery({
|
|
11
|
-
...overrides,
|
|
12
|
-
queryFn: async ({ queryKey: [_, params, body] }) => frontendHttpClient.sendByPayloadRoute(wretchClient, teamUsers.getTeamUserPermissions, {
|
|
13
|
-
headers: await headers.resolve(),
|
|
14
|
-
pathParams: params,
|
|
15
|
-
body
|
|
16
|
-
})
|
|
17
|
-
});
|
|
18
|
-
}
|
|
19
|
-
exports.retrieveUserPermissionsKey = retrieveUserPermissionsKey;
|
|
20
|
-
exports.useRetrieveUserPermissions = useRetrieveUserPermissions;
|
|
13
|
+
exports.useCanPerformAllActions = useCanPerformAllActions;
|
|
21
14
|
//# sourceMappingURL=harmony40.cjs.map
|
package/dist/harmony40.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"harmony40.cjs","sources":["../src/features/
|
|
1
|
+
{"version":3,"file":"harmony40.cjs","sources":["../src/features/permissions/hooks/useCanPerformAllActions.ts"],"sourcesContent":["import type { Action } from '@features/permissions/action'\nimport { useActionResolverPayload } from '@features/permissions/hooks/useActionResolverPayload'\nimport { canPerformAction } from '@features/permissions/utils/canPerformAction'\nimport { useMemo } from 'react'\n\n/**\n * React hook to determine if the current user has permission to perform all the specified actions.\n *\n * This hook is useful for conditionally rendering UI elements or triggering logic\n * that require the user to have multiple permissions.\n * It returns true only if the user can perform every action in the provided list.\n *\n * @param actions A list of actions to check permissions for (e.g. 'accessMarketingProjects', 'deleteProjects').\n * @returns {boolean} True if the user can perform all actions, otherwise false.\n *\n * @example\n * // Check if the user can both access marketing projects and delete projects\n * const canDoAll = useCanPerformAllActions(\"accessMarketingProjects\", \"deleteProjects\");\n * if (canDoAll) {\n * // show danger zone\n * }\n */\nexport const useCanPerformAllActions = (...actions: Action[]): boolean => {\n\tconst payload = useActionResolverPayload()\n\n\t// The reason for using `actions.join()` is to ensure that the memoization will not recompute\n\t// unless the actions themselves change. This is required as collecting the actions with `...actions`\n\t// will result in a new array reference on every render, which would cause the memoization to invalidate.\n\t// biome-ignore lint/correctness/useExhaustiveDependencies: Explained above\n\treturn useMemo(\n\t\t() => actions.every((action) => canPerformAction(action, payload)),\n\t\t[payload, actions.join()],\n\t)\n}\n"],"names":["useActionResolverPayload","useMemo","canPerformAction"],"mappings":";;;;;AAsBa,MAAA,0BAA0B,IAAI,YAA+B;AACzE,QAAM,UAAUA,yBAAAA,yBAAyB;AAMlC,SAAAC,MAAA;AAAA,IACN,MAAM,QAAQ,MAAM,CAAC,WAAWC,iBAAAA,iBAAiB,QAAQ,OAAO,CAAC;AAAA,IACjE,CAAC,SAAS,QAAQ,KAAM,CAAA;AAAA,EACzB;AACD;;"}
|
package/dist/harmony40.mjs
CHANGED
|
@@ -1,21 +1,14 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
const
|
|
5
|
-
|
|
1
|
+
import { useActionResolverPayload } from "./harmony123.mjs";
|
|
2
|
+
import { canPerformAction } from "./harmony44.mjs";
|
|
3
|
+
import { useMemo } from "react";
|
|
4
|
+
const useCanPerformAllActions = (...actions) => {
|
|
5
|
+
const payload = useActionResolverPayload();
|
|
6
|
+
return useMemo(
|
|
7
|
+
() => actions.every((action) => canPerformAction(action, payload)),
|
|
8
|
+
[payload, actions.join()]
|
|
9
|
+
);
|
|
6
10
|
};
|
|
7
|
-
function useRetrieveUserPermissions(wretchClient, headers, overrides) {
|
|
8
|
-
return useQuery({
|
|
9
|
-
...overrides,
|
|
10
|
-
queryFn: async ({ queryKey: [_, params, body] }) => sendByPayloadRoute(wretchClient, getTeamUserPermissions, {
|
|
11
|
-
headers: await headers.resolve(),
|
|
12
|
-
pathParams: params,
|
|
13
|
-
body
|
|
14
|
-
})
|
|
15
|
-
});
|
|
16
|
-
}
|
|
17
11
|
export {
|
|
18
|
-
|
|
19
|
-
useRetrieveUserPermissions
|
|
12
|
+
useCanPerformAllActions
|
|
20
13
|
};
|
|
21
14
|
//# sourceMappingURL=harmony40.mjs.map
|
package/dist/harmony40.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"harmony40.mjs","sources":["../src/features/
|
|
1
|
+
{"version":3,"file":"harmony40.mjs","sources":["../src/features/permissions/hooks/useCanPerformAllActions.ts"],"sourcesContent":["import type { Action } from '@features/permissions/action'\nimport { useActionResolverPayload } from '@features/permissions/hooks/useActionResolverPayload'\nimport { canPerformAction } from '@features/permissions/utils/canPerformAction'\nimport { useMemo } from 'react'\n\n/**\n * React hook to determine if the current user has permission to perform all the specified actions.\n *\n * This hook is useful for conditionally rendering UI elements or triggering logic\n * that require the user to have multiple permissions.\n * It returns true only if the user can perform every action in the provided list.\n *\n * @param actions A list of actions to check permissions for (e.g. 'accessMarketingProjects', 'deleteProjects').\n * @returns {boolean} True if the user can perform all actions, otherwise false.\n *\n * @example\n * // Check if the user can both access marketing projects and delete projects\n * const canDoAll = useCanPerformAllActions(\"accessMarketingProjects\", \"deleteProjects\");\n * if (canDoAll) {\n * // show danger zone\n * }\n */\nexport const useCanPerformAllActions = (...actions: Action[]): boolean => {\n\tconst payload = useActionResolverPayload()\n\n\t// The reason for using `actions.join()` is to ensure that the memoization will not recompute\n\t// unless the actions themselves change. This is required as collecting the actions with `...actions`\n\t// will result in a new array reference on every render, which would cause the memoization to invalidate.\n\t// biome-ignore lint/correctness/useExhaustiveDependencies: Explained above\n\treturn useMemo(\n\t\t() => actions.every((action) => canPerformAction(action, payload)),\n\t\t[payload, actions.join()],\n\t)\n}\n"],"names":[],"mappings":";;;AAsBa,MAAA,0BAA0B,IAAI,YAA+B;AACzE,QAAM,UAAU,yBAAyB;AAMlC,SAAA;AAAA,IACN,MAAM,QAAQ,MAAM,CAAC,WAAW,iBAAiB,QAAQ,OAAO,CAAC;AAAA,IACjE,CAAC,SAAS,QAAQ,KAAM,CAAA;AAAA,EACzB;AACD;"}
|
package/dist/harmony41.cjs
CHANGED
|
@@ -1,17 +1,14 @@
|
|
|
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
|
-
exports.useUpdateContributorMutation = useUpdateContributorMutation;
|
|
3
|
+
const useActionResolverPayload = require("./harmony123.cjs");
|
|
4
|
+
const canPerformAction = require("./harmony44.cjs");
|
|
5
|
+
const React = require("react");
|
|
6
|
+
const useCanPerformAnyAction = (...actions) => {
|
|
7
|
+
const payload = useActionResolverPayload.useActionResolverPayload();
|
|
8
|
+
return React.useMemo(
|
|
9
|
+
() => actions.some((action) => canPerformAction.canPerformAction(action, payload)),
|
|
10
|
+
[payload, actions.join()]
|
|
11
|
+
);
|
|
12
|
+
};
|
|
13
|
+
exports.useCanPerformAnyAction = useCanPerformAnyAction;
|
|
17
14
|
//# sourceMappingURL=harmony41.cjs.map
|
package/dist/harmony41.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"harmony41.cjs","sources":["../src/features/
|
|
1
|
+
{"version":3,"file":"harmony41.cjs","sources":["../src/features/permissions/hooks/useCanPerformAnyAction.ts"],"sourcesContent":["import type { Action } from '@features/permissions/action'\nimport { useActionResolverPayload } from '@features/permissions/hooks/useActionResolverPayload'\nimport { canPerformAction } from '@features/permissions/utils/canPerformAction'\nimport { useMemo } from 'react'\n\n/**\n * React hook to determine if the current user has permission to perform at least one of the specified actions.\n *\n * This hook is useful for conditionally rendering UI elements or triggering logic\n * that should be available if the user has any of a set of permissions.\n * It returns true if the user can perform at least one action in the provided list.\n *\n * @param actions A list of actions to check permissions for (e.g. 'accessMarketingProjects', 'deleteProjects').\n * @returns {boolean} True if the user can perform any action, otherwise false.\n *\n * @example\n * // Check if the user can either access marketing projects or delete projects\n * const canDoAny = useCanPerformAnyAction(\"accessMarketingProjects\", \"deleteProjects\");\n * if (canDoAny) {\n * // show details or enable actions\n * }\n */\nexport const useCanPerformAnyAction = (...actions: Action[]): boolean => {\n\tconst payload = useActionResolverPayload()\n\n\t// The reason for using `actions.join()` is to ensure that the memoization will not recompute\n\t// unless the actions themselves change. This is required as collecting the actions with `...actions`\n\t// will result in a new array reference on every render, which would cause the memoization to invalidate.\n\t// biome-ignore lint/correctness/useExhaustiveDependencies: Explained above\n\treturn useMemo(\n\t\t() => actions.some((action) => canPerformAction(action, payload)),\n\t\t[payload, actions.join()],\n\t)\n}\n"],"names":["useActionResolverPayload","useMemo","canPerformAction"],"mappings":";;;;;AAsBa,MAAA,yBAAyB,IAAI,YAA+B;AACxE,QAAM,UAAUA,yBAAAA,yBAAyB;AAMlC,SAAAC,MAAA;AAAA,IACN,MAAM,QAAQ,KAAK,CAAC,WAAWC,iBAAAA,iBAAiB,QAAQ,OAAO,CAAC;AAAA,IAChE,CAAC,SAAS,QAAQ,KAAM,CAAA;AAAA,EACzB;AACD;;"}
|
package/dist/harmony41.mjs
CHANGED
|
@@ -1,17 +1,14 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
})
|
|
12
|
-
});
|
|
13
|
-
}
|
|
1
|
+
import { useActionResolverPayload } from "./harmony123.mjs";
|
|
2
|
+
import { canPerformAction } from "./harmony44.mjs";
|
|
3
|
+
import { useMemo } from "react";
|
|
4
|
+
const useCanPerformAnyAction = (...actions) => {
|
|
5
|
+
const payload = useActionResolverPayload();
|
|
6
|
+
return useMemo(
|
|
7
|
+
() => actions.some((action) => canPerformAction(action, payload)),
|
|
8
|
+
[payload, actions.join()]
|
|
9
|
+
);
|
|
10
|
+
};
|
|
14
11
|
export {
|
|
15
|
-
|
|
12
|
+
useCanPerformAnyAction
|
|
16
13
|
};
|
|
17
14
|
//# sourceMappingURL=harmony41.mjs.map
|
package/dist/harmony41.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"harmony41.mjs","sources":["../src/features/
|
|
1
|
+
{"version":3,"file":"harmony41.mjs","sources":["../src/features/permissions/hooks/useCanPerformAnyAction.ts"],"sourcesContent":["import type { Action } from '@features/permissions/action'\nimport { useActionResolverPayload } from '@features/permissions/hooks/useActionResolverPayload'\nimport { canPerformAction } from '@features/permissions/utils/canPerformAction'\nimport { useMemo } from 'react'\n\n/**\n * React hook to determine if the current user has permission to perform at least one of the specified actions.\n *\n * This hook is useful for conditionally rendering UI elements or triggering logic\n * that should be available if the user has any of a set of permissions.\n * It returns true if the user can perform at least one action in the provided list.\n *\n * @param actions A list of actions to check permissions for (e.g. 'accessMarketingProjects', 'deleteProjects').\n * @returns {boolean} True if the user can perform any action, otherwise false.\n *\n * @example\n * // Check if the user can either access marketing projects or delete projects\n * const canDoAny = useCanPerformAnyAction(\"accessMarketingProjects\", \"deleteProjects\");\n * if (canDoAny) {\n * // show details or enable actions\n * }\n */\nexport const useCanPerformAnyAction = (...actions: Action[]): boolean => {\n\tconst payload = useActionResolverPayload()\n\n\t// The reason for using `actions.join()` is to ensure that the memoization will not recompute\n\t// unless the actions themselves change. This is required as collecting the actions with `...actions`\n\t// will result in a new array reference on every render, which would cause the memoization to invalidate.\n\t// biome-ignore lint/correctness/useExhaustiveDependencies: Explained above\n\treturn useMemo(\n\t\t() => actions.some((action) => canPerformAction(action, payload)),\n\t\t[payload, actions.join()],\n\t)\n}\n"],"names":[],"mappings":";;;AAsBa,MAAA,yBAAyB,IAAI,YAA+B;AACxE,QAAM,UAAU,yBAAyB;AAMlC,SAAA;AAAA,IACN,MAAM,QAAQ,KAAK,CAAC,WAAW,iBAAiB,QAAQ,OAAO,CAAC;AAAA,IAChE,CAAC,SAAS,QAAQ,KAAM,CAAA;AAAA,EACzB;AACD;"}
|
package/dist/harmony42.cjs
CHANGED
|
@@ -1,17 +1,12 @@
|
|
|
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
|
-
pathParams: params
|
|
13
|
-
})
|
|
14
|
-
});
|
|
15
|
-
}
|
|
16
|
-
exports.useUpdateProjectMutation = useUpdateProjectMutation;
|
|
3
|
+
const useActionResolverPayload = require("./harmony123.cjs");
|
|
4
|
+
const hasAny = require("./harmony124.cjs");
|
|
5
|
+
const React = require("react");
|
|
6
|
+
const useHasAnyFeatureFlags = (...features) => {
|
|
7
|
+
const { enabledFeatureFlags } = useActionResolverPayload.useActionResolverPayload();
|
|
8
|
+
const key = features.join("");
|
|
9
|
+
return React.useMemo(() => hasAny.hasAny(enabledFeatureFlags, ...features), [key, enabledFeatureFlags]);
|
|
10
|
+
};
|
|
11
|
+
exports.useHasAnyFeatureFlags = useHasAnyFeatureFlags;
|
|
17
12
|
//# sourceMappingURL=harmony42.cjs.map
|
package/dist/harmony42.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"harmony42.cjs","sources":["../src/features/
|
|
1
|
+
{"version":3,"file":"harmony42.cjs","sources":["../src/features/permissions/hooks/useHasAnyFeatureFlags.ts"],"sourcesContent":["import { useActionResolverPayload } from '@features/permissions/hooks/useActionResolverPayload'\nimport type { FeatureFlag } from '@features/permissions/types'\nimport { hasAny } from '@features/permissions/utils/hasAny'\nimport { useMemo } from 'react'\n\nexport const useHasAnyFeatureFlags = (...features: FeatureFlag[]) => {\n\tconst { enabledFeatureFlags } = useActionResolverPayload()\n\tconst key = features.join('')\n\n\t// biome-ignore lint/correctness/useExhaustiveDependencies: Using key as spreading parameters will create a new array on every render.\n\treturn useMemo(() => hasAny(enabledFeatureFlags, ...features), [key, enabledFeatureFlags])\n}\n"],"names":["useActionResolverPayload","useMemo","hasAny"],"mappings":";;;;;AAKa,MAAA,wBAAwB,IAAI,aAA4B;AAC9D,QAAA,EAAE,oBAAoB,IAAIA,kDAAyB;AACnD,QAAA,MAAM,SAAS,KAAK,EAAE;AAGrB,SAAAC,MAAA,QAAQ,MAAMC,OAAAA,OAAO,qBAAqB,GAAG,QAAQ,GAAG,CAAC,KAAK,mBAAmB,CAAC;AAC1F;;"}
|
package/dist/harmony42.mjs
CHANGED
|
@@ -1,17 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
body: variables,
|
|
10
|
-
pathParams: params
|
|
11
|
-
})
|
|
12
|
-
});
|
|
13
|
-
}
|
|
1
|
+
import { useActionResolverPayload } from "./harmony123.mjs";
|
|
2
|
+
import { hasAny } from "./harmony124.mjs";
|
|
3
|
+
import { useMemo } from "react";
|
|
4
|
+
const useHasAnyFeatureFlags = (...features) => {
|
|
5
|
+
const { enabledFeatureFlags } = useActionResolverPayload();
|
|
6
|
+
const key = features.join("");
|
|
7
|
+
return useMemo(() => hasAny(enabledFeatureFlags, ...features), [key, enabledFeatureFlags]);
|
|
8
|
+
};
|
|
14
9
|
export {
|
|
15
|
-
|
|
10
|
+
useHasAnyFeatureFlags
|
|
16
11
|
};
|
|
17
12
|
//# sourceMappingURL=harmony42.mjs.map
|
package/dist/harmony42.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"harmony42.mjs","sources":["../src/features/
|
|
1
|
+
{"version":3,"file":"harmony42.mjs","sources":["../src/features/permissions/hooks/useHasAnyFeatureFlags.ts"],"sourcesContent":["import { useActionResolverPayload } from '@features/permissions/hooks/useActionResolverPayload'\nimport type { FeatureFlag } from '@features/permissions/types'\nimport { hasAny } from '@features/permissions/utils/hasAny'\nimport { useMemo } from 'react'\n\nexport const useHasAnyFeatureFlags = (...features: FeatureFlag[]) => {\n\tconst { enabledFeatureFlags } = useActionResolverPayload()\n\tconst key = features.join('')\n\n\t// biome-ignore lint/correctness/useExhaustiveDependencies: Using key as spreading parameters will create a new array on every render.\n\treturn useMemo(() => hasAny(enabledFeatureFlags, ...features), [key, enabledFeatureFlags])\n}\n"],"names":[],"mappings":";;;AAKa,MAAA,wBAAwB,IAAI,aAA4B;AAC9D,QAAA,EAAE,oBAAoB,IAAI,yBAAyB;AACnD,QAAA,MAAM,SAAS,KAAK,EAAE;AAGrB,SAAA,QAAQ,MAAM,OAAO,qBAAqB,GAAG,QAAQ,GAAG,CAAC,KAAK,mBAAmB,CAAC;AAC1F;"}
|
package/dist/harmony43.cjs
CHANGED
|
@@ -1,127 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const
|
|
4
|
-
const
|
|
5
|
-
const
|
|
6
|
-
const
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
zod.z.literal(1),
|
|
13
|
-
zod.z.boolean()
|
|
14
|
-
// (╥﹏╥) this is a workaround for the API returning boolean instead of 0/1, as the API spec says
|
|
15
|
-
])
|
|
16
|
-
});
|
|
17
|
-
const CONTRIBUTOR_SCHEMA = zod.z.object({
|
|
18
|
-
user_id: zod.z.number(),
|
|
19
|
-
email: zod.z.string().email(),
|
|
20
|
-
fullname: zod.z.string(),
|
|
21
|
-
avatar_url: zod.z.string(),
|
|
22
|
-
created_at: zod.z.string(),
|
|
23
|
-
created_at_timestamp: zod.z.number(),
|
|
24
|
-
languages: zod.z.array(CONTRIBUTOR_LANGUAGE_SCHEMA),
|
|
25
|
-
admin_rights: zod.z.array(zod.z.string()),
|
|
26
|
-
permissions: zod.z.array(zod.z.string()),
|
|
27
|
-
role_id: zod.z.number().nullable(),
|
|
28
|
-
is_owner: zod.z.boolean(),
|
|
29
|
-
is_admin: zod.z.boolean(),
|
|
30
|
-
is_reviewer: zod.z.boolean(),
|
|
31
|
-
is_pending: zod.z.boolean(),
|
|
32
|
-
is_reinvited: zod.z.boolean()
|
|
33
|
-
});
|
|
34
|
-
const BY_PROJECT_ID = zod.z.object({ id: zod.z.string() });
|
|
35
|
-
const BY_CONTRIBUTOR_ID = zod.z.object({ id: zod.z.number() });
|
|
36
|
-
const BY_UUID = zod.z.object({ uuid: zod.z.string().uuid() });
|
|
37
|
-
const PROJECT_TARGET_SCHEMA = zod.z.union([BY_UUID, BY_PROJECT_ID]);
|
|
38
|
-
const CONTRIBUTOR_TARGET_PATH_PARAMS_SCHEMA = zod.z.union([
|
|
39
|
-
zod.z.object({ authenticatedUser: zod.z.literal(true) }),
|
|
40
|
-
BY_UUID,
|
|
41
|
-
BY_CONTRIBUTOR_ID
|
|
42
|
-
]);
|
|
43
|
-
const LIST_CONTRIBUTORS_PATH_PARAMS_SCHEMA = zod.z.object({
|
|
44
|
-
project: PROJECT_TARGET_SCHEMA
|
|
45
|
-
});
|
|
46
|
-
const LIST_CONTRIBUTORS_RESPONSE_SCHEMA = zod.z.object({
|
|
47
|
-
project_id: zod.z.string(),
|
|
48
|
-
contributors: zod.z.array(CONTRIBUTOR_SCHEMA)
|
|
49
|
-
});
|
|
50
|
-
const RETRIEVE_CONTRIBUTOR_PATH_PARAMS_SCHEMA = zod.z.object({
|
|
51
|
-
project: PROJECT_TARGET_SCHEMA,
|
|
52
|
-
contributor: CONTRIBUTOR_TARGET_PATH_PARAMS_SCHEMA
|
|
53
|
-
});
|
|
54
|
-
const RETRIEVE_CONTRIBUTOR_RESPONSE_SCHEMA = zod.z.object({
|
|
55
|
-
project_id: zod.z.string(),
|
|
56
|
-
contributor: CONTRIBUTOR_SCHEMA
|
|
57
|
-
});
|
|
58
|
-
const ADD_CONTRIBUTORS_PATH_PARAMS_SCHEMA = zod.z.object({
|
|
59
|
-
project: PROJECT_TARGET_SCHEMA
|
|
60
|
-
});
|
|
61
|
-
const ADD_CONTRIBUTORS_REQUEST_BODY_SCHEMA = zod.z.object({
|
|
62
|
-
contributors: zod.z.array(
|
|
63
|
-
zod.z.object({
|
|
64
|
-
email: zod.z.string().email(),
|
|
65
|
-
fullname: zod.z.string().optional(),
|
|
66
|
-
is_admin: zod.z.boolean().optional(),
|
|
67
|
-
is_reviewer: zod.z.boolean().optional(),
|
|
68
|
-
role_id: zod.z.number().optional(),
|
|
69
|
-
admin_rights: zod.z.array(zod.z.string()).optional(),
|
|
70
|
-
languages: zod.z.array(
|
|
71
|
-
zod.z.object({
|
|
72
|
-
lang_iso: zod.z.string(),
|
|
73
|
-
is_writable: zod.z.boolean().optional()
|
|
74
|
-
})
|
|
75
|
-
)
|
|
76
|
-
})
|
|
77
|
-
)
|
|
78
|
-
});
|
|
79
|
-
const ADD_CONTRIBUTORS_RESPONSE_SCHEMA = zod.z.object({
|
|
80
|
-
project_id: zod.z.string(),
|
|
81
|
-
project_uuid: zod.z.string(),
|
|
82
|
-
contributors: zod.z.array(CONTRIBUTOR_SCHEMA)
|
|
83
|
-
});
|
|
84
|
-
const UPDATE_CONTRIBUTORS_PATH_PARAMS_SCHEMA = zod.z.object({
|
|
85
|
-
project: PROJECT_TARGET_SCHEMA,
|
|
86
|
-
contributorId: zod.z.string()
|
|
87
|
-
});
|
|
88
|
-
const UPDATE_CONTRIBUTORS_REQUEST_BODY_SCHEMA = zod.z.object({
|
|
89
|
-
is_admin: zod.z.boolean().optional(),
|
|
90
|
-
is_reviewer: zod.z.boolean().optional(),
|
|
91
|
-
role_id: zod.z.number().optional(),
|
|
92
|
-
admin_rights: zod.z.array(zod.z.string()).optional(),
|
|
93
|
-
languages: zod.z.array(
|
|
94
|
-
zod.z.object({
|
|
95
|
-
lang_iso: zod.z.string(),
|
|
96
|
-
is_writable: zod.z.boolean().optional()
|
|
97
|
-
})
|
|
98
|
-
)
|
|
99
|
-
});
|
|
100
|
-
const UPDATE_CONTRIBUTORS_RESPONSE_SCHEMA = zod.z.object({
|
|
101
|
-
project_id: zod.z.string(),
|
|
102
|
-
contributor: CONTRIBUTOR_SCHEMA
|
|
103
|
-
});
|
|
104
|
-
const DELETE_CONTRIBUTOR_PATH_PARAMS_SCHEMA = zod.z.object({
|
|
105
|
-
project: PROJECT_TARGET_SCHEMA,
|
|
106
|
-
contributor: zod.z.union([BY_UUID, BY_CONTRIBUTOR_ID])
|
|
107
|
-
});
|
|
108
|
-
const DELETE_CONTRIBUTOR_RESPONSE_SCHEMA = zod.z.object({
|
|
109
|
-
project_id: zod.z.string(),
|
|
110
|
-
contributor_deleted: zod.z.boolean()
|
|
111
|
-
});
|
|
112
|
-
exports.ADD_CONTRIBUTORS_PATH_PARAMS_SCHEMA = ADD_CONTRIBUTORS_PATH_PARAMS_SCHEMA;
|
|
113
|
-
exports.ADD_CONTRIBUTORS_REQUEST_BODY_SCHEMA = ADD_CONTRIBUTORS_REQUEST_BODY_SCHEMA;
|
|
114
|
-
exports.ADD_CONTRIBUTORS_RESPONSE_SCHEMA = ADD_CONTRIBUTORS_RESPONSE_SCHEMA;
|
|
115
|
-
exports.CONTRIBUTOR_API_BASE_HEADER_SCHEMA = CONTRIBUTOR_API_BASE_HEADER_SCHEMA;
|
|
116
|
-
exports.CONTRIBUTOR_LANGUAGE_SCHEMA = CONTRIBUTOR_LANGUAGE_SCHEMA;
|
|
117
|
-
exports.CONTRIBUTOR_SCHEMA = CONTRIBUTOR_SCHEMA;
|
|
118
|
-
exports.DELETE_CONTRIBUTOR_PATH_PARAMS_SCHEMA = DELETE_CONTRIBUTOR_PATH_PARAMS_SCHEMA;
|
|
119
|
-
exports.DELETE_CONTRIBUTOR_RESPONSE_SCHEMA = DELETE_CONTRIBUTOR_RESPONSE_SCHEMA;
|
|
120
|
-
exports.LIST_CONTRIBUTORS_PATH_PARAMS_SCHEMA = LIST_CONTRIBUTORS_PATH_PARAMS_SCHEMA;
|
|
121
|
-
exports.LIST_CONTRIBUTORS_RESPONSE_SCHEMA = LIST_CONTRIBUTORS_RESPONSE_SCHEMA;
|
|
122
|
-
exports.RETRIEVE_CONTRIBUTOR_PATH_PARAMS_SCHEMA = RETRIEVE_CONTRIBUTOR_PATH_PARAMS_SCHEMA;
|
|
123
|
-
exports.RETRIEVE_CONTRIBUTOR_RESPONSE_SCHEMA = RETRIEVE_CONTRIBUTOR_RESPONSE_SCHEMA;
|
|
124
|
-
exports.UPDATE_CONTRIBUTORS_PATH_PARAMS_SCHEMA = UPDATE_CONTRIBUTORS_PATH_PARAMS_SCHEMA;
|
|
125
|
-
exports.UPDATE_CONTRIBUTORS_REQUEST_BODY_SCHEMA = UPDATE_CONTRIBUTORS_REQUEST_BODY_SCHEMA;
|
|
126
|
-
exports.UPDATE_CONTRIBUTORS_RESPONSE_SCHEMA = UPDATE_CONTRIBUTORS_RESPONSE_SCHEMA;
|
|
3
|
+
const useActionResolverPayload = require("./harmony123.cjs");
|
|
4
|
+
const has = require("./harmony125.cjs");
|
|
5
|
+
const React = require("react");
|
|
6
|
+
const useHasAllFeatureFlags = (...features) => {
|
|
7
|
+
const { enabledFeatureFlags } = useActionResolverPayload.useActionResolverPayload();
|
|
8
|
+
const key = features.join("");
|
|
9
|
+
return React.useMemo(() => has.has(enabledFeatureFlags, ...features), [key, enabledFeatureFlags]);
|
|
10
|
+
};
|
|
11
|
+
exports.useHasAllFeatureFlags = useHasAllFeatureFlags;
|
|
127
12
|
//# sourceMappingURL=harmony43.cjs.map
|
package/dist/harmony43.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"harmony43.cjs","sources":["../src/features/
|
|
1
|
+
{"version":3,"file":"harmony43.cjs","sources":["../src/features/permissions/hooks/useHasAllFeatureFlags.ts"],"sourcesContent":["import { useActionResolverPayload } from '@features/permissions/hooks/useActionResolverPayload'\nimport type { FeatureFlag } from '@features/permissions/types'\nimport { has } from '@features/permissions/utils/has'\nimport { useMemo } from 'react'\n\nexport const useHasAllFeatureFlags = (...features: FeatureFlag[]) => {\n\tconst { enabledFeatureFlags } = useActionResolverPayload()\n\tconst key = features.join('')\n\n\t// biome-ignore lint/correctness/useExhaustiveDependencies: Using key as spreading parameters will create a new array on every render.\n\treturn useMemo(() => has(enabledFeatureFlags, ...features), [key, enabledFeatureFlags])\n}\n"],"names":["useActionResolverPayload","useMemo","has"],"mappings":";;;;;AAKa,MAAA,wBAAwB,IAAI,aAA4B;AAC9D,QAAA,EAAE,oBAAoB,IAAIA,kDAAyB;AACnD,QAAA,MAAM,SAAS,KAAK,EAAE;AAGrB,SAAAC,MAAA,QAAQ,MAAMC,IAAAA,IAAI,qBAAqB,GAAG,QAAQ,GAAG,CAAC,KAAK,mBAAmB,CAAC;AACvF;;"}
|