@ikas/core 1.0.1 → 1.0.4

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.
Files changed (596) hide show
  1. package/dist/components/navigation/index.d.ts.map +1 -1
  2. package/dist/components/navigation/navigation-header.d.ts +3 -1
  3. package/dist/components/navigation/navigation-header.d.ts.map +1 -1
  4. package/dist/components/navigation/types.d.ts +4 -0
  5. package/dist/components/navigation/types.d.ts.map +1 -1
  6. package/dist/components/rich-text-editor/index.d.ts.map +1 -1
  7. package/dist/core.css +12 -1
  8. package/dist/index101.cjs +470 -1
  9. package/dist/index101.js +482 -155
  10. package/dist/index102.cjs +1 -1
  11. package/dist/index102.js +122 -122
  12. package/dist/index103.cjs +1 -1
  13. package/dist/index103.js +120 -119
  14. package/dist/index104.cjs +1 -1
  15. package/dist/index104.js +155 -100
  16. package/dist/index105.cjs +1 -1
  17. package/dist/index105.js +75 -139
  18. package/dist/index106.cjs +1 -1
  19. package/dist/index106.js +132 -88
  20. package/dist/index107.cjs +1 -1
  21. package/dist/index107.js +116 -220
  22. package/dist/index108.cjs +1 -1
  23. package/dist/index108.js +214 -156
  24. package/dist/index109.cjs +1 -1
  25. package/dist/index109.js +149 -351
  26. package/dist/index110.cjs +1 -1
  27. package/dist/index110.js +334 -170
  28. package/dist/index111.cjs +1 -1
  29. package/dist/index111.js +194 -64
  30. package/dist/index112.cjs +1 -1
  31. package/dist/index112.js +68 -41
  32. package/dist/index113.cjs +1 -1
  33. package/dist/index113.js +38 -230
  34. package/dist/index114.cjs +1 -1
  35. package/dist/index114.js +227 -70
  36. package/dist/index115.cjs +1 -6
  37. package/dist/index115.js +81 -25
  38. package/dist/index116.cjs +1 -6
  39. package/dist/index116.js +280 -14
  40. package/dist/index117.cjs +1 -6
  41. package/dist/index117.js +2 -14
  42. package/dist/index118.cjs +1 -6
  43. package/dist/index118.js +31 -13
  44. package/dist/index119.cjs +1 -6
  45. package/dist/index119.js +2 -15
  46. package/dist/index120.cjs +1 -6
  47. package/dist/index120.js +404 -10
  48. package/dist/index121.cjs +1 -6
  49. package/dist/index121.js +111 -13
  50. package/dist/index122.cjs +2 -2
  51. package/dist/index122.js +8 -11
  52. package/dist/index123.cjs +2 -2
  53. package/dist/index123.js +7 -2
  54. package/dist/index124.cjs +2 -2
  55. package/dist/index124.js +8 -2
  56. package/dist/index125.cjs +5 -6
  57. package/dist/index125.js +2962 -12
  58. package/dist/index126.cjs +1 -6
  59. package/dist/index126.js +2 -40
  60. package/dist/index127.cjs +1 -6
  61. package/dist/index127.js +5 -18
  62. package/dist/index128.cjs +2 -2
  63. package/dist/index128.js +20 -6
  64. package/dist/index129.cjs +6 -1
  65. package/dist/index129.js +15 -4
  66. package/dist/index130.cjs +6 -1
  67. package/dist/index130.js +10 -8
  68. package/dist/index131.cjs +6 -1
  69. package/dist/index131.js +13 -7
  70. package/dist/index132.cjs +6 -1
  71. package/dist/index132.js +17 -280
  72. package/dist/index133.cjs +6 -1
  73. package/dist/index133.js +8 -2
  74. package/dist/index134.cjs +6 -1
  75. package/dist/index134.js +8 -31
  76. package/dist/index135.cjs +6 -1
  77. package/dist/index135.js +12 -2
  78. package/dist/index136.cjs +6 -1
  79. package/dist/index136.js +39 -403
  80. package/dist/index137.cjs +2 -2
  81. package/dist/index137.js +12 -5
  82. package/dist/index138.cjs +6 -1
  83. package/dist/index138.js +13 -4
  84. package/dist/index139.cjs +1 -1
  85. package/dist/index139.js +2 -2
  86. package/dist/index140.cjs +1 -1
  87. package/dist/index140.js +1 -1
  88. package/dist/index141.cjs +1 -1
  89. package/dist/index141.js +1 -1
  90. package/dist/index143.cjs +1 -1
  91. package/dist/index143.js +1 -1
  92. package/dist/index145.cjs +1 -1
  93. package/dist/index145.js +2 -2
  94. package/dist/index147.cjs +1 -1
  95. package/dist/index147.js +1 -1
  96. package/dist/index149.cjs +1 -1
  97. package/dist/index149.js +2 -2
  98. package/dist/index150.cjs +1 -1
  99. package/dist/index150.js +2 -2
  100. package/dist/index151.cjs +1 -1
  101. package/dist/index151.js +1 -1
  102. package/dist/index153.cjs +1 -1
  103. package/dist/index153.js +4 -4
  104. package/dist/index156.cjs +1 -1
  105. package/dist/index156.js +2 -2
  106. package/dist/index170.cjs +1 -1
  107. package/dist/index170.js +1 -1
  108. package/dist/index172.cjs +1 -1
  109. package/dist/index172.js +1 -1
  110. package/dist/index176.cjs +1 -1
  111. package/dist/index176.js +3 -3
  112. package/dist/index177.cjs +1 -1
  113. package/dist/index177.js +4 -111
  114. package/dist/index178.cjs +1 -1
  115. package/dist/index178.js +7 -14
  116. package/dist/index179.cjs +1 -1
  117. package/dist/index179.js +7 -2
  118. package/dist/index180.cjs +1 -1
  119. package/dist/index180.js +3 -7
  120. package/dist/index181.cjs +1 -2
  121. package/dist/index181.js +69 -325
  122. package/dist/index182.cjs +1 -1
  123. package/dist/index182.js +17 -48
  124. package/dist/index183.cjs +1 -1
  125. package/dist/index183.js +34 -26
  126. package/dist/index184.cjs +1 -1
  127. package/dist/index184.js +50 -2
  128. package/dist/index185.cjs +1 -1
  129. package/dist/index185.js +38 -26
  130. package/dist/index186.cjs +1 -1
  131. package/dist/index186.js +90 -30
  132. package/dist/index187.cjs +1 -1
  133. package/dist/index187.js +59 -115
  134. package/dist/index188.cjs +1 -1
  135. package/dist/index188.js +74 -58
  136. package/dist/index189.cjs +14 -1
  137. package/dist/index189.js +6857 -59
  138. package/dist/index190.cjs +1 -1
  139. package/dist/index190.js +2 -17
  140. package/dist/index191.cjs +6 -1
  141. package/dist/index191.js +11 -18
  142. package/dist/index192.cjs +1 -1
  143. package/dist/index192.js +26 -12
  144. package/dist/index193.cjs +1 -1
  145. package/dist/index193.js +2 -9
  146. package/dist/index194.cjs +1 -1
  147. package/dist/index194.js +27 -5
  148. package/dist/index195.cjs +1 -1
  149. package/dist/index195.js +31 -8
  150. package/dist/index196.cjs +1 -1
  151. package/dist/index196.js +115 -8
  152. package/dist/index197.cjs +1 -1
  153. package/dist/index197.js +60 -2
  154. package/dist/index198.cjs +1 -1
  155. package/dist/index198.js +59 -3
  156. package/dist/index199.cjs +1 -1
  157. package/dist/index199.js +17 -5
  158. package/dist/index200.cjs +1 -1
  159. package/dist/index200.js +15 -40
  160. package/dist/index201.cjs +1 -1
  161. package/dist/index201.js +2 -83
  162. package/dist/index202.cjs +1 -1
  163. package/dist/index202.js +7 -4
  164. package/dist/index203.cjs +2 -1
  165. package/dist/index203.js +327 -5
  166. package/dist/index204.cjs +1 -1
  167. package/dist/index204.js +48 -18
  168. package/dist/index205.cjs +1 -1
  169. package/dist/index205.js +18 -2
  170. package/dist/index206.cjs +1 -1
  171. package/dist/index206.js +13 -2
  172. package/dist/index207.cjs +1 -1
  173. package/dist/index207.js +9 -2
  174. package/dist/index208.cjs +1 -1
  175. package/dist/index208.js +6 -2
  176. package/dist/index209.cjs +1 -1
  177. package/dist/index209.js +9 -2
  178. package/dist/index210.cjs +1 -1
  179. package/dist/index210.js +9 -2
  180. package/dist/index211.cjs +1 -1
  181. package/dist/index211.js +2 -2
  182. package/dist/index212.cjs +1 -8
  183. package/dist/index212.js +3 -75
  184. package/dist/index213.cjs +1 -8
  185. package/dist/index213.js +5 -93
  186. package/dist/index214.cjs +1 -5
  187. package/dist/index214.js +38 -50
  188. package/dist/index215.cjs +1 -1
  189. package/dist/index215.js +83 -8
  190. package/dist/index216.cjs +1 -1
  191. package/dist/index216.js +4 -4
  192. package/dist/index217.cjs +1 -1
  193. package/dist/index217.js +5 -52
  194. package/dist/index218.cjs +1 -1
  195. package/dist/index218.js +19 -70
  196. package/dist/index219.cjs +1 -1
  197. package/dist/index219.js +2 -19
  198. package/dist/index220.cjs +1 -1
  199. package/dist/index220.js +2 -35
  200. package/dist/index221.cjs +1 -1
  201. package/dist/index221.js +2 -50
  202. package/dist/index222.cjs +1 -1
  203. package/dist/index222.js +2 -40
  204. package/dist/index223.cjs +1 -1
  205. package/dist/index223.js +2 -92
  206. package/dist/index224.cjs +1 -1
  207. package/dist/index224.js +2 -60
  208. package/dist/index225.cjs +1 -1
  209. package/dist/index225.js +2 -26
  210. package/dist/index226.cjs +8 -1
  211. package/dist/index226.js +76 -16
  212. package/dist/index227.cjs +8 -1
  213. package/dist/index227.js +93 -42
  214. package/dist/index228.cjs +5 -1
  215. package/dist/index228.js +51 -13
  216. package/dist/index229.cjs +1 -1
  217. package/dist/index229.js +8 -13
  218. package/dist/index230.cjs +1 -1
  219. package/dist/index230.js +4 -60
  220. package/dist/index231.cjs +1 -1
  221. package/dist/index231.js +51 -15
  222. package/dist/index232.cjs +1 -1
  223. package/dist/index232.js +26 -6
  224. package/dist/index233.cjs +1 -1
  225. package/dist/index233.js +16 -3
  226. package/dist/index234.cjs +1 -1
  227. package/dist/index234.js +41 -28
  228. package/dist/index235.cjs +1 -1
  229. package/dist/index235.js +13 -6
  230. package/dist/index236.cjs +1 -1
  231. package/dist/index236.js +13 -5
  232. package/dist/index237.cjs +1 -1
  233. package/dist/index237.js +60 -6
  234. package/dist/index238.cjs +1 -1
  235. package/dist/index238.js +14 -9
  236. package/dist/index239.cjs +1 -1
  237. package/dist/index239.js +5 -9
  238. package/dist/index240.cjs +1 -1
  239. package/dist/index240.js +3 -15
  240. package/dist/index241.cjs +1 -1
  241. package/dist/index241.js +28 -3
  242. package/dist/index242.cjs +1 -1
  243. package/dist/index242.js +6 -7
  244. package/dist/index243.cjs +1 -1
  245. package/dist/index243.js +5 -4
  246. package/dist/index244.cjs +1 -1
  247. package/dist/index244.js +6 -5
  248. package/dist/index245.cjs +1 -1
  249. package/dist/index245.js +10 -38
  250. package/dist/index246.cjs +1 -1
  251. package/dist/index246.js +10 -2
  252. package/dist/index247.cjs +1 -1
  253. package/dist/index247.js +15 -3
  254. package/dist/index248.cjs +1 -1
  255. package/dist/index248.js +3 -5
  256. package/dist/index249.cjs +1 -1
  257. package/dist/index249.js +7 -6
  258. package/dist/index250.cjs +1 -1
  259. package/dist/index250.js +4 -5
  260. package/dist/index251.cjs +1 -1
  261. package/dist/index251.js +6 -2
  262. package/dist/index252.cjs +1 -1
  263. package/dist/index252.js +39 -2
  264. package/dist/index253.cjs +1 -5
  265. package/dist/index253.js +2 -2962
  266. package/dist/index254.cjs +1 -1
  267. package/dist/index254.js +5 -2
  268. package/dist/index255.cjs +1 -1
  269. package/dist/index255.js +3 -5
  270. package/dist/index256.cjs +1 -1
  271. package/dist/index256.js +5 -5
  272. package/dist/index257.cjs +1 -1
  273. package/dist/index257.js +5 -3
  274. package/dist/index258.cjs +1 -1
  275. package/dist/index258.js +2 -13
  276. package/dist/index259.cjs +1 -1
  277. package/dist/index259.js +2 -4
  278. package/dist/index260.cjs +1 -1
  279. package/dist/index260.js +16 -2
  280. package/dist/index261.cjs +1 -1
  281. package/dist/index261.js +4 -5
  282. package/dist/index262.cjs +1 -1
  283. package/dist/index262.js +4 -17
  284. package/dist/index263.cjs +1 -1
  285. package/dist/index263.js +3 -4
  286. package/dist/index264.cjs +1 -1
  287. package/dist/index264.js +3 -4
  288. package/dist/index265.cjs +1 -1
  289. package/dist/index265.js +14 -3
  290. package/dist/index266.cjs +1 -1
  291. package/dist/index266.js +9 -3
  292. package/dist/index267.cjs +1 -1
  293. package/dist/index267.js +3 -14
  294. package/dist/index268.cjs +1 -1
  295. package/dist/index268.js +10 -9
  296. package/dist/index269.cjs +1 -1
  297. package/dist/index269.js +6 -10
  298. package/dist/index270.cjs +1 -1
  299. package/dist/index270.js +5 -6
  300. package/dist/index271.cjs +1 -1
  301. package/dist/index271.js +6 -5
  302. package/dist/index272.cjs +1 -1
  303. package/dist/index272.js +6 -6
  304. package/dist/index273.cjs +1 -1
  305. package/dist/index273.js +8 -7
  306. package/dist/index274.cjs +1 -1
  307. package/dist/index274.js +6 -8
  308. package/dist/index275.cjs +1 -1
  309. package/dist/index275.js +4 -6
  310. package/dist/index276.cjs +1 -1
  311. package/dist/index276.js +10 -4
  312. package/dist/index277.cjs +1 -1
  313. package/dist/index277.js +12 -8
  314. package/dist/index278.cjs +1 -1
  315. package/dist/index278.js +5 -14
  316. package/dist/index279.cjs +1 -1
  317. package/dist/index279.js +6 -5
  318. package/dist/index280.cjs +1 -1
  319. package/dist/index280.js +17 -5
  320. package/dist/index281.cjs +1 -1
  321. package/dist/index281.js +12 -17
  322. package/dist/index282.cjs +1 -1
  323. package/dist/index282.js +5 -12
  324. package/dist/index283.cjs +1 -1
  325. package/dist/index283.js +4 -6
  326. package/dist/index284.cjs +1 -1
  327. package/dist/index284.js +12 -7
  328. package/dist/index285.cjs +1 -1
  329. package/dist/index285.js +4 -4
  330. package/dist/index286.cjs +1 -1
  331. package/dist/index286.js +6 -2
  332. package/dist/index287.cjs +1 -1
  333. package/dist/index287.js +26 -5
  334. package/dist/index288.cjs +1 -1
  335. package/dist/index288.js +9 -12
  336. package/dist/index289.cjs +1 -1
  337. package/dist/index289.js +5 -4
  338. package/dist/index290.cjs +1 -1
  339. package/dist/index290.js +5 -26
  340. package/dist/index291.cjs +1 -1
  341. package/dist/index291.js +4 -8
  342. package/dist/index292.cjs +1 -1
  343. package/dist/index292.js +5 -5
  344. package/dist/index293.cjs +1 -1
  345. package/dist/index293.js +8 -4
  346. package/dist/index294.cjs +1 -1
  347. package/dist/index294.js +4 -5
  348. package/dist/index295.cjs +1 -1
  349. package/dist/index295.js +7 -5
  350. package/dist/index296.cjs +1 -1
  351. package/dist/index296.js +5 -9
  352. package/dist/index297.cjs +1 -1
  353. package/dist/index297.js +5 -3
  354. package/dist/index298.cjs +1 -1
  355. package/dist/index298.js +5 -7
  356. package/dist/index299.cjs +1 -1
  357. package/dist/index299.js +11 -4
  358. package/dist/index300.cjs +1 -1
  359. package/dist/index300.js +4 -6
  360. package/dist/index303.cjs +1 -1
  361. package/dist/index303.js +6 -13
  362. package/dist/index304.cjs +1 -1
  363. package/dist/index304.js +8 -12
  364. package/dist/index305.cjs +1 -1
  365. package/dist/index305.js +3 -13
  366. package/dist/index306.cjs +1 -1
  367. package/dist/index306.js +2 -4
  368. package/dist/index307.cjs +1 -1
  369. package/dist/index307.js +9 -10
  370. package/dist/index308.cjs +1 -1
  371. package/dist/index308.js +3 -5
  372. package/dist/index309.cjs +1 -1
  373. package/dist/index309.js +9 -4
  374. package/dist/index310.cjs +1 -1
  375. package/dist/index310.js +5 -5
  376. package/dist/index311.cjs +1 -1
  377. package/dist/index311.js +5 -4
  378. package/dist/index312.cjs +1 -1
  379. package/dist/index312.js +5 -17
  380. package/dist/index313.cjs +1 -1
  381. package/dist/index313.js +4 -9
  382. package/dist/index314.cjs +1 -1
  383. package/dist/index314.js +17 -5
  384. package/dist/index315.cjs +1 -1
  385. package/dist/index315.js +5 -5
  386. package/dist/index316.cjs +1 -1
  387. package/dist/index316.js +5 -7
  388. package/dist/index317.cjs +1 -1
  389. package/dist/index317.js +7 -5
  390. package/dist/index318.cjs +1 -1
  391. package/dist/index318.js +6 -15
  392. package/dist/index319.cjs +1 -1
  393. package/dist/index319.js +15 -3
  394. package/dist/index320.cjs +1 -1
  395. package/dist/index320.js +3 -7
  396. package/dist/index321.cjs +1 -1
  397. package/dist/index321.js +6 -3
  398. package/dist/index322.cjs +1 -1
  399. package/dist/index322.js +3 -9
  400. package/dist/index323.cjs +1 -1
  401. package/dist/index323.js +9 -5
  402. package/dist/index324.cjs +1 -1
  403. package/dist/index324.js +6 -9
  404. package/dist/index325.cjs +1 -1
  405. package/dist/index325.js +8 -11
  406. package/dist/index326.cjs +1 -1
  407. package/dist/index326.js +12 -3
  408. package/dist/index327.cjs +1 -1
  409. package/dist/index327.js +12 -11
  410. package/dist/index328.cjs +1 -1
  411. package/dist/index328.js +12 -5
  412. package/dist/index329.cjs +1 -1
  413. package/dist/index329.js +13 -8
  414. package/dist/index330.cjs +1 -1
  415. package/dist/index330.js +3 -3
  416. package/dist/index331.cjs +1 -1
  417. package/dist/index331.js +8 -8
  418. package/dist/index332.cjs +1 -1
  419. package/dist/index332.js +8 -3
  420. package/dist/index333.cjs +1 -1
  421. package/dist/index333.js +3 -16
  422. package/dist/index334.cjs +1 -1
  423. package/dist/index334.js +16 -75
  424. package/dist/index335.cjs +1 -1
  425. package/dist/index335.js +3 -6
  426. package/dist/index336.cjs +1 -1
  427. package/dist/index336.js +12 -7
  428. package/dist/index337.cjs +1 -1
  429. package/dist/index337.js +4 -6
  430. package/dist/index338.cjs +1 -1
  431. package/dist/index338.js +6 -10
  432. package/dist/index339.cjs +1 -1
  433. package/dist/index339.js +7 -5
  434. package/dist/index340.cjs +1 -1
  435. package/dist/index340.js +10 -4
  436. package/dist/index341.cjs +1 -1
  437. package/dist/index341.js +5 -4
  438. package/dist/index342.cjs +1 -1
  439. package/dist/index342.js +4 -5
  440. package/dist/index343.cjs +1 -1
  441. package/dist/index343.js +3 -4
  442. package/dist/index344.cjs +1 -1
  443. package/dist/index344.js +5 -7
  444. package/dist/index345.cjs +1 -1
  445. package/dist/index345.js +1 -1
  446. package/dist/index346.cjs +1 -1
  447. package/dist/index346.js +5 -7
  448. package/dist/index347.cjs +1 -1
  449. package/dist/index347.js +7 -11
  450. package/dist/index348.cjs +1 -1
  451. package/dist/index348.js +5 -37
  452. package/dist/index349.cjs +1 -1
  453. package/dist/index349.js +11 -42
  454. package/dist/index350.cjs +1 -1
  455. package/dist/index350.js +33 -29
  456. package/dist/index351.cjs +1 -1
  457. package/dist/index351.js +43 -26
  458. package/dist/index352.cjs +1 -1
  459. package/dist/index352.js +32 -12
  460. package/dist/index353.cjs +1 -1
  461. package/dist/index353.js +26 -4
  462. package/dist/index354.cjs +1 -1
  463. package/dist/index354.js +7 -17
  464. package/dist/index355.cjs +1 -1
  465. package/dist/index355.js +13 -5
  466. package/dist/index356.cjs +1 -1
  467. package/dist/index356.js +4 -3
  468. package/dist/index357.cjs +1 -1
  469. package/dist/index357.js +17 -10
  470. package/dist/index358.cjs +1 -1
  471. package/dist/index358.js +5 -6
  472. package/dist/index359.cjs +1 -1
  473. package/dist/index359.js +2 -3
  474. package/dist/index360.cjs +1 -1
  475. package/dist/index360.js +10 -6
  476. package/dist/index361.cjs +1 -1
  477. package/dist/index361.js +6 -6
  478. package/dist/index362.cjs +1 -1
  479. package/dist/index362.js +3 -6
  480. package/dist/index363.cjs +1 -1
  481. package/dist/index363.js +7 -4
  482. package/dist/index364.cjs +1 -1
  483. package/dist/index364.js +7 -4
  484. package/dist/index365.cjs +1 -1
  485. package/dist/index365.js +7 -4
  486. package/dist/index366.cjs +1 -1
  487. package/dist/index366.js +3 -3
  488. package/dist/index367.cjs +1 -1
  489. package/dist/index367.js +4 -15
  490. package/dist/index368.cjs +1 -1
  491. package/dist/index368.js +4 -8
  492. package/dist/index369.cjs +1 -1
  493. package/dist/index369.js +4 -5
  494. package/dist/index370.cjs +1 -1
  495. package/dist/index370.js +14 -8
  496. package/dist/index371.cjs +1 -1
  497. package/dist/index371.js +8 -5
  498. package/dist/index372.cjs +1 -1
  499. package/dist/index372.js +4 -4
  500. package/dist/index373.cjs +1 -1
  501. package/dist/index373.js +8 -10
  502. package/dist/index374.cjs +1 -1
  503. package/dist/index374.js +4 -6
  504. package/dist/index375.cjs +1 -1
  505. package/dist/index375.js +3 -5
  506. package/dist/index376.cjs +1 -1
  507. package/dist/index376.js +10 -4
  508. package/dist/index377.cjs +1 -1
  509. package/dist/index377.js +6 -4
  510. package/dist/index378.cjs +1 -1
  511. package/dist/index378.js +6 -3
  512. package/dist/index379.cjs +1 -1
  513. package/dist/index379.js +4 -8
  514. package/dist/index380.cjs +1 -1
  515. package/dist/index380.js +4 -15
  516. package/dist/index381.cjs +1 -1
  517. package/dist/index381.js +3 -6
  518. package/dist/index382.cjs +1 -1
  519. package/dist/index382.js +8 -7
  520. package/dist/index383.cjs +1 -1
  521. package/dist/index383.js +16 -3
  522. package/dist/index384.cjs +1 -1
  523. package/dist/index384.js +7 -3
  524. package/dist/index385.cjs +1 -1
  525. package/dist/index385.js +8 -16
  526. package/dist/index386.cjs +1 -1
  527. package/dist/index386.js +3 -6
  528. package/dist/index387.cjs +1 -1
  529. package/dist/index387.js +3 -8
  530. package/dist/index388.cjs +1 -1
  531. package/dist/index388.js +15 -3
  532. package/dist/index389.cjs +1 -14
  533. package/dist/index389.js +5 -6857
  534. package/dist/index390.cjs +1 -1
  535. package/dist/index390.js +8 -2
  536. package/dist/index391.cjs +1 -0
  537. package/dist/index391.js +6 -0
  538. package/dist/index42.cjs +1 -1
  539. package/dist/index42.js +8 -7
  540. package/dist/index43.cjs +1 -1
  541. package/dist/index43.js +42 -38
  542. package/dist/index48.cjs +1 -1
  543. package/dist/index48.js +3 -3
  544. package/dist/index49.cjs +1 -1
  545. package/dist/index49.js +2 -2
  546. package/dist/index52.cjs +1 -1
  547. package/dist/index52.js +1 -1
  548. package/dist/index53.cjs +1 -1
  549. package/dist/index53.js +1 -1
  550. package/dist/index54.cjs +1 -1
  551. package/dist/index54.js +2 -2
  552. package/dist/index55.cjs +1 -1
  553. package/dist/index55.js +2 -2
  554. package/dist/index56.cjs +1 -1
  555. package/dist/index56.js +1 -1
  556. package/dist/index61.cjs +1 -1
  557. package/dist/index61.js +1 -1
  558. package/dist/index62.cjs +1 -1
  559. package/dist/index62.js +1 -1
  560. package/dist/index63.cjs +1 -1
  561. package/dist/index63.js +1 -1
  562. package/dist/index64.cjs +1 -1
  563. package/dist/index64.js +1 -1
  564. package/dist/index66.cjs +1 -1
  565. package/dist/index66.js +1 -1
  566. package/dist/index67.cjs +1 -1
  567. package/dist/index67.js +1 -1
  568. package/dist/index68.cjs +1 -1
  569. package/dist/index68.js +1 -1
  570. package/dist/index69.cjs +1 -1
  571. package/dist/index69.js +1 -1
  572. package/dist/index70.cjs +1 -1
  573. package/dist/index70.js +1 -1
  574. package/dist/index71.cjs +1 -1
  575. package/dist/index71.js +1 -1
  576. package/dist/index72.cjs +1 -1
  577. package/dist/index72.js +1 -1
  578. package/dist/index73.cjs +1 -1
  579. package/dist/index73.js +1 -1
  580. package/dist/index77.cjs +1 -1
  581. package/dist/index77.js +1 -1
  582. package/dist/index78.cjs +1 -1
  583. package/dist/index78.js +1 -1
  584. package/dist/index79.cjs +1 -1
  585. package/dist/index79.js +1 -1
  586. package/dist/index96.cjs +1 -1
  587. package/dist/index96.js +1 -1
  588. package/dist/index97.cjs +1 -1
  589. package/dist/index97.js +1 -1
  590. package/dist/index98.cjs +1 -1
  591. package/dist/index98.js +1 -1
  592. package/dist/index99.cjs +1 -1
  593. package/dist/index99.js +1 -1
  594. package/package.json +1 -1
  595. package/dist/index100.cjs +0 -470
  596. package/dist/index100.js +0 -484
