@lokalise/harmony 1.40.3-exp-epic2x.2 → 1.40.3-exp-epic2x.3
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 +71 -68
- package/dist/harmony.cjs.map +1 -1
- package/dist/harmony.mjs +71 -68
- package/dist/harmony.mjs.map +1 -1
- package/dist/harmony10.cjs +30 -23
- package/dist/harmony10.cjs.map +1 -1
- package/dist/harmony10.mjs +30 -23
- package/dist/harmony10.mjs.map +1 -1
- package/dist/harmony100.cjs +13 -12
- package/dist/harmony100.cjs.map +1 -1
- package/dist/harmony100.mjs +12 -11
- package/dist/harmony100.mjs.map +1 -1
- package/dist/harmony101.cjs +12 -22
- package/dist/harmony101.cjs.map +1 -1
- package/dist/harmony101.mjs +11 -21
- package/dist/harmony101.mjs.map +1 -1
- package/dist/harmony102.cjs +21 -99
- package/dist/harmony102.cjs.map +1 -1
- package/dist/harmony102.mjs +20 -81
- package/dist/harmony102.mjs.map +1 -1
- package/dist/harmony103.cjs +96 -11
- package/dist/harmony103.cjs.map +1 -1
- package/dist/harmony103.mjs +79 -11
- package/dist/harmony103.mjs.map +1 -1
- package/dist/harmony104.cjs +14 -20
- package/dist/harmony104.cjs.map +1 -1
- package/dist/harmony104.mjs +14 -20
- package/dist/harmony104.mjs.map +1 -1
- package/dist/harmony105.cjs +20 -87
- package/dist/harmony105.cjs.map +1 -1
- package/dist/harmony105.mjs +20 -87
- package/dist/harmony105.mjs.map +1 -1
- package/dist/harmony106.cjs +87 -30
- package/dist/harmony106.cjs.map +1 -1
- package/dist/harmony106.mjs +87 -30
- package/dist/harmony106.mjs.map +1 -1
- package/dist/harmony107.cjs +31 -10
- package/dist/harmony107.cjs.map +1 -1
- package/dist/harmony107.mjs +30 -9
- package/dist/harmony107.mjs.map +1 -1
- package/dist/harmony108.cjs +9 -12
- package/dist/harmony108.cjs.map +1 -1
- package/dist/harmony108.mjs +8 -11
- package/dist/harmony108.mjs.map +1 -1
- package/dist/harmony109.cjs +6 -9
- package/dist/harmony109.cjs.map +1 -1
- package/dist/harmony109.mjs +8 -11
- package/dist/harmony109.mjs.map +1 -1
- package/dist/harmony11.cjs +16 -45
- package/dist/harmony11.cjs.map +1 -1
- package/dist/harmony11.mjs +16 -45
- package/dist/harmony11.mjs.map +1 -1
- package/dist/harmony110.cjs +5 -9
- package/dist/harmony110.cjs.map +1 -1
- package/dist/harmony110.mjs +5 -9
- package/dist/harmony110.mjs.map +1 -1
- package/dist/harmony111.cjs +16 -7
- package/dist/harmony111.cjs.map +1 -1
- package/dist/harmony111.mjs +17 -8
- package/dist/harmony111.mjs.map +1 -1
- package/dist/harmony112.cjs +7 -24
- package/dist/harmony112.cjs.map +1 -1
- package/dist/harmony112.mjs +7 -24
- package/dist/harmony112.mjs.map +1 -1
- package/dist/harmony113.cjs +21 -6
- package/dist/harmony113.cjs.map +1 -1
- package/dist/harmony113.mjs +22 -7
- package/dist/harmony113.mjs.map +1 -1
- package/dist/harmony114.cjs +7 -33
- package/dist/harmony114.cjs.map +1 -1
- package/dist/harmony114.mjs +9 -35
- package/dist/harmony114.mjs.map +1 -1
- package/dist/harmony115.cjs +33 -7
- package/dist/harmony115.cjs.map +1 -1
- package/dist/harmony115.mjs +35 -9
- package/dist/harmony115.mjs.map +1 -1
- package/dist/harmony116.cjs +8 -18
- package/dist/harmony116.cjs.map +1 -1
- package/dist/harmony116.mjs +8 -18
- package/dist/harmony116.mjs.map +1 -1
- package/dist/harmony117.cjs +13 -27
- package/dist/harmony117.cjs.map +1 -1
- package/dist/harmony117.mjs +13 -27
- package/dist/harmony117.mjs.map +1 -1
- package/dist/harmony118.cjs +36 -21
- package/dist/harmony118.cjs.map +1 -1
- package/dist/harmony118.mjs +35 -20
- package/dist/harmony118.mjs.map +1 -1
- package/dist/harmony119.cjs +21 -21
- package/dist/harmony119.cjs.map +1 -1
- package/dist/harmony119.mjs +20 -20
- package/dist/harmony119.mjs.map +1 -1
- package/dist/harmony12.cjs +51 -8
- package/dist/harmony12.cjs.map +1 -1
- package/dist/harmony12.mjs +51 -8
- package/dist/harmony12.mjs.map +1 -1
- package/dist/harmony120.cjs +21 -6
- package/dist/harmony120.cjs.map +1 -1
- package/dist/harmony120.mjs +20 -5
- package/dist/harmony120.mjs.map +1 -1
- package/dist/harmony121.cjs +3 -12
- package/dist/harmony121.cjs.map +1 -1
- package/dist/harmony121.mjs +3 -12
- package/dist/harmony121.mjs.map +1 -1
- package/dist/harmony122.cjs +15 -5
- package/dist/harmony122.cjs.map +1 -1
- package/dist/harmony122.mjs +15 -5
- package/dist/harmony122.mjs.map +1 -1
- package/dist/harmony123.cjs +5 -5
- package/dist/harmony123.mjs +5 -5
- package/dist/harmony124.cjs +6 -97
- package/dist/harmony124.cjs.map +1 -1
- package/dist/harmony124.mjs +5 -96
- package/dist/harmony124.mjs.map +1 -1
- package/dist/harmony125.cjs +94 -11
- package/dist/harmony125.cjs.map +1 -1
- package/dist/harmony125.mjs +94 -11
- package/dist/harmony125.mjs.map +1 -1
- package/dist/harmony126.cjs +12 -13
- package/dist/harmony126.cjs.map +1 -1
- package/dist/harmony126.mjs +12 -13
- package/dist/harmony126.mjs.map +1 -1
- package/dist/harmony127.cjs +13 -35
- package/dist/harmony127.cjs.map +1 -1
- package/dist/harmony127.mjs +13 -35
- package/dist/harmony127.mjs.map +1 -1
- package/dist/harmony128.cjs +32 -24
- package/dist/harmony128.cjs.map +1 -1
- package/dist/harmony128.mjs +32 -24
- package/dist/harmony128.mjs.map +1 -1
- package/dist/harmony129.cjs +28 -10
- package/dist/harmony129.cjs.map +1 -1
- package/dist/harmony129.mjs +28 -10
- package/dist/harmony129.mjs.map +1 -1
- package/dist/harmony13.cjs +8 -4
- package/dist/harmony13.cjs.map +1 -1
- package/dist/harmony13.mjs +8 -4
- package/dist/harmony13.mjs.map +1 -1
- package/dist/harmony130.cjs +10 -9
- package/dist/harmony130.cjs.map +1 -1
- package/dist/harmony130.mjs +9 -8
- package/dist/harmony130.mjs.map +1 -1
- package/dist/harmony131.cjs +6 -3
- package/dist/harmony131.cjs.map +1 -1
- package/dist/harmony131.mjs +6 -3
- package/dist/harmony131.mjs.map +1 -1
- package/dist/harmony132.cjs +3 -6
- package/dist/harmony132.cjs.map +1 -1
- package/dist/harmony132.mjs +3 -6
- package/dist/harmony132.mjs.map +1 -1
- package/dist/harmony133.cjs +6 -21
- package/dist/harmony133.cjs.map +1 -1
- package/dist/harmony133.mjs +6 -21
- package/dist/harmony133.mjs.map +1 -1
- package/dist/harmony134.cjs +21 -3
- package/dist/harmony134.cjs.map +1 -1
- package/dist/harmony134.mjs +21 -3
- package/dist/harmony134.mjs.map +1 -1
- package/dist/harmony135.cjs +3 -9
- package/dist/harmony135.cjs.map +1 -1
- package/dist/harmony135.mjs +3 -9
- package/dist/harmony135.mjs.map +1 -1
- package/dist/harmony136.cjs +9 -3
- package/dist/harmony136.cjs.map +1 -1
- package/dist/harmony136.mjs +9 -3
- package/dist/harmony136.mjs.map +1 -1
- package/dist/harmony137.cjs +7 -14
- package/dist/harmony137.cjs.map +1 -1
- package/dist/harmony137.mjs +6 -13
- package/dist/harmony137.mjs.map +1 -1
- package/dist/harmony138.cjs +12 -14
- package/dist/harmony138.cjs.map +1 -1
- package/dist/harmony138.mjs +12 -14
- package/dist/harmony138.mjs.map +1 -1
- package/dist/harmony139.cjs +13 -14
- package/dist/harmony139.cjs.map +1 -1
- package/dist/harmony139.mjs +13 -14
- package/dist/harmony139.mjs.map +1 -1
- package/dist/harmony14.cjs +5 -32
- package/dist/harmony14.cjs.map +1 -1
- package/dist/harmony14.mjs +5 -32
- package/dist/harmony14.mjs.map +1 -1
- package/dist/harmony140.cjs +15 -10
- package/dist/harmony140.cjs.map +1 -1
- package/dist/harmony140.mjs +15 -10
- package/dist/harmony140.mjs.map +1 -1
- package/dist/harmony141.cjs +10 -15
- package/dist/harmony141.cjs.map +1 -1
- package/dist/harmony141.mjs +10 -15
- package/dist/harmony141.mjs.map +1 -1
- package/dist/harmony142.cjs +13 -18
- package/dist/harmony142.cjs.map +1 -1
- package/dist/harmony142.mjs +13 -18
- package/dist/harmony142.mjs.map +1 -1
- package/dist/harmony143.cjs +19 -10
- package/dist/harmony143.cjs.map +1 -1
- package/dist/harmony143.mjs +19 -10
- package/dist/harmony143.mjs.map +1 -1
- package/dist/harmony144.cjs +11 -5
- package/dist/harmony144.cjs.map +1 -1
- package/dist/harmony144.mjs +11 -5
- package/dist/harmony144.mjs.map +1 -1
- package/dist/harmony145.cjs +5 -11
- package/dist/harmony145.cjs.map +1 -1
- package/dist/harmony145.mjs +5 -11
- package/dist/harmony145.mjs.map +1 -1
- package/dist/harmony146.cjs +11 -31
- package/dist/harmony146.cjs.map +1 -1
- package/dist/harmony146.mjs +11 -31
- package/dist/harmony146.mjs.map +1 -1
- package/dist/harmony147.cjs +28 -10
- package/dist/harmony147.cjs.map +1 -1
- package/dist/harmony147.mjs +28 -10
- package/dist/harmony147.mjs.map +1 -1
- package/dist/harmony148.cjs +17 -0
- package/dist/harmony148.cjs.map +1 -0
- package/dist/harmony148.mjs +17 -0
- package/dist/harmony148.mjs.map +1 -0
- package/dist/harmony15.cjs +32 -5
- package/dist/harmony15.cjs.map +1 -1
- package/dist/harmony15.mjs +32 -5
- package/dist/harmony15.mjs.map +1 -1
- package/dist/harmony16.cjs +5 -11
- package/dist/harmony16.cjs.map +1 -1
- package/dist/harmony16.mjs +5 -11
- package/dist/harmony16.mjs.map +1 -1
- package/dist/harmony17.cjs +9 -9
- package/dist/harmony17.cjs.map +1 -1
- package/dist/harmony17.mjs +9 -9
- package/dist/harmony17.mjs.map +1 -1
- package/dist/harmony18.cjs +9 -16
- package/dist/harmony18.cjs.map +1 -1
- package/dist/harmony18.mjs +9 -16
- package/dist/harmony18.mjs.map +1 -1
- package/dist/harmony19.cjs +16 -14
- package/dist/harmony19.cjs.map +1 -1
- package/dist/harmony19.mjs +16 -14
- package/dist/harmony19.mjs.map +1 -1
- package/dist/harmony20.cjs +13 -139
- package/dist/harmony20.cjs.map +1 -1
- package/dist/harmony20.mjs +13 -139
- package/dist/harmony20.mjs.map +1 -1
- package/dist/harmony21.cjs +142 -20
- package/dist/harmony21.cjs.map +1 -1
- package/dist/harmony21.mjs +142 -20
- package/dist/harmony21.mjs.map +1 -1
- package/dist/harmony22.cjs +20 -14
- package/dist/harmony22.cjs.map +1 -1
- package/dist/harmony22.mjs +20 -14
- package/dist/harmony22.mjs.map +1 -1
- package/dist/harmony23.cjs +13 -16
- package/dist/harmony23.cjs.map +1 -1
- package/dist/harmony23.mjs +13 -16
- package/dist/harmony23.mjs.map +1 -1
- package/dist/harmony24.cjs +10 -11
- package/dist/harmony24.cjs.map +1 -1
- package/dist/harmony24.mjs +10 -11
- package/dist/harmony24.mjs.map +1 -1
- package/dist/harmony25.cjs +16 -18
- package/dist/harmony25.cjs.map +1 -1
- package/dist/harmony25.mjs +16 -18
- package/dist/harmony25.mjs.map +1 -1
- package/dist/harmony26.cjs +17 -17
- package/dist/harmony26.cjs.map +1 -1
- package/dist/harmony26.mjs +18 -18
- package/dist/harmony26.mjs.map +1 -1
- package/dist/harmony27.cjs +19 -9
- package/dist/harmony27.cjs.map +1 -1
- package/dist/harmony27.mjs +19 -9
- package/dist/harmony27.mjs.map +1 -1
- package/dist/harmony28.cjs +7 -8
- package/dist/harmony28.cjs.map +1 -1
- package/dist/harmony28.mjs +7 -8
- package/dist/harmony28.mjs.map +1 -1
- package/dist/harmony29.cjs +11 -55
- package/dist/harmony29.cjs.map +1 -1
- package/dist/harmony29.mjs +11 -55
- package/dist/harmony29.mjs.map +1 -1
- package/dist/harmony3.cjs +3 -3
- package/dist/harmony3.mjs +3 -3
- package/dist/harmony30.cjs +49 -25
- package/dist/harmony30.cjs.map +1 -1
- package/dist/harmony30.mjs +50 -26
- package/dist/harmony30.mjs.map +1 -1
- package/dist/harmony31.cjs +28 -8
- package/dist/harmony31.cjs.map +1 -1
- package/dist/harmony31.mjs +29 -9
- package/dist/harmony31.mjs.map +1 -1
- package/dist/harmony32.cjs +10 -54
- package/dist/harmony32.cjs.map +1 -1
- package/dist/harmony32.mjs +10 -54
- package/dist/harmony32.mjs.map +1 -1
- package/dist/harmony33.cjs +50 -25
- package/dist/harmony33.cjs.map +1 -1
- package/dist/harmony33.mjs +51 -26
- package/dist/harmony33.mjs.map +1 -1
- package/dist/harmony34.cjs +27 -15
- package/dist/harmony34.cjs.map +1 -1
- package/dist/harmony34.mjs +28 -16
- package/dist/harmony34.mjs.map +1 -1
- package/dist/harmony35.cjs +15 -25
- package/dist/harmony35.cjs.map +1 -1
- package/dist/harmony35.mjs +16 -26
- package/dist/harmony35.mjs.map +1 -1
- package/dist/harmony36.cjs +25 -11
- package/dist/harmony36.cjs.map +1 -1
- package/dist/harmony36.mjs +26 -12
- package/dist/harmony36.mjs.map +1 -1
- package/dist/harmony37.cjs +14 -14
- package/dist/harmony37.cjs.map +1 -1
- package/dist/harmony37.mjs +14 -14
- package/dist/harmony37.mjs.map +1 -1
- package/dist/harmony38.cjs +6 -6
- package/dist/harmony38.cjs.map +1 -1
- package/dist/harmony38.mjs +6 -6
- package/dist/harmony38.mjs.map +1 -1
- package/dist/harmony39.cjs +4 -4
- package/dist/harmony39.cjs.map +1 -1
- package/dist/harmony39.mjs +4 -4
- package/dist/harmony39.mjs.map +1 -1
- package/dist/harmony4.cjs +2 -2
- package/dist/harmony4.mjs +2 -2
- package/dist/harmony40.cjs +6 -6
- package/dist/harmony40.cjs.map +1 -1
- package/dist/harmony40.mjs +6 -6
- package/dist/harmony40.mjs.map +1 -1
- package/dist/harmony41.cjs +6 -5
- package/dist/harmony41.cjs.map +1 -1
- package/dist/harmony41.mjs +6 -5
- package/dist/harmony41.mjs.map +1 -1
- package/dist/harmony42.cjs +6 -15
- package/dist/harmony42.cjs.map +1 -1
- package/dist/harmony42.mjs +7 -16
- package/dist/harmony42.mjs.map +1 -1
- package/dist/harmony43.cjs +16 -7
- package/dist/harmony43.cjs.map +1 -1
- package/dist/harmony43.mjs +16 -7
- package/dist/harmony43.mjs.map +1 -1
- package/dist/harmony44.cjs +4 -4
- package/dist/harmony44.cjs.map +1 -1
- package/dist/harmony44.mjs +4 -4
- package/dist/harmony44.mjs.map +1 -1
- package/dist/harmony45.cjs +7 -11
- package/dist/harmony45.cjs.map +1 -1
- package/dist/harmony45.mjs +9 -13
- package/dist/harmony45.mjs.map +1 -1
- package/dist/harmony46.cjs +8 -8
- package/dist/harmony46.cjs.map +1 -1
- package/dist/harmony46.mjs +8 -8
- package/dist/harmony46.mjs.map +1 -1
- package/dist/harmony47.cjs +14 -12
- package/dist/harmony47.cjs.map +1 -1
- package/dist/harmony47.mjs +14 -12
- package/dist/harmony47.mjs.map +1 -1
- package/dist/harmony48.cjs +8 -8
- package/dist/harmony48.cjs.map +1 -1
- package/dist/harmony48.mjs +9 -9
- package/dist/harmony48.mjs.map +1 -1
- package/dist/harmony49.cjs +9 -9
- package/dist/harmony49.cjs.map +1 -1
- package/dist/harmony49.mjs +10 -10
- package/dist/harmony49.mjs.map +1 -1
- package/dist/harmony5.cjs +25 -10
- package/dist/harmony5.cjs.map +1 -1
- package/dist/harmony5.mjs +25 -10
- package/dist/harmony5.mjs.map +1 -1
- package/dist/harmony50.cjs +12 -14
- package/dist/harmony50.cjs.map +1 -1
- package/dist/harmony50.mjs +12 -14
- package/dist/harmony50.mjs.map +1 -1
- package/dist/harmony51.cjs +10 -10
- package/dist/harmony51.cjs.map +1 -1
- package/dist/harmony51.mjs +10 -10
- package/dist/harmony51.mjs.map +1 -1
- package/dist/harmony52.cjs +8 -8
- package/dist/harmony52.cjs.map +1 -1
- package/dist/harmony52.mjs +8 -8
- package/dist/harmony52.mjs.map +1 -1
- package/dist/harmony53.cjs +7 -7
- package/dist/harmony53.cjs.map +1 -1
- package/dist/harmony53.mjs +7 -7
- package/dist/harmony53.mjs.map +1 -1
- package/dist/harmony54.cjs +8 -8
- package/dist/harmony54.cjs.map +1 -1
- package/dist/harmony54.mjs +8 -8
- package/dist/harmony54.mjs.map +1 -1
- package/dist/harmony55.cjs +14 -12
- package/dist/harmony55.cjs.map +1 -1
- package/dist/harmony55.mjs +14 -12
- package/dist/harmony55.mjs.map +1 -1
- package/dist/harmony56.cjs +12 -14
- package/dist/harmony56.cjs.map +1 -1
- package/dist/harmony56.mjs +12 -14
- package/dist/harmony56.mjs.map +1 -1
- package/dist/harmony57.cjs +8 -8
- package/dist/harmony57.cjs.map +1 -1
- package/dist/harmony57.mjs +8 -8
- package/dist/harmony57.mjs.map +1 -1
- package/dist/harmony58.cjs +8 -9
- package/dist/harmony58.cjs.map +1 -1
- package/dist/harmony58.mjs +9 -10
- package/dist/harmony58.mjs.map +1 -1
- package/dist/harmony59.cjs +11 -7
- package/dist/harmony59.cjs.map +1 -1
- package/dist/harmony59.mjs +12 -8
- package/dist/harmony59.mjs.map +1 -1
- package/dist/harmony6.cjs +9 -47
- package/dist/harmony6.cjs.map +1 -1
- package/dist/harmony6.mjs +11 -49
- package/dist/harmony6.mjs.map +1 -1
- package/dist/harmony60.cjs +4 -4
- package/dist/harmony60.cjs.map +1 -1
- package/dist/harmony60.mjs +4 -4
- package/dist/harmony60.mjs.map +1 -1
- package/dist/harmony61.cjs +13 -123
- package/dist/harmony61.cjs.map +1 -1
- package/dist/harmony61.mjs +13 -123
- package/dist/harmony61.mjs.map +1 -1
- package/dist/harmony62.cjs +102 -60
- package/dist/harmony62.cjs.map +1 -1
- package/dist/harmony62.mjs +102 -60
- package/dist/harmony62.mjs.map +1 -1
- package/dist/harmony63.cjs +80 -4
- package/dist/harmony63.cjs.map +1 -1
- package/dist/harmony63.mjs +80 -4
- package/dist/harmony63.mjs.map +1 -1
- package/dist/harmony64.cjs +4 -21
- package/dist/harmony64.cjs.map +1 -1
- package/dist/harmony64.mjs +4 -21
- package/dist/harmony64.mjs.map +1 -1
- package/dist/harmony65.cjs +20 -36
- package/dist/harmony65.cjs.map +1 -1
- package/dist/harmony65.mjs +20 -36
- package/dist/harmony65.mjs.map +1 -1
- package/dist/harmony66.cjs +34 -141
- package/dist/harmony66.cjs.map +1 -1
- package/dist/harmony66.mjs +31 -138
- package/dist/harmony66.mjs.map +1 -1
- package/dist/harmony67.cjs +145 -36
- package/dist/harmony67.cjs.map +1 -1
- package/dist/harmony67.mjs +144 -35
- package/dist/harmony67.mjs.map +1 -1
- package/dist/harmony68.cjs +36 -25
- package/dist/harmony68.cjs.map +1 -1
- package/dist/harmony68.mjs +36 -25
- package/dist/harmony68.mjs.map +1 -1
- package/dist/harmony69.cjs +24 -6
- package/dist/harmony69.cjs.map +1 -1
- package/dist/harmony69.mjs +24 -6
- package/dist/harmony69.mjs.map +1 -1
- package/dist/harmony7.cjs +45 -14
- package/dist/harmony7.cjs.map +1 -1
- package/dist/harmony7.mjs +47 -16
- package/dist/harmony7.mjs.map +1 -1
- package/dist/harmony70.cjs +6 -82
- package/dist/harmony70.cjs.map +1 -1
- package/dist/harmony70.mjs +6 -82
- package/dist/harmony70.mjs.map +1 -1
- package/dist/harmony71.cjs +79 -49
- package/dist/harmony71.cjs.map +1 -1
- package/dist/harmony71.mjs +79 -49
- package/dist/harmony71.mjs.map +1 -1
- package/dist/harmony72.cjs +53 -17
- package/dist/harmony72.cjs.map +1 -1
- package/dist/harmony72.mjs +53 -17
- package/dist/harmony72.mjs.map +1 -1
- package/dist/harmony73.cjs +19 -16
- package/dist/harmony73.cjs.map +1 -1
- package/dist/harmony73.mjs +18 -15
- package/dist/harmony73.mjs.map +1 -1
- package/dist/harmony74.cjs +15 -18
- package/dist/harmony74.cjs.map +1 -1
- package/dist/harmony74.mjs +15 -18
- package/dist/harmony74.mjs.map +1 -1
- package/dist/harmony75.cjs +18 -61
- package/dist/harmony75.cjs.map +1 -1
- package/dist/harmony75.mjs +18 -61
- package/dist/harmony75.mjs.map +1 -1
- package/dist/harmony76.cjs +59 -37
- package/dist/harmony76.cjs.map +1 -1
- package/dist/harmony76.mjs +59 -37
- package/dist/harmony76.mjs.map +1 -1
- package/dist/harmony77.cjs +37 -35
- package/dist/harmony77.cjs.map +1 -1
- package/dist/harmony77.mjs +38 -36
- package/dist/harmony77.mjs.map +1 -1
- package/dist/harmony78.cjs +37 -9
- package/dist/harmony78.cjs.map +1 -1
- package/dist/harmony78.mjs +36 -8
- package/dist/harmony78.mjs.map +1 -1
- package/dist/harmony79.cjs +10 -9
- package/dist/harmony79.cjs.map +1 -1
- package/dist/harmony79.mjs +9 -8
- package/dist/harmony79.mjs.map +1 -1
- package/dist/harmony8.cjs +15 -56
- package/dist/harmony8.cjs.map +1 -1
- package/dist/harmony8.mjs +16 -57
- package/dist/harmony8.mjs.map +1 -1
- package/dist/harmony80.cjs +5 -26
- package/dist/harmony80.cjs.map +1 -1
- package/dist/harmony80.mjs +8 -29
- package/dist/harmony80.mjs.map +1 -1
- package/dist/harmony81.cjs +29 -3
- package/dist/harmony81.cjs.map +1 -1
- package/dist/harmony81.mjs +29 -3
- package/dist/harmony81.mjs.map +1 -1
- package/dist/harmony82.cjs +3 -33
- package/dist/harmony82.cjs.map +1 -1
- package/dist/harmony82.mjs +3 -33
- package/dist/harmony82.mjs.map +1 -1
- package/dist/harmony83.cjs +33 -43
- package/dist/harmony83.cjs.map +1 -1
- package/dist/harmony83.mjs +33 -43
- package/dist/harmony83.mjs.map +1 -1
- package/dist/harmony84.cjs +43 -29
- package/dist/harmony84.cjs.map +1 -1
- package/dist/harmony84.mjs +43 -29
- package/dist/harmony84.mjs.map +1 -1
- package/dist/harmony85.cjs +26 -63
- package/dist/harmony85.cjs.map +1 -1
- package/dist/harmony85.mjs +26 -63
- package/dist/harmony85.mjs.map +1 -1
- package/dist/harmony86.cjs +66 -15
- package/dist/harmony86.cjs.map +1 -1
- package/dist/harmony86.mjs +66 -15
- package/dist/harmony86.mjs.map +1 -1
- package/dist/harmony87.cjs +15 -3
- package/dist/harmony87.cjs.map +1 -1
- package/dist/harmony87.mjs +15 -3
- package/dist/harmony87.mjs.map +1 -1
- package/dist/harmony88.cjs +3 -166
- package/dist/harmony88.cjs.map +1 -1
- package/dist/harmony88.mjs +3 -166
- package/dist/harmony88.mjs.map +1 -1
- package/dist/harmony89.cjs +159 -37
- package/dist/harmony89.cjs.map +1 -1
- package/dist/harmony89.mjs +160 -38
- package/dist/harmony89.mjs.map +1 -1
- package/dist/harmony9.cjs +59 -30
- package/dist/harmony9.cjs.map +1 -1
- package/dist/harmony9.mjs +59 -30
- package/dist/harmony9.mjs.map +1 -1
- package/dist/harmony90.cjs +43 -11
- package/dist/harmony90.cjs.map +1 -1
- package/dist/harmony90.mjs +43 -11
- package/dist/harmony90.mjs.map +1 -1
- package/dist/harmony91.cjs +4 -13
- package/dist/harmony91.cjs.map +1 -1
- package/dist/harmony91.mjs +3 -12
- package/dist/harmony91.mjs.map +1 -1
- package/dist/harmony92.cjs +18 -3
- package/dist/harmony92.cjs.map +1 -1
- package/dist/harmony92.mjs +18 -3
- package/dist/harmony92.mjs.map +1 -1
- package/dist/harmony93.cjs +71 -13
- package/dist/harmony93.cjs.map +1 -1
- package/dist/harmony93.mjs +73 -15
- package/dist/harmony93.mjs.map +1 -1
- package/dist/harmony94.cjs +11 -75
- package/dist/harmony94.cjs.map +1 -1
- package/dist/harmony94.mjs +11 -75
- package/dist/harmony94.mjs.map +1 -1
- package/dist/harmony95.cjs +30 -12
- package/dist/harmony95.cjs.map +1 -1
- package/dist/harmony95.mjs +30 -12
- package/dist/harmony95.mjs.map +1 -1
- package/dist/harmony96.cjs +9 -30
- package/dist/harmony96.cjs.map +1 -1
- package/dist/harmony96.mjs +9 -30
- package/dist/harmony96.mjs.map +1 -1
- package/dist/harmony97.cjs +46 -8
- package/dist/harmony97.cjs.map +1 -1
- package/dist/harmony97.mjs +47 -9
- package/dist/harmony97.mjs.map +1 -1
- package/dist/harmony98.cjs +9 -47
- package/dist/harmony98.cjs.map +1 -1
- package/dist/harmony98.mjs +8 -46
- package/dist/harmony98.mjs.map +1 -1
- package/dist/harmony99.cjs +12 -9
- package/dist/harmony99.cjs.map +1 -1
- package/dist/harmony99.mjs +11 -8
- package/dist/harmony99.mjs.map +1 -1
- package/dist/types/src/components/Sidebar/Widgets/ProfileMenu/ProfileMenu.stories.d.ts +1 -0
- package/dist/types/src/components/Sidebar/utils/content.d.ts +4 -0
- package/dist/types/src/features/auth/frontend/hooks/useAuthenticatedProjectContributor.d.ts +2 -2
- package/dist/types/src/features/auth/frontend/hooks/useAuthenticatedUser.d.ts +2 -2
- package/dist/types/src/features/navigation/hooks/useNavigationQueries.d.ts +12 -12
- package/dist/types/src/features/publicApi/contributors.d.ts +32 -32
- package/dist/types/src/features/publicApi/hooks/useAddContributorsMutation.d.ts +2 -2
- package/dist/types/src/features/publicApi/hooks/useCreateProjectMutation.d.ts +2 -2
- package/dist/types/src/features/publicApi/hooks/useGetTeamUsersQuery.d.ts +2 -2
- package/dist/types/src/features/publicApi/hooks/useListContributorsQuery.d.ts +2 -2
- package/dist/types/src/features/publicApi/hooks/useListProjectsQuery.d.ts +3 -3
- package/dist/types/src/features/publicApi/hooks/useListTeamUsersQuery.d.ts +2 -2
- package/dist/types/src/features/publicApi/hooks/useListTeamsQuery.d.ts +4 -4
- package/dist/types/src/features/publicApi/hooks/useRetrieveContributorQuery.d.ts +2 -2
- package/dist/types/src/features/publicApi/hooks/useRetrieveProjectQuery.d.ts +2 -2
- package/dist/types/src/features/publicApi/hooks/useRetrieveTeamQuery.d.ts +4 -4
- package/dist/types/src/features/publicApi/hooks/useUpdateContributorMutation.d.ts +2 -2
- package/dist/types/src/features/publicApi/hooks/useUpdateProjectMutation.d.ts +2 -2
- package/dist/types/src/features/publicApi/projects.d.ts +22 -22
- package/dist/types/src/features/publicApi/team.d.ts +36 -36
- package/dist/types/src/features/publicApi/teamUsers.d.ts +16 -16
- package/dist/types/src/features/publicApi/types/contributorTypes.d.ts +36 -36
- package/dist/types/src/features/publicApi/types/projectTypes.d.ts +14 -14
- package/dist/types/src/features/publicApi/types/teamTypes.d.ts +42 -42
- package/dist/types/src/features/publicApi/types/teamUserTypes.d.ts +20 -20
- package/dist/types/src/node.d.ts +1 -0
- package/package.json +1 -1
package/dist/harmony116.mjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"harmony116.mjs","sources":["../src/components/Sidebar/Widgets/ProfileMenu/
|
1
|
+
{"version":3,"file":"harmony116.mjs","sources":["../src/components/Sidebar/Widgets/ProfileMenu/TeamSettingsMenuItem/TeamSettingsMenuItem.tsx"],"sourcesContent":["import { useSidebar } from '@components/Sidebar/hooks/useSidebar'\nimport { MenuItem } from '@lokalise/louis'\nimport { canAccessTeamSettings } from '@utils/user/permissions'\n\n/**\n * A menu item component for navigating to the team settings page.\n * It checks the current user's permissions using the Sidebar context\n * and renders nothing if the user does not have access.\n *\n * @example\n * ```\n * <TeamSettingsMenuItem />\n * ```\n *\n * @note This component must be used within a Sidebar Context.\n */\n\nexport const TeamSettingsMenuItem = () => {\n\tconst { jwt } = useSidebar()\n\n\tif (!canAccessTeamSettings(jwt.result)) {\n\t\treturn null\n\t}\n\n\treturn <MenuItem href=\"/team\">Team settings</MenuItem>\n}\n"],"names":[],"mappings":";;;;AAiBO,MAAM,uBAAuB,MAAM;AACnC,QAAA,EAAE,IAAI,IAAI,WAAW;AAE3B,MAAI,CAAC,sBAAsB,IAAI,MAAM,GAAG;AAChC,WAAA;AAAA,EAAA;AAGR,SAAQ,oBAAA,UAAA,EAAS,MAAK,SAAQ,UAAa,iBAAA;AAC5C;"}
|
package/dist/harmony117.cjs
CHANGED
@@ -1,39 +1,25 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
3
3
|
const jsxRuntime = require("react/jsx-runtime");
|
4
|
-
const useSidebar = require("./
|
5
|
-
const
|
6
|
-
const
|
7
|
-
const
|
8
|
-
|
9
|
-
const UpgradeMenuItem_module = require("./harmony135.cjs");
|
10
|
-
const UpgradeMenuItem = ({ href }) => {
|
4
|
+
const useSidebar = require("./harmony94.cjs");
|
5
|
+
const TeamMenuItem = require("./harmony115.cjs");
|
6
|
+
const TeamSwitch_module = require("./harmony135.cjs");
|
7
|
+
const TeamSwitch = ({ onSwitchTeam }) => {
|
8
|
+
var _a, _b;
|
11
9
|
const {
|
12
|
-
|
13
|
-
data: { currentTeam }
|
10
|
+
data: { otherTeams }
|
14
11
|
} = useSidebar.useSidebar();
|
15
|
-
if (
|
12
|
+
if (((_a = otherTeams.result) == null ? void 0 : _a.length) === 0) {
|
16
13
|
return null;
|
17
14
|
}
|
18
|
-
|
19
|
-
|
20
|
-
const daysNoun = trialDaysLeft === 1 ? "day" : "days";
|
21
|
-
const ctaMessage = isOnFreePlan ? "Your team is currently on the Free plan" : `Free trial ends in ${trialDaysLeft} ${daysNoun}`;
|
22
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(
|
23
|
-
louis.MenuItem,
|
15
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
16
|
+
"div",
|
24
17
|
{
|
25
|
-
"data-testid": "sidebar-
|
26
|
-
|
27
|
-
|
28
|
-
children: [
|
29
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: UpgradeMenuItem_module.default.planCta, children: ctaMessage }),
|
30
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: `flex-row items-center gap-1 ${UpgradeMenuItem_module.default.upgradeIconWrapper}`, children: [
|
31
|
-
/* @__PURE__ */ jsxRuntime.jsx(UpgradeIcon.UpgradeIcon, {}),
|
32
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { children: "See upgrade options" })
|
33
|
-
] })
|
34
|
-
]
|
18
|
+
"data-testid": "sidebar-team-switch",
|
19
|
+
className: `flex-col items-stretch ${TeamSwitch_module.default.teamsContainer}`,
|
20
|
+
children: (_b = otherTeams.result) == null ? void 0 : _b.map((team) => /* @__PURE__ */ jsxRuntime.jsx(TeamMenuItem.TeamMenuItem, { team, onClick: onSwitchTeam, hidePlanLabel: true }, team.id))
|
35
21
|
}
|
36
22
|
);
|
37
23
|
};
|
38
|
-
exports.
|
24
|
+
exports.TeamSwitch = TeamSwitch;
|
39
25
|
//# sourceMappingURL=harmony117.cjs.map
|
package/dist/harmony117.cjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"harmony117.cjs","sources":["../src/components/Sidebar/Widgets/ProfileMenu/
|
1
|
+
{"version":3,"file":"harmony117.cjs","sources":["../src/components/Sidebar/Widgets/ProfileMenu/TeamSwitch/TeamSwitch.tsx"],"sourcesContent":["import { useSidebar } from '@components/Sidebar/hooks/useSidebar'\nimport type { SidebarTeam } from '@components/Sidebar/types'\nimport { TeamMenuItem } from '../TeamMenuItem/TeamMenuItem'\nimport styles from './TeamSwitch.module.css'\n\n/**\n * A component that displays a list of available teams for switching.\n * It automatically excludes the current team from the list and renders\n * nothing if there are no other teams available.\n *\n * Uses the Sidebar context to access the list of other teams and\n * renders each team as a TeamMenuItem with click functionality.\n *\n * @example\n * ```tsx\n * <TeamSwitch\n * onSwitchTeam={(team) => {\n * console.log(`Switching to team: ${team.name}`);\n * // Handle team switch logic\n * }}\n * />\n * ```\n *\n * @note This component must be used within a Sidebar Context\n */\n\ntype TeamSwitchProps = {\n\tonSwitchTeam: (team: SidebarTeam) => void\n}\n\nexport const TeamSwitch = ({ onSwitchTeam }: TeamSwitchProps) => {\n\tconst {\n\t\tdata: { otherTeams },\n\t} = useSidebar()\n\n\tif (otherTeams.result?.length === 0) {\n\t\treturn null\n\t}\n\n\treturn (\n\t\t<div\n\t\t\tdata-testid=\"sidebar-team-switch\"\n\t\t\tclassName={`flex-col items-stretch ${styles.teamsContainer}`}\n\t\t>\n\t\t\t{otherTeams.result?.map((team) => (\n\t\t\t\t<TeamMenuItem team={team} key={team.id} onClick={onSwitchTeam} hidePlanLabel />\n\t\t\t))}\n\t\t</div>\n\t)\n}\n"],"names":["useSidebar","jsx","styles","TeamMenuItem"],"mappings":";;;;;;AA8BO,MAAM,aAAa,CAAC,EAAE,mBAAoC;;AAC1D,QAAA;AAAA,IACL,MAAM,EAAE,WAAW;AAAA,MAChBA,sBAAW;AAEX,QAAA,gBAAW,WAAX,mBAAmB,YAAW,GAAG;AAC7B,WAAA;AAAA,EAAA;AAIP,SAAAC,2BAAA;AAAA,IAAC;AAAA,IAAA;AAAA,MACA,eAAY;AAAA,MACZ,WAAW,0BAA0BC,kBAAA,QAAO,cAAc;AAAA,MAEzD,WAAW,gBAAA,WAAA,mBAAQ,IAAI,CAAC,SACvBD,2BAAAA,IAAAE,aAAA,cAAA,EAAa,MAA0B,SAAS,cAAc,eAAa,KAA7C,GAAA,KAAK,EAAyC;AAAA,IAC7E;AAAA,EACF;AAEF;;"}
|
package/dist/harmony117.mjs
CHANGED
@@ -1,39 +1,25 @@
|
|
1
|
-
import {
|
2
|
-
import { useSidebar } from "./
|
3
|
-
import {
|
4
|
-
import { isFreePlan } from "./harmony9.mjs";
|
5
|
-
import { canUpgradePlan } from "./harmony96.mjs";
|
6
|
-
import { UpgradeIcon } from "./harmony119.mjs";
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
2
|
+
import { useSidebar } from "./harmony94.mjs";
|
3
|
+
import { TeamMenuItem } from "./harmony115.mjs";
|
7
4
|
import styles from "./harmony135.mjs";
|
8
|
-
const
|
5
|
+
const TeamSwitch = ({ onSwitchTeam }) => {
|
6
|
+
var _a, _b;
|
9
7
|
const {
|
10
|
-
|
11
|
-
data: { currentTeam }
|
8
|
+
data: { otherTeams }
|
12
9
|
} = useSidebar();
|
13
|
-
if (
|
10
|
+
if (((_a = otherTeams.result) == null ? void 0 : _a.length) === 0) {
|
14
11
|
return null;
|
15
12
|
}
|
16
|
-
|
17
|
-
|
18
|
-
const daysNoun = trialDaysLeft === 1 ? "day" : "days";
|
19
|
-
const ctaMessage = isOnFreePlan ? "Your team is currently on the Free plan" : `Free trial ends in ${trialDaysLeft} ${daysNoun}`;
|
20
|
-
return /* @__PURE__ */ jsxs(
|
21
|
-
MenuItem,
|
13
|
+
return /* @__PURE__ */ jsx(
|
14
|
+
"div",
|
22
15
|
{
|
23
|
-
"data-testid": "sidebar-
|
24
|
-
|
25
|
-
|
26
|
-
children: [
|
27
|
-
/* @__PURE__ */ jsx("span", { className: styles.planCta, children: ctaMessage }),
|
28
|
-
/* @__PURE__ */ jsxs("div", { className: `flex-row items-center gap-1 ${styles.upgradeIconWrapper}`, children: [
|
29
|
-
/* @__PURE__ */ jsx(UpgradeIcon, {}),
|
30
|
-
/* @__PURE__ */ jsx("span", { children: "See upgrade options" })
|
31
|
-
] })
|
32
|
-
]
|
16
|
+
"data-testid": "sidebar-team-switch",
|
17
|
+
className: `flex-col items-stretch ${styles.teamsContainer}`,
|
18
|
+
children: (_b = otherTeams.result) == null ? void 0 : _b.map((team) => /* @__PURE__ */ jsx(TeamMenuItem, { team, onClick: onSwitchTeam, hidePlanLabel: true }, team.id))
|
33
19
|
}
|
34
20
|
);
|
35
21
|
};
|
36
22
|
export {
|
37
|
-
|
23
|
+
TeamSwitch
|
38
24
|
};
|
39
25
|
//# sourceMappingURL=harmony117.mjs.map
|
package/dist/harmony117.mjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"harmony117.mjs","sources":["../src/components/Sidebar/Widgets/ProfileMenu/
|
1
|
+
{"version":3,"file":"harmony117.mjs","sources":["../src/components/Sidebar/Widgets/ProfileMenu/TeamSwitch/TeamSwitch.tsx"],"sourcesContent":["import { useSidebar } from '@components/Sidebar/hooks/useSidebar'\nimport type { SidebarTeam } from '@components/Sidebar/types'\nimport { TeamMenuItem } from '../TeamMenuItem/TeamMenuItem'\nimport styles from './TeamSwitch.module.css'\n\n/**\n * A component that displays a list of available teams for switching.\n * It automatically excludes the current team from the list and renders\n * nothing if there are no other teams available.\n *\n * Uses the Sidebar context to access the list of other teams and\n * renders each team as a TeamMenuItem with click functionality.\n *\n * @example\n * ```tsx\n * <TeamSwitch\n * onSwitchTeam={(team) => {\n * console.log(`Switching to team: ${team.name}`);\n * // Handle team switch logic\n * }}\n * />\n * ```\n *\n * @note This component must be used within a Sidebar Context\n */\n\ntype TeamSwitchProps = {\n\tonSwitchTeam: (team: SidebarTeam) => void\n}\n\nexport const TeamSwitch = ({ onSwitchTeam }: TeamSwitchProps) => {\n\tconst {\n\t\tdata: { otherTeams },\n\t} = useSidebar()\n\n\tif (otherTeams.result?.length === 0) {\n\t\treturn null\n\t}\n\n\treturn (\n\t\t<div\n\t\t\tdata-testid=\"sidebar-team-switch\"\n\t\t\tclassName={`flex-col items-stretch ${styles.teamsContainer}`}\n\t\t>\n\t\t\t{otherTeams.result?.map((team) => (\n\t\t\t\t<TeamMenuItem team={team} key={team.id} onClick={onSwitchTeam} hidePlanLabel />\n\t\t\t))}\n\t\t</div>\n\t)\n}\n"],"names":[],"mappings":";;;;AA8BO,MAAM,aAAa,CAAC,EAAE,mBAAoC;;AAC1D,QAAA;AAAA,IACL,MAAM,EAAE,WAAW;AAAA,MAChB,WAAW;AAEX,QAAA,gBAAW,WAAX,mBAAmB,YAAW,GAAG;AAC7B,WAAA;AAAA,EAAA;AAIP,SAAA;AAAA,IAAC;AAAA,IAAA;AAAA,MACA,eAAY;AAAA,MACZ,WAAW,0BAA0B,OAAO,cAAc;AAAA,MAEzD,WAAW,gBAAA,WAAA,mBAAQ,IAAI,CAAC,SACvB,oBAAA,cAAA,EAAa,MAA0B,SAAS,cAAc,eAAa,KAA7C,GAAA,KAAK,EAAyC;AAAA,IAC7E;AAAA,EACF;AAEF;"}
|
package/dist/harmony118.cjs
CHANGED
@@ -1,24 +1,39 @@
|
|
1
1
|
"use strict";
|
2
|
-
Object.
|
3
|
-
const
|
4
|
-
const
|
5
|
-
const
|
6
|
-
const
|
7
|
-
const
|
8
|
-
const
|
9
|
-
const
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
3
|
+
const jsxRuntime = require("react/jsx-runtime");
|
4
|
+
const useSidebar = require("./harmony94.cjs");
|
5
|
+
const louis = require("@lokalise/louis");
|
6
|
+
const plan = require("./harmony10.cjs");
|
7
|
+
const permissions = require("./harmony95.cjs");
|
8
|
+
const UpgradeIcon = require("./harmony120.cjs");
|
9
|
+
const UpgradeMenuItem_module = require("./harmony136.cjs");
|
10
|
+
const UpgradeMenuItem = ({ href }) => {
|
11
|
+
const {
|
12
|
+
jwt,
|
13
|
+
data: { currentTeam }
|
14
|
+
} = useSidebar.useSidebar();
|
15
|
+
if (!jwt.result || !permissions.canUpgradePlan(jwt.result) || !currentTeam.result) {
|
16
|
+
return null;
|
17
|
+
}
|
18
|
+
const isOnFreePlan = plan.isFreePlan(jwt.result.planId);
|
19
|
+
const trialDaysLeft = currentTeam.result.trialDaysLeft;
|
20
|
+
const daysNoun = trialDaysLeft === 1 ? "day" : "days";
|
21
|
+
const ctaMessage = isOnFreePlan ? "Your team is currently on the Free plan" : `Free trial ends in ${trialDaysLeft} ${daysNoun}`;
|
22
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(
|
23
|
+
louis.MenuItem,
|
24
|
+
{
|
25
|
+
"data-testid": "sidebar-upgrade-menu-item",
|
26
|
+
href,
|
27
|
+
className: `flex-col gap-1 items-start ${UpgradeMenuItem_module.default.container}`,
|
28
|
+
children: [
|
29
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: UpgradeMenuItem_module.default.planCta, children: ctaMessage }),
|
30
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: `flex-row items-center gap-1 ${UpgradeMenuItem_module.default.upgradeIconWrapper}`, children: [
|
31
|
+
/* @__PURE__ */ jsxRuntime.jsx(UpgradeIcon.UpgradeIcon, {}),
|
32
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { children: "See upgrade options" })
|
33
|
+
] })
|
34
|
+
]
|
35
|
+
}
|
36
|
+
);
|
16
37
|
};
|
17
|
-
exports.
|
18
|
-
exports.menuContainer = menuContainer;
|
19
|
-
exports.profileButton = profileButton;
|
20
|
-
exports.profileImage = profileImage;
|
21
|
-
exports.profileImageHighlight = profileImageHighlight;
|
22
|
-
exports.profileImageUpgradeIcon = profileImageUpgradeIcon;
|
23
|
-
exports.userIconWrapper = userIconWrapper;
|
38
|
+
exports.UpgradeMenuItem = UpgradeMenuItem;
|
24
39
|
//# sourceMappingURL=harmony118.cjs.map
|
package/dist/harmony118.cjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"harmony118.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"harmony118.cjs","sources":["../src/components/Sidebar/Widgets/ProfileMenu/UpgradeMenuItem/UpgradeMenuItem.tsx"],"sourcesContent":["import { useSidebar } from '@components/Sidebar/hooks/useSidebar'\nimport { MenuItem } from '@lokalise/louis'\nimport { isFreePlan } from '@utils'\nimport { canUpgradePlan } from '@utils/user/permissions'\nimport { UpgradeIcon } from '../UpgradeIcon/UpgradeIcon'\nimport styles from './UpgradeMenuItem.module.css'\n\n/**\n * A menu item component that displays upgrade call-to-action information.\n * Only renders when upgrade options should be shown (determined by context).\n *\n * The component displays different messages based on the team's current plan:\n * - For free plans: \"Your team is currently on the Free plan\"\n * - For trial plans: \"Free trial ends in X days\"\n *\n * Includes an upgrade icon and \"See upgrade options\" text, styled to draw attention\n * to the upgrade opportunity.\n *\n * @example\n * ```tsx\n * <UpgradeMenuItem href=\"/pricing\" />\n * ```\n *\n * @note This component must be used within a Sidebar Context\n */\n\ntype UpgradeMenuItemProps = {\n\thref: string\n}\n\nexport const UpgradeMenuItem = ({ href }: UpgradeMenuItemProps) => {\n\tconst {\n\t\tjwt,\n\t\tdata: { currentTeam },\n\t} = useSidebar()\n\n\tif (!jwt.result || !canUpgradePlan(jwt.result) || !currentTeam.result) {\n\t\treturn null\n\t}\n\n\tconst isOnFreePlan = isFreePlan(jwt.result.planId)\n\n\tconst trialDaysLeft = currentTeam.result.trialDaysLeft\n\n\tconst daysNoun = trialDaysLeft === 1 ? 'day' : 'days'\n\tconst ctaMessage = isOnFreePlan\n\t\t? 'Your team is currently on the Free plan'\n\t\t: `Free trial ends in ${trialDaysLeft} ${daysNoun}`\n\n\treturn (\n\t\t<MenuItem\n\t\t\tdata-testid=\"sidebar-upgrade-menu-item\"\n\t\t\thref={href}\n\t\t\tclassName={`flex-col gap-1 items-start ${styles.container}`}\n\t\t>\n\t\t\t<span className={styles.planCta}>{ctaMessage}</span>\n\t\t\t<div className={`flex-row items-center gap-1 ${styles.upgradeIconWrapper}`}>\n\t\t\t\t<UpgradeIcon />\n\t\t\t\t<span>See upgrade options</span>\n\t\t\t</div>\n\t\t</MenuItem>\n\t)\n}\n"],"names":["useSidebar","canUpgradePlan","isFreePlan","jsxs","MenuItem","styles","jsx","UpgradeIcon"],"mappings":";;;;;;;;;AA8BO,MAAM,kBAAkB,CAAC,EAAE,WAAiC;AAC5D,QAAA;AAAA,IACL;AAAA,IACA,MAAM,EAAE,YAAY;AAAA,MACjBA,sBAAW;AAEX,MAAA,CAAC,IAAI,UAAU,CAACC,YAAA,eAAe,IAAI,MAAM,KAAK,CAAC,YAAY,QAAQ;AAC/D,WAAA;AAAA,EAAA;AAGR,QAAM,eAAeC,KAAA,WAAW,IAAI,OAAO,MAAM;AAE3C,QAAA,gBAAgB,YAAY,OAAO;AAEnC,QAAA,WAAW,kBAAkB,IAAI,QAAQ;AAC/C,QAAM,aAAa,eAChB,4CACA,sBAAsB,aAAa,IAAI,QAAQ;AAGjD,SAAAC,2BAAA;AAAA,IAACC,MAAA;AAAA,IAAA;AAAA,MACA,eAAY;AAAA,MACZ;AAAA,MACA,WAAW,8BAA8BC,uBAAA,QAAO,SAAS;AAAA,MAEzD,UAAA;AAAA,QAAAC,2BAAA,IAAC,QAAK,EAAA,WAAWD,uBAAO,QAAA,SAAU,UAAW,YAAA;AAAA,wCAC5C,OAAI,EAAA,WAAW,+BAA+BA,+BAAO,kBAAkB,IACvE,UAAA;AAAA,UAAAC,2BAAA,IAACC,YAAY,aAAA,EAAA;AAAA,UACbD,2BAAAA,IAAC,UAAK,UAAmB,sBAAA,CAAA;AAAA,QAAA,EAC1B,CAAA;AAAA,MAAA;AAAA,IAAA;AAAA,EACD;AAEF;;"}
|
package/dist/harmony118.mjs
CHANGED
@@ -1,24 +1,39 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
1
|
+
import { jsxs, jsx } from "react/jsx-runtime";
|
2
|
+
import { useSidebar } from "./harmony94.mjs";
|
3
|
+
import { MenuItem } from "@lokalise/louis";
|
4
|
+
import { isFreePlan } from "./harmony10.mjs";
|
5
|
+
import { canUpgradePlan } from "./harmony95.mjs";
|
6
|
+
import { UpgradeIcon } from "./harmony120.mjs";
|
7
|
+
import styles from "./harmony136.mjs";
|
8
|
+
const UpgradeMenuItem = ({ href }) => {
|
9
|
+
const {
|
10
|
+
jwt,
|
11
|
+
data: { currentTeam }
|
12
|
+
} = useSidebar();
|
13
|
+
if (!jwt.result || !canUpgradePlan(jwt.result) || !currentTeam.result) {
|
14
|
+
return null;
|
15
|
+
}
|
16
|
+
const isOnFreePlan = isFreePlan(jwt.result.planId);
|
17
|
+
const trialDaysLeft = currentTeam.result.trialDaysLeft;
|
18
|
+
const daysNoun = trialDaysLeft === 1 ? "day" : "days";
|
19
|
+
const ctaMessage = isOnFreePlan ? "Your team is currently on the Free plan" : `Free trial ends in ${trialDaysLeft} ${daysNoun}`;
|
20
|
+
return /* @__PURE__ */ jsxs(
|
21
|
+
MenuItem,
|
22
|
+
{
|
23
|
+
"data-testid": "sidebar-upgrade-menu-item",
|
24
|
+
href,
|
25
|
+
className: `flex-col gap-1 items-start ${styles.container}`,
|
26
|
+
children: [
|
27
|
+
/* @__PURE__ */ jsx("span", { className: styles.planCta, children: ctaMessage }),
|
28
|
+
/* @__PURE__ */ jsxs("div", { className: `flex-row items-center gap-1 ${styles.upgradeIconWrapper}`, children: [
|
29
|
+
/* @__PURE__ */ jsx(UpgradeIcon, {}),
|
30
|
+
/* @__PURE__ */ jsx("span", { children: "See upgrade options" })
|
31
|
+
] })
|
32
|
+
]
|
33
|
+
}
|
34
|
+
);
|
14
35
|
};
|
15
36
|
export {
|
16
|
-
|
17
|
-
menuContainer,
|
18
|
-
profileButton,
|
19
|
-
profileImage,
|
20
|
-
profileImageHighlight,
|
21
|
-
profileImageUpgradeIcon,
|
22
|
-
userIconWrapper
|
37
|
+
UpgradeMenuItem
|
23
38
|
};
|
24
39
|
//# sourceMappingURL=harmony118.mjs.map
|
package/dist/harmony118.mjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"harmony118.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"harmony118.mjs","sources":["../src/components/Sidebar/Widgets/ProfileMenu/UpgradeMenuItem/UpgradeMenuItem.tsx"],"sourcesContent":["import { useSidebar } from '@components/Sidebar/hooks/useSidebar'\nimport { MenuItem } from '@lokalise/louis'\nimport { isFreePlan } from '@utils'\nimport { canUpgradePlan } from '@utils/user/permissions'\nimport { UpgradeIcon } from '../UpgradeIcon/UpgradeIcon'\nimport styles from './UpgradeMenuItem.module.css'\n\n/**\n * A menu item component that displays upgrade call-to-action information.\n * Only renders when upgrade options should be shown (determined by context).\n *\n * The component displays different messages based on the team's current plan:\n * - For free plans: \"Your team is currently on the Free plan\"\n * - For trial plans: \"Free trial ends in X days\"\n *\n * Includes an upgrade icon and \"See upgrade options\" text, styled to draw attention\n * to the upgrade opportunity.\n *\n * @example\n * ```tsx\n * <UpgradeMenuItem href=\"/pricing\" />\n * ```\n *\n * @note This component must be used within a Sidebar Context\n */\n\ntype UpgradeMenuItemProps = {\n\thref: string\n}\n\nexport const UpgradeMenuItem = ({ href }: UpgradeMenuItemProps) => {\n\tconst {\n\t\tjwt,\n\t\tdata: { currentTeam },\n\t} = useSidebar()\n\n\tif (!jwt.result || !canUpgradePlan(jwt.result) || !currentTeam.result) {\n\t\treturn null\n\t}\n\n\tconst isOnFreePlan = isFreePlan(jwt.result.planId)\n\n\tconst trialDaysLeft = currentTeam.result.trialDaysLeft\n\n\tconst daysNoun = trialDaysLeft === 1 ? 'day' : 'days'\n\tconst ctaMessage = isOnFreePlan\n\t\t? 'Your team is currently on the Free plan'\n\t\t: `Free trial ends in ${trialDaysLeft} ${daysNoun}`\n\n\treturn (\n\t\t<MenuItem\n\t\t\tdata-testid=\"sidebar-upgrade-menu-item\"\n\t\t\thref={href}\n\t\t\tclassName={`flex-col gap-1 items-start ${styles.container}`}\n\t\t>\n\t\t\t<span className={styles.planCta}>{ctaMessage}</span>\n\t\t\t<div className={`flex-row items-center gap-1 ${styles.upgradeIconWrapper}`}>\n\t\t\t\t<UpgradeIcon />\n\t\t\t\t<span>See upgrade options</span>\n\t\t\t</div>\n\t\t</MenuItem>\n\t)\n}\n"],"names":[],"mappings":";;;;;;;AA8BO,MAAM,kBAAkB,CAAC,EAAE,WAAiC;AAC5D,QAAA;AAAA,IACL;AAAA,IACA,MAAM,EAAE,YAAY;AAAA,MACjB,WAAW;AAEX,MAAA,CAAC,IAAI,UAAU,CAAC,eAAe,IAAI,MAAM,KAAK,CAAC,YAAY,QAAQ;AAC/D,WAAA;AAAA,EAAA;AAGR,QAAM,eAAe,WAAW,IAAI,OAAO,MAAM;AAE3C,QAAA,gBAAgB,YAAY,OAAO;AAEnC,QAAA,WAAW,kBAAkB,IAAI,QAAQ;AAC/C,QAAM,aAAa,eAChB,4CACA,sBAAsB,aAAa,IAAI,QAAQ;AAGjD,SAAA;AAAA,IAAC;AAAA,IAAA;AAAA,MACA,eAAY;AAAA,MACZ;AAAA,MACA,WAAW,8BAA8B,OAAO,SAAS;AAAA,MAEzD,UAAA;AAAA,QAAA,oBAAC,QAAK,EAAA,WAAW,OAAO,SAAU,UAAW,YAAA;AAAA,6BAC5C,OAAI,EAAA,WAAW,+BAA+B,OAAO,kBAAkB,IACvE,UAAA;AAAA,UAAA,oBAAC,aAAY,EAAA;AAAA,UACb,oBAAC,UAAK,UAAmB,sBAAA,CAAA;AAAA,QAAA,EAC1B,CAAA;AAAA,MAAA;AAAA,IAAA;AAAA,EACD;AAEF;"}
|
package/dist/harmony119.cjs
CHANGED
@@ -1,24 +1,24 @@
|
|
1
1
|
"use strict";
|
2
|
-
Object.
|
3
|
-
const
|
4
|
-
const
|
5
|
-
const
|
6
|
-
const
|
7
|
-
const
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
"justify-center",
|
17
|
-
className
|
18
|
-
),
|
19
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(louis.CaretUpIcon, {})
|
20
|
-
}
|
21
|
-
);
|
2
|
+
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
3
|
+
const menuContainer = "_menuContainer_1phdw_10";
|
4
|
+
const profileButton = "_profileButton_1phdw_20";
|
5
|
+
const profileImage = "_profileImage_1phdw_33";
|
6
|
+
const profileImageHighlight = "_profileImageHighlight_1phdw_41";
|
7
|
+
const profileImageUpgradeIcon = "_profileImageUpgradeIcon_1phdw_45";
|
8
|
+
const userIconWrapper = "_userIconWrapper_1phdw_51";
|
9
|
+
const styles = {
|
10
|
+
menuContainer,
|
11
|
+
profileButton,
|
12
|
+
profileImage,
|
13
|
+
profileImageHighlight,
|
14
|
+
profileImageUpgradeIcon,
|
15
|
+
userIconWrapper
|
22
16
|
};
|
23
|
-
exports.
|
17
|
+
exports.default = styles;
|
18
|
+
exports.menuContainer = menuContainer;
|
19
|
+
exports.profileButton = profileButton;
|
20
|
+
exports.profileImage = profileImage;
|
21
|
+
exports.profileImageHighlight = profileImageHighlight;
|
22
|
+
exports.profileImageUpgradeIcon = profileImageUpgradeIcon;
|
23
|
+
exports.userIconWrapper = userIconWrapper;
|
24
24
|
//# sourceMappingURL=harmony119.cjs.map
|
package/dist/harmony119.cjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"harmony119.cjs","sources":[
|
1
|
+
{"version":3,"file":"harmony119.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;"}
|
package/dist/harmony119.mjs
CHANGED
@@ -1,24 +1,24 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
const
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
"justify-center",
|
15
|
-
className
|
16
|
-
),
|
17
|
-
children: /* @__PURE__ */ jsx(CaretUpIcon, {})
|
18
|
-
}
|
19
|
-
);
|
1
|
+
const menuContainer = "_menuContainer_1phdw_10";
|
2
|
+
const profileButton = "_profileButton_1phdw_20";
|
3
|
+
const profileImage = "_profileImage_1phdw_33";
|
4
|
+
const profileImageHighlight = "_profileImageHighlight_1phdw_41";
|
5
|
+
const profileImageUpgradeIcon = "_profileImageUpgradeIcon_1phdw_45";
|
6
|
+
const userIconWrapper = "_userIconWrapper_1phdw_51";
|
7
|
+
const styles = {
|
8
|
+
menuContainer,
|
9
|
+
profileButton,
|
10
|
+
profileImage,
|
11
|
+
profileImageHighlight,
|
12
|
+
profileImageUpgradeIcon,
|
13
|
+
userIconWrapper
|
20
14
|
};
|
21
15
|
export {
|
22
|
-
|
16
|
+
styles as default,
|
17
|
+
menuContainer,
|
18
|
+
profileButton,
|
19
|
+
profileImage,
|
20
|
+
profileImageHighlight,
|
21
|
+
profileImageUpgradeIcon,
|
22
|
+
userIconWrapper
|
23
23
|
};
|
24
24
|
//# sourceMappingURL=harmony119.mjs.map
|
package/dist/harmony119.mjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"harmony119.mjs","sources":[
|
1
|
+
{"version":3,"file":"harmony119.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;"}
|
package/dist/harmony12.cjs
CHANGED
@@ -1,12 +1,55 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
3
|
-
const
|
4
|
-
const
|
5
|
-
const
|
6
|
-
const
|
7
|
-
const
|
8
|
-
|
3
|
+
const jsxRuntime = require("react/jsx-runtime");
|
4
|
+
const urlRegex = /(\b(https?|):\/\/[-a-zA-Zа-яА-Я0-9+&@#/%?=~_|!:,.;]*[-a-zA-Zа-яА-Я0-9+&@#/%=~_|])/gi;
|
5
|
+
const matchUrl = (input) => input.match(urlRegex) ?? [];
|
6
|
+
const replaceWithAnchor = (text, pattern, index) => {
|
7
|
+
const components = text.split(pattern);
|
8
|
+
if (components.length === 1) {
|
9
|
+
return text;
|
10
|
+
}
|
11
|
+
const result = [];
|
12
|
+
if (components[0] !== "") {
|
13
|
+
result.push(components[0]);
|
14
|
+
}
|
15
|
+
components.shift();
|
16
|
+
if (components[components.length - 1] === "") {
|
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 !== "");
|
9
24
|
};
|
10
|
-
|
11
|
-
|
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;
|
12
55
|
//# sourceMappingURL=harmony12.cjs.map
|
package/dist/harmony12.cjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"harmony12.cjs","sources":["../src/utils/
|
1
|
+
{"version":3,"file":"harmony12.cjs","sources":["../src/utils/content/url/url.tsx"],"sourcesContent":["import type { ReactNode } from 'react'\n\nconst urlRegex =\n\t/(\\b(https?|):\\/\\/[-a-zA-Zа-яА-Я0-9+&@#/%?=~_|!:,.;]*[-a-zA-Zа-яА-Я0-9+&@#/%=~_|])/gi\n\nexport const matchUrl = (input: string): readonly string[] => input.match(urlRegex) ?? []\n\nconst replaceWithAnchor = (text: string, pattern: string, index: number) => {\n\tconst components = text.split(pattern)\n\t// if there are no matches\n\tif (components.length === 1) {\n\t\treturn text\n\t}\n\n\tconst result = []\n\n\t// empty value in first position means string starts with pattern\n\tif (components[0] !== '') {\n\t\tresult.push(components[0])\n\t}\n\n\tcomponents.shift()\n\n\t// empty value in last position means string ends with pattern\n\tif (components[components.length - 1] === '') {\n\t\tcomponents.pop()\n\t}\n\n\tresult.push(\n\t\t<a key={pattern + index} href={pattern} target=\"_blank\" rel=\"noreferrer noopener\">\n\t\t\t{pattern}\n\t\t</a>,\n\t)\n\tresult.push(components.join(pattern))\n\n\treturn result.filter((item) => item !== '')\n}\n\nconst matchUrlsAndReplace = (text: string) => {\n\tconst matchedUrls = matchUrl(text)\n\n\tif (!matchedUrls?.length) {\n\t\treturn text\n\t}\n\n\treturn matchedUrls.reduce<string | ReactNode[]>((accumulator, pattern, index) => {\n\t\tif (typeof accumulator === 'string') {\n\t\t\treturn replaceWithAnchor(accumulator, pattern, index)\n\t\t}\n\n\t\treturn accumulator.flatMap((item) => {\n\t\t\tif (typeof item === 'string') {\n\t\t\t\treturn replaceWithAnchor(item, pattern, index)\n\t\t\t}\n\n\t\t\treturn item\n\t\t})\n\t}, text)\n}\n\nexport const makeUrlClickable = (text: string | ReactNode[]) => {\n\tif (typeof text === 'string') {\n\t\treturn matchUrlsAndReplace(text)\n\t}\n\n\treturn text.flatMap((item) => {\n\t\tif (typeof item === 'string') {\n\t\t\treturn matchUrlsAndReplace(item)\n\t\t}\n\n\t\treturn item\n\t}, text)\n}\n"],"names":["jsx"],"mappings":";;;AAEA,MAAM,WACL;AAEM,MAAM,WAAW,CAAC,UAAqC,MAAM,MAAM,QAAQ,KAAK,CAAA;AAEvF,MAAM,oBAAoB,CAAC,MAAc,SAAiB,UAAkB;AACrE,QAAA,aAAa,KAAK,MAAM,OAAO;AAEjC,MAAA,WAAW,WAAW,GAAG;AACrB,WAAA;AAAA,EAAA;AAGR,QAAM,SAAS,CAAC;AAGZ,MAAA,WAAW,CAAC,MAAM,IAAI;AAClB,WAAA,KAAK,WAAW,CAAC,CAAC;AAAA,EAAA;AAG1B,aAAW,MAAM;AAGjB,MAAI,WAAW,WAAW,SAAS,CAAC,MAAM,IAAI;AAC7C,eAAW,IAAI;AAAA,EAAA;AAGT,SAAA;AAAA,IACNA,2BAAAA,IAAC,KAAwB,EAAA,MAAM,SAAS,QAAO,UAAS,KAAI,uBAC1D,UADM,QAAA,GAAA,UAAU,KAElB;AAAA,EACD;AACA,SAAO,KAAK,WAAW,KAAK,OAAO,CAAC;AAEpC,SAAO,OAAO,OAAO,CAAC,SAAS,SAAS,EAAE;AAC3C;AAEA,MAAM,sBAAsB,CAAC,SAAiB;AACvC,QAAA,cAAc,SAAS,IAAI;AAE7B,MAAA,EAAC,2CAAa,SAAQ;AAClB,WAAA;AAAA,EAAA;AAGR,SAAO,YAAY,OAA6B,CAAC,aAAa,SAAS,UAAU;AAC5E,QAAA,OAAO,gBAAgB,UAAU;AAC7B,aAAA,kBAAkB,aAAa,SAAS,KAAK;AAAA,IAAA;AAG9C,WAAA,YAAY,QAAQ,CAAC,SAAS;AAChC,UAAA,OAAO,SAAS,UAAU;AACtB,eAAA,kBAAkB,MAAM,SAAS,KAAK;AAAA,MAAA;AAGvC,aAAA;AAAA,IAAA,CACP;AAAA,KACC,IAAI;AACR;AAEa,MAAA,mBAAmB,CAAC,SAA+B;AAC3D,MAAA,OAAO,SAAS,UAAU;AAC7B,WAAO,oBAAoB,IAAI;AAAA,EAAA;AAGzB,SAAA,KAAK,QAAQ,CAAC,SAAS;AACzB,QAAA,OAAO,SAAS,UAAU;AAC7B,aAAO,oBAAoB,IAAI;AAAA,IAAA;AAGzB,WAAA;AAAA,KACL,IAAI;AACR;;;"}
|
package/dist/harmony12.mjs
CHANGED
@@ -1,12 +1,55 @@
|
|
1
|
-
import {
|
2
|
-
|
3
|
-
const
|
4
|
-
const
|
5
|
-
const
|
6
|
-
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
2
|
+
const urlRegex = /(\b(https?|):\/\/[-a-zA-Zа-яА-Я0-9+&@#/%?=~_|!:,.;]*[-a-zA-Zа-яА-Я0-9+&@#/%=~_|])/gi;
|
3
|
+
const matchUrl = (input) => input.match(urlRegex) ?? [];
|
4
|
+
const replaceWithAnchor = (text, pattern, index) => {
|
5
|
+
const components = text.split(pattern);
|
6
|
+
if (components.length === 1) {
|
7
|
+
return text;
|
8
|
+
}
|
9
|
+
const result = [];
|
10
|
+
if (components[0] !== "") {
|
11
|
+
result.push(components[0]);
|
12
|
+
}
|
13
|
+
components.shift();
|
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);
|
7
50
|
};
|
8
51
|
export {
|
9
|
-
|
10
|
-
|
52
|
+
makeUrlClickable,
|
53
|
+
matchUrl
|
11
54
|
};
|
12
55
|
//# sourceMappingURL=harmony12.mjs.map
|
package/dist/harmony12.mjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"harmony12.mjs","sources":["../src/utils/
|
1
|
+
{"version":3,"file":"harmony12.mjs","sources":["../src/utils/content/url/url.tsx"],"sourcesContent":["import type { ReactNode } from 'react'\n\nconst urlRegex =\n\t/(\\b(https?|):\\/\\/[-a-zA-Zа-яА-Я0-9+&@#/%?=~_|!:,.;]*[-a-zA-Zа-яА-Я0-9+&@#/%=~_|])/gi\n\nexport const matchUrl = (input: string): readonly string[] => input.match(urlRegex) ?? []\n\nconst replaceWithAnchor = (text: string, pattern: string, index: number) => {\n\tconst components = text.split(pattern)\n\t// if there are no matches\n\tif (components.length === 1) {\n\t\treturn text\n\t}\n\n\tconst result = []\n\n\t// empty value in first position means string starts with pattern\n\tif (components[0] !== '') {\n\t\tresult.push(components[0])\n\t}\n\n\tcomponents.shift()\n\n\t// empty value in last position means string ends with pattern\n\tif (components[components.length - 1] === '') {\n\t\tcomponents.pop()\n\t}\n\n\tresult.push(\n\t\t<a key={pattern + index} href={pattern} target=\"_blank\" rel=\"noreferrer noopener\">\n\t\t\t{pattern}\n\t\t</a>,\n\t)\n\tresult.push(components.join(pattern))\n\n\treturn result.filter((item) => item !== '')\n}\n\nconst matchUrlsAndReplace = (text: string) => {\n\tconst matchedUrls = matchUrl(text)\n\n\tif (!matchedUrls?.length) {\n\t\treturn text\n\t}\n\n\treturn matchedUrls.reduce<string | ReactNode[]>((accumulator, pattern, index) => {\n\t\tif (typeof accumulator === 'string') {\n\t\t\treturn replaceWithAnchor(accumulator, pattern, index)\n\t\t}\n\n\t\treturn accumulator.flatMap((item) => {\n\t\t\tif (typeof item === 'string') {\n\t\t\t\treturn replaceWithAnchor(item, pattern, index)\n\t\t\t}\n\n\t\t\treturn item\n\t\t})\n\t}, text)\n}\n\nexport const makeUrlClickable = (text: string | ReactNode[]) => {\n\tif (typeof text === 'string') {\n\t\treturn matchUrlsAndReplace(text)\n\t}\n\n\treturn text.flatMap((item) => {\n\t\tif (typeof item === 'string') {\n\t\t\treturn matchUrlsAndReplace(item)\n\t\t}\n\n\t\treturn item\n\t}, text)\n}\n"],"names":[],"mappings":";AAEA,MAAM,WACL;AAEM,MAAM,WAAW,CAAC,UAAqC,MAAM,MAAM,QAAQ,KAAK,CAAA;AAEvF,MAAM,oBAAoB,CAAC,MAAc,SAAiB,UAAkB;AACrE,QAAA,aAAa,KAAK,MAAM,OAAO;AAEjC,MAAA,WAAW,WAAW,GAAG;AACrB,WAAA;AAAA,EAAA;AAGR,QAAM,SAAS,CAAC;AAGZ,MAAA,WAAW,CAAC,MAAM,IAAI;AAClB,WAAA,KAAK,WAAW,CAAC,CAAC;AAAA,EAAA;AAG1B,aAAW,MAAM;AAGjB,MAAI,WAAW,WAAW,SAAS,CAAC,MAAM,IAAI;AAC7C,eAAW,IAAI;AAAA,EAAA;AAGT,SAAA;AAAA,IACN,oBAAC,KAAwB,EAAA,MAAM,SAAS,QAAO,UAAS,KAAI,uBAC1D,UADM,QAAA,GAAA,UAAU,KAElB;AAAA,EACD;AACA,SAAO,KAAK,WAAW,KAAK,OAAO,CAAC;AAEpC,SAAO,OAAO,OAAO,CAAC,SAAS,SAAS,EAAE;AAC3C;AAEA,MAAM,sBAAsB,CAAC,SAAiB;AACvC,QAAA,cAAc,SAAS,IAAI;AAE7B,MAAA,EAAC,2CAAa,SAAQ;AAClB,WAAA;AAAA,EAAA;AAGR,SAAO,YAAY,OAA6B,CAAC,aAAa,SAAS,UAAU;AAC5E,QAAA,OAAO,gBAAgB,UAAU;AAC7B,aAAA,kBAAkB,aAAa,SAAS,KAAK;AAAA,IAAA;AAG9C,WAAA,YAAY,QAAQ,CAAC,SAAS;AAChC,UAAA,OAAO,SAAS,UAAU;AACtB,eAAA,kBAAkB,MAAM,SAAS,KAAK;AAAA,MAAA;AAGvC,aAAA;AAAA,IAAA,CACP;AAAA,KACC,IAAI;AACR;AAEa,MAAA,mBAAmB,CAAC,SAA+B;AAC3D,MAAA,OAAO,SAAS,UAAU;AAC7B,WAAO,oBAAoB,IAAI;AAAA,EAAA;AAGzB,SAAA,KAAK,QAAQ,CAAC,SAAS;AACzB,QAAA,OAAO,SAAS,UAAU;AAC7B,aAAO,oBAAoB,IAAI;AAAA,IAAA;AAGzB,WAAA;AAAA,KACL,IAAI;AACR;"}
|
package/dist/harmony120.cjs
CHANGED
@@ -1,9 +1,24 @@
|
|
1
1
|
"use strict";
|
2
|
-
Object.
|
3
|
-
const
|
4
|
-
const
|
5
|
-
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
3
|
+
const jsxRuntime = require("react/jsx-runtime");
|
4
|
+
const louis = require("@lokalise/louis");
|
5
|
+
const clsx = require("./harmony74.cjs");
|
6
|
+
const UpgradeIcon_module = require("./harmony137.cjs");
|
7
|
+
const UpgradeIcon = ({ className = "" }) => {
|
8
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
9
|
+
"div",
|
10
|
+
{
|
11
|
+
"aria-label": "Upgrade Icon",
|
12
|
+
className: clsx.clsx(
|
13
|
+
UpgradeIcon_module.default.iconContainer,
|
14
|
+
"flex-row",
|
15
|
+
"items-center",
|
16
|
+
"justify-center",
|
17
|
+
className
|
18
|
+
),
|
19
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(louis.CaretUpIcon, {})
|
20
|
+
}
|
21
|
+
);
|
6
22
|
};
|
7
|
-
exports.
|
8
|
-
exports.logoLink = logoLink;
|
23
|
+
exports.UpgradeIcon = UpgradeIcon;
|
9
24
|
//# sourceMappingURL=harmony120.cjs.map
|
package/dist/harmony120.cjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"harmony120.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"harmony120.cjs","sources":["../src/components/Sidebar/Widgets/ProfileMenu/UpgradeIcon/UpgradeIcon.tsx"],"sourcesContent":["import { CaretUpIcon } from '@lokalise/louis'\nimport clsx from 'clsx'\nimport styles from './UpgradeIcon.module.css'\n\ntype UpgradeIconProps = {\n\tclassName?: string\n}\n\nexport const UpgradeIcon = ({ className = '' }: UpgradeIconProps) => {\n\treturn (\n\t\t<div\n\t\t\taria-label={'Upgrade Icon'}\n\t\t\tclassName={clsx(\n\t\t\t\tstyles.iconContainer,\n\t\t\t\t'flex-row',\n\t\t\t\t'items-center',\n\t\t\t\t'justify-center',\n\t\t\t\tclassName,\n\t\t\t)}\n\t\t>\n\t\t\t<CaretUpIcon />\n\t\t</div>\n\t)\n}\n"],"names":["jsx","clsx","styles","CaretUpIcon"],"mappings":";;;;;;AAQO,MAAM,cAAc,CAAC,EAAE,YAAY,SAA2B;AAEnE,SAAAA,2BAAA;AAAA,IAAC;AAAA,IAAA;AAAA,MACA,cAAY;AAAA,MACZ,WAAWC,KAAA;AAAA,QACVC,mBAAAA,QAAO;AAAA,QACP;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,MACD;AAAA,MAEA,yCAACC,MAAAA,aAAY,CAAA,CAAA;AAAA,IAAA;AAAA,EACd;AAEF;;"}
|