@ibgib/core-gib 0.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 (330) hide show
  1. package/.vscode/core-gib-snippets.code-snippets +189 -0
  2. package/.vscode/launch.json +24 -0
  3. package/.vscode/settings.json +56 -0
  4. package/.vscode/tasks.json +37 -0
  5. package/CHANGELOG.md +11 -0
  6. package/README.md +215 -0
  7. package/dist/common/aws-constants.d.mts +7 -0
  8. package/dist/common/aws-constants.d.mts.map +1 -0
  9. package/dist/common/aws-constants.mjs +7 -0
  10. package/dist/common/aws-constants.mjs.map +1 -0
  11. package/dist/common/bin/bin-types.d.mts +17 -0
  12. package/dist/common/bin/bin-types.d.mts.map +1 -0
  13. package/dist/common/bin/bin-types.mjs +3 -0
  14. package/dist/common/bin/bin-types.mjs.map +1 -0
  15. package/dist/common/cache/cache-types.d.mts +57 -0
  16. package/dist/common/cache/cache-types.d.mts.map +1 -0
  17. package/dist/common/cache/cache-types.mjs +2 -0
  18. package/dist/common/cache/cache-types.mjs.map +1 -0
  19. package/dist/common/comment/comment-constants.d.mts +11 -0
  20. package/dist/common/comment/comment-constants.d.mts.map +1 -0
  21. package/dist/common/comment/comment-constants.mjs +11 -0
  22. package/dist/common/comment/comment-constants.mjs.map +1 -0
  23. package/dist/common/comment/comment-helper.d.mts +59 -0
  24. package/dist/common/comment/comment-helper.d.mts.map +1 -0
  25. package/dist/common/comment/comment-helper.mjs +173 -0
  26. package/dist/common/comment/comment-helper.mjs.map +1 -0
  27. package/dist/common/comment/comment-types.d.mts +16 -0
  28. package/dist/common/comment/comment-types.d.mts.map +1 -0
  29. package/dist/common/comment/comment-types.mjs +2 -0
  30. package/dist/common/comment/comment-types.mjs.map +1 -0
  31. package/dist/common/display/display-helper.d.mts +19 -0
  32. package/dist/common/display/display-helper.d.mts.map +1 -0
  33. package/dist/common/display/display-helper.mjs +68 -0
  34. package/dist/common/display/display-helper.mjs.map +1 -0
  35. package/dist/common/display/display-types.d.mts +97 -0
  36. package/dist/common/display/display-types.d.mts.map +1 -0
  37. package/dist/common/display/display-types.mjs +37 -0
  38. package/dist/common/display/display-types.mjs.map +1 -0
  39. package/dist/common/encrypt/encrypt-constants.d.mts +27 -0
  40. package/dist/common/encrypt/encrypt-constants.d.mts.map +1 -0
  41. package/dist/common/encrypt/encrypt-constants.mjs +27 -0
  42. package/dist/common/encrypt/encrypt-constants.mjs.map +1 -0
  43. package/dist/common/encrypt/encrypt-types.d.mts +116 -0
  44. package/dist/common/encrypt/encrypt-types.d.mts.map +1 -0
  45. package/dist/common/encrypt/encrypt-types.mjs +9 -0
  46. package/dist/common/encrypt/encrypt-types.mjs.map +1 -0
  47. package/dist/common/error/error-constants.d.mts +9 -0
  48. package/dist/common/error/error-constants.d.mts.map +1 -0
  49. package/dist/common/error/error-constants.mjs +9 -0
  50. package/dist/common/error/error-constants.mjs.map +1 -0
  51. package/dist/common/error/error-helper.d.mts +43 -0
  52. package/dist/common/error/error-helper.d.mts.map +1 -0
  53. package/dist/common/error/error-helper.mjs +167 -0
  54. package/dist/common/error/error-helper.mjs.map +1 -0
  55. package/dist/common/error/error-types.d.mts +58 -0
  56. package/dist/common/error/error-types.d.mts.map +1 -0
  57. package/dist/common/error/error-types.mjs +2 -0
  58. package/dist/common/error/error-types.mjs.map +1 -0
  59. package/dist/common/form/form-helper.d.mts +97 -0
  60. package/dist/common/form/form-helper.d.mts.map +1 -0
  61. package/dist/common/form/form-helper.mjs +185 -0
  62. package/dist/common/form/form-helper.mjs.map +1 -0
  63. package/dist/common/form/form-items.d.mts +229 -0
  64. package/dist/common/form/form-items.d.mts.map +1 -0
  65. package/dist/common/form/form-items.mjs +63 -0
  66. package/dist/common/form/form-items.mjs.map +1 -0
  67. package/dist/common/import-export/import-export-types.d.mts +18 -0
  68. package/dist/common/import-export/import-export-types.d.mts.map +1 -0
  69. package/dist/common/import-export/import-export-types.mjs +2 -0
  70. package/dist/common/import-export/import-export-types.mjs.map +1 -0
  71. package/dist/common/legacy/legacy-types.d.mts +2 -0
  72. package/dist/common/legacy/legacy-types.d.mts.map +1 -0
  73. package/dist/common/legacy/legacy-types.mjs +2 -0
  74. package/dist/common/legacy/legacy-types.mjs.map +1 -0
  75. package/dist/common/link/link-constants.d.mts +2 -0
  76. package/dist/common/link/link-constants.d.mts.map +1 -0
  77. package/dist/common/link/link-constants.mjs +2 -0
  78. package/dist/common/link/link-constants.mjs.map +1 -0
  79. package/dist/common/link/link-helper.d.mts +37 -0
  80. package/dist/common/link/link-helper.d.mts.map +1 -0
  81. package/dist/common/link/link-helper.mjs +143 -0
  82. package/dist/common/link/link-helper.mjs.map +1 -0
  83. package/dist/common/link/link-types.d.mts +14 -0
  84. package/dist/common/link/link-types.d.mts.map +1 -0
  85. package/dist/common/link/link-types.mjs +2 -0
  86. package/dist/common/link/link-types.mjs.map +1 -0
  87. package/dist/common/other/graph-helper.d.mts +166 -0
  88. package/dist/common/other/graph-helper.d.mts.map +1 -0
  89. package/dist/common/other/graph-helper.mjs +710 -0
  90. package/dist/common/other/graph-helper.mjs.map +1 -0
  91. package/dist/common/other/ibgib-helper.d.mts +245 -0
  92. package/dist/common/other/ibgib-helper.d.mts.map +1 -0
  93. package/dist/common/other/ibgib-helper.mjs +641 -0
  94. package/dist/common/other/ibgib-helper.mjs.map +1 -0
  95. package/dist/common/other/other-constants.d.mts +53 -0
  96. package/dist/common/other/other-constants.d.mts.map +1 -0
  97. package/dist/common/other/other-constants.mjs +67 -0
  98. package/dist/common/other/other-constants.mjs.map +1 -0
  99. package/dist/common/other/other-types.d.mts +166 -0
  100. package/dist/common/other/other-types.d.mts.map +1 -0
  101. package/dist/common/other/other-types.mjs +30 -0
  102. package/dist/common/other/other-types.mjs.map +1 -0
  103. package/dist/common/other/svg-constants.d.mts +2 -0
  104. package/dist/common/other/svg-constants.d.mts.map +1 -0
  105. package/dist/common/other/svg-constants.mjs +2 -0
  106. package/dist/common/other/svg-constants.mjs.map +1 -0
  107. package/dist/common/other/svg-helper.d.mts +54 -0
  108. package/dist/common/other/svg-helper.d.mts.map +1 -0
  109. package/dist/common/other/svg-helper.mjs +170 -0
  110. package/dist/common/other/svg-helper.mjs.map +1 -0
  111. package/dist/common/pic/pic-constants.d.mts +13 -0
  112. package/dist/common/pic/pic-constants.d.mts.map +1 -0
  113. package/dist/common/pic/pic-constants.mjs +13 -0
  114. package/dist/common/pic/pic-constants.mjs.map +1 -0
  115. package/dist/common/pic/pic-helper.d.mts +70 -0
  116. package/dist/common/pic/pic-helper.d.mts.map +1 -0
  117. package/dist/common/pic/pic-helper.mjs +235 -0
  118. package/dist/common/pic/pic-helper.mjs.map +1 -0
  119. package/dist/common/pic/pic-types.d.mts +23 -0
  120. package/dist/common/pic/pic-types.d.mts.map +1 -0
  121. package/dist/common/pic/pic-types.mjs +2 -0
  122. package/dist/common/pic/pic-types.mjs.map +1 -0
  123. package/dist/common/root/root-constants.d.mts +40 -0
  124. package/dist/common/root/root-constants.d.mts.map +1 -0
  125. package/dist/common/root/root-constants.mjs +40 -0
  126. package/dist/common/root/root-constants.mjs.map +1 -0
  127. package/dist/common/root/root-types.d.mts +9 -0
  128. package/dist/common/root/root-types.d.mts.map +1 -0
  129. package/dist/common/root/root-types.mjs +2 -0
  130. package/dist/common/root/root-types.mjs.map +1 -0
  131. package/dist/common/tag/tag-constants.d.mts +21 -0
  132. package/dist/common/tag/tag-constants.d.mts.map +1 -0
  133. package/dist/common/tag/tag-constants.mjs +28 -0
  134. package/dist/common/tag/tag-constants.mjs.map +1 -0
  135. package/dist/common/tag/tag-types.d.mts +14 -0
  136. package/dist/common/tag/tag-types.d.mts.map +1 -0
  137. package/dist/common/tag/tag-types.mjs +2 -0
  138. package/dist/common/tag/tag-types.mjs.map +1 -0
  139. package/dist/core-constants.d.mts +89 -0
  140. package/dist/core-constants.d.mts.map +1 -0
  141. package/dist/core-constants.mjs +484 -0
  142. package/dist/core-constants.mjs.map +1 -0
  143. package/dist/core-helper.d.mts +6 -0
  144. package/dist/core-helper.d.mts.map +1 -0
  145. package/dist/core-helper.mjs +28 -0
  146. package/dist/core-helper.mjs.map +1 -0
  147. package/dist/core-types.d.mts +520 -0
  148. package/dist/core-types.d.mts.map +1 -0
  149. package/dist/core-types.mjs +2 -0
  150. package/dist/core-types.mjs.map +1 -0
  151. package/dist/index.d.mts +2 -0
  152. package/dist/index.d.mts.map +1 -0
  153. package/dist/index.mjs +3 -0
  154. package/dist/index.mjs.map +1 -0
  155. package/dist/witness/app/app-base-v1.d.mts +130 -0
  156. package/dist/witness/app/app-base-v1.d.mts.map +1 -0
  157. package/dist/witness/app/app-base-v1.mjs +462 -0
  158. package/dist/witness/app/app-base-v1.mjs.map +1 -0
  159. package/dist/witness/app/app-constants.d.mts +10 -0
  160. package/dist/witness/app/app-constants.d.mts.map +1 -0
  161. package/dist/witness/app/app-constants.mjs +13 -0
  162. package/dist/witness/app/app-constants.mjs.map +1 -0
  163. package/dist/witness/app/app-helper.d.mts +85 -0
  164. package/dist/witness/app/app-helper.d.mts.map +1 -0
  165. package/dist/witness/app/app-helper.mjs +258 -0
  166. package/dist/witness/app/app-helper.mjs.map +1 -0
  167. package/dist/witness/app/app-types.d.mts +211 -0
  168. package/dist/witness/app/app-types.d.mts.map +1 -0
  169. package/dist/witness/app/app-types.mjs +49 -0
  170. package/dist/witness/app/app-types.mjs.map +1 -0
  171. package/dist/witness/app/chat-app/chat-app-types.d.mts +18 -0
  172. package/dist/witness/app/chat-app/chat-app-types.d.mts.map +1 -0
  173. package/dist/witness/app/chat-app/chat-app-types.mjs +25 -0
  174. package/dist/witness/app/chat-app/chat-app-types.mjs.map +1 -0
  175. package/dist/witness/app/flash-app/flash-app-types.d.mts +16 -0
  176. package/dist/witness/app/flash-app/flash-app-types.d.mts.map +1 -0
  177. package/dist/witness/app/flash-app/flash-app-types.mjs +23 -0
  178. package/dist/witness/app/flash-app/flash-app-types.mjs.map +1 -0
  179. package/dist/witness/app/raw-app/raw-app-types.d.mts +18 -0
  180. package/dist/witness/app/raw-app/raw-app-types.d.mts.map +1 -0
  181. package/dist/witness/app/raw-app/raw-app-types.mjs +25 -0
  182. package/dist/witness/app/raw-app/raw-app-types.mjs.map +1 -0
  183. package/dist/witness/app/todo-app/todo-app-types.d.ts +33 -0
  184. package/dist/witness/app/todo-app/todo-app-types.d.ts.map +1 -0
  185. package/dist/witness/app/todo-app/todo-app-types.js +31 -0
  186. package/dist/witness/app/todo-app/todo-app-types.js.map +1 -0
  187. package/dist/witness/robbot/robbot-base-v1.d.ts +432 -0
  188. package/dist/witness/robbot/robbot-base-v1.d.ts.map +1 -0
  189. package/dist/witness/robbot/robbot-base-v1.js +1407 -0
  190. package/dist/witness/robbot/robbot-base-v1.js.map +1 -0
  191. package/dist/witness/robbot/robbot-constants.d.mts +24 -0
  192. package/dist/witness/robbot/robbot-constants.d.mts.map +1 -0
  193. package/dist/witness/robbot/robbot-constants.mjs +24 -0
  194. package/dist/witness/robbot/robbot-constants.mjs.map +1 -0
  195. package/dist/witness/robbot/robbot-helper.d.mts +152 -0
  196. package/dist/witness/robbot/robbot-helper.d.mts.map +1 -0
  197. package/dist/witness/robbot/robbot-helper.mjs +609 -0
  198. package/dist/witness/robbot/robbot-helper.mjs.map +1 -0
  199. package/dist/witness/robbot/robbot-types.d.mts +539 -0
  200. package/dist/witness/robbot/robbot-types.d.mts.map +1 -0
  201. package/dist/witness/robbot/robbot-types.mjs +294 -0
  202. package/dist/witness/robbot/robbot-types.mjs.map +1 -0
  203. package/dist/witness/space/bootstrap/bootstrap-constants.d.mts +14 -0
  204. package/dist/witness/space/bootstrap/bootstrap-constants.d.mts.map +1 -0
  205. package/dist/witness/space/bootstrap/bootstrap-constants.mjs +15 -0
  206. package/dist/witness/space/bootstrap/bootstrap-constants.mjs.map +1 -0
  207. package/dist/witness/space/inner-space-v1.d.ts +63 -0
  208. package/dist/witness/space/inner-space-v1.d.ts.map +1 -0
  209. package/dist/witness/space/inner-space-v1.js +356 -0
  210. package/dist/witness/space/inner-space-v1.js.map +1 -0
  211. package/dist/witness/space/outer-space/outer-space-constants.d.mts +2 -0
  212. package/dist/witness/space/outer-space/outer-space-constants.d.mts.map +1 -0
  213. package/dist/witness/space/outer-space/outer-space-constants.mjs +2 -0
  214. package/dist/witness/space/outer-space/outer-space-constants.mjs.map +1 -0
  215. package/dist/witness/space/outer-space/outer-space-helper.d.mts +28 -0
  216. package/dist/witness/space/outer-space/outer-space-helper.d.mts.map +1 -0
  217. package/dist/witness/space/outer-space/outer-space-helper.mjs +87 -0
  218. package/dist/witness/space/outer-space/outer-space-helper.mjs.map +1 -0
  219. package/dist/witness/space/outer-space/outer-space-types.d.mts +548 -0
  220. package/dist/witness/space/outer-space/outer-space-types.d.mts.map +1 -0
  221. package/dist/witness/space/outer-space/outer-space-types.mjs +118 -0
  222. package/dist/witness/space/outer-space/outer-space-types.mjs.map +1 -0
  223. package/dist/witness/space/space-base-v1.d.mts +147 -0
  224. package/dist/witness/space/space-base-v1.d.mts.map +1 -0
  225. package/dist/witness/space/space-base-v1.mjs +350 -0
  226. package/dist/witness/space/space-base-v1.mjs.map +1 -0
  227. package/dist/witness/space/space-constants.d.mts +181 -0
  228. package/dist/witness/space/space-constants.d.mts.map +1 -0
  229. package/dist/witness/space/space-constants.mjs +192 -0
  230. package/dist/witness/space/space-constants.mjs.map +1 -0
  231. package/dist/witness/space/space-helper.d.mts +666 -0
  232. package/dist/witness/space/space-helper.d.mts.map +1 -0
  233. package/dist/witness/space/space-helper.mjs +2830 -0
  234. package/dist/witness/space/space-helper.mjs.map +1 -0
  235. package/dist/witness/space/space-types.d.mts +422 -0
  236. package/dist/witness/space/space-types.d.mts.map +1 -0
  237. package/dist/witness/space/space-types.mjs +52 -0
  238. package/dist/witness/space/space-types.mjs.map +1 -0
  239. package/dist/witness/witness-base-v1.d.ts +144 -0
  240. package/dist/witness/witness-base-v1.d.ts.map +1 -0
  241. package/dist/witness/witness-base-v1.js +300 -0
  242. package/dist/witness/witness-base-v1.js.map +1 -0
  243. package/dist/witness/witness-constants.d.mts +3 -0
  244. package/dist/witness/witness-constants.d.mts.map +1 -0
  245. package/dist/witness/witness-constants.mjs +3 -0
  246. package/dist/witness/witness-constants.mjs.map +1 -0
  247. package/dist/witness/witness-form-builder.d.mts +45 -0
  248. package/dist/witness/witness-form-builder.d.mts.map +1 -0
  249. package/dist/witness/witness-form-builder.mjs +95 -0
  250. package/dist/witness/witness-form-builder.mjs.map +1 -0
  251. package/dist/witness/witness-helper.d.mts +89 -0
  252. package/dist/witness/witness-helper.d.mts.map +1 -0
  253. package/dist/witness/witness-helper.mjs +229 -0
  254. package/dist/witness/witness-helper.mjs.map +1 -0
  255. package/dist/witness/witness-types.d.mts +211 -0
  256. package/dist/witness/witness-types.d.mts.map +1 -0
  257. package/dist/witness/witness-types.mjs +2 -0
  258. package/dist/witness/witness-types.mjs.map +1 -0
  259. package/jasmine-browser.json +18 -0
  260. package/jasmine.json +6 -0
  261. package/package.json +67 -0
  262. package/src/assumptions.spec.mts +45 -0
  263. package/src/common/aws-constants.mts +5 -0
  264. package/src/common/bin/bin-types.mts +17 -0
  265. package/src/common/cache/cache-types.mts +53 -0
  266. package/src/common/comment/comment-constants.mts +10 -0
  267. package/src/common/comment/comment-helper.mts +211 -0
  268. package/src/common/comment/comment-types.mts +19 -0
  269. package/src/common/display/display-helper.mts +88 -0
  270. package/src/common/display/display-types.mts +108 -0
  271. package/src/common/encrypt/encrypt-constants.mts +28 -0
  272. package/src/common/encrypt/encrypt-types.mts +130 -0
  273. package/src/common/error/error-constants.mts +8 -0
  274. package/src/common/error/error-helper.mts +155 -0
  275. package/src/common/error/error-types.mts +62 -0
  276. package/src/common/form/form-helper.mts +253 -0
  277. package/src/common/form/form-items.mts +236 -0
  278. package/src/common/import-export/import-export-types.mts +18 -0
  279. package/src/common/legacy/about-legacy.md +0 -0
  280. package/src/common/legacy/legacy-types.mts +0 -0
  281. package/src/common/link/link-constants.mts +1 -0
  282. package/src/common/link/link-helper.mts +155 -0
  283. package/src/common/link/link-types.mts +16 -0
  284. package/src/common/other/graph-helper.mts +853 -0
  285. package/src/common/other/ibgib-helper.mts +671 -0
  286. package/src/common/other/other-constants.mts +76 -0
  287. package/src/common/other/other-types.mts +186 -0
  288. package/src/common/other/svg-constants.mts +1 -0
  289. package/src/common/other/svg-helper.mts +238 -0
  290. package/src/common/pic/pic-constants.mts +13 -0
  291. package/src/common/pic/pic-helper.mts +295 -0
  292. package/src/common/pic/pic-types.mts +29 -0
  293. package/src/common/root/root-constants.mts +41 -0
  294. package/src/common/root/root-types.mts +8 -0
  295. package/src/common/tag/tag-constants.mts +34 -0
  296. package/src/common/tag/tag-types.mts +19 -0
  297. package/src/core-constants.mts +506 -0
  298. package/src/core-helper.mts +33 -0
  299. package/src/core-types.mts +519 -0
  300. package/src/helper.spec.mts +64 -0
  301. package/src/index.mts +1 -0
  302. package/src/witness/app/app-base-v1.mts +584 -0
  303. package/src/witness/app/app-constants.mts +16 -0
  304. package/src/witness/app/app-helper.mts +322 -0
  305. package/src/witness/app/app-types.mts +252 -0
  306. package/src/witness/app/chat-app/chat-app-types.mts +40 -0
  307. package/src/witness/app/flash-app/flash-app-types.mts +38 -0
  308. package/src/witness/app/raw-app/raw-app-types.mts +40 -0
  309. package/src/witness/app/todo-app/todo-app-types.ts +59 -0
  310. package/src/witness/robbot/robbot-base-v1.ts +1531 -0
  311. package/src/witness/robbot/robbot-constants.mts +25 -0
  312. package/src/witness/robbot/robbot-helper.mts +676 -0
  313. package/src/witness/robbot/robbot-helper.spec.mts +135 -0
  314. package/src/witness/robbot/robbot-types.mts +797 -0
  315. package/src/witness/space/bootstrap/bootstrap-constants.mts +15 -0
  316. package/src/witness/space/inner-space-v1.ts +372 -0
  317. package/src/witness/space/outer-space/outer-space-constants.mts +1 -0
  318. package/src/witness/space/outer-space/outer-space-helper.mts +91 -0
  319. package/src/witness/space/outer-space/outer-space-types.mts +627 -0
  320. package/src/witness/space/space-base-v1.mts +414 -0
  321. package/src/witness/space/space-constants.mts +208 -0
  322. package/src/witness/space/space-helper.mts +3242 -0
  323. package/src/witness/space/space-types.mts +476 -0
  324. package/src/witness/witness-base-v1.ts +325 -0
  325. package/src/witness/witness-constants.mts +2 -0
  326. package/src/witness/witness-form-builder.mts +128 -0
  327. package/src/witness/witness-helper.mts +256 -0
  328. package/src/witness/witness-types.mts +249 -0
  329. package/tsconfig.json +15 -0
  330. package/tsconfig.test.json +10 -0
