@ikas/core 1.0.3 → 1.0.5
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/components/rich-text-editor/index.d.ts.map +1 -1
- package/dist/core.css +12 -1
- package/dist/index101.cjs +470 -1
- package/dist/index101.js +482 -155
- package/dist/index102.cjs +1 -1
- package/dist/index102.js +122 -122
- package/dist/index103.cjs +1 -1
- package/dist/index103.js +120 -119
- package/dist/index104.cjs +1 -1
- package/dist/index104.js +155 -100
- package/dist/index105.cjs +1 -1
- package/dist/index105.js +75 -139
- package/dist/index106.cjs +1 -1
- package/dist/index106.js +132 -88
- package/dist/index107.cjs +1 -1
- package/dist/index107.js +116 -220
- package/dist/index108.cjs +1 -1
- package/dist/index108.js +214 -158
- package/dist/index109.cjs +1 -1
- package/dist/index109.js +149 -351
- package/dist/index110.cjs +1 -1
- package/dist/index110.js +334 -170
- package/dist/index111.cjs +1 -1
- package/dist/index111.js +194 -64
- package/dist/index112.cjs +1 -1
- package/dist/index112.js +68 -41
- package/dist/index113.cjs +1 -1
- package/dist/index113.js +38 -230
- package/dist/index114.cjs +1 -1
- package/dist/index114.js +278 -81
- package/dist/index115.cjs +1 -1
- package/dist/index115.js +2 -280
- package/dist/index116.cjs +1 -1
- package/dist/index116.js +31 -2
- package/dist/index117.cjs +1 -1
- package/dist/index117.js +2 -31
- package/dist/index118.cjs +1 -1
- package/dist/index118.js +240 -2
- package/dist/index119.cjs +1 -1
- package/dist/index119.js +73 -394
- package/dist/index120.cjs +1 -5
- package/dist/index120.js +400 -2958
- package/dist/index121.cjs +1 -1
- package/dist/index121.js +111 -2
- package/dist/index122.cjs +6 -1
- package/dist/index122.js +13 -4
- package/dist/index123.cjs +6 -1
- package/dist/index123.js +13 -111
- package/dist/index124.cjs +2 -2
- package/dist/index124.js +8 -8
- package/dist/index125.cjs +5 -6
- package/dist/index125.js +2962 -13
- package/dist/index126.cjs +1 -6
- package/dist/index126.js +2 -14
- package/dist/index127.cjs +1 -6
- package/dist/index127.js +5 -27
- package/dist/index128.cjs +1 -6
- package/dist/index128.js +4 -15
- package/dist/index129.cjs +2 -2
- package/dist/index129.js +21 -4
- package/dist/index130.cjs +2 -2
- package/dist/index130.js +9 -7
- package/dist/index131.cjs +2 -2
- package/dist/index131.js +3 -10
- package/dist/index132.cjs +2 -2
- package/dist/index132.js +7 -2
- package/dist/index133.cjs +2 -2
- package/dist/index133.js +11 -2
- package/dist/index134.cjs +2 -2
- package/dist/index134.js +2 -6
- package/dist/index135.cjs +2 -2
- package/dist/index135.js +2 -34
- package/dist/index136.cjs +2 -2
- package/dist/index136.js +5 -11
- package/dist/index137.cjs +2 -2
- package/dist/index137.js +34 -7
- package/dist/index138.cjs +6 -1
- package/dist/index138.js +18 -4
- package/dist/index139.cjs +6 -1
- package/dist/index139.js +12 -3
- package/dist/index140.cjs +1 -1
- package/dist/index140.js +4 -8
- package/dist/index141.cjs +1 -1
- package/dist/index141.js +7 -6
- package/dist/index142.cjs +1 -1
- package/dist/index142.js +7 -6
- package/dist/index143.cjs +1 -3
- package/dist/index143.js +6 -146
- package/dist/index144.cjs +3 -1
- package/dist/index144.js +144 -29
- package/dist/index145.cjs +1 -1
- package/dist/index145.js +28 -141
- package/dist/index146.cjs +1 -15
- package/dist/index146.js +114 -107
- package/dist/index147.cjs +15 -1
- package/dist/index147.js +136 -86
- package/dist/index148.cjs +1 -11
- package/dist/index148.js +86 -147
- package/dist/index149.cjs +11 -1
- package/dist/index149.js +137 -72
- package/dist/index150.cjs +1 -1
- package/dist/index150.js +79 -46
- package/dist/index151.cjs +1 -1
- package/dist/index151.js +47 -21
- package/dist/index152.cjs +1 -1
- package/dist/index152.js +24 -5
- package/dist/index153.cjs +1 -1
- package/dist/index153.js +5 -6
- package/dist/index154.cjs +1 -1
- package/dist/index154.js +6 -44
- package/dist/index155.cjs +1 -1
- package/dist/index155.js +42 -48
- package/dist/index156.cjs +1 -1
- package/dist/index156.js +50 -9
- package/dist/index157.cjs +1 -1
- package/dist/index157.js +9 -19
- package/dist/index158.cjs +1 -1
- package/dist/index158.js +19 -58
- package/dist/index159.cjs +1 -1
- package/dist/index159.js +52 -280
- package/dist/index160.cjs +1 -1
- package/dist/index160.js +284 -17
- package/dist/index161.cjs +1 -1
- package/dist/index161.js +10 -9
- package/dist/index162.cjs +1 -1
- package/dist/index162.js +14 -60
- package/dist/index163.cjs +1 -1
- package/dist/index163.js +53 -102
- package/dist/index164.cjs +1 -1
- package/dist/index164.js +101 -30
- package/dist/index165.cjs +1 -1
- package/dist/index165.js +37 -19
- package/dist/index166.cjs +1 -1
- package/dist/index166.js +19 -162
- package/dist/index167.cjs +1 -1
- package/dist/index167.js +163 -19
- package/dist/index168.cjs +1 -1
- package/dist/index168.js +19 -53
- package/dist/index169.cjs +1 -1
- package/dist/index169.js +51 -27
- package/dist/index170.cjs +1 -1
- package/dist/index170.js +25 -43
- package/dist/index171.cjs +1 -1
- package/dist/index171.js +35 -117
- package/dist/index172.cjs +1 -1
- package/dist/index172.js +115 -63
- package/dist/index173.cjs +1 -1
- package/dist/index173.js +73 -72
- package/dist/index174.cjs +1 -1
- package/dist/index174.js +76 -15
- package/dist/index175.cjs +1 -1
- package/dist/index175.js +14 -28
- package/dist/index176.cjs +1 -1
- package/dist/index176.js +28 -26
- package/dist/index177.cjs +1 -1
- package/dist/index177.js +13 -13
- package/dist/index178.cjs +1 -1
- package/dist/index178.js +27 -171
- package/dist/index179.cjs +1 -1
- package/dist/index179.js +174 -51
- package/dist/index180.cjs +1 -1
- package/dist/index180.js +50 -69
- package/dist/index181.cjs +1 -1
- package/dist/index181.js +64 -12
- package/dist/index182.cjs +1 -1
- package/dist/index182.js +14 -30
- package/dist/index183.cjs +1 -1
- package/dist/index183.js +30 -45
- package/dist/index184.cjs +1 -1
- package/dist/index184.js +42 -32
- package/dist/index185.cjs +1 -1
- package/dist/index185.js +36 -88
- package/dist/index186.cjs +1 -1
- package/dist/index186.js +91 -59
- package/dist/index187.cjs +1 -1
- package/dist/index187.js +56 -72
- package/dist/index188.cjs +1 -14
- package/dist/index188.js +74 -6856
- package/dist/index189.cjs +14 -1
- package/dist/index189.js +6858 -2
- package/dist/index190.cjs +1 -6
- package/dist/index190.js +2 -11
- package/dist/index191.cjs +6 -1
- package/dist/index191.js +11 -15
- package/dist/index192.cjs +1 -1
- package/dist/index192.js +15 -2
- package/dist/index193.cjs +1 -1
- package/dist/index193.js +2 -8
- package/dist/index194.cjs +1 -2
- package/dist/index194.js +7 -326
- package/dist/index195.cjs +2 -1
- package/dist/index195.js +324 -47
- package/dist/index196.cjs +1 -1
- package/dist/index196.js +48 -25
- package/dist/index197.cjs +1 -1
- package/dist/index197.js +27 -2
- package/dist/index198.cjs +1 -1
- package/dist/index198.js +2 -28
- package/dist/index199.cjs +1 -1
- package/dist/index199.js +24 -28
- package/dist/index200.cjs +1 -1
- package/dist/index200.js +25 -109
- package/dist/index201.cjs +1 -1
- package/dist/index201.js +109 -53
- package/dist/index202.cjs +1 -1
- package/dist/index202.js +33 -33
- package/dist/index203.cjs +1 -1
- package/dist/index203.js +57 -14
- package/dist/index204.cjs +1 -1
- package/dist/index204.js +16 -17
- package/dist/index205.cjs +1 -1
- package/dist/index205.js +16 -11
- package/dist/index206.cjs +1 -1
- package/dist/index206.js +12 -8
- package/dist/index207.cjs +1 -1
- package/dist/index207.js +8 -5
- package/dist/index208.cjs +1 -1
- package/dist/index208.js +5 -8
- package/dist/index209.cjs +1 -1
- package/dist/index209.js +8 -8
- package/dist/index210.cjs +1 -1
- package/dist/index210.js +9 -2
- package/dist/index211.cjs +1 -1
- package/dist/index211.js +2 -4
- package/dist/index212.cjs +1 -1
- package/dist/index212.js +4 -5
- package/dist/index213.cjs +1 -1
- package/dist/index213.js +5 -40
- package/dist/index214.cjs +1 -1
- package/dist/index214.js +27 -70
- package/dist/index216.cjs +1 -1
- package/dist/index216.js +1 -1
- package/dist/index217.cjs +1 -1
- package/dist/index217.js +2 -2
- package/dist/index218.cjs +1 -1
- package/dist/index218.js +83 -2
- package/dist/index219.js +2 -2
- package/dist/index220.js +2 -2
- package/dist/index222.js +2 -2
- package/dist/index223.js +2 -2
- package/dist/index224.cjs +1 -1
- package/dist/index224.js +2 -2
- package/dist/index225.cjs +1 -8
- package/dist/index225.js +2 -76
- package/dist/index226.cjs +2 -2
- package/dist/index226.js +65 -82
- package/dist/index227.cjs +8 -5
- package/dist/index227.js +90 -49
- package/dist/index228.cjs +5 -1
- package/dist/index228.js +51 -7
- package/dist/index229.cjs +1 -1
- package/dist/index229.js +7 -4
- package/dist/index230.cjs +1 -1
- package/dist/index230.js +4 -51
- package/dist/index231.cjs +1 -1
- package/dist/index231.js +51 -15
- package/dist/index232.cjs +1 -1
- package/dist/index232.js +26 -6
- package/dist/index233.cjs +1 -1
- package/dist/index233.js +16 -3
- package/dist/index234.cjs +1 -1
- package/dist/index234.js +41 -28
- package/dist/index235.cjs +1 -1
- package/dist/index235.js +13 -6
- package/dist/index236.cjs +1 -1
- package/dist/index236.js +13 -5
- package/dist/index237.cjs +1 -1
- package/dist/index237.js +60 -6
- package/dist/index238.cjs +1 -1
- package/dist/index238.js +15 -10
- package/dist/index239.cjs +1 -1
- package/dist/index239.js +6 -26
- package/dist/index240.cjs +1 -1
- package/dist/index240.js +3 -16
- package/dist/index241.cjs +1 -1
- package/dist/index241.js +28 -41
- package/dist/index242.cjs +1 -1
- package/dist/index242.js +6 -13
- package/dist/index243.cjs +1 -1
- package/dist/index243.js +5 -13
- package/dist/index244.cjs +1 -1
- package/dist/index244.js +6 -60
- package/dist/index245.cjs +1 -1
- package/dist/index245.js +10 -9
- package/dist/index246.cjs +1 -1
- package/dist/index246.js +6 -11
- package/dist/index247.cjs +1 -1
- package/dist/index247.js +14 -3
- package/dist/index248.cjs +1 -1
- package/dist/index248.js +3 -7
- package/dist/index249.cjs +1 -1
- package/dist/index249.js +8 -4
- package/dist/index250.cjs +1 -1
- package/dist/index250.js +4 -6
- package/dist/index251.cjs +1 -1
- package/dist/index251.js +5 -38
- package/dist/index252.cjs +1 -1
- package/dist/index252.js +39 -2
- package/dist/index253.cjs +1 -1
- package/dist/index253.js +2 -5
- package/dist/index254.cjs +1 -1
- package/dist/index254.js +5 -3
- package/dist/index255.cjs +1 -1
- package/dist/index255.js +3 -6
- package/dist/index256.cjs +1 -1
- package/dist/index256.js +5 -6
- package/dist/index257.cjs +1 -1
- package/dist/index257.js +7 -2
- package/dist/index258.js +2 -2
- package/dist/index259.cjs +1 -1
- package/dist/index259.js +2 -18
- package/dist/index260.cjs +1 -1
- package/dist/index260.js +5 -4
- package/dist/index261.cjs +1 -1
- package/dist/index261.js +4 -4
- package/dist/index262.cjs +1 -1
- package/dist/index262.js +12 -3
- package/dist/index263.cjs +1 -1
- package/dist/index263.js +4 -4
- package/dist/index264.cjs +1 -1
- package/dist/index264.js +3 -14
- package/dist/index265.cjs +1 -1
- package/dist/index265.js +5 -9
- package/dist/index266.cjs +1 -1
- package/dist/index266.js +16 -2
- package/dist/index267.cjs +1 -1
- package/dist/index267.js +4 -10
- package/dist/index268.cjs +1 -1
- package/dist/index268.js +4 -6
- package/dist/index269.cjs +1 -1
- package/dist/index269.js +3 -5
- package/dist/index270.cjs +1 -1
- package/dist/index270.js +3 -6
- package/dist/index271.cjs +1 -1
- package/dist/index271.js +14 -6
- package/dist/index272.cjs +1 -1
- package/dist/index272.js +10 -8
- package/dist/index273.cjs +1 -1
- package/dist/index273.js +10 -5
- package/dist/index274.cjs +1 -1
- package/dist/index274.js +7 -4
- package/dist/index275.cjs +1 -1
- package/dist/index275.js +5 -9
- package/dist/index276.cjs +1 -1
- package/dist/index276.js +6 -13
- package/dist/index277.cjs +1 -1
- package/dist/index277.js +7 -5
- package/dist/index278.cjs +1 -1
- package/dist/index278.js +7 -5
- package/dist/index279.cjs +1 -1
- package/dist/index279.js +5 -17
- package/dist/index280.cjs +1 -1
- package/dist/index280.js +4 -13
- package/dist/index281.cjs +1 -1
- package/dist/index281.js +9 -12
- package/dist/index282.cjs +1 -1
- package/dist/index282.js +14 -4
- package/dist/index283.cjs +1 -1
- package/dist/index283.js +5 -6
- package/dist/index284.cjs +1 -1
- package/dist/index284.js +5 -5
- package/dist/index285.cjs +1 -1
- package/dist/index285.js +17 -4
- package/dist/index286.cjs +1 -1
- package/dist/index286.js +12 -26
- package/dist/index287.cjs +1 -1
- package/dist/index287.js +5 -9
- package/dist/index288.cjs +1 -1
- package/dist/index288.js +11 -4
- package/dist/index289.cjs +1 -1
- package/dist/index289.js +4 -5
- package/dist/index290.cjs +1 -1
- package/dist/index290.js +26 -5
- package/dist/index291.cjs +1 -1
- package/dist/index291.js +8 -4
- package/dist/index292.cjs +1 -1
- package/dist/index292.js +5 -9
- package/dist/index293.cjs +1 -1
- package/dist/index293.js +5 -4
- package/dist/index294.cjs +1 -1
- package/dist/index294.js +5 -7
- package/dist/index295.cjs +1 -1
- package/dist/index295.js +5 -5
- package/dist/index296.cjs +1 -1
- package/dist/index296.js +9 -6
- package/dist/index297.cjs +1 -1
- package/dist/index297.js +4 -5
- package/dist/index298.cjs +1 -1
- package/dist/index298.js +7 -12
- package/dist/index299.cjs +1 -1
- package/dist/index299.js +4 -3
- package/dist/index300.cjs +1 -1
- package/dist/index300.js +6 -38
- package/dist/index301.cjs +1 -1
- package/dist/index301.js +39 -2
- package/dist/index302.cjs +1 -1
- package/dist/index302.js +2 -2
- package/dist/index303.cjs +1 -1
- package/dist/index303.js +2 -7
- package/dist/index304.cjs +1 -1
- package/dist/index304.js +6 -7
- package/dist/index305.cjs +1 -1
- package/dist/index305.js +7 -3
- package/dist/index306.cjs +1 -1
- package/dist/index306.js +4 -9
- package/dist/index307.cjs +1 -1
- package/dist/index307.js +13 -5
- package/dist/index308.cjs +1 -1
- package/dist/index308.js +12 -15
- package/dist/index309.cjs +1 -1
- package/dist/index309.js +14 -3
- package/dist/index310.cjs +1 -1
- package/dist/index310.js +3 -5
- package/dist/index311.cjs +1 -1
- package/dist/index311.js +9 -6
- package/dist/index312.cjs +1 -1
- package/dist/index312.js +5 -3
- package/dist/index313.cjs +1 -1
- package/dist/index313.js +4 -9
- package/dist/index314.cjs +1 -1
- package/dist/index314.js +5 -5
- package/dist/index315.cjs +1 -1
- package/dist/index315.js +4 -9
- package/dist/index316.cjs +1 -1
- package/dist/index316.js +16 -10
- package/dist/index317.cjs +1 -1
- package/dist/index317.js +5 -3
- package/dist/index318.cjs +1 -1
- package/dist/index318.js +15 -10
- package/dist/index319.cjs +1 -1
- package/dist/index319.js +3 -6
- package/dist/index320.cjs +1 -1
- package/dist/index320.js +3 -2
- package/dist/index321.cjs +1 -1
- package/dist/index321.js +6 -5
- package/dist/index322.cjs +1 -1
- package/dist/index322.js +4 -4
- package/dist/index323.cjs +1 -1
- package/dist/index323.js +9 -17
- package/dist/index324.cjs +1 -1
- package/dist/index324.js +5 -5
- package/dist/index325.cjs +1 -1
- package/dist/index325.js +9 -8
- package/dist/index326.cjs +1 -1
- package/dist/index326.js +10 -12
- package/dist/index327.cjs +1 -1
- package/dist/index327.js +9 -12
- package/dist/index328.cjs +1 -1
- package/dist/index328.js +5 -13
- package/dist/index329.cjs +1 -1
- package/dist/index329.js +7 -29
- package/dist/index330.cjs +1 -1
- package/dist/index330.js +6 -8
- package/dist/index331.cjs +1 -1
- package/dist/index331.js +29 -3
- package/dist/index332.cjs +1 -1
- package/dist/index332.js +8 -16
- package/dist/index333.cjs +1 -1
- package/dist/index333.js +3 -6
- package/dist/index334.cjs +1 -1
- package/dist/index334.js +17 -3
- package/dist/index335.cjs +1 -1
- package/dist/index335.js +3 -13
- package/dist/index336.cjs +1 -1
- package/dist/index336.js +12 -4
- package/dist/index337.cjs +1 -1
- package/dist/index337.js +4 -6
- package/dist/index338.cjs +1 -1
- package/dist/index338.js +6 -3
- package/dist/index339.cjs +1 -1
- package/dist/index339.js +7 -5
- package/dist/index340.cjs +1 -1
- package/dist/index340.js +6 -7
- package/dist/index341.cjs +1 -1
- package/dist/index341.js +9 -6
- package/dist/index342.cjs +1 -1
- package/dist/index342.js +5 -10
- package/dist/index343.cjs +1 -1
- package/dist/index343.js +4 -5
- package/dist/index344.cjs +1 -1
- package/dist/index344.js +4 -4
- package/dist/index345.cjs +1 -1
- package/dist/index345.js +5 -4
- package/dist/index346.cjs +1 -1
- package/dist/index346.js +3 -6
- package/dist/index347.cjs +1 -1
- package/dist/index347.js +4 -4
- package/dist/index348.cjs +1 -1
- package/dist/index348.js +7 -37
- package/dist/index349.cjs +1 -1
- package/dist/index349.js +11 -42
- package/dist/index350.cjs +1 -1
- package/dist/index350.js +7 -33
- package/dist/index351.cjs +1 -1
- package/dist/index351.js +37 -25
- package/dist/index352.cjs +1 -1
- package/dist/index352.js +42 -7
- package/dist/index353.cjs +1 -1
- package/dist/index353.js +33 -11
- package/dist/index354.cjs +1 -1
- package/dist/index354.js +26 -14
- package/dist/index355.cjs +1 -1
- package/dist/index355.js +13 -3
- package/dist/index356.cjs +1 -1
- package/dist/index356.js +3 -17
- package/dist/index357.cjs +1 -1
- package/dist/index357.js +17 -5
- package/dist/index358.cjs +1 -1
- package/dist/index358.js +5 -10
- package/dist/index359.cjs +1 -1
- package/dist/index359.js +8 -7
- package/dist/index360.cjs +1 -1
- package/dist/index360.js +4 -3
- package/dist/index361.cjs +1 -1
- package/dist/index361.js +10 -6
- package/dist/index362.cjs +1 -1
- package/dist/index362.js +6 -6
- package/dist/index363.cjs +1 -1
- package/dist/index363.js +3 -6
- package/dist/index364.cjs +1 -1
- package/dist/index364.js +7 -4
- package/dist/index365.cjs +1 -1
- package/dist/index365.js +7 -4
- package/dist/index366.cjs +1 -1
- package/dist/index366.js +7 -4
- package/dist/index367.cjs +1 -1
- package/dist/index367.js +3 -3
- package/dist/index368.cjs +1 -1
- package/dist/index368.js +4 -15
- package/dist/index369.cjs +1 -1
- package/dist/index369.js +4 -3
- package/dist/index370.cjs +1 -1
- package/dist/index370.js +4 -8
- package/dist/index371.cjs +1 -1
- package/dist/index371.js +14 -4
- package/dist/index372.cjs +1 -1
- package/dist/index372.js +2 -8
- package/dist/index373.cjs +1 -1
- package/dist/index373.js +8 -4
- package/dist/index374.cjs +1 -1
- package/dist/index374.js +1 -1
- package/dist/index376.cjs +1 -1
- package/dist/index376.js +1 -1
- package/dist/index377.cjs +1 -1
- package/dist/index377.js +1 -1
- package/dist/index378.cjs +1 -1
- package/dist/index378.js +1 -1
- package/dist/index379.cjs +1 -1
- package/dist/index379.js +4 -4
- package/dist/index380.cjs +1 -1
- package/dist/index380.js +4 -3
- package/dist/index381.cjs +1 -1
- package/dist/index381.js +3 -6
- package/dist/index382.cjs +1 -1
- package/dist/index382.js +7 -8
- package/dist/index383.cjs +1 -1
- package/dist/index383.js +7 -8
- package/dist/index384.cjs +1 -1
- package/dist/index384.js +8 -15
- package/dist/index385.cjs +1 -1
- package/dist/index385.js +16 -3
- package/dist/index386.cjs +1 -1
- package/dist/index386.js +2 -2
- package/dist/index387.cjs +1 -1
- package/dist/index387.js +3 -6
- package/dist/index388.cjs +1 -1
- package/dist/index388.js +5 -7
- package/dist/index389.cjs +1 -1
- package/dist/index389.js +7 -3
- package/dist/index390.cjs +1 -1
- package/dist/index390.js +3 -15
- package/dist/index391.cjs +1 -0
- package/dist/index391.js +18 -0
- package/dist/index42.cjs +1 -1
- package/dist/index42.js +8 -7
- package/dist/index43.cjs +1 -1
- package/dist/index43.js +6 -6
- package/dist/index48.cjs +1 -1
- package/dist/index48.js +3 -3
- package/dist/index49.cjs +1 -1
- package/dist/index49.js +2 -2
- package/dist/index52.cjs +1 -1
- package/dist/index52.js +1 -1
- package/dist/index53.cjs +1 -1
- package/dist/index53.js +1 -1
- package/dist/index54.cjs +1 -1
- package/dist/index54.js +2 -2
- package/dist/index55.cjs +1 -1
- package/dist/index55.js +2 -2
- package/dist/index56.cjs +1 -1
- package/dist/index56.js +1 -1
- package/dist/index61.cjs +1 -1
- package/dist/index61.js +1 -1
- package/dist/index62.cjs +1 -1
- package/dist/index62.js +1 -1
- package/dist/index63.cjs +1 -1
- package/dist/index63.js +1 -1
- package/dist/index64.cjs +1 -1
- package/dist/index64.js +1 -1
- package/dist/index66.cjs +1 -1
- package/dist/index66.js +1 -1
- package/dist/index67.cjs +1 -1
- package/dist/index67.js +1 -1
- package/dist/index68.cjs +1 -1
- package/dist/index68.js +1 -1
- package/dist/index69.cjs +1 -1
- package/dist/index69.js +1 -1
- package/dist/index70.cjs +1 -1
- package/dist/index70.js +1 -1
- package/dist/index71.cjs +1 -1
- package/dist/index71.js +1 -1
- package/dist/index72.cjs +1 -1
- package/dist/index72.js +1 -1
- package/dist/index73.cjs +1 -1
- package/dist/index73.js +1 -1
- package/dist/index77.cjs +1 -1
- package/dist/index77.js +1 -1
- package/dist/index78.cjs +1 -1
- package/dist/index78.js +1 -1
- package/dist/index79.cjs +1 -1
- package/dist/index79.js +1 -1
- package/dist/index80.cjs +1 -1
- package/dist/index80.js +6 -6
- package/dist/index81.cjs +1 -1
- package/dist/index81.js +11 -11
- package/dist/index82.cjs +1 -1
- package/dist/index82.js +9 -9
- package/dist/index83.cjs +1 -1
- package/dist/index83.js +14 -14
- package/dist/index84.cjs +1 -1
- package/dist/index84.js +12 -12
- package/dist/index85.cjs +1 -1
- package/dist/index85.js +8 -8
- package/dist/index86.cjs +1 -1
- package/dist/index86.js +9 -9
- package/dist/index87.cjs +1 -1
- package/dist/index87.js +10 -10
- package/dist/index88.cjs +1 -1
- package/dist/index88.js +14 -14
- package/dist/index89.cjs +1 -1
- package/dist/index89.js +13 -13
- package/dist/index90.cjs +1 -1
- package/dist/index90.js +10 -10
- package/dist/index91.cjs +1 -1
- package/dist/index91.js +11 -11
- package/dist/index92.cjs +1 -1
- package/dist/index92.js +10 -10
- package/dist/index93.cjs +1 -1
- package/dist/index93.js +12 -12
- package/dist/index96.cjs +1 -1
- package/dist/index96.js +1 -1
- package/dist/index97.cjs +1 -1
- package/dist/index97.js +1 -1
- package/dist/index98.cjs +1 -1
- package/dist/index98.js +1 -1
- package/dist/index99.cjs +1 -1
- package/dist/index99.js +1 -1
- package/package.json +1 -1
- package/dist/index100.cjs +0 -470
- package/dist/index100.js +0 -484
package/dist/index105.js
CHANGED
|
@@ -1,165 +1,101 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
import { jsx as g
|
|
5
|
-
import
|
|
6
|
-
import { observer as
|
|
7
|
-
import { makeObservable as
|
|
8
|
-
import { Modal as
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
var
|
|
12
|
-
for (var
|
|
13
|
-
(m =
|
|
14
|
-
return
|
|
1
|
+
var d = Object.defineProperty;
|
|
2
|
+
var u = (s, e, o) => e in s ? d(s, e, { enumerable: !0, configurable: !0, writable: !0, value: o }) : s[e] = o;
|
|
3
|
+
var l = (s, e, o) => u(s, typeof e != "symbol" ? e + "" : e, o);
|
|
4
|
+
import { jsx as g } from "react/jsx-runtime";
|
|
5
|
+
import f from "react";
|
|
6
|
+
import { observer as b } from "mobx-react";
|
|
7
|
+
import { makeObservable as C, action as p, observable as c } from "mobx";
|
|
8
|
+
import { Modal as I } from "@ikas/ui";
|
|
9
|
+
import { ImageSelect as v } from "./index38.js";
|
|
10
|
+
import { coreTranslations as h } from "./index5.js";
|
|
11
|
+
var U = Object.defineProperty, _ = Object.getOwnPropertyDescriptor, n = (s, e, o, t) => {
|
|
12
|
+
for (var r = t > 1 ? void 0 : t ? _(e, o) : e, a = s.length - 1, m; a >= 0; a--)
|
|
13
|
+
(m = s[a]) && (r = (t ? m(e, o, r) : m(r)) || r);
|
|
14
|
+
return t && r && U(e, o, r), r;
|
|
15
15
|
};
|
|
16
|
-
let
|
|
16
|
+
let i = class extends f.Component {
|
|
17
17
|
constructor(e) {
|
|
18
18
|
super(e);
|
|
19
|
-
|
|
20
|
-
|
|
19
|
+
l(this, "image", null);
|
|
20
|
+
l(this, "isUploading", !1);
|
|
21
|
+
C(this);
|
|
21
22
|
}
|
|
22
23
|
onClose() {
|
|
23
|
-
this.
|
|
24
|
+
this.image = null, this.props.onClose();
|
|
24
25
|
}
|
|
25
|
-
|
|
26
|
+
insertImage() {
|
|
27
|
+
var o;
|
|
26
28
|
const { summernoteObj: e } = this.props;
|
|
27
29
|
try {
|
|
28
|
-
e.summernote("editor.saveRange"), e.summernote("editor.restoreRange");
|
|
29
|
-
const t = this.createVideoNode();
|
|
30
|
-
t && e.summernote("editor.insertNode", t), this.onClose();
|
|
30
|
+
e.summernote("editor.focus"), e.summernote("editor.saveRange"), e.summernote("editor.restoreRange"), e.summernote("editor.insertImage", (o = this.image) == null ? void 0 : o.src), this.onClose();
|
|
31
31
|
} catch (t) {
|
|
32
|
-
e.summernote("editor.restoreRange"), console.log("
|
|
32
|
+
e.summernote("editor.restoreRange"), console.log("image insert error", t);
|
|
33
33
|
}
|
|
34
34
|
}
|
|
35
|
-
|
|
36
|
-
const
|
|
37
|
-
if (!e)
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
else if (v && v[0].length)
|
|
54
|
-
r = $("<iframe>").attr("frameborder", 0).attr("src", v[0] + "/embed/simple").attr("width", "600").attr("height", "600").attr("class", "vine-embed");
|
|
55
|
-
else if (x && x[3].length)
|
|
56
|
-
r = $(
|
|
57
|
-
"<iframe webkitallowfullscreen mozallowfullscreen allowfullscreen>"
|
|
58
|
-
).attr("frameborder", 0).attr("src", "//player.vimeo.com/video/" + x[3]).attr("width", "640").attr("height", "360");
|
|
59
|
-
else if (y && y[2].length)
|
|
60
|
-
r = $("<iframe>").attr("frameborder", 0).attr("src", "//www.dailymotion.com/embed/video/" + y[2]).attr("width", "640").attr("height", "360");
|
|
61
|
-
else if (R && R[1].length)
|
|
62
|
-
r = $(
|
|
63
|
-
"<iframe webkitallowfullscreen mozallowfullscreen allowfullscreen>"
|
|
64
|
-
).attr("frameborder", 0).attr("height", "498").attr("width", "510").attr("src", "//player.youku.com/embed/" + R[1]);
|
|
65
|
-
else if (o && o[0].length) {
|
|
66
|
-
let c = 0;
|
|
67
|
-
o[2] !== "undefined" && (c = Number(o[2]));
|
|
68
|
-
let C = 0;
|
|
69
|
-
o[3] !== "undefined" && (C = Number(o[3]));
|
|
70
|
-
let _ = 0;
|
|
71
|
-
o[4] !== "undefined" && (_ = Number(o[4]));
|
|
72
|
-
let q = 0;
|
|
73
|
-
o[5] !== "undefined" && (q = Number(o[5]));
|
|
74
|
-
let E = 0;
|
|
75
|
-
o[6] !== "undefined" && (E = Number(o[6])), r = $(
|
|
76
|
-
'<iframe allowfullscreen sandbox="allow-same-origin allow-scripts allow-popups">'
|
|
77
|
-
).attr("frameborder", 0).attr(
|
|
78
|
-
"src",
|
|
79
|
-
"//" + o[1] + "/videos/embed/" + o[2] + "?loop=" + _ + "&autoplay=" + q + "&muted=" + E + (c > 0 ? "&start=" + c : "") + (C > 0 ? "&end=" + f : "")
|
|
80
|
-
).attr("width", "560").attr("height", "315");
|
|
81
|
-
} else if (h && h[1].length || u && u[2].length) {
|
|
82
|
-
const c = h && h[1].length ? h[1] : u ? u[2] : "";
|
|
83
|
-
r = $(
|
|
84
|
-
"<iframe webkitallowfullscreen mozallowfullscreen allowfullscreen>"
|
|
85
|
-
).attr("frameborder", 0).attr("height", "310").attr("width", "500").attr(
|
|
86
|
-
"src",
|
|
87
|
-
"https://v.qq.com/txp/iframe/player.html?vid=" + c + "&auto=0"
|
|
88
|
-
);
|
|
89
|
-
} else if (A || Z || B)
|
|
90
|
-
r = $("<video controls>").attr("src", e).attr("width", "640").attr("height", "360");
|
|
91
|
-
else if (M && M[0].length)
|
|
92
|
-
r = $("<iframe>").attr("frameborder", 0).attr(
|
|
93
|
-
"src",
|
|
94
|
-
"https://www.facebook.com/plugins/video.php?href=" + encodeURIComponent(M[0]) + "&show_text=0&width=560"
|
|
95
|
-
).attr("width", "560").attr("height", "301").attr("scrolling", "no").attr("allowtransparency", "true");
|
|
96
|
-
else
|
|
97
|
-
return !1;
|
|
98
|
-
return r.addClass("note-video-clip"), r[0];
|
|
99
|
-
}
|
|
100
|
-
onVideoLinkChange(e) {
|
|
101
|
-
this.url = e.target.value;
|
|
35
|
+
async onImageChange(e) {
|
|
36
|
+
const { onImageUpload: o } = this.props;
|
|
37
|
+
if (this.isUploading = !0, e.length) {
|
|
38
|
+
const t = e[0];
|
|
39
|
+
if (!!t.file || !!t.base64 || !t.src) {
|
|
40
|
+
const a = await o(t);
|
|
41
|
+
if (a) {
|
|
42
|
+
const m = {
|
|
43
|
+
src: a
|
|
44
|
+
};
|
|
45
|
+
this.image = m;
|
|
46
|
+
} else
|
|
47
|
+
this.image = null;
|
|
48
|
+
} else
|
|
49
|
+
this.image = null;
|
|
50
|
+
} else
|
|
51
|
+
this.image = null;
|
|
52
|
+
this.isUploading = !1;
|
|
102
53
|
}
|
|
103
54
|
render() {
|
|
55
|
+
var o, t;
|
|
104
56
|
const { open: e } = this.props;
|
|
105
57
|
return /* @__PURE__ */ g(
|
|
106
|
-
|
|
58
|
+
I,
|
|
107
59
|
{
|
|
108
60
|
open: e,
|
|
109
61
|
onCancel: this.onClose,
|
|
110
|
-
onOk: this.
|
|
111
|
-
okText:
|
|
112
|
-
title:
|
|
62
|
+
onOk: this.insertImage,
|
|
63
|
+
okText: h.richText.addImage,
|
|
64
|
+
title: h.richText.image,
|
|
113
65
|
okButtonProps: {
|
|
114
|
-
disabled: !this.
|
|
66
|
+
disabled: !((t = (o = this.image) == null ? void 0 : o.src) != null && t.length) || this.isUploading
|
|
115
67
|
},
|
|
116
|
-
children: /* @__PURE__ */
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
},
|
|
125
|
-
children: [
|
|
126
|
-
/* @__PURE__ */ g(T, { children: p.richText.addVideoLink }),
|
|
127
|
-
/* @__PURE__ */ g(T, { children: p.richText.suppoertedVideoLinks })
|
|
128
|
-
]
|
|
129
|
-
}
|
|
130
|
-
),
|
|
131
|
-
/* @__PURE__ */ g(
|
|
132
|
-
Y,
|
|
133
|
-
{
|
|
134
|
-
value: this.url,
|
|
135
|
-
onChange: this.onVideoLinkChange,
|
|
136
|
-
placeholder: p.richText.enterURL
|
|
137
|
-
}
|
|
138
|
-
)
|
|
139
|
-
] })
|
|
68
|
+
children: /* @__PURE__ */ g(
|
|
69
|
+
v,
|
|
70
|
+
{
|
|
71
|
+
images: this.image ? [this.image] : [],
|
|
72
|
+
imageLimit: 1,
|
|
73
|
+
onChange: this.onImageChange
|
|
74
|
+
}
|
|
75
|
+
)
|
|
140
76
|
}
|
|
141
77
|
);
|
|
142
78
|
}
|
|
143
79
|
};
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
],
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
],
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
],
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
],
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
],
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
],
|
|
162
|
-
const
|
|
80
|
+
n([
|
|
81
|
+
c
|
|
82
|
+
], i.prototype, "image", 2);
|
|
83
|
+
n([
|
|
84
|
+
c
|
|
85
|
+
], i.prototype, "isUploading", 2);
|
|
86
|
+
n([
|
|
87
|
+
p.bound
|
|
88
|
+
], i.prototype, "onClose", 1);
|
|
89
|
+
n([
|
|
90
|
+
p.bound
|
|
91
|
+
], i.prototype, "insertImage", 1);
|
|
92
|
+
n([
|
|
93
|
+
p.bound
|
|
94
|
+
], i.prototype, "onImageChange", 1);
|
|
95
|
+
i = n([
|
|
96
|
+
b
|
|
97
|
+
], i);
|
|
98
|
+
const M = i;
|
|
163
99
|
export {
|
|
164
|
-
|
|
100
|
+
M as default
|
|
165
101
|
};
|
package/dist/index106.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var
|
|
1
|
+
"use strict";var H=Object.defineProperty;var J=(i,o,e)=>o in i?H(i,o,{enumerable:!0,configurable:!0,writable:!0,value:e}):i[o]=e;var k=(i,o,e)=>J(i,typeof o!="symbol"?o+"":o,e);const d=require("react/jsx-runtime"),K=require("react"),Q=require("mobx-react"),h=require("mobx"),_=require("@ikas/ui"),f=require("./index5.cjs"),w=require("./index101.cjs");var W=Object.defineProperty,X=Object.getOwnPropertyDescriptor,m=(i,o,e,s)=>{for(var r=s>1?void 0:s?X(o,e):o,u=i.length-1,l;u>=0;u--)(l=i[u])&&(r=(s?l(o,e,r):l(r))||r);return s&&r&&W(o,e,r),r};let n=class extends K.Component{constructor(e){super(e);k(this,"url","");h.makeObservable(this)}onClose(){this.url="",this.props.onClose()}insertVideo(){const{summernoteObj:e}=this.props;try{e.summernote("editor.saveRange"),e.summernote("editor.restoreRange");const s=this.createVideoNode();s&&e.summernote("editor.insertNode",s),this.onClose()}catch(s){e.summernote("editor.restoreRange"),console.log("video insert error",s)}}createVideoNode(){const e=this.url;if(!e)return null;const s=/(?:youtu\.be\/|youtube\.com\/(?:[^\/\n\s]+\/\S+\/|(?:v|e(?:mbed)?)\/|\S*?[?&]v=))([^&\n?]+)(?:.*[?&]t=(\d+))?.*/,r=e.match(s),u=/(?:\.|\/\/)drive\.google\.com\/file\/d\/(.[a-zA-Z0-9_-]*)\/view/,l=e.match(u),j=/(?:www\.|\/\/)instagram\.com\/p\/(.[a-zA-Z0-9_-]*)/,v=e.match(j),N=/\/\/vine\.co\/v\/([a-zA-Z0-9]+)/,x=e.match(N),L=/\/\/(player\.)?vimeo\.com\/([a-z]*\/)*(\d+)[?]?.*/,y=e.match(L),z=/.+dailymotion.com\/(video|hub)\/([^_]+)[^#]*(#video=([^_&]+))?/,R=e.match(z),O=/\/\/v\.youku\.com\/v_show\/id_(\w+)=*\.html/,q=e.match(O),I=/\/\/(.*)\/videos\/watch\/([^?]*)(?:\?(?:start=(\w*))?(?:&stop=(\w*))?(?:&loop=([10]))?(?:&autoplay=([10]))?(?:&muted=([10]))?)?/,t=e.match(I),P=/\/\/v\.qq\.com.*?vid=(.+)/,p=e.match(P),U=/\/\/v\.qq\.com\/x?\/?(page|cover).*?\/([^\/]+)\.html\??.*/,g=e.match(U),A=/^.+.(mp4|m4v)$/,D=e.match(A),Z=/^.+.(ogg|ogv)$/,S=e.match(Z),B=/^.+.(webm)$/,F=e.match(B),G=/(?:www\.|\/\/)facebook\.com\/([^\/]+)\/videos\/([0-9]+)/,M=e.match(G);let a,b=0;if(r&&r[1].length===11){const c=r[1];typeof r[2]<"u"&&(b=parseInt(r[2],10)),a=$("<iframe>").attr("frameborder",0).attr("src","//www.youtube.com/embed/"+c+(b>0?"?start="+b:"")).attr("width","640").attr("height","360")}else if(l&&l[0].length)a=$("<iframe>").attr("frameborder",0).attr("src","https://drive.google.com/file/d/"+l[1]+"/preview").attr("width","640").attr("height","480");else if(v&&v[0].length)a=$("<iframe>").attr("frameborder",0).attr("src","https://instagram.com/p/"+v[1]+"/embed/").attr("width","612").attr("height","710").attr("scrolling","no").attr("allowtransparency","true");else if(x&&x[0].length)a=$("<iframe>").attr("frameborder",0).attr("src",x[0]+"/embed/simple").attr("width","600").attr("height","600").attr("class","vine-embed");else if(y&&y[3].length)a=$("<iframe webkitallowfullscreen mozallowfullscreen allowfullscreen>").attr("frameborder",0).attr("src","//player.vimeo.com/video/"+y[3]).attr("width","640").attr("height","360");else if(R&&R[2].length)a=$("<iframe>").attr("frameborder",0).attr("src","//www.dailymotion.com/embed/video/"+R[2]).attr("width","640").attr("height","360");else if(q&&q[1].length)a=$("<iframe webkitallowfullscreen mozallowfullscreen allowfullscreen>").attr("frameborder",0).attr("height","498").attr("width","510").attr("src","//player.youku.com/embed/"+q[1]);else if(t&&t[0].length){let c=0;t[2]!=="undefined"&&(c=Number(t[2]));let C=0;t[3]!=="undefined"&&(C=Number(t[3]));let V=0;t[4]!=="undefined"&&(V=Number(t[4]));let E=0;t[5]!=="undefined"&&(E=Number(t[5]));let T=0;t[6]!=="undefined"&&(T=Number(t[6])),a=$('<iframe allowfullscreen sandbox="allow-same-origin allow-scripts allow-popups">').attr("frameborder",0).attr("src","//"+t[1]+"/videos/embed/"+t[2]+"?loop="+V+"&autoplay="+E+"&muted="+T+(c>0?"&start="+c:"")+(C>0?"&end="+b:"")).attr("width","560").attr("height","315")}else if(p&&p[1].length||g&&g[2].length){const c=p&&p[1].length?p[1]:g?g[2]:"";a=$("<iframe webkitallowfullscreen mozallowfullscreen allowfullscreen>").attr("frameborder",0).attr("height","310").attr("width","500").attr("src","https://v.qq.com/txp/iframe/player.html?vid="+c+"&auto=0")}else if(D||S||F)a=$("<video controls>").attr("src",e).attr("width","640").attr("height","360");else if(M&&M[0].length)a=$("<iframe>").attr("frameborder",0).attr("src","https://www.facebook.com/plugins/video.php?href="+encodeURIComponent(M[0])+"&show_text=0&width=560").attr("width","560").attr("height","301").attr("scrolling","no").attr("allowtransparency","true");else return!1;return a.addClass("note-video-clip"),a[0]}onVideoLinkChange(e){this.url=e.target.value}render(){const{open:e}=this.props;return d.jsx(_.Modal,{open:e,onCancel:this.onClose,onOk:this.insertVideo,okText:f.coreTranslations.richText.addVideo,title:f.coreTranslations.richText.video,okButtonProps:{disabled:!this.url.length},children:d.jsxs(w.ModalContainer,{children:[d.jsxs(w.Title,{style:{flexDirection:"column",alignItems:"flex-start",gap:4},children:[d.jsx(w.Label,{children:f.coreTranslations.richText.addVideoLink}),d.jsx(w.Label,{children:f.coreTranslations.richText.suppoertedVideoLinks})]}),d.jsx(_.Input,{value:this.url,onChange:this.onVideoLinkChange,placeholder:f.coreTranslations.richText.enterURL})]})})}};m([h.observable],n.prototype,"url",2);m([h.action.bound],n.prototype,"onClose",1);m([h.action.bound],n.prototype,"insertVideo",1);m([h.action.bound],n.prototype,"createVideoNode",1);m([h.action.bound],n.prototype,"onVideoLinkChange",1);n=m([Q.observer],n);const Y=n;module.exports=Y;
|
package/dist/index106.js
CHANGED
|
@@ -1,92 +1,139 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
import { jsx as
|
|
5
|
-
import
|
|
6
|
-
import { observer as
|
|
7
|
-
import { makeObservable as
|
|
8
|
-
import { Modal as
|
|
9
|
-
import { coreTranslations as
|
|
10
|
-
import { ModalContainer as
|
|
11
|
-
var
|
|
12
|
-
for (var n =
|
|
13
|
-
(
|
|
14
|
-
return
|
|
1
|
+
var G = Object.defineProperty;
|
|
2
|
+
var H = (i, e, t) => e in i ? G(i, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : i[e] = t;
|
|
3
|
+
var V = (i, e, t) => H(i, typeof e != "symbol" ? e + "" : e, t);
|
|
4
|
+
import { jsx as g, jsxs as k } from "react/jsx-runtime";
|
|
5
|
+
import J from "react";
|
|
6
|
+
import { observer as K } from "mobx-react";
|
|
7
|
+
import { makeObservable as Q, action as w, observable as W } from "mobx";
|
|
8
|
+
import { Modal as X, Input as Y } from "@ikas/ui";
|
|
9
|
+
import { coreTranslations as p } from "./index5.js";
|
|
10
|
+
import { ModalContainer as ee, Title as te, Label as T } from "./index101.js";
|
|
11
|
+
var oe = Object.defineProperty, re = Object.getOwnPropertyDescriptor, d = (i, e, t, a) => {
|
|
12
|
+
for (var n = a > 1 ? void 0 : a ? re(e, t) : e, s = i.length - 1, m; s >= 0; s--)
|
|
13
|
+
(m = i[s]) && (n = (a ? m(e, t, n) : m(n)) || n);
|
|
14
|
+
return a && n && oe(e, t, n), n;
|
|
15
15
|
};
|
|
16
|
-
let
|
|
16
|
+
let l = class extends J.Component {
|
|
17
17
|
constructor(e) {
|
|
18
18
|
super(e);
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
}
|
|
22
|
-
componentDidUpdate(e, o, t) {
|
|
23
|
-
this.props.open && !e.open && this.init();
|
|
24
|
-
}
|
|
25
|
-
init() {
|
|
26
|
-
var o, t;
|
|
27
|
-
const { summernoteObj: e } = this.props;
|
|
28
|
-
try {
|
|
29
|
-
const n = (o = e.summernote) == null ? void 0 : o.call(e, "editor.createRange"), s = (t = e.summernote) == null ? void 0 : t.call(e, "editor.getLinkInfo", n);
|
|
30
|
-
this.linkInfo = s;
|
|
31
|
-
} catch (n) {
|
|
32
|
-
console.log("video insert error", n);
|
|
33
|
-
}
|
|
19
|
+
V(this, "url", "");
|
|
20
|
+
Q(this);
|
|
34
21
|
}
|
|
35
22
|
onClose() {
|
|
36
|
-
this.
|
|
23
|
+
this.url = "", this.props.onClose();
|
|
37
24
|
}
|
|
38
|
-
|
|
25
|
+
insertVideo() {
|
|
39
26
|
const { summernoteObj: e } = this.props;
|
|
40
27
|
try {
|
|
41
28
|
e.summernote("editor.saveRange"), e.summernote("editor.restoreRange");
|
|
42
|
-
const
|
|
43
|
-
e.summernote("editor.
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
text: o == null ? void 0 : o.text,
|
|
47
|
-
isNewWindow: o == null ? void 0 : o.isNewWindow,
|
|
48
|
-
checkProtocol: !0
|
|
49
|
-
}), this.onClose();
|
|
50
|
-
} catch (o) {
|
|
51
|
-
e.summernote("editor.restoreRange"), console.log("video insert error", o);
|
|
29
|
+
const t = this.createVideoNode();
|
|
30
|
+
t && e.summernote("editor.insertNode", t), this.onClose();
|
|
31
|
+
} catch (t) {
|
|
32
|
+
e.summernote("editor.restoreRange"), console.log("video insert error", t);
|
|
52
33
|
}
|
|
53
34
|
}
|
|
54
|
-
|
|
55
|
-
|
|
35
|
+
createVideoNode() {
|
|
36
|
+
const e = this.url;
|
|
37
|
+
if (!e) return null;
|
|
38
|
+
const t = /(?:youtu\.be\/|youtube\.com\/(?:[^\/\n\s]+\/\S+\/|(?:v|e(?:mbed)?)\/|\S*?[?&]v=))([^&\n?]+)(?:.*[?&]t=(\d+))?.*/, a = e.match(t), n = /(?:\.|\/\/)drive\.google\.com\/file\/d\/(.[a-zA-Z0-9_-]*)\/view/, s = e.match(n), m = /(?:www\.|\/\/)instagram\.com\/p\/(.[a-zA-Z0-9_-]*)/, b = e.match(m), N = /\/\/vine\.co\/v\/([a-zA-Z0-9]+)/, v = e.match(N), z = /\/\/(player\.)?vimeo\.com\/([a-z]*\/)*(\d+)[?]?.*/, x = e.match(z), L = /.+dailymotion.com\/(video|hub)\/([^_]+)[^#]*(#video=([^_&]+))?/, y = e.match(L), O = /\/\/v\.youku\.com\/v_show\/id_(\w+)=*\.html/, R = e.match(O), j = /\/\/(.*)\/videos\/watch\/([^?]*)(?:\?(?:start=(\w*))?(?:&stop=(\w*))?(?:&loop=([10]))?(?:&autoplay=([10]))?(?:&muted=([10]))?)?/, o = e.match(j), I = /\/\/v\.qq\.com.*?vid=(.+)/, h = e.match(I), P = /\/\/v\.qq\.com\/x?\/?(page|cover).*?\/([^\/]+)\.html\??.*/, u = e.match(P), U = /^.+.(mp4|m4v)$/, A = e.match(U), D = /^.+.(ogg|ogv)$/, Z = e.match(D), S = /^.+.(webm)$/, B = e.match(S), F = /(?:www\.|\/\/)facebook\.com\/([^\/]+)\/videos\/([0-9]+)/, M = e.match(F);
|
|
39
|
+
let r, f = 0;
|
|
40
|
+
if (a && a[1].length === 11) {
|
|
41
|
+
const c = a[1];
|
|
42
|
+
typeof a[2] < "u" && (f = parseInt(a[2], 10)), r = $("<iframe>").attr("frameborder", 0).attr(
|
|
43
|
+
"src",
|
|
44
|
+
"//www.youtube.com/embed/" + c + (f > 0 ? "?start=" + f : "")
|
|
45
|
+
).attr("width", "640").attr("height", "360");
|
|
46
|
+
} else if (s && s[0].length)
|
|
47
|
+
r = $("<iframe>").attr("frameborder", 0).attr(
|
|
48
|
+
"src",
|
|
49
|
+
"https://drive.google.com/file/d/" + s[1] + "/preview"
|
|
50
|
+
).attr("width", "640").attr("height", "480");
|
|
51
|
+
else if (b && b[0].length)
|
|
52
|
+
r = $("<iframe>").attr("frameborder", 0).attr("src", "https://instagram.com/p/" + b[1] + "/embed/").attr("width", "612").attr("height", "710").attr("scrolling", "no").attr("allowtransparency", "true");
|
|
53
|
+
else if (v && v[0].length)
|
|
54
|
+
r = $("<iframe>").attr("frameborder", 0).attr("src", v[0] + "/embed/simple").attr("width", "600").attr("height", "600").attr("class", "vine-embed");
|
|
55
|
+
else if (x && x[3].length)
|
|
56
|
+
r = $(
|
|
57
|
+
"<iframe webkitallowfullscreen mozallowfullscreen allowfullscreen>"
|
|
58
|
+
).attr("frameborder", 0).attr("src", "//player.vimeo.com/video/" + x[3]).attr("width", "640").attr("height", "360");
|
|
59
|
+
else if (y && y[2].length)
|
|
60
|
+
r = $("<iframe>").attr("frameborder", 0).attr("src", "//www.dailymotion.com/embed/video/" + y[2]).attr("width", "640").attr("height", "360");
|
|
61
|
+
else if (R && R[1].length)
|
|
62
|
+
r = $(
|
|
63
|
+
"<iframe webkitallowfullscreen mozallowfullscreen allowfullscreen>"
|
|
64
|
+
).attr("frameborder", 0).attr("height", "498").attr("width", "510").attr("src", "//player.youku.com/embed/" + R[1]);
|
|
65
|
+
else if (o && o[0].length) {
|
|
66
|
+
let c = 0;
|
|
67
|
+
o[2] !== "undefined" && (c = Number(o[2]));
|
|
68
|
+
let C = 0;
|
|
69
|
+
o[3] !== "undefined" && (C = Number(o[3]));
|
|
70
|
+
let _ = 0;
|
|
71
|
+
o[4] !== "undefined" && (_ = Number(o[4]));
|
|
72
|
+
let q = 0;
|
|
73
|
+
o[5] !== "undefined" && (q = Number(o[5]));
|
|
74
|
+
let E = 0;
|
|
75
|
+
o[6] !== "undefined" && (E = Number(o[6])), r = $(
|
|
76
|
+
'<iframe allowfullscreen sandbox="allow-same-origin allow-scripts allow-popups">'
|
|
77
|
+
).attr("frameborder", 0).attr(
|
|
78
|
+
"src",
|
|
79
|
+
"//" + o[1] + "/videos/embed/" + o[2] + "?loop=" + _ + "&autoplay=" + q + "&muted=" + E + (c > 0 ? "&start=" + c : "") + (C > 0 ? "&end=" + f : "")
|
|
80
|
+
).attr("width", "560").attr("height", "315");
|
|
81
|
+
} else if (h && h[1].length || u && u[2].length) {
|
|
82
|
+
const c = h && h[1].length ? h[1] : u ? u[2] : "";
|
|
83
|
+
r = $(
|
|
84
|
+
"<iframe webkitallowfullscreen mozallowfullscreen allowfullscreen>"
|
|
85
|
+
).attr("frameborder", 0).attr("height", "310").attr("width", "500").attr(
|
|
86
|
+
"src",
|
|
87
|
+
"https://v.qq.com/txp/iframe/player.html?vid=" + c + "&auto=0"
|
|
88
|
+
);
|
|
89
|
+
} else if (A || Z || B)
|
|
90
|
+
r = $("<video controls>").attr("src", e).attr("width", "640").attr("height", "360");
|
|
91
|
+
else if (M && M[0].length)
|
|
92
|
+
r = $("<iframe>").attr("frameborder", 0).attr(
|
|
93
|
+
"src",
|
|
94
|
+
"https://www.facebook.com/plugins/video.php?href=" + encodeURIComponent(M[0]) + "&show_text=0&width=560"
|
|
95
|
+
).attr("width", "560").attr("height", "301").attr("scrolling", "no").attr("allowtransparency", "true");
|
|
96
|
+
else
|
|
97
|
+
return !1;
|
|
98
|
+
return r.addClass("note-video-clip"), r[0];
|
|
56
99
|
}
|
|
57
|
-
|
|
58
|
-
this.
|
|
100
|
+
onVideoLinkChange(e) {
|
|
101
|
+
this.url = e.target.value;
|
|
59
102
|
}
|
|
60
103
|
render() {
|
|
61
|
-
var o, t, n, s;
|
|
62
104
|
const { open: e } = this.props;
|
|
63
|
-
return /* @__PURE__ */
|
|
64
|
-
|
|
105
|
+
return /* @__PURE__ */ g(
|
|
106
|
+
X,
|
|
65
107
|
{
|
|
66
108
|
open: e,
|
|
67
109
|
onCancel: this.onClose,
|
|
68
|
-
onOk: this.
|
|
69
|
-
okText:
|
|
70
|
-
title:
|
|
110
|
+
onOk: this.insertVideo,
|
|
111
|
+
okText: p.richText.addVideo,
|
|
112
|
+
title: p.richText.video,
|
|
71
113
|
okButtonProps: {
|
|
72
|
-
disabled: !
|
|
114
|
+
disabled: !this.url.length
|
|
73
115
|
},
|
|
74
|
-
children: /* @__PURE__ */
|
|
75
|
-
/* @__PURE__ */
|
|
76
|
-
|
|
77
|
-
b,
|
|
116
|
+
children: /* @__PURE__ */ k(ee, { children: [
|
|
117
|
+
/* @__PURE__ */ k(
|
|
118
|
+
te,
|
|
78
119
|
{
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
120
|
+
style: {
|
|
121
|
+
flexDirection: "column",
|
|
122
|
+
alignItems: "flex-start",
|
|
123
|
+
gap: 4
|
|
124
|
+
},
|
|
125
|
+
children: [
|
|
126
|
+
/* @__PURE__ */ g(T, { children: p.richText.addVideoLink }),
|
|
127
|
+
/* @__PURE__ */ g(T, { children: p.richText.suppoertedVideoLinks })
|
|
128
|
+
]
|
|
82
129
|
}
|
|
83
130
|
),
|
|
84
|
-
/* @__PURE__ */
|
|
85
|
-
|
|
131
|
+
/* @__PURE__ */ g(
|
|
132
|
+
Y,
|
|
86
133
|
{
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
134
|
+
value: this.url,
|
|
135
|
+
onChange: this.onVideoLinkChange,
|
|
136
|
+
placeholder: p.richText.enterURL
|
|
90
137
|
}
|
|
91
138
|
)
|
|
92
139
|
] })
|
|
@@ -94,28 +141,25 @@ let i = class extends k.Component {
|
|
|
94
141
|
);
|
|
95
142
|
}
|
|
96
143
|
};
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
],
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
],
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
],
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
],
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
],
|
|
112
|
-
l([
|
|
113
|
-
|
|
114
|
-
],
|
|
115
|
-
|
|
116
|
-
g
|
|
117
|
-
], i);
|
|
118
|
-
const j = i;
|
|
144
|
+
d([
|
|
145
|
+
W
|
|
146
|
+
], l.prototype, "url", 2);
|
|
147
|
+
d([
|
|
148
|
+
w.bound
|
|
149
|
+
], l.prototype, "onClose", 1);
|
|
150
|
+
d([
|
|
151
|
+
w.bound
|
|
152
|
+
], l.prototype, "insertVideo", 1);
|
|
153
|
+
d([
|
|
154
|
+
w.bound
|
|
155
|
+
], l.prototype, "createVideoNode", 1);
|
|
156
|
+
d([
|
|
157
|
+
w.bound
|
|
158
|
+
], l.prototype, "onVideoLinkChange", 1);
|
|
159
|
+
l = d([
|
|
160
|
+
K
|
|
161
|
+
], l);
|
|
162
|
+
const he = l;
|
|
119
163
|
export {
|
|
120
|
-
|
|
164
|
+
he as default
|
|
121
165
|
};
|
package/dist/index107.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(
|
|
1
|
+
"use strict";var g=Object.defineProperty;var x=(i,t,e)=>t in i?g(i,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):i[t]=e;var k=(i,t,e)=>x(i,typeof t!="symbol"?t+"":t,e);const h=require("react/jsx-runtime"),C=require("react"),w=require("mobx-react"),a=require("mobx"),d=require("@ikas/ui"),p=require("./index5.cjs"),u=require("./index101.cjs");var b=Object.defineProperty,f=Object.getOwnPropertyDescriptor,c=(i,t,e,n)=>{for(var o=n>1?void 0:n?f(t,e):t,r=i.length-1,l;r>=0;r--)(l=i[r])&&(o=(n?l(t,e,o):l(o))||o);return n&&o&&b(t,e,o),o};let s=class extends C.Component{constructor(e){super(e);k(this,"linkInfo",null);a.makeObservable(this)}componentDidUpdate(e,n,o){this.props.open&&!e.open&&this.init()}init(){var n,o;const{summernoteObj:e}=this.props;try{const r=(n=e.summernote)==null?void 0:n.call(e,"editor.createRange"),l=(o=e.summernote)==null?void 0:o.call(e,"editor.getLinkInfo",r);this.linkInfo=l}catch(r){console.log("video insert error",r)}}onClose(){this.linkInfo=null,this.props.onClose()}insertLink(){const{summernoteObj:e}=this.props;try{e.summernote("editor.saveRange"),e.summernote("editor.restoreRange");const n=this.linkInfo;e.summernote("editor.createLink",{url:n==null?void 0:n.url,range:n==null?void 0:n.range,text:n==null?void 0:n.text,isNewWindow:n==null?void 0:n.isNewWindow,checkProtocol:!0}),this.onClose()}catch(n){e.summernote("editor.restoreRange"),console.log("video insert error",n)}}onLinkChange(e){this.linkInfo&&(this.linkInfo.url=e.target.value)}onNewWindowChange(e){this.linkInfo&&(this.linkInfo.isNewWindow=e)}render(){var n,o,r,l;const{open:e}=this.props;return h.jsx(d.Modal,{open:e,onCancel:this.onClose,onOk:this.insertLink,okText:p.coreTranslations.richText.addLink,title:p.coreTranslations.richText.link,okButtonProps:{disabled:!((o=(n=this.linkInfo)==null?void 0:n.url)!=null&&o.length)},children:h.jsxs(u.ModalContainer,{children:[h.jsx(u.Title,{children:h.jsx(u.Label,{children:p.coreTranslations.richText.linkUrl})}),h.jsx(d.Input,{value:(r=this.linkInfo)==null?void 0:r.url,onChange:this.onLinkChange,placeholder:p.coreTranslations.richText.enterURL}),h.jsx(d.Checkbox,{checked:(l=this.linkInfo)==null?void 0:l.isNewWindow,onCheckedChange:this.onNewWindowChange,label:p.coreTranslations.richText.openInNewWindow})]})})}};c([a.observable],s.prototype,"linkInfo",2);c([a.action.bound],s.prototype,"init",1);c([a.action.bound],s.prototype,"onClose",1);c([a.action.bound],s.prototype,"insertLink",1);c([a.action.bound],s.prototype,"onLinkChange",1);c([a.action.bound],s.prototype,"onNewWindowChange",1);s=c([w.observer],s);const v=s;module.exports=v;
|