@supersoniks/concorde 5.1.0 → 5.1.1

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 (312) hide show
  1. package/.claude/launch.json +15 -0
  2. package/.claude/vite.http.config.mjs +7 -0
  3. package/.taste-skill/after/desktop-fold.jpg +0 -0
  4. package/.taste-skill/after/desktop-page-01.jpg +0 -0
  5. package/.taste-skill/after/desktop-page-02.jpg +0 -0
  6. package/.taste-skill/after/desktop-page-03.jpg +0 -0
  7. package/.taste-skill/after/mobile-fold.jpg +0 -0
  8. package/.taste-skill/after/mobile-page-01.jpg +0 -0
  9. package/.taste-skill/after/report.json +4103 -0
  10. package/.taste-skill/after/tablet-fold.jpg +0 -0
  11. package/.taste-skill/after/tablet-page-01.jpg +0 -0
  12. package/.taste-skill/after/tablet-page-02.jpg +0 -0
  13. package/.taste-skill/before/desktop-fold.jpg +0 -0
  14. package/.taste-skill/before/desktop-page-01.jpg +0 -0
  15. package/.taste-skill/before/desktop-page-02.jpg +0 -0
  16. package/.taste-skill/before/mobile-fold.jpg +0 -0
  17. package/.taste-skill/before/mobile-page-01.jpg +0 -0
  18. package/.taste-skill/before/report.json +2556 -0
  19. package/.taste-skill/before/tablet-fold.jpg +0 -0
  20. package/.taste-skill/before/tablet-page-01.jpg +0 -0
  21. package/.taste-skill/direction.json +510 -0
  22. package/.taste-skill/notes.md +84 -0
  23. package/.taste-skill/prod/desktop-fold.jpg +0 -0
  24. package/.taste-skill/prod/desktop-page-01.jpg +0 -0
  25. package/.taste-skill/prod/desktop-page-02.jpg +0 -0
  26. package/.taste-skill/prod/desktop-page-03.jpg +0 -0
  27. package/.taste-skill/prod/mobile-fold.jpg +0 -0
  28. package/.taste-skill/prod/mobile-page-01.jpg +0 -0
  29. package/.taste-skill/prod/mobile-page-02.jpg +0 -0
  30. package/.taste-skill/prod/report.json +1973 -0
  31. package/.taste-skill/prod/tablet-fold.jpg +0 -0
  32. package/.taste-skill/prod/tablet-page-01.jpg +0 -0
  33. package/.taste-skill/prod/tablet-page-02.jpg +0 -0
  34. package/.tmp-cem/custom-elements.json +1939 -1939
  35. package/AUDIT.md +228 -0
  36. package/PLAN-AMELIORATION.md +220 -0
  37. package/build-infos.json +1 -1
  38. package/concorde-core.bundle.js +16 -16
  39. package/concorde-core.es.js +235 -233
  40. package/dist/concorde-core.bundle.js +16 -16
  41. package/dist/concorde-core.es.js +235 -233
  42. package/dist/img/archive/concorde-001-2cv.webp +0 -0
  43. package/dist/img/archive/concorde-red-arrows-2002-poster.jpg +0 -0
  44. package/dist/img/archive/concorde-red-arrows-2002.webm +0 -0
  45. package/dist/img/archive/credits.json +28 -0
  46. package/docs/assets/index-Bb-_LRyY.js +12280 -0
  47. package/docs/assets/index-CD4WyL6o.css +1 -0
  48. package/docs/docs-mock-api-sw.js +2 -0
  49. package/docs/docs-mock-api-sw.js.map +2 -2
  50. package/docs/index.html +9 -7
  51. package/index.html +27 -63
  52. package/package.json +11 -4
  53. package/public/img/archive/concorde-001-2cv.webp +0 -0
  54. package/public/img/archive/concorde-red-arrows-2002-poster.jpg +0 -0
  55. package/public/img/archive/concorde-red-arrows-2002.webm +0 -0
  56. package/public/img/archive/credits.json +28 -0
  57. package/scripts/post-build-docs.js +0 -0
  58. package/scripts/post-build.mjs +0 -0
  59. package/src/core/components/functional/fetch/fetch.md +2 -2
  60. package/src/core/components/functional/if/if.md +0 -0
  61. package/src/core/components/functional/if/if.ts +0 -0
  62. package/src/core/components/functional/list/list.demo.ts +0 -0
  63. package/src/core/components/functional/list/list.md +0 -0
  64. package/src/core/components/functional/router/router.md +0 -0
  65. package/src/core/components/functional/router/router.ts +0 -0
  66. package/src/core/components/functional/sdui/SDUIDescriptorTransformer.ts +0 -0
  67. package/src/core/components/functional/sdui/component-catalog.gaps.json +1 -1
  68. package/src/core/components/functional/sdui/component-catalog.json +1 -1
  69. package/src/core/components/functional/sdui/types.ts +0 -0
  70. package/src/core/components/functional/states/states.md +0 -0
  71. package/src/core/components/functional/submit/submit.md +0 -0
  72. package/src/core/components/functional/subscriber/subscriber.ts +0 -0
  73. package/src/core/components/functional/value/value.ts +0 -0
  74. package/src/core/components/ui/_css/size.ts +0 -0
  75. package/src/core/components/ui/captcha/altchaStyles.ts +0 -0
  76. package/src/core/components/ui/form/radio/radio.md +0 -0
  77. package/src/core/components/ui/form/select/select.md +0 -0
  78. package/src/core/components/ui/form/switch/switch.md +0 -0
  79. package/src/core/components/ui/modal/modal.ts +14 -11
  80. package/src/core/mixins/Subscriber.ts +0 -0
  81. package/src/core/utils/DataBindObserver.ts +0 -0
  82. package/src/core/utils/Objects.ts +0 -0
  83. package/src/core/utils/route.ts +0 -0
  84. package/src/docs/_core-concept/subscriber.md +0 -0
  85. package/src/docs/_getting-started/components.md +5 -0
  86. package/src/docs/_getting-started/my-first-subscriber.md +0 -0
  87. package/src/docs/_getting-started/pubsub.md +0 -0
  88. package/src/docs/_getting-started/theming.md +2 -2
  89. package/src/docs/code.ts +88 -75
  90. package/src/docs/components/docs-demo-sources.ts +16 -8
  91. package/src/docs/components/docs-lit-demo.ts +19 -37
  92. package/src/docs/docs.ts +5 -0
  93. package/src/docs/example/docs-boarding-pass-demo.ts +134 -0
  94. package/src/docs/example/docs-provider-keys.ts +12 -0
  95. package/src/docs/example/users.ts +0 -0
  96. package/src/docs/header/header.ts +233 -69
  97. package/src/docs/home/catalog.ts +44 -0
  98. package/src/docs/home/home.ts +513 -0
  99. package/src/docs/home/mach-stage.ts +389 -0
  100. package/src/docs/layout.ts +3 -1
  101. package/src/docs/navigation/components-index.ts +56 -0
  102. package/src/docs/navigation/navigation.ts +240 -232
  103. package/src/docs/navigation/pager.ts +67 -0
  104. package/src/docs/navigation/toc.ts +98 -0
  105. package/src/docs/search/docs-search.json +330 -20
  106. package/src/docs/search/markdown-renderer.ts +11 -3
  107. package/src/docs/search/page.ts +0 -0
  108. package/src/docs/shiki/index.ts +109 -0
  109. package/src/docs/tailwind/css/base/scrollbar.css +22 -0
  110. package/src/docs/tailwind/css/base/theme.css +96 -0
  111. package/src/docs/tailwind/css/base/typography.css +4 -0
  112. package/src/docs/tailwind/css/docs/boarding-pass.css +65 -0
  113. package/src/docs/tailwind/css/docs/content.css +32 -0
  114. package/src/docs/tailwind/css/docs/page.css +10 -0
  115. package/src/docs/tailwind/css/docs.css +9 -0
  116. package/src/docs/tailwind/css/home/hero.css +210 -0
  117. package/src/docs/tailwind/css/home/motion.css +84 -0
  118. package/src/docs/tailwind/css/home/sections.css +416 -0
  119. package/src/docs/tailwind/css/tailwind.css +7 -185
  120. package/src/tsconfig.json +23 -2
  121. package/src/tsconfig.tsbuildinfo +1 -1
  122. package/tailwind.config.js +8 -4
  123. package/.github/workflows/ci.yml +0 -21
  124. package/.github-export-ignore +0 -30
  125. package/CONTRIBUTING.md +0 -59
  126. package/DEV.md +0 -54
  127. package/LICENSE +0 -21
  128. package/OPEN_SOURCE_CHECKPOINT.md +0 -133
  129. package/concorde-3d.bundle.js +0 -3960
  130. package/concorde-3d.es.js +0 -33433
  131. package/concorde-hugging-face-infer.bundle.js +0 -32
  132. package/concorde-hugging-face-infer.es.js +0 -2952
  133. package/concorde-interactive.bundle.js +0 -1157
  134. package/concorde-interactive.es.js +0 -10734
  135. package/concorde-shader.bundle.js +0 -116
  136. package/concorde-shader.es.js +0 -8353
  137. package/concorde-webgpu.bundle.js +0 -307
  138. package/concorde-webgpu.es.js +0 -8627
  139. package/docs/assets/index-D8MVWqY6.js +0 -12251
  140. package/docs/assets/index-DiD0qYvE.css +0 -1
  141. package/docs/crawl/core/components/functional/date/date.html +0 -190
  142. package/docs/crawl/core/components/functional/fetch/fetch.html +0 -109
  143. package/docs/crawl/core/components/functional/if/if.html +0 -27
  144. package/docs/crawl/core/components/functional/jsonata/jsonata.html +0 -79
  145. package/docs/crawl/core/components/functional/list/list.html +0 -70
  146. package/docs/crawl/core/components/functional/mix/mix.html +0 -45
  147. package/docs/crawl/core/components/functional/queue/queue.html +0 -96
  148. package/docs/crawl/core/components/functional/router/router.html +0 -106
  149. package/docs/crawl/core/components/functional/sdui/sdui.html +0 -269
  150. package/docs/crawl/core/components/functional/states/states.html +0 -66
  151. package/docs/crawl/core/components/functional/submit/submit.html +0 -160
  152. package/docs/crawl/core/components/functional/subscriber/subscriber.html +0 -67
  153. package/docs/crawl/core/components/functional/value/value.html +0 -51
  154. package/docs/crawl/core/components/ui/alert/alert.html +0 -110
  155. package/docs/crawl/core/components/ui/alert-messages/alert-messages.html +0 -23
  156. package/docs/crawl/core/components/ui/badge/badge.html +0 -119
  157. package/docs/crawl/core/components/ui/button/button.html +0 -149
  158. package/docs/crawl/core/components/ui/captcha/captcha.html +0 -30
  159. package/docs/crawl/core/components/ui/card/card.html +0 -99
  160. package/docs/crawl/core/components/ui/divider/divider.html +0 -58
  161. package/docs/crawl/core/components/ui/form/checkbox/checkbox.html +0 -73
  162. package/docs/crawl/core/components/ui/form/fieldset/fieldset.html +0 -135
  163. package/docs/crawl/core/components/ui/form/form-actions/form-actions.html +0 -79
  164. package/docs/crawl/core/components/ui/form/form-layout/form-layout.html +0 -62
  165. package/docs/crawl/core/components/ui/form/input/input.html +0 -109
  166. package/docs/crawl/core/components/ui/form/input-autocomplete/input-autocomplete.html +0 -38
  167. package/docs/crawl/core/components/ui/form/radio/radio.html +0 -56
  168. package/docs/crawl/core/components/ui/form/select/select.html +0 -73
  169. package/docs/crawl/core/components/ui/form/switch/switch.html +0 -56
  170. package/docs/crawl/core/components/ui/form/textarea/textarea.html +0 -59
  171. package/docs/crawl/core/components/ui/group/group.html +0 -82
  172. package/docs/crawl/core/components/ui/icon/icon.html +0 -133
  173. package/docs/crawl/core/components/ui/image/image.html +0 -110
  174. package/docs/crawl/core/components/ui/link/link.html +0 -42
  175. package/docs/crawl/core/components/ui/loader/loader.html +0 -50
  176. package/docs/crawl/core/components/ui/menu/menu.html +0 -322
  177. package/docs/crawl/core/components/ui/modal/modal.html +0 -117
  178. package/docs/crawl/core/components/ui/pop/pop.html +0 -102
  179. package/docs/crawl/core/components/ui/progress/progress.html +0 -58
  180. package/docs/crawl/core/components/ui/table/table.html +0 -413
  181. package/docs/crawl/core/components/ui/toast/toast.html +0 -122
  182. package/docs/crawl/core/components/ui/tooltip/tooltip.html +0 -79
  183. package/docs/crawl/docs/_core-concept/dataFlow.html +0 -177
  184. package/docs/crawl/docs/_core-concept/overview.html +0 -66
  185. package/docs/crawl/docs/_core-concept/subscriber.html +0 -75
  186. package/docs/crawl/docs/_decorators/ancestor-attribute.html +0 -116
  187. package/docs/crawl/docs/_decorators/auto-subscribe.html +0 -202
  188. package/docs/crawl/docs/_decorators/bind.html +0 -141
  189. package/docs/crawl/docs/_decorators/get.html +0 -149
  190. package/docs/crawl/docs/_decorators/handle.html +0 -165
  191. package/docs/crawl/docs/_decorators/on-assign.html +0 -355
  192. package/docs/crawl/docs/_decorators/patch.html +0 -78
  193. package/docs/crawl/docs/_decorators/post.html +0 -139
  194. package/docs/crawl/docs/_decorators/publish.html +0 -61
  195. package/docs/crawl/docs/_decorators/put.html +0 -78
  196. package/docs/crawl/docs/_decorators/subscribe.html +0 -109
  197. package/docs/crawl/docs/_decorators/wait-for-ancestors.html +0 -137
  198. package/docs/crawl/docs/_directives/sub.html +0 -93
  199. package/docs/crawl/docs/_getting-started/ai-agents.html +0 -173
  200. package/docs/crawl/docs/_getting-started/concorde-manual-install.html +0 -100
  201. package/docs/crawl/docs/_getting-started/concorde-outside.html +0 -58
  202. package/docs/crawl/docs/_getting-started/create-a-component.html +0 -111
  203. package/docs/crawl/docs/_getting-started/my-first-component.html +0 -189
  204. package/docs/crawl/docs/_getting-started/my-first-subscriber.html +0 -110
  205. package/docs/crawl/docs/_getting-started/pubsub.html +0 -62
  206. package/docs/crawl/docs/_getting-started/start.html +0 -76
  207. package/docs/crawl/docs/_getting-started/theming.html +0 -85
  208. package/docs/crawl/docs/_misc/api-configuration.html +0 -149
  209. package/docs/crawl/docs/_misc/dataProviderKey.html +0 -135
  210. package/docs/crawl/docs/_misc/docs-mock-api.html +0 -158
  211. package/docs/crawl/docs/_misc/dynamic-path.html +0 -180
  212. package/docs/crawl/docs/_misc/endpoint.html +0 -50
  213. package/docs/crawl/docs/_misc/formelement-subscriber-removal.html +0 -138
  214. package/docs/crawl/docs/_misc/html-integration.html +0 -48
  215. package/docs/crawl/hubs/decorators.html +0 -547
  216. package/docs/crawl/hubs/form-components.html +0 -359
  217. package/docs/crawl/hubs/remote-data.html +0 -452
  218. package/docs/crawl/index.html +0 -101
  219. package/docs/llms-full.txt +0 -5761
  220. package/docs/llms.txt +0 -104
  221. package/docs/sitemap.xml +0 -237
  222. package/docs/src/core/components/functional/date/date.md +0 -290
  223. package/docs/src/core/components/functional/fetch/fetch.md +0 -125
  224. package/docs/src/core/components/functional/if/if.md +0 -9
  225. package/docs/src/core/components/functional/jsonata/jsonata.md +0 -56
  226. package/docs/src/core/components/functional/list/list.md +0 -65
  227. package/docs/src/core/components/functional/mix/mix.md +0 -41
  228. package/docs/src/core/components/functional/queue/queue.md +0 -72
  229. package/docs/src/core/components/functional/router/router.md +0 -94
  230. package/docs/src/core/components/functional/sdui/default-library.json +0 -108
  231. package/docs/src/core/components/functional/sdui/example.json +0 -99
  232. package/docs/src/core/components/functional/sdui/sdui.md +0 -356
  233. package/docs/src/core/components/functional/states/states.md +0 -87
  234. package/docs/src/core/components/functional/submit/submit.md +0 -114
  235. package/docs/src/core/components/functional/subscriber/subscriber.md +0 -91
  236. package/docs/src/core/components/functional/value/value.md +0 -35
  237. package/docs/src/core/components/ui/alert/alert.md +0 -121
  238. package/docs/src/core/components/ui/alert-messages/alert-messages.md +0 -0
  239. package/docs/src/core/components/ui/badge/badge.md +0 -127
  240. package/docs/src/core/components/ui/button/button.md +0 -182
  241. package/docs/src/core/components/ui/captcha/captcha.md +0 -12
  242. package/docs/src/core/components/ui/card/card.md +0 -97
  243. package/docs/src/core/components/ui/divider/divider.md +0 -35
  244. package/docs/src/core/components/ui/form/checkbox/checkbox.md +0 -77
  245. package/docs/src/core/components/ui/form/fieldset/fieldset.md +0 -129
  246. package/docs/src/core/components/ui/form/form-actions/form-actions.md +0 -77
  247. package/docs/src/core/components/ui/form/form-layout/form-layout.md +0 -44
  248. package/docs/src/core/components/ui/form/input/input.md +0 -142
  249. package/docs/src/core/components/ui/form/input-autocomplete/input-autocomplete.md +0 -29
  250. package/docs/src/core/components/ui/form/radio/radio.md +0 -57
  251. package/docs/src/core/components/ui/form/select/select.md +0 -71
  252. package/docs/src/core/components/ui/form/switch/switch.md +0 -57
  253. package/docs/src/core/components/ui/form/textarea/textarea.md +0 -65
  254. package/docs/src/core/components/ui/group/group.md +0 -75
  255. package/docs/src/core/components/ui/icon/icon.md +0 -125
  256. package/docs/src/core/components/ui/icon/icons.json +0 -1
  257. package/docs/src/core/components/ui/image/image.md +0 -107
  258. package/docs/src/core/components/ui/link/link.md +0 -43
  259. package/docs/src/core/components/ui/loader/loader.md +0 -55
  260. package/docs/src/core/components/ui/menu/menu.md +0 -329
  261. package/docs/src/core/components/ui/modal/modal.md +0 -119
  262. package/docs/src/core/components/ui/pop/pop.md +0 -96
  263. package/docs/src/core/components/ui/progress/progress.md +0 -63
  264. package/docs/src/core/components/ui/table/table.md +0 -455
  265. package/docs/src/core/components/ui/toast/toast.md +0 -166
  266. package/docs/src/core/components/ui/tooltip/tooltip.md +0 -82
  267. package/docs/src/docs/_core-concept/dataFlow.md +0 -88
  268. package/docs/src/docs/_core-concept/overview.md +0 -57
  269. package/docs/src/docs/_core-concept/subscriber.md +0 -75
  270. package/docs/src/docs/_decorators/ancestor-attribute.md +0 -127
  271. package/docs/src/docs/_decorators/auto-subscribe.md +0 -202
  272. package/docs/src/docs/_decorators/bind.md +0 -167
  273. package/docs/src/docs/_decorators/get.md +0 -162
  274. package/docs/src/docs/_decorators/handle.md +0 -175
  275. package/docs/src/docs/_decorators/on-assign.md +0 -390
  276. package/docs/src/docs/_decorators/patch.md +0 -70
  277. package/docs/src/docs/_decorators/post.md +0 -146
  278. package/docs/src/docs/_decorators/publish.md +0 -55
  279. package/docs/src/docs/_decorators/put.md +0 -70
  280. package/docs/src/docs/_decorators/subscribe.md +0 -100
  281. package/docs/src/docs/_decorators/wait-for-ancestors.md +0 -163
  282. package/docs/src/docs/_directives/sub.md +0 -91
  283. package/docs/src/docs/_getting-started/ai-agents.md +0 -76
  284. package/docs/src/docs/_getting-started/concorde-manual-install.md +0 -133
  285. package/docs/src/docs/_getting-started/concorde-outside.md +0 -33
  286. package/docs/src/docs/_getting-started/create-a-component.md +0 -139
  287. package/docs/src/docs/_getting-started/my-first-component.md +0 -236
  288. package/docs/src/docs/_getting-started/my-first-subscriber.md +0 -120
  289. package/docs/src/docs/_getting-started/pubsub.md +0 -37
  290. package/docs/src/docs/_getting-started/start.md +0 -47
  291. package/docs/src/docs/_getting-started/theming.md +0 -91
  292. package/docs/src/docs/_misc/api-configuration.md +0 -81
  293. package/docs/src/docs/_misc/dataProviderKey.md +0 -168
  294. package/docs/src/docs/_misc/docs-mock-api.md +0 -63
  295. package/docs/src/docs/_misc/dynamic-path.md +0 -71
  296. package/docs/src/docs/_misc/endpoint.md +0 -45
  297. package/docs/src/docs/_misc/formelement-subscriber-removal.md +0 -115
  298. package/docs/src/docs/_misc/html-integration.md +0 -15
  299. package/docs/src/docs/search/docs-search.json +0 -9507
  300. package/docs/src/tag-list.json +0 -1
  301. package/docs/src/tsconfig-model.json +0 -23
  302. package/docs/src/tsconfig.declarations.json +0 -22
  303. package/docs/src/tsconfig.emit.json +0 -23
  304. package/docs/src/tsconfig.json +0 -1182
  305. package/gitlab/job_github_mirror.sh +0 -39
  306. package/scripts/github-export.mjs +0 -150
  307. package/src/css.d.ts +0 -19
  308. package/src/docs/prism/index.ts +0 -6
  309. package/src/docs/prism/prism.css +0 -158
  310. package/src/docs/prism/prism.js +0 -1022
  311. package/src/tsconfig.declarations.json +0 -22
  312. package/src/tsconfig.emit.json +0 -23