@@ -0,0 +1,53 @@
1
+ /**
2
+ * @module
3
+ *
4
+ * not quite sure where these go.
5
+ *
6
+ * todo: check after the project is building where these other-constants fit.
7
+ */
8
+ /**
9
+ * default id settings where...?
10
+ */
11
+ export declare const DEFAULT_UUID: undefined;
12
+ export declare const CONSENSUS_REL8N_NAME = "consensus";
13
+ export declare const CONSENSUS_ADDR_SYNC_NAIVE_PUT_MERGE = "sync naive put merge^gib";
14
+ export declare const AUTOSYNC_ALWAYS_REL8N_NAME = "always";
15
+ export declare const ARCHIVE_REL8N_NAME = "archive";
16
+ export declare const TRASH_REL8N_NAME = "trash";
17
+ /**
18
+ * These rel8n names are shown in a list view by default.
19
+ *
20
+ * This should perhaps go into a chat or common ux constants?
21
+ */
22
+ export declare const DEFAULT_LIST_REL8N_NAMES: string[];
23
+ /**
24
+ *
25
+ */
26
+ export declare const CURRENT_VERSION = "1";
27
+ /**
28
+ * List of common special chars for english.
29
+ *
30
+ * ## intent
31
+ *
32
+ * When sanitizing input.
33
+ */
34
+ export declare const ALLISH_SPECIAL_CHARS = "`~!@#$%^&*()_\\-+=|\\\\\\]}[{\"':;?/>.<,";
35
+ export declare const FILENAME_SPECIAL_CHARS = " `~!@#$%&*()_\\-+=|\\]}[{\"';?>.<,";
36
+ /**
37
+ * If this matches, then we will encode the data field in our storage (aws
38
+ * anyway atow)
39
+ */
40
+ export declare const IBGIB_DATA_REGEX_INDICATES_NEED_TO_ENCODE: RegExp;
41
+ /**
42
+ * hacky scroll to bottom after items load per platform
43
+ */
44
+ export declare const DEFAULT_SCROLL_DELAY_MS_WEB_HACK = 5000;
45
+ /**
46
+ * hacky scroll to bottom after items load per platform
47
+ */
48
+ export declare const DEFAULT_SCROLL_DELAY_MS_ANDROID_HACK = 3000;
49
+ /**
50
+ * hacky scroll to bottom after items load per platform
51
+ */
52
+ export declare const DEFAULT_SCROLL_DELAY_MS_IOS_HACK = 2000;
53
+ //# sourceMappingURL=other-constants.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"other-constants.d.mts","sourceRoot":"","sources":["../../../src/common/other/other-constants.mts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH;;GAEG;AACH,eAAO,MAAM,YAAY,WAAY,CAAC;AAQtC,eAAO,MAAM,oBAAoB,cAAc,CAAC;AAChD,eAAO,MAAM,mCAAmC,6BAA6B,CAAA;AAE7E,eAAO,MAAM,0BAA0B,WAAW,CAAC;AACnD,eAAO,MAAM,kBAAkB,YAAY,CAAC;AAC5C,eAAO,MAAM,gBAAgB,UAAU,CAAC;AAExC;;;;GAIG;AACH,eAAO,MAAM,wBAAwB,EAAE,MAAM,EAU5C,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,eAAe,MAAM,CAAC;AAEnC;;;;;;GAMG;AACH,eAAO,MAAM,oBAAoB,6CAA6C,CAAC;AAC/E,eAAO,MAAM,sBAAsB,uCAAuC,CAAC;AAE3E;;;GAGG;AACH,eAAO,MAAM,yCAAyC,QAAqD,CAAC;AAE5G;;GAEG;AACH,eAAO,MAAM,gCAAgC,OAAQ,CAAC;AACtD;;GAEG;AACH,eAAO,MAAM,oCAAoC,OAAQ,CAAC;AAC1D;;GAEG;AACH,eAAO,MAAM,gCAAgC,OAAQ,CAAC"}
@@ -0,0 +1,67 @@
1
+ /**
2
+ * @module
3
+ *
4
+ * not quite sure where these go.
5
+ *
6
+ * todo: check after the project is building where these other-constants fit.
7
+ */
8
+ /**
9
+ * default id settings where...?
10
+ */
11
+ export const DEFAULT_UUID = undefined;
12
+ import { ROBBOT_REL8N_NAME } from '../../witness/robbot/robbot-constants.mjs';
13
+ import { SYNC_SPACE_REL8N_NAME } from '../../witness/space/space-constants.mjs';
14
+ import { DEFAULT_ROOT_REL8N_NAME, ROOT_REL8N_NAME } from '../root/root-constants.mjs';
15
+ import { TAGGED_REL8N_NAME, TAG_REL8N_NAME } from '../tag/tag-constants.mjs';
16
+ export const CONSENSUS_REL8N_NAME = 'consensus';
17
+ export const CONSENSUS_ADDR_SYNC_NAIVE_PUT_MERGE = 'sync naive put merge^gib';
18
+ export const AUTOSYNC_ALWAYS_REL8N_NAME = 'always';
19
+ export const ARCHIVE_REL8N_NAME = 'archive';
20
+ export const TRASH_REL8N_NAME = 'trash';
21
+ /**
22
+ * These rel8n names are shown in a list view by default.
23
+ *
24
+ * This should perhaps go into a chat or common ux constants?
25
+ */
26
+ export const DEFAULT_LIST_REL8N_NAMES = [
27
+ 'pic', 'comment', 'link',
28
+ 'result', 'import',
29
+ 'tagged',
30
+ TAGGED_REL8N_NAME,
31
+ TAG_REL8N_NAME,
32
+ ROOT_REL8N_NAME,
33
+ DEFAULT_ROOT_REL8N_NAME,
34
+ ROBBOT_REL8N_NAME,
35
+ SYNC_SPACE_REL8N_NAME,
36
+ ];
37
+ /**
38
+ *
39
+ */
40
+ export const CURRENT_VERSION = '1';
41
+ /**
42
+ * List of common special chars for english.
43
+ *
44
+ * ## intent
45
+ *
46
+ * When sanitizing input.
47
+ */
48
+ export const ALLISH_SPECIAL_CHARS = `\`~!@#$%^&*()_\\-+=|\\\\\\]}[{"':;?/>.<,`;
49
+ export const FILENAME_SPECIAL_CHARS = ` \`~!@#$%&*()_\\-+=|\\]}[{"';?>.<,`;
50
+ /**
51
+ * If this matches, then we will encode the data field in our storage (aws
52
+ * anyway atow)
53
+ */
54
+ export const IBGIB_DATA_REGEX_INDICATES_NEED_TO_ENCODE = /[^\w\s\d`~!@#$%\^&*()_\\\-+=|\]\}\[\{"':;?/>.<,]/;
55
+ /**
56
+ * hacky scroll to bottom after items load per platform
57
+ */
58
+ export const DEFAULT_SCROLL_DELAY_MS_WEB_HACK = 5000;
59
+ /**
60
+ * hacky scroll to bottom after items load per platform
61
+ */
62
+ export const DEFAULT_SCROLL_DELAY_MS_ANDROID_HACK = 3000;
63
+ /**
64
+ * hacky scroll to bottom after items load per platform
65
+ */
66
+ export const DEFAULT_SCROLL_DELAY_MS_IOS_HACK = 2000;
67
+ //# sourceMappingURL=other-constants.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"other-constants.mjs","sourceRoot":"","sources":["../../../src/common/other/other-constants.mts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH;;GAEG;AACH,MAAM,CAAC,MAAM,YAAY,GAAG,SAAS,CAAC;AAEtC,OAAO,EAAE,iBAAiB,EAAE,MAAM,2CAA2C,CAAC;AAC9E,OAAO,EAAE,qBAAqB,EAAE,MAAM,yCAAyC,CAAC;AAChF,OAAO,EAAE,uBAAuB,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AACtF,OAAO,EAAE,iBAAiB,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAG7E,MAAM,CAAC,MAAM,oBAAoB,GAAG,WAAW,CAAC;AAChD,MAAM,CAAC,MAAM,mCAAmC,GAAG,0BAA0B,CAAA;AAE7E,MAAM,CAAC,MAAM,0BAA0B,GAAG,QAAQ,CAAC;AACnD,MAAM,CAAC,MAAM,kBAAkB,GAAG,SAAS,CAAC;AAC5C,MAAM,CAAC,MAAM,gBAAgB,GAAG,OAAO,CAAC;AAExC;;;;GAIG;AACH,MAAM,CAAC,MAAM,wBAAwB,GAAa;IAC9C,KAAK,EAAE,SAAS,EAAE,MAAM;IACxB,QAAQ,EAAE,QAAQ;IAClB,QAAQ;IACR,iBAAiB;IACjB,cAAc;IACd,eAAe;IACf,uBAAuB;IACvB,iBAAiB;IACjB,qBAAqB;CACxB,CAAC;AAEF;;GAEG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG,GAAG,CAAC;AAEnC;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAAG,0CAA0C,CAAC;AAC/E,MAAM,CAAC,MAAM,sBAAsB,GAAG,oCAAoC,CAAC;AAE3E;;;GAGG;AACH,MAAM,CAAC,MAAM,yCAAyC,GAAG,kDAAkD,CAAC;AAE5G;;GAEG;AACH,MAAM,CAAC,MAAM,gCAAgC,GAAG,IAAK,CAAC;AACtD;;GAEG;AACH,MAAM,CAAC,MAAM,oCAAoC,GAAG,IAAK,CAAC;AAC1D;;GAEG;AACH,MAAM,CAAC,MAAM,gCAAgC,GAAG,IAAK,CAAC"}
@@ -0,0 +1,166 @@
1
+ import { IbGibAddr } from '@ibgib/ts-gib';
2
+ import { IbGib_V1 } from '@ibgib/ts-gib/dist/V1/index.mjs';
3
+ import { IbGibSpaceAny } from '../../witness/space/space-base-v1.mjs';
4
+ export interface FileResult {
5
+ success?: boolean;
6
+ /**
7
+ * If errored, this will contain the errorMsg.
8
+ */
9
+ errorMsg?: string;
10
+ /**
11
+ * True if failed due to timing out.
12
+ */
13
+ timedOut?: boolean;
14
+ }
15
+ /**
16
+ * Options for retrieving data from the file system.
17
+ */
18
+ export interface GetIbGibOpts {
19
+ /**
20
+ * If getting ibGib object, this is its address.
21
+ */
22
+ addr?: IbGibAddr;
23
+ /**
24
+ * If getting multiple ibGibs, use this array of addrs.
25
+ */
26
+ addrs?: IbGibAddr[];
27
+ /**
28
+ * If truthy, will look in the meta subpath first, then the regular if not found.
29
+ */
30
+ isMeta?: boolean;
31
+ /**
32
+ * Are we looking for a DNA ibgib?
33
+ */
34
+ isDna?: boolean;
35
+ /**
36
+ * space from which to get the ibgib
37
+ *
38
+ * @default localUserSpace
39
+ */
40
+ space?: IbGibSpaceAny;
41
+ /**
42
+ * If supplied, first acquires the lock with this scope on the
43
+ * given `space` (which defaults to localUserSpace).
44
+ */
45
+ lockScope?: string;
46
+ /**
47
+ * Cancels if can't acquire lock after approximately this time.
48
+ */
49
+ lockTimeoutMs?: number;
50
+ /**
51
+ * If true, will not get from cache and will force retrieval from the real
52
+ * bucket. In Ionic space, this means will look in ionic storage proper.
53
+ */
54
+ force?: boolean;
55
+ }
56
+ /**
57
+ * Result for retrieving an ibGib from the file system.
58
+ */
59
+ export interface GetIbGibResult extends FileResult {
60
+ /**
61
+ * ibGibs if retrieving a "regular" ibGib.
62
+ *
63
+ * This is used when you're not getting a pic, e.g.
64
+ */
65
+ ibGibs?: IbGib_V1[];
66
+ /**
67
+ * This is used when you're getting a pic's binary content.
68
+ */
69
+ /**
70
+ * access to raw result ibgib that caller must cast to the correct shape.
71
+ */
72
+ rawResultIbGib?: IbGib_V1;
73
+ }
74
+ export interface PutIbGibOpts {
75
+ /**
76
+ * ibGib to put.
77
+ *
78
+ * If you only want to do just one, use this param. Otherwise, use the
79
+ * `ibGibs` array param.
80
+ */
81
+ ibGib?: IbGib_V1;
82
+ /**
83
+ * ibGibs to put in the space.
84
+ *
85
+ * If you want to put more than one ibGib, use this param. If you only
86
+ * want to put a single ibGib, you could also use the `ibGib` param.
87
+ */
88
+ ibGibs?: IbGib_V1[];
89
+ /**
90
+ * if true, will store this data in the bin folder with its hash.
91
+ */
92
+ /**
93
+ * If true, will store in a different folder.
94
+ */
95
+ isDna?: boolean;
96
+ /**
97
+ * extension to store the bindata with.
98
+ */
99
+ /**
100
+ * If true, will store with metas.
101
+ */
102
+ isMeta?: boolean;
103
+ /**
104
+ * If true, will replace an existing ibGib file
105
+ */
106
+ force?: boolean;
107
+ /**
108
+ * space into which we shall put the ibgib.
109
+ *
110
+ * @default localCurrentSpace
111
+ */
112
+ space?: IbGibSpaceAny;
113
+ }
114
+ /**
115
+ * Result for putting ibgib.
116
+ */
117
+ export interface PutIbGibResult extends FileResult {
118
+ binHash?: string;
119
+ }
120
+ export interface DeleteIbGibOpts extends GetIbGibOpts {
121
+ }
122
+ export interface DeleteIbGibResult extends FileResult {
123
+ }
124
+ /**
125
+ * Special ibgib types, used for metadata within a space.
126
+ *
127
+ * Unsure where to place this...
128
+ */
129
+ export type SpecialIbGibType = "tags" | "roots" | "latest" | "outerspaces" | "secrets" | "encryptions" | "autosyncs" | "robbots" | "apps" | "history";
130
+ /**
131
+ * Special ibgib types, used for metadata within a space.
132
+ *
133
+ * Unsure where to place this...
134
+ */
135
+ export declare const SpecialIbGibType: {
136
+ /** indexes all tag ibgibs within a space */
137
+ tags: SpecialIbGibType;
138
+ /** indexes all root ibgibs within a space */
139
+ roots: SpecialIbGibType;
140
+ /**
141
+ * Ephemeral index ibgib that maps a tjp address -> latest local address in
142
+ * a space.
143
+ */
144
+ latest: SpecialIbGibType;
145
+ /** indexes all outerspace ibgibs, including sync spaces, within a space */
146
+ outerspaces: SpecialIbGibType;
147
+ /** indexes all secret ibgibs within a space */
148
+ secrets: SpecialIbGibType;
149
+ /** indexes all encryption setting ibgibs within a space */
150
+ encryptions: SpecialIbGibType;
151
+ /** indexes all tjp addresses that automatically sync. */
152
+ autosyncs: SpecialIbGibType;
153
+ robbots: SpecialIbGibType;
154
+ apps: SpecialIbGibType;
155
+ /** timelines history */
156
+ history: SpecialIbGibType;
157
+ };
158
+ /**
159
+ * There has been a new ibGib that is the latest for a given tjp timeline.
160
+ */
161
+ export interface IbGibTimelineUpdateInfo {
162
+ tjpAddr?: IbGibAddr;
163
+ latestAddr: IbGibAddr;
164
+ latestIbGib?: IbGib_V1<any>;
165
+ }
166
+ //# sourceMappingURL=other-types.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"other-types.d.mts","sourceRoot":"","sources":["../../../src/common/other/other-types.mts"],"names":[],"mappings":"AAQA,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAC1C,OAAO,EAAE,QAAQ,EAAE,MAAM,iCAAiC,CAAC;AAC3D,OAAO,EAAE,aAAa,EAAE,MAAM,uCAAuC,CAAC;AAEtE,MAAM,WAAW,UAAU;IACvB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;OAEG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,gBAAgB,GACxB,MAAM,GAAG,OAAO,GAAG,QAAQ,GAAG,aAAa,GAAG,SAAS,GACvD,aAAa,GAAG,WAAW,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS,CAAC;AACjE;;;;GAIG;AACH,eAAO,MAAM,gBAAgB;IACzB,4CAA4C;;IAE5C,6CAA6C;;IAE7C;;;OAGG;;IAEH,2EAA2E;;IAE3E,+CAA+C;;IAE/C,2DAA2D;;IAE3D,yDAAyD;;;;IAIzD,wBAAwB;;CAE3B,CAAA;AAED;;GAEG;AACH,MAAM,WAAW,uBAAuB;IACpC,OAAO,CAAC,EAAE,SAAS,CAAC;IACpB,UAAU,EAAE,SAAS,CAAC;IACtB,WAAW,CAAC,EAAE,QAAQ,CAAC,GAAG,CAAC,CAAC;CAC/B"}
@@ -0,0 +1,30 @@
1
+ // #region from common/types/legacy.ts
2
+ /**
3
+ * Special ibgib types, used for metadata within a space.
4
+ *
5
+ * Unsure where to place this...
6
+ */
7
+ export const SpecialIbGibType = {
8
+ /** indexes all tag ibgibs within a space */
9
+ tags: "tags",
10
+ /** indexes all root ibgibs within a space */
11
+ roots: "roots",
12
+ /**
13
+ * Ephemeral index ibgib that maps a tjp address -> latest local address in
14
+ * a space.
15
+ */
16
+ latest: "latest",
17
+ /** indexes all outerspace ibgibs, including sync spaces, within a space */
18
+ outerspaces: "outerspaces",
19
+ /** indexes all secret ibgibs within a space */
20
+ secrets: "secrets",
21
+ /** indexes all encryption setting ibgibs within a space */
22
+ encryptions: "encryptions",
23
+ /** indexes all tjp addresses that automatically sync. */
24
+ autosyncs: "autosyncs",
25
+ robbots: "robbots",
26
+ apps: "apps",
27
+ /** timelines history */
28
+ history: "history",
29
+ };
30
+ //# sourceMappingURL=other-types.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"other-types.mjs","sourceRoot":"","sources":["../../../src/common/other/other-types.mts"],"names":[],"mappings":"AAAA,sCAAsC;AAqJtC;;;;GAIG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG;IAC5B,4CAA4C;IAC5C,IAAI,EAAE,MAA0B;IAChC,6CAA6C;IAC7C,KAAK,EAAE,OAA2B;IAClC;;;OAGG;IACH,MAAM,EAAE,QAA4B;IACpC,2EAA2E;IAC3E,WAAW,EAAE,aAAiC;IAC9C,+CAA+C;IAC/C,OAAO,EAAE,SAA6B;IACtC,2DAA2D;IAC3D,WAAW,EAAE,aAAiC;IAC9C,yDAAyD;IACzD,SAAS,EAAE,WAA+B;IAC1C,OAAO,EAAE,SAA6B;IACtC,IAAI,EAAE,MAA0B;IAChC,wBAAwB;IACxB,OAAO,EAAE,SAA6B;CACzC,CAAA"}
@@ -0,0 +1,2 @@
1
+ export declare const SVG_NAMESPACE = "http://www.w3.org/2000/svg";
2
+ //# sourceMappingURL=svg-constants.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"svg-constants.d.mts","sourceRoot":"","sources":["../../../src/common/other/svg-constants.mts"],"names":[],"mappings":"AAAA,eAAO,MAAM,aAAa,+BAA+B,CAAC"}
@@ -0,0 +1,2 @@
1
+ export const SVG_NAMESPACE = 'http://www.w3.org/2000/svg';
2
+ //# sourceMappingURL=svg-constants.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"svg-constants.mjs","sourceRoot":"","sources":["../../../src/common/other/svg-constants.mts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,aAAa,GAAG,4BAA4B,CAAC"}
@@ -0,0 +1,54 @@
1
+ export declare function ibSvg({ width, height, }: {
2
+ width: number;
3
+ height: number;
4
+ }): SVGElement;
5
+ export declare function ibGetDefs({ svg, }: {
6
+ svg: SVGElement;
7
+ }): SVGDefsElement | undefined;
8
+ export declare function ibGroup({ parent, x, y, width, height, style, fill, opacity, stroke, strokeWidth, }: {
9
+ /**
10
+ * If provided, will append to the svg
11
+ */
12
+ parent?: SVGElement;
13
+ x: number;
14
+ y: number;
15
+ width: number;
16
+ height: number;
17
+ style?: string;
18
+ fill?: string;
19
+ opacity?: number;
20
+ stroke?: string;
21
+ strokeWidth?: string;
22
+ }): SVGGElement;
23
+ export declare function ibCircle({ parent, id, cx, cy, r, style, fill, opacity, stroke, strokeWidth, picSrcFn, }: {
24
+ /**
25
+ * If provided, will append created element to this
26
+ */
27
+ parent?: SVGElement;
28
+ id?: string;
29
+ cx: number;
30
+ cy: number;
31
+ r: number;
32
+ style?: string;
33
+ fill?: string;
34
+ opacity?: number;
35
+ stroke?: string;
36
+ strokeWidth?: string;
37
+ picSrcFn?: () => string;
38
+ commentTextFn?: () => string;
39
+ }): SVGCircleElement;
40
+ export declare function ibLine({ parent, x1y1, x2y2, style, opacity, stroke, strokeWidth, }: {
41
+ /**
42
+ * If provided, will append created element to this
43
+ */
44
+ parent?: SVGElement;
45
+ x1y1: [number, number];
46
+ x2y2: [number, number];
47
+ style?: string;
48
+ opacity?: number;
49
+ stroke?: string;
50
+ strokeWidth?: string;
51
+ }): SVGLineElement;
52
+ export declare function ibAnimate({}: {}): SVGAnimateElement | undefined;
53
+ export declare function ibAnimateMotion({}: {}): SVGAnimateMotionElement | undefined;
54
+ //# sourceMappingURL=svg-helper.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"svg-helper.d.mts","sourceRoot":"","sources":["../../../src/common/other/svg-helper.mts"],"names":[],"mappings":"AAEA,wBAAgB,KAAK,CAAC,EAClB,KAAK,EAAE,MAAM,GAChB,EAAE;IACC,KAAK,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAC;CACjC,GAAG,UAAU,CAeb;AAED,wBAAgB,SAAS,CAAC,EACtB,GAAG,GACN,EAAE;IACC,GAAG,EAAE,UAAU,CAAC;CACnB,GAAG,cAAc,GAAG,SAAS,CAa7B;AAED,wBAAgB,OAAO,CAAC,EACpB,MAAM,EACN,CAAC,EAAE,CAAC,EACJ,KAAK,EAAE,MAAM,EACb,KAAK,EACL,IAAI,EACJ,OAAO,EACP,MAAM,EACN,WAAW,GACd,EAAE;IACC;;OAEG;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EAAE,MAAM,CAAC,CAAC;IACvB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,WAAW,CAAC,EAAE,MAAM,CAAC;CACxB,GAAG,cAAc,CAwBjB;AAED,wBAAgB,SAAS,CAAC,EAEzB,IAAA,GAAG,iBAAiB,GAAG,SAAS,CAEhC;AACD,wBAAgB,eAAe,CAAC,EAE/B,IAAA,GAAG,uBAAuB,GAAG,SAAS,CAEtC"}
@@ -0,0 +1,170 @@
1
+ import { SVG_NAMESPACE } from "./svg-constants.mjs";
2
+ export function ibSvg({ width, height, }) {
3
+ const lc = `[${ibSvg.name}]`;
4
+ try {
5
+ const svg = document.createElementNS(SVG_NAMESPACE, 'svg');
6
+ svg.setAttribute('width', `${width}`);
7
+ svg.setAttribute('height', `${height}`);
8
+ const defs = document.createElementNS(SVG_NAMESPACE, 'defs');
9
+ svg.append(defs);
10
+ return svg;
11
+ }
12
+ catch (error) {
13
+ console.error(`${lc} ${error.message}`);
14
+ throw error;
15
+ }
16
+ }
17
+ export function ibGetDefs({ svg, }) {
18
+ const lc = `[${ibGetDefs.name}]`;
19
+ try {
20
+ let defs;
21
+ svg.childNodes.forEach(x => {
22
+ if (x.nodeName === 'defs') {
23
+ defs = x;
24
+ }
25
+ });
26
+ return defs ?? undefined;
27
+ }
28
+ catch (error) {
29
+ debugger;
30
+ console.error(`${lc} ${error.message}`);
31
+ throw error;
32
+ }
33
+ }
34
+ export function ibGroup({ parent, x, y, width, height, style, fill, opacity, stroke, strokeWidth, }) {
35
+ const lc = `[${ibGroup.name}]`;
36
+ try {
37
+ stroke = stroke || 'black';
38
+ strokeWidth = strokeWidth || '1px';
39
+ if (!style) {
40
+ style = `stroke:${stroke};stroke-width:${strokeWidth}`;
41
+ if (fill) {
42
+ style += `;fill:${fill}`;
43
+ }
44
+ }
45
+ const group = document.createElementNS(SVG_NAMESPACE, 'g');
46
+ group.setAttribute('x', `${x}`);
47
+ group.setAttribute('y', `${y}`);
48
+ group.setAttribute('transform', `translate(${x},${y})`);
49
+ group.setAttribute('width', `${width}`);
50
+ group.setAttribute('height', `${height}`);
51
+ if (opacity || opacity == 0) {
52
+ group.setAttribute('opacity', opacity.toString());
53
+ }
54
+ group.setAttribute('style', style);
55
+ if (parent) {
56
+ parent.appendChild(group);
57
+ }
58
+ return group;
59
+ }
60
+ catch (error) {
61
+ console.error(`${lc} ${error.message}`);
62
+ throw error;
63
+ }
64
+ }
65
+ export function ibCircle({ parent, id, cx, cy, r, style, fill, opacity, stroke, strokeWidth, picSrcFn, }) {
66
+ const lc = `[${ibCircle.name}]`;
67
+ try {
68
+ stroke = stroke || 'black';
69
+ strokeWidth = strokeWidth || '1px';
70
+ if (!style) {
71
+ style = `stroke:${stroke};stroke-width:${strokeWidth}`;
72
+ }
73
+ const circle = document.createElementNS(SVG_NAMESPACE, 'circle');
74
+ circle.setAttribute('cx', `${cx}`);
75
+ circle.setAttribute('cy', `${cy}`);
76
+ circle.setAttribute('r', `${r}`);
77
+ if (fill) {
78
+ circle.setAttribute('fill', fill);
79
+ }
80
+ if (opacity || opacity == 0) {
81
+ circle.setAttribute('opacity', opacity.toString());
82
+ }
83
+ circle.setAttribute('style', style);
84
+ if (picSrcFn) {
85
+ const widthHeight = `${2 * r}`;
86
+ let defs;
87
+ if (!parent) {
88
+ throw new Error(`(UNEXPECTED) parent falsy but picSrcFn truthy (E: cb15575c925943fec85ac49d7cb70d23)`);
89
+ }
90
+ parent.childNodes?.forEach((child) => {
91
+ if (child.nodeName === 'defs') {
92
+ defs = child;
93
+ }
94
+ });
95
+ if (!defs) {
96
+ defs = document.createElementNS(SVG_NAMESPACE, 'defs');
97
+ parent.appendChild(defs);
98
+ }
99
+ let pattern = document.createElementNS(SVG_NAMESPACE, 'pattern');
100
+ if (!id) {
101
+ throw new Error(`id required for pics (E: a179adeb6d2998af0ebea19b7a81b722)`);
102
+ }
103
+ pattern.setAttribute('id', `id_${id}`);
104
+ pattern.setAttribute('patternUnits', 'userSpaceOnUse');
105
+ pattern.setAttribute('width', widthHeight);
106
+ pattern.setAttribute('height', widthHeight);
107
+ pattern.setAttribute('x', `-${r}`);
108
+ pattern.setAttribute('y', `-${r}`);
109
+ // pattern.setAttribute('patternUnits', 'objectBoundingBox');
110
+ // pattern.setAttribute('width', '1');
111
+ // pattern.setAttribute('height', '1');
112
+ defs.appendChild(pattern);
113
+ let image = document.createElementNS(SVG_NAMESPACE, 'image');
114
+ let src = picSrcFn();
115
+ image.setAttribute('href', src);
116
+ image.setAttribute('x', '0');
117
+ image.setAttribute('y', '0');
118
+ image.setAttribute('width', widthHeight);
119
+ image.setAttribute('height', widthHeight);
120
+ pattern.appendChild(image);
121
+ // fill="url(#image)"
122
+ circle.setAttribute('fill', `url(#id_${id})`);
123
+ // circle.appendChild(image);
124
+ // https://blog.idrsolutions.com/how-to-embed-base64-images-in-svg/
125
+ }
126
+ if (parent) {
127
+ parent.appendChild(circle);
128
+ }
129
+ return circle;
130
+ }
131
+ catch (error) {
132
+ debugger;
133
+ console.error(`${lc} ${error.message}`);
134
+ throw error;
135
+ }
136
+ }
137
+ export function ibLine({ parent, x1y1, x2y2, style, opacity, stroke, strokeWidth, }) {
138
+ const lc = `[${ibLine.name}]`;
139
+ try {
140
+ stroke = stroke || 'black';
141
+ strokeWidth = strokeWidth || '1px';
142
+ if (!style) {
143
+ style = `stroke:${stroke};stroke-width:${strokeWidth}`;
144
+ }
145
+ const line = document.createElementNS(SVG_NAMESPACE, 'line');
146
+ line.setAttribute('x1', `${x1y1[0]}`);
147
+ line.setAttribute('y1', `${x1y1[1]}`);
148
+ line.setAttribute('x2', `${x2y2[0]}`);
149
+ line.setAttribute('y2', `${x2y2[1]}`);
150
+ if (opacity || opacity == 0) {
151
+ line.setAttribute('opacity', opacity.toString());
152
+ }
153
+ line.setAttribute('style', style);
154
+ if (parent) {
155
+ parent.appendChild(line);
156
+ }
157
+ return line;
158
+ }
159
+ catch (error) {
160
+ console.error(`${lc} ${error.message}`);
161
+ throw error;
162
+ }
163
+ }
164
+ export function ibAnimate({}) {
165
+ return undefined;
166
+ }
167
+ export function ibAnimateMotion({}) {
168
+ return undefined;
169
+ }
170
+ //# sourceMappingURL=svg-helper.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"svg-helper.mjs","sourceRoot":"","sources":["../../../src/common/other/svg-helper.mts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAEpD,MAAM,UAAU,KAAK,CAAC,EAClB,KAAK,EAAE,MAAM,GAGhB;IACG,MAAM,EAAE,GAAG,IAAI,KAAK,CAAC,IAAI,GAAG,CAAC;IAC7B,IAAI;QACA,MAAM,GAAG,GAAG,QAAQ,CAAC,eAAe,CAAC,aAAa,EAAE,KAAK,CAAC,CAAC;QAC3D,GAAG,CAAC,YAAY,CAAC,OAAO,EAAE,GAAG,KAAK,EAAE,CAAC,CAAC;QACtC,GAAG,CAAC,YAAY,CAAC,QAAQ,EAAE,GAAG,MAAM,EAAE,CAAC,CAAC;QAExC,MAAM,IAAI,GAAmB,QAAQ,CAAC,eAAe,CAAC,aAAa,EAAE,MAAM,CAAC,CAAC;QAC7E,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;QAEjB,OAAO,GAAG,CAAC;KACd;IAAC,OAAO,KAAK,EAAE;QACZ,OAAO,CAAC,KAAK,CAAC,GAAG,EAAE,IAAI,KAAK,CAAC,OAAO,EAAE,CAAC,CAAC;QACxC,MAAM,KAAK,CAAC;KACf;AACL,CAAC;AAED,MAAM,UAAU,SAAS,CAAC,EACtB,GAAG,GAGN;IACG,MAAM,EAAE,GAAG,IAAI,SAAS,CAAC,IAAI,GAAG,CAAC;IACjC,IAAI;QACA,IAAI,IAAgC,CAAC;QACrC,GAAG,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE;YACvB,IAAI,CAAC,CAAC,QAAQ,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**
2
+ * default if for some reason there is no extension in data.ext
3
+ *
4
+ * ## driving itnent
5
+ *
6
+ * implementing download pic
7
+ */
8
+ export declare const DEFAULT_PIC_FILE_EXTENSION = "png";
9
+ /**
10
+ * todo: resolve pic/bin separation. BINARY_REL8N_NAME
11
+ */
12
+ export declare const BINARY_REL8N_NAME = "bin";
13
+ //# sourceMappingURL=pic-constants.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pic-constants.d.mts","sourceRoot":"","sources":["../../../src/common/pic/pic-constants.mts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,eAAO,MAAM,0BAA0B,QAAQ,CAAC;AAEhD;;GAEG;AACH,eAAO,MAAM,iBAAiB,QAAQ,CAAC"}
@@ -0,0 +1,13 @@
1
+ /**
2
+ * default if for some reason there is no extension in data.ext
3
+ *
4
+ * ## driving itnent
5
+ *
6
+ * implementing download pic
7
+ */
8
+ export const DEFAULT_PIC_FILE_EXTENSION = 'png';
9
+ /**
10
+ * todo: resolve pic/bin separation. BINARY_REL8N_NAME
11
+ */
12
+ export const BINARY_REL8N_NAME = 'bin';
13
+ //# sourceMappingURL=pic-constants.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pic-constants.mjs","sourceRoot":"","sources":["../../../src/common/pic/pic-constants.mts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,0BAA0B,GAAG,KAAK,CAAC;AAEhD;;GAEG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAG,KAAK,CAAC"}