package/dist/index105.js CHANGED
@@ -1,165 +1,101 @@
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 "./index100.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;
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 l = class extends J.Component {
16
+ let i = class extends f.Component {
17
17
  constructor(e) {
18
18
  super(e);
19
- V(this, "url", "");
20
- Q(this);
19
+ l(this, "image", null);
20
+ l(this, "isUploading", !1);
21
+ C(this);
21
22
  }
22
23
  onClose() {
23
- this.url = "", this.props.onClose();
24
+ this.image = null, this.props.onClose();
24
25
  }
25
- insertVideo() {
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("video insert error", t);
32
+ e.summernote("editor.restoreRange"), console.log("image insert error", t);
33
33
  }
34
34
  }
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 + "&amp;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
- X,
58
+ I,
107
59
  {
108
60
  open: e,
109
61
  onCancel: this.onClose,
110
- onOk: this.insertVideo,
111
- okText: p.richText.addVideo,
112
- title: p.richText.video,
62
+ onOk: this.insertImage,
63
+ okText: h.richText.addImage,
64
+ title: h.richText.image,
113
65
  okButtonProps: {
114
- disabled: !this.url.length
66
+ disabled: !((t = (o = this.image) == null ? void 0 : o.src) != null && t.length) || this.isUploading
115
67
  },
116
- children: /* @__PURE__ */ k(ee, { children: [
117
- /* @__PURE__ */ k(
118
- te,
119
- {
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
- ]
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
- 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;
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
- he as default
100
+ M as default
165
101
  };
package/dist/index106.cjs CHANGED
@@ -1 +1 @@
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("./index100.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;
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+"&amp;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 u = Object.defineProperty;
2
- var m = (r, e, o) => e in r ? u(r, e, { enumerable: !0, configurable: !0, writable: !0, value: o }) : r[e] = o;
3
- var d = (r, e, o) => m(r, typeof e != "symbol" ? e + "" : e, o);
4
- import { jsx as a, jsxs as f } from "react/jsx-runtime";
5
- import k from "react";
6
- import { observer as g } from "mobx-react";
7
- import { makeObservable as C, action as p, observable as w } from "mobx";
8
- import { Modal as v, Input as b, Checkbox as x } from "@ikas/ui";
9
- import { coreTranslations as h } from "./index5.js";
10
- import { ModalContainer as L, Title as I, Label as y } from "./index100.js";
11
- var N = Object.defineProperty, T = Object.getOwnPropertyDescriptor, l = (r, e, o, t) => {
12
- for (var n = t > 1 ? void 0 : t ? T(e, o) : e, s = r.length - 1, c; s >= 0; s--)
13
- (c = r[s]) && (n = (t ? c(e, o, n) : c(n)) || n);
14
- return t && n && N(e, o, n), n;
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 i = class extends k.Component {
16
+ let l = class extends J.Component {
17
17
  constructor(e) {
18
18
  super(e);
19
- d(this, "linkInfo", null);
20
- C(this);
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.linkInfo = null, this.props.onClose();
23
+ this.url = "", this.props.onClose();
37
24
  }
38
- insertLink() {
25
+ insertVideo() {
39
26
  const { summernoteObj: e } = this.props;
40
27
  try {
41
28
  e.summernote("editor.saveRange"), e.summernote("editor.restoreRange");
42
- const o = this.linkInfo;
43
- e.summernote("editor.createLink", {
44
- url: o == null ? void 0 : o.url,
45
- range: o == null ? void 0 : o.range,
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
- onLinkChange(e) {
55
- this.linkInfo && (this.linkInfo.url = e.target.value);
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 + "&amp;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
- onNewWindowChange(e) {
58
- this.linkInfo && (this.linkInfo.isNewWindow = e);
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__ */ a(
64
- v,
105
+ return /* @__PURE__ */ g(
106
+ X,
65
107
  {
66
108
  open: e,
67
109
  onCancel: this.onClose,
68
- onOk: this.insertLink,
69
- okText: h.richText.addLink,
70
- title: h.richText.link,
110
+ onOk: this.insertVideo,
111
+ okText: p.richText.addVideo,
112
+ title: p.richText.video,
71
113
  okButtonProps: {
72
- disabled: !((t = (o = this.linkInfo) == null ? void 0 : o.url) != null && t.length)
114
+ disabled: !this.url.length
73
115
  },
74
- children: /* @__PURE__ */ f(L, { children: [
75
- /* @__PURE__ */ a(I, { children: /* @__PURE__ */ a(y, { children: h.richText.linkUrl }) }),
76
- /* @__PURE__ */ a(
77
- b,
116
+ children: /* @__PURE__ */ k(ee, { children: [
117
+ /* @__PURE__ */ k(
118
+ te,
78
119
  {
79
- value: (n = this.linkInfo) == null ? void 0 : n.url,
80
- onChange: this.onLinkChange,
81
- placeholder: h.richText.enterURL
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__ */ a(
85
- x,
131
+ /* @__PURE__ */ g(
132
+ Y,
86
133
  {
87
- checked: (s = this.linkInfo) == null ? void 0 : s.isNewWindow,
88
- onCheckedChange: this.onNewWindowChange,
89
- label: h.richText.openInNewWindow
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
- l([
98
- w
99
- ], i.prototype, "linkInfo", 2);
100
- l([
101
- p.bound
102
- ], i.prototype, "init", 1);
103
- l([
104
- p.bound
105
- ], i.prototype, "onClose", 1);
106
- l([
107
- p.bound
108
- ], i.prototype, "insertLink", 1);
109
- l([
110
- p.bound
111
- ], i.prototype, "onLinkChange", 1);
112
- l([
113
- p.bound
114
- ], i.prototype, "onNewWindowChange", 1);
115
- i = l([
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
- j as default
164
+ he as default
121
165
  };
package/dist/index107.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react"),N=require("react-dom"),B=require("mobx");function L({sidebarViewModel:e,onNavigate:M}){const[I,x]=a.useState([]),[K,S]=a.useState([]),[i,g]=a.useState(null),[P,E]=a.useState(!1),f=a.useRef(null),[V,T]=a.useState(!0),[m,k]=a.useState(!0),r=a.useMemo(()=>{const n=t=>{var u;for(let l=0;l<t.length;l++){const o=t[l];if(o.childItems){const d=n(o.childItems);if(d)return d}else if(o.useExactRoute){if(e.currentPath==="/admin"+o.path)return o.uuid}else if((u=e.currentPath)!=null&&u.startsWith("/admin"+(o.path||"")))return o.uuid}},s=[...e.menuItems];return e.footerTopMenu&&s.push(e.footerTopMenu),e.salesChannelMenu&&s.push(e.salesChannelMenu),e.bottomMenuItems&&s.push(...e.bottomMenuItems),n(s)},[e.currentPath,e.menuItems,e.footerTopMenu,e.salesChannelMenu,e.bottomMenuItems]),b=a.useMemo(()=>r?[r]:[],[r]),F=a.useCallback(n=>{const s=u=>{for(let l=0;l<u.length;l++){const o=u[l];if(o.uuid===n)return o;if(o.childItems){const d=s(o.childItems);if(d)return d}}},t=[...e.menuItems];return e.footerTopMenu&&t.push(e.footerTopMenu),e.bottomMenuItems&&t.push(...e.bottomMenuItems),s(t)},[e.menuItems,e.footerTopMenu,e.bottomMenuItems]),c=a.useCallback((n,s=!0)=>{f.current&&clearTimeout(f.current),e.sidebarCollapsed&&s&&e.setSidebarCollapsed(!1),g(n),E(!0)},[e]),h=a.useCallback((n=!1)=>{var t;f.current&&clearTimeout(f.current);const s=()=>{var u;(u=i==null?void 0:i.expandedMenuSettings)!=null&&u.onBackClick&&i.expandedMenuSettings.onBackClick(),g(null)};E(!1),n||(t=i==null?void 0:i.expandedMenuSettings)!=null&&t.closeFast?s():f.current=setTimeout(s,300)},[i]),A=a.useCallback(n=>{if(!e.sidebarCollapsed&&n.length){const s=n[n.length-1];let t=r;e.menuItems.forEach(u=>{var o;((o=u.childItems)==null?void 0:o.find(d=>d.uuid===r))&&(t=u.uuid)}),n.find(u=>u===t)&&t!==s&&(n=[t,s])}x(n.slice(n.length-2,n.length)||[])},[e.sidebarCollapsed,e.menuItems,r]),w=a.useCallback(n=>{e.expandMenuItem&&e.expandMenuItem.path===n.path&&e.expandMenuItem.isExpandableMenu||n.isExpandableMenu||n.path&&(!document.startViewTransition||n.skipViewTransition||e.isExpandedMenu?M(n.path):document.startViewTransition(()=>{N.flushSync(()=>{M(n.path)})}))},[e.expandMenuItem,e.isExpandedMenu,M]),O=a.useCallback(n=>{var s;if(e.expandMenuItem)if(e.expandMenuItem.path===n.path){const t=e.menuItems.find(u=>{var l;return((l=e.expandMenuItem)==null?void 0:l.uuid)===u.uuid})||e.expandMenuItem;c(t,!1);return}else h(!0);n.isExpandableMenu?c(n,!1):(s=n==null?void 0:n.onClick)==null||s.call(n)},[e.expandMenuItem,e.menuItems,c,h]),C=a.useCallback(()=>{b.length&&!I.length&&e.menuItems.forEach(n=>{var t;((t=n.childItems)==null?void 0:t.find(u=>u.uuid===r))&&x([n.uuid])})},[b,I,e.menuItems,r]),y=a.useCallback(n=>{var t,u;if((t=n.childItems)==null?void 0:t.some(l=>l.isExpandableMenu)){const l=(u=n.childItems)==null?void 0:u.find(o=>{var d;return(d=o.childItems)==null?void 0:d.find(D=>D.uuid===r)});l&&c(l)}},[r,c]),p=a.useCallback((n=!0)=>{if(!e.expandMenuItem)return;const s=e.menuItems.find(t=>{var u;return((u=e.expandMenuItem)==null?void 0:u.uuid)===t.uuid})||e.expandMenuItem;c(s,n)},[e.expandMenuItem,e.menuItems,c]),R=a.useMemo(()=>{if(i)return{sidebarCollapsed:e.sidebarCollapsed,menuItems:[i],currentPath:e.currentPath,footerMenu:void 0,isExpandedMenu:!0,setSidebarCollapsed:e.setSidebarCollapsed}},[i,e.sidebarCollapsed,e.currentPath,e.setSidebarCollapsed]),U=a.useCallback(n=>{var s,t;if(n!=null&&n.iconBackgroundColor)return n.iconBackgroundColor;if((s=n==null?void 0:n.expandedMenuSettings)!=null&&s.backgroundColor)return n.expandedMenuSettings.backgroundColor;if((t=n.icon)!=null&&t.displayName){const u=n.icon.displayName;if(u==="world-icon")return"#B2A4FF";if(u==="building-icon")return"#8FCCF8";if(u==="store-icon")return"#9AA4B2"}},[]);a.useEffect(()=>{var n,s;if(e.sidebarCollapsed||C(),e.salesChannelMenu&&S([e.salesChannelMenu.uuid]),p(),I.length||(e.menuItems.forEach(t=>y(t)),e.salesChannelMenu&&y(e.salesChannelMenu)),e.isExpandedMenu&&e.menuItems.length&&((n=e.menuItems[0].childItems)!=null&&n.length)){const t=e.menuItems[0].childItems;!t.slice(1).some(o=>o.uuid===r)&&t[0]&&w(t[0])}(s=e.footerMenu)!=null&&s.thumbnailImageSrc&&T(!1)},[]),a.useEffect(()=>{const n=B.reaction(()=>e.sidebarCollapsed,s=>{s?k(!1):(k(!0),setTimeout(()=>{C(),p()},300))});return()=>n()},[e,C,p]),a.useEffect(()=>{const n=B.reaction(()=>!!e.expandMenuItem,()=>{e.expandMenuItem?p():h()});return()=>n()},[e,p,h]);const q=e.isExpandedMenu&&e.sidebarCollapsed;return{openKeys:I,salesChannelOpenKey:K,selectedExpandedMenu:i,isSelectedExpandedMenuVisible:P,showAvatarBorder:V,showTypographyText:m,selectedItemUUID:r,selectedUUIDList:b,isExpandedFooterVisible:q,salesChannelsSidebarModel:R,setShowAvatarBorder:T,setSalesChannelOpenKey:S,getItem:F,expandMenu:c,clearExpandedMenu:h,onOpenKeysChange:A,onItemClick:w,onLeafClick:O,openExpandedItem:p,getSalesChannelIconBackgroundColor:U}}exports.useNavigation=L;
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;