@@ -1,39 +0,0 @@
1
- #!/usr/bin/env bash
2
- # Pousse un export filtré (lib publique) vers GitHub.
3
- # Remplace le push mirror « tout le dépôt » : pas de doc, pas de captcha, pas de gitlab/.
4
- #
5
- # Variables CI requises :
6
- # GITHUB_REPO_URL — ex. https://github.com/supersoniks/concorde.git
7
- # GITHUB_TOKEN — PAT avec scope repo (masqué)
8
- #
9
- # Usage manuel (hors CI) :
10
- # GITHUB_REPO_URL=https://github.com/supersoniks/concorde.git \
11
- # GITHUB_TOKEN=ghp_… \
12
- # bash gitlab/job_github_mirror.sh
13
- #
14
- set -euo pipefail
15
-
16
- EXPORT_DIR="${CI_PROJECT_DIR:-$(cd "$(dirname "$0")/.." && pwd)}/.github-export"
17
- BRANCH="${GITHUB_BRANCH:-master}"
18
-
19
- if [[ -z "${GITHUB_REPO_URL:-}" || -z "${GITHUB_TOKEN:-}" ]]; then
20
- echo "❌ GITHUB_REPO_URL et GITHUB_TOKEN sont requis."
21
- exit 1
22
- fi
23
-
24
- echo "=== Export filtré ==="
25
- node "${CI_PROJECT_DIR:-.}/scripts/github-export.mjs" "$EXPORT_DIR"
26
-
27
- echo "=== Push vers GitHub ($BRANCH) ==="
28
- cd "$EXPORT_DIR"
29
- git init -q
30
- git config user.email "ci@supersoniks.org"
31
- git config user.name "GitLab CI"
32
- git add -A
33
- git commit -q -m "sync: export lib depuis GitLab ${CI_COMMIT_SHORT_SHA:-local}"
34
-
35
- PUSH_URL="${GITHUB_REPO_URL/https:\/\//https://${GITHUB_TOKEN}@}"
36
- git branch -M "$BRANCH"
37
- git push -f "$PUSH_URL" "$BRANCH"
38
-
39
- echo "=== Miroir GitHub à jour ==="
@@ -1,150 +0,0 @@
1
- #!/usr/bin/env node
2
- /**
3
- * Prépare une arborescence « lib publique » pour GitHub :
4
- * - sans site doc (src/docs, index.html, …)
5
- * - sans sonic-captcha (altcha.supersoniks.org)
6
- * - sans scripts / jobs GitLab internes
7
- *
8
- * Usage :
9
- * node scripts/github-export.mjs [répertoire_cible]
10
- *
11
- * Par défaut : ../concorde-github-export
12
- */
13
- import fs from "fs";
14
- import path from "path";
15
- import { fileURLToPath } from "url";
16
-
17
- const __dirname = path.dirname(fileURLToPath(import.meta.url));
18
- const ROOT = path.resolve(__dirname, "..");
19
- const IGNORE_FILE = path.join(ROOT, ".github-export-ignore");
20
- const DEFAULT_OUT = path.resolve(ROOT, "../concorde-github-export");
21
-
22
- const EXPORT_FILTER_KEY =
23
- /(?:^|\/)(?:docs|mock-api|undefined)(?:\/|$)|captcha|\.demo\.|\.stories\.|TestUtils|\/prism\/|\/search\/|\/tailwind\/|\/header\/|\/navigation\/|\/layout\.ts$|\/code\.ts$|^code$|^docs$|^layout$/;
24
-
25
- function readIgnorePatterns() {
26
- if (!fs.existsSync(IGNORE_FILE)) return [];
27
- return fs
28
- .readFileSync(IGNORE_FILE, "utf8")
29
- .split("\n")
30
- .map((l) => l.trim())
31
- .filter((l) => l && !l.startsWith("#"));
32
- }
33
-
34
- function globToRegExp(pattern) {
35
- const escaped = pattern
36
- .replace(/[.+^${}()|[\]\\]/g, "\\$&")
37
- .replace(/\*\*/g, "{{GLOBSTAR}}")
38
- .replace(/\*/g, "[^/]*")
39
- .replace(/\{\{GLOBSTAR\}\}/g, ".*");
40
- return new RegExp(`^${escaped}$`);
41
- }
42
-
43
- function shouldExclude(relativePath, patterns) {
44
- const normalized = relativePath.replace(/\\/g, "/");
45
- for (const pattern of patterns) {
46
- const re = globToRegExp(pattern);
47
- if (re.test(normalized)) return true;
48
- if (normalized.startsWith(pattern.endsWith("/") ? pattern : `${pattern}/`))
49
- return true;
50
- if (normalized === pattern) return true;
51
- }
52
- return false;
53
- }
54
-
55
- function listAllFiles(dir, base = dir) {
56
- const out = [];
57
- for (const name of fs.readdirSync(dir, { withFileTypes: true })) {
58
- if (name.name === ".git" || name.name === "node_modules") continue;
59
- const full = path.join(dir, name.name);
60
- const rel = path.relative(base, full).replace(/\\/g, "/");
61
- if (name.isDirectory()) {
62
- if (shouldExclude(rel, ignorePatterns)) continue;
63
- out.push(...listAllFiles(full, base));
64
- } else {
65
- if (!shouldExclude(rel, ignorePatterns)) out.push(rel);
66
- }
67
- }
68
- return out;
69
- }
70
-
71
- function copyFile(rel, destRoot) {
72
- const src = path.join(ROOT, rel);
73
- const dest = path.join(destRoot, rel);
74
- fs.mkdirSync(path.dirname(dest), { recursive: true });
75
- fs.copyFileSync(src, dest);
76
- }
77
-
78
- function patchUiTs(destRoot) {
79
- const uiPath = path.join(
80
- destRoot,
81
- "src/core/components/ui/ui.ts",
82
- );
83
- if (!fs.existsSync(uiPath)) return;
84
- const content = fs.readFileSync(uiPath, "utf8");
85
- const patched = content.replace(
86
- /import "\.\/captcha\/captcha";\n?/,
87
- "",
88
- );
89
- fs.writeFileSync(uiPath, patched);
90
- }
91
-
92
- function exportHaystack(value) {
93
- if (typeof value === "string") return value;
94
- if (value && typeof value === "object") {
95
- return `${value.types ?? ""}${value.default ?? ""}`;
96
- }
97
- return String(value);
98
- }
99
-
100
- function filterPackageJson(destRoot) {
101
- const pkgPath = path.join(destRoot, "package.json");
102
- if (!fs.existsSync(pkgPath)) return;
103
- const pkg = JSON.parse(fs.readFileSync(pkgPath, "utf8"));
104
- if (pkg.exports && typeof pkg.exports === "object") {
105
- const next = {};
106
- for (const [key, value] of Object.entries(pkg.exports)) {
107
- const hay = `${key}:${exportHaystack(value)}`;
108
- if (EXPORT_FILTER_KEY.test(hay)) continue;
109
- if (exportHaystack(value).includes("/captcha/")) continue;
110
- if (exportHaystack(value).includes("/docs/")) continue;
111
- if (exportHaystack(value).includes(".demo.")) continue;
112
- if (exportHaystack(value).includes(".stories.")) continue;
113
- next[key] = value;
114
- }
115
- pkg.exports = next;
116
- }
117
- fs.writeFileSync(pkgPath, JSON.stringify(pkg, null, 2) + "\n");
118
- }
119
-
120
- function patchReadme(destRoot) {
121
- const readmePath = path.join(destRoot, "README.md");
122
- if (!fs.existsSync(readmePath)) return;
123
- let text = fs.readFileSync(readmePath, "utf8");
124
- text = text.replace(
125
- /Le dépôt GitHub est un \*\*miroir\*\* synchronisé depuis GitLab \(voir \[OPEN_SOURCE_CHECKPOINT\.md\]\(OPEN_SOURCE_CHECKPOINT\.md\)\)\./,
126
- "Le dépôt GitHub est un **export filtré** depuis GitLab (librairie uniquement, sans site doc ni composant captcha — voir [OPEN_SOURCE_CHECKPOINT.md](OPEN_SOURCE_CHECKPOINT.md)).",
127
- );
128
- fs.writeFileSync(readmePath, text);
129
- }
130
-
131
- const ignorePatterns = readIgnorePatterns();
132
- const outDir = path.resolve(process.argv[2] || DEFAULT_OUT);
133
-
134
- if (fs.existsSync(outDir)) {
135
- fs.rmSync(outDir, { recursive: true, force: true });
136
- }
137
- fs.mkdirSync(outDir, { recursive: true });
138
-
139
- const files = listAllFiles(ROOT);
140
- for (const rel of files) {
141
- copyFile(rel, outDir);
142
- }
143
-
144
- patchUiTs(outDir);
145
- filterPackageJson(outDir);
146
- patchReadme(outDir);
147
-
148
- console.log(`✅ Export GitHub : ${files.length} fichiers → ${outDir}`);
149
- console.log(" Exclusions : .github-export-ignore");
150
- console.log(" Patches : ui.ts (sans captcha), package.json exports");
package/src/css.d.ts DELETED
@@ -1,19 +0,0 @@
1
- declare module "*.css" {
2
- const css: import("lit").CSSResult;
3
- export default css;
4
- }
5
-
6
- declare module "*.css?inline" {
7
- const css: string;
8
- export default css;
9
- }
10
-
11
- declare module "*.scss" {
12
- const css: import("lit").CSSResult;
13
- export default css;
14
- }
15
-
16
- declare module "*.scss?inline" {
17
- const css: string;
18
- export default css;
19
- }
@@ -1,6 +0,0 @@
1
- import {css, unsafeCSS} from "lit";
2
- import prismImport from "./prism.css?inline";
3
-
4
- export const prismCSS = css`
5
- ${unsafeCSS(prismImport)}
6
- `;
@@ -1,158 +0,0 @@
1
- /**
2
- * MIT License
3
- * Copyright (c) 2018 Sarah Drasner
4
- * Sarah Drasner's[@sdras] Night Owl
5
- * Ported by Sara vieria [@SaraVieira]
6
- * Added by Souvik Mandal [@SimpleIndian]
7
- */
8
-
9
- code[class*="language-"],
10
- pre[class*="language-"] {
11
- color: #d6deeb;
12
- font-family: Consolas, Monaco, "Andale Mono", "Ubuntu Mono", monospace;
13
- text-align: left;
14
- white-space: pre;
15
- word-spacing: normal;
16
- word-break: normal;
17
- word-wrap: normal;
18
- line-height: 1.5;
19
- font-size: 1em;
20
-
21
- -moz-tab-size: 4;
22
- -o-tab-size: 4;
23
- tab-size: 4;
24
-
25
- -webkit-hyphens: none;
26
- -moz-hyphens: none;
27
- -ms-hyphens: none;
28
- hyphens: none;
29
- }
30
-
31
- pre[class*="language-"]::-moz-selection,
32
- pre[class*="language-"] ::-moz-selection,
33
- code[class*="language-"]::-moz-selection,
34
- code[class*="language-"] ::-moz-selection {
35
- text-shadow: none;
36
- background: rgba(29, 59, 83, 0.99);
37
- }
38
-
39
- pre[class*="language-"]::selection,
40
- pre[class*="language-"] ::selection,
41
- code[class*="language-"]::selection,
42
- code[class*="language-"] ::selection {
43
- text-shadow: none;
44
- background: rgba(29, 59, 83, 0.99);
45
- }
46
-
47
- @media print {
48
- code[class*="language-"],
49
- pre[class*="language-"] {
50
- text-shadow: none;
51
- }
52
- }
53
-
54
- /* Code blocks */
55
- pre[class*="language-"] {
56
- padding: 1em;
57
- margin: 0.5em 0;
58
- overflow: auto;
59
- }
60
-
61
- :not(pre) > code[class*="language-"],
62
- pre[class*="language-"] {
63
- color: white;
64
- background: #011627;
65
- }
66
-
67
- :not(pre) > code[class*="language-"] {
68
- padding: 0.1em;
69
- border-radius: 0.3em;
70
- white-space: normal;
71
- }
72
-
73
- .token.comment,
74
- .token.prolog,
75
- .token.cdata {
76
- color: rgb(99, 119, 119);
77
- font-style: italic;
78
- }
79
-
80
- .token.punctuation {
81
- color: rgb(199, 146, 234);
82
- }
83
-
84
- .namespace {
85
- color: rgb(178, 204, 214);
86
- }
87
-
88
- .token.deleted {
89
- color: rgba(239, 83, 80, 0.56);
90
- font-style: italic;
91
- }
92
-
93
- .token.symbol,
94
- .token.property {
95
- color: rgb(128, 203, 196);
96
- }
97
-
98
- .token.tag,
99
- .token.operator,
100
- .token.keyword {
101
- color: rgb(127, 219, 202);
102
- }
103
-
104
- .token.boolean {
105
- color: rgb(255, 88, 116);
106
- }
107
-
108
- .token.number {
109
- color: rgb(247, 140, 108);
110
- }
111
-
112
- .token.constant,
113
- .token.function,
114
- .token.builtin,
115
- .token.char {
116
- color: rgb(130, 170, 255);
117
- }
118
-
119
- .token.selector,
120
- .token.doctype {
121
- color: rgb(199, 146, 234);
122
- font-style: italic;
123
- }
124
-
125
- .token.attr-name,
126
- .token.inserted {
127
- color: rgb(173, 219, 103);
128
- font-style: italic;
129
- }
130
-
131
- .token.string,
132
- .token.url,
133
- .token.entity,
134
- .language-css .token.string,
135
- .style .token.string {
136
- color: rgb(173, 219, 103);
137
- }
138
-
139
- .token.class-name,
140
- .token.atrule,
141
- .token.attr-value {
142
- color: rgb(255, 203, 139);
143
- }
144
-
145
- .token.regex,
146
- .token.important,
147
- .token.variable {
148
- color: rgb(214, 222, 235);
149
- }
150
-
151
- .token.important,
152
- .token.bold {
153
- font-weight: bold;
154
- }
155
-
156
- .token.italic {
157
- font-style: italic;
158
- }