@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.
- package/.claude/launch.json +15 -0
- package/.claude/vite.http.config.mjs +7 -0
- package/.taste-skill/after/desktop-fold.jpg +0 -0
- package/.taste-skill/after/desktop-page-01.jpg +0 -0
- package/.taste-skill/after/desktop-page-02.jpg +0 -0
- package/.taste-skill/after/desktop-page-03.jpg +0 -0
- package/.taste-skill/after/mobile-fold.jpg +0 -0
- package/.taste-skill/after/mobile-page-01.jpg +0 -0
- package/.taste-skill/after/report.json +4103 -0
- package/.taste-skill/after/tablet-fold.jpg +0 -0
- package/.taste-skill/after/tablet-page-01.jpg +0 -0
- package/.taste-skill/after/tablet-page-02.jpg +0 -0
- package/.taste-skill/before/desktop-fold.jpg +0 -0
- package/.taste-skill/before/desktop-page-01.jpg +0 -0
- package/.taste-skill/before/desktop-page-02.jpg +0 -0
- package/.taste-skill/before/mobile-fold.jpg +0 -0
- package/.taste-skill/before/mobile-page-01.jpg +0 -0
- package/.taste-skill/before/report.json +2556 -0
- package/.taste-skill/before/tablet-fold.jpg +0 -0
- package/.taste-skill/before/tablet-page-01.jpg +0 -0
- package/.taste-skill/direction.json +510 -0
- package/.taste-skill/notes.md +84 -0
- package/.taste-skill/prod/desktop-fold.jpg +0 -0
- package/.taste-skill/prod/desktop-page-01.jpg +0 -0
- package/.taste-skill/prod/desktop-page-02.jpg +0 -0
- package/.taste-skill/prod/desktop-page-03.jpg +0 -0
- package/.taste-skill/prod/mobile-fold.jpg +0 -0
- package/.taste-skill/prod/mobile-page-01.jpg +0 -0
- package/.taste-skill/prod/mobile-page-02.jpg +0 -0
- package/.taste-skill/prod/report.json +1973 -0
- package/.taste-skill/prod/tablet-fold.jpg +0 -0
- package/.taste-skill/prod/tablet-page-01.jpg +0 -0
- package/.taste-skill/prod/tablet-page-02.jpg +0 -0
- package/.tmp-cem/custom-elements.json +1939 -1939
- package/AUDIT.md +228 -0
- package/PLAN-AMELIORATION.md +220 -0
- package/build-infos.json +1 -1
- package/concorde-core.bundle.js +16 -16
- package/concorde-core.es.js +235 -233
- package/dist/concorde-core.bundle.js +16 -16
- package/dist/concorde-core.es.js +235 -233
- package/dist/img/archive/concorde-001-2cv.webp +0 -0
- package/dist/img/archive/concorde-red-arrows-2002-poster.jpg +0 -0
- package/dist/img/archive/concorde-red-arrows-2002.webm +0 -0
- package/dist/img/archive/credits.json +28 -0
- package/docs/assets/index-Bb-_LRyY.js +12280 -0
- package/docs/assets/index-CD4WyL6o.css +1 -0
- package/docs/docs-mock-api-sw.js +2 -0
- package/docs/docs-mock-api-sw.js.map +2 -2
- package/docs/index.html +9 -7
- package/index.html +27 -63
- package/package.json +11 -4
- package/public/img/archive/concorde-001-2cv.webp +0 -0
- package/public/img/archive/concorde-red-arrows-2002-poster.jpg +0 -0
- package/public/img/archive/concorde-red-arrows-2002.webm +0 -0
- package/public/img/archive/credits.json +28 -0
- package/scripts/post-build-docs.js +0 -0
- package/scripts/post-build.mjs +0 -0
- package/src/core/components/functional/fetch/fetch.md +2 -2
- package/src/core/components/functional/if/if.md +0 -0
- package/src/core/components/functional/if/if.ts +0 -0
- package/src/core/components/functional/list/list.demo.ts +0 -0
- package/src/core/components/functional/list/list.md +0 -0
- package/src/core/components/functional/router/router.md +0 -0
- package/src/core/components/functional/router/router.ts +0 -0
- package/src/core/components/functional/sdui/SDUIDescriptorTransformer.ts +0 -0
- package/src/core/components/functional/sdui/component-catalog.gaps.json +1 -1
- package/src/core/components/functional/sdui/component-catalog.json +1 -1
- package/src/core/components/functional/sdui/types.ts +0 -0
- package/src/core/components/functional/states/states.md +0 -0
- package/src/core/components/functional/submit/submit.md +0 -0
- package/src/core/components/functional/subscriber/subscriber.ts +0 -0
- package/src/core/components/functional/value/value.ts +0 -0
- package/src/core/components/ui/_css/size.ts +0 -0
- package/src/core/components/ui/captcha/altchaStyles.ts +0 -0
- package/src/core/components/ui/form/radio/radio.md +0 -0
- package/src/core/components/ui/form/select/select.md +0 -0
- package/src/core/components/ui/form/switch/switch.md +0 -0
- package/src/core/components/ui/modal/modal.ts +14 -11
- package/src/core/mixins/Subscriber.ts +0 -0
- package/src/core/utils/DataBindObserver.ts +0 -0
- package/src/core/utils/Objects.ts +0 -0
- package/src/core/utils/route.ts +0 -0
- package/src/docs/_core-concept/subscriber.md +0 -0
- package/src/docs/_getting-started/components.md +5 -0
- package/src/docs/_getting-started/my-first-subscriber.md +0 -0
- package/src/docs/_getting-started/pubsub.md +0 -0
- package/src/docs/_getting-started/theming.md +2 -2
- package/src/docs/code.ts +88 -75
- package/src/docs/components/docs-demo-sources.ts +16 -8
- package/src/docs/components/docs-lit-demo.ts +19 -37
- package/src/docs/docs.ts +5 -0
- package/src/docs/example/docs-boarding-pass-demo.ts +134 -0
- package/src/docs/example/docs-provider-keys.ts +12 -0
- package/src/docs/example/users.ts +0 -0
- package/src/docs/header/header.ts +233 -69
- package/src/docs/home/catalog.ts +44 -0
- package/src/docs/home/home.ts +513 -0
- package/src/docs/home/mach-stage.ts +389 -0
- package/src/docs/layout.ts +3 -1
- package/src/docs/navigation/components-index.ts +56 -0
- package/src/docs/navigation/navigation.ts +240 -232
- package/src/docs/navigation/pager.ts +67 -0
- package/src/docs/navigation/toc.ts +98 -0
- package/src/docs/search/docs-search.json +330 -20
- package/src/docs/search/markdown-renderer.ts +11 -3
- package/src/docs/search/page.ts +0 -0
- package/src/docs/shiki/index.ts +109 -0
- package/src/docs/tailwind/css/base/scrollbar.css +22 -0
- package/src/docs/tailwind/css/base/theme.css +96 -0
- package/src/docs/tailwind/css/base/typography.css +4 -0
- package/src/docs/tailwind/css/docs/boarding-pass.css +65 -0
- package/src/docs/tailwind/css/docs/content.css +32 -0
- package/src/docs/tailwind/css/docs/page.css +10 -0
- package/src/docs/tailwind/css/docs.css +9 -0
- package/src/docs/tailwind/css/home/hero.css +210 -0
- package/src/docs/tailwind/css/home/motion.css +84 -0
- package/src/docs/tailwind/css/home/sections.css +416 -0
- package/src/docs/tailwind/css/tailwind.css +7 -185
- package/src/tsconfig.json +23 -2
- package/src/tsconfig.tsbuildinfo +1 -1
- package/tailwind.config.js +8 -4
- package/.github/workflows/ci.yml +0 -21
- package/.github-export-ignore +0 -30
- package/CONTRIBUTING.md +0 -59
- package/DEV.md +0 -54
- package/LICENSE +0 -21
- package/OPEN_SOURCE_CHECKPOINT.md +0 -133
- package/concorde-3d.bundle.js +0 -3960
- package/concorde-3d.es.js +0 -33433
- package/concorde-hugging-face-infer.bundle.js +0 -32
- package/concorde-hugging-face-infer.es.js +0 -2952
- package/concorde-interactive.bundle.js +0 -1157
- package/concorde-interactive.es.js +0 -10734
- package/concorde-shader.bundle.js +0 -116
- package/concorde-shader.es.js +0 -8353
- package/concorde-webgpu.bundle.js +0 -307
- package/concorde-webgpu.es.js +0 -8627
- package/docs/assets/index-D8MVWqY6.js +0 -12251
- package/docs/assets/index-DiD0qYvE.css +0 -1
- package/docs/crawl/core/components/functional/date/date.html +0 -190
- package/docs/crawl/core/components/functional/fetch/fetch.html +0 -109
- package/docs/crawl/core/components/functional/if/if.html +0 -27
- package/docs/crawl/core/components/functional/jsonata/jsonata.html +0 -79
- package/docs/crawl/core/components/functional/list/list.html +0 -70
- package/docs/crawl/core/components/functional/mix/mix.html +0 -45
- package/docs/crawl/core/components/functional/queue/queue.html +0 -96
- package/docs/crawl/core/components/functional/router/router.html +0 -106
- package/docs/crawl/core/components/functional/sdui/sdui.html +0 -269
- package/docs/crawl/core/components/functional/states/states.html +0 -66
- package/docs/crawl/core/components/functional/submit/submit.html +0 -160
- package/docs/crawl/core/components/functional/subscriber/subscriber.html +0 -67
- package/docs/crawl/core/components/functional/value/value.html +0 -51
- package/docs/crawl/core/components/ui/alert/alert.html +0 -110
- package/docs/crawl/core/components/ui/alert-messages/alert-messages.html +0 -23
- package/docs/crawl/core/components/ui/badge/badge.html +0 -119
- package/docs/crawl/core/components/ui/button/button.html +0 -149
- package/docs/crawl/core/components/ui/captcha/captcha.html +0 -30
- package/docs/crawl/core/components/ui/card/card.html +0 -99
- package/docs/crawl/core/components/ui/divider/divider.html +0 -58
- package/docs/crawl/core/components/ui/form/checkbox/checkbox.html +0 -73
- package/docs/crawl/core/components/ui/form/fieldset/fieldset.html +0 -135
- package/docs/crawl/core/components/ui/form/form-actions/form-actions.html +0 -79
- package/docs/crawl/core/components/ui/form/form-layout/form-layout.html +0 -62
- package/docs/crawl/core/components/ui/form/input/input.html +0 -109
- package/docs/crawl/core/components/ui/form/input-autocomplete/input-autocomplete.html +0 -38
- package/docs/crawl/core/components/ui/form/radio/radio.html +0 -56
- package/docs/crawl/core/components/ui/form/select/select.html +0 -73
- package/docs/crawl/core/components/ui/form/switch/switch.html +0 -56
- package/docs/crawl/core/components/ui/form/textarea/textarea.html +0 -59
- package/docs/crawl/core/components/ui/group/group.html +0 -82
- package/docs/crawl/core/components/ui/icon/icon.html +0 -133
- package/docs/crawl/core/components/ui/image/image.html +0 -110
- package/docs/crawl/core/components/ui/link/link.html +0 -42
- package/docs/crawl/core/components/ui/loader/loader.html +0 -50
- package/docs/crawl/core/components/ui/menu/menu.html +0 -322
- package/docs/crawl/core/components/ui/modal/modal.html +0 -117
- package/docs/crawl/core/components/ui/pop/pop.html +0 -102
- package/docs/crawl/core/components/ui/progress/progress.html +0 -58
- package/docs/crawl/core/components/ui/table/table.html +0 -413
- package/docs/crawl/core/components/ui/toast/toast.html +0 -122
- package/docs/crawl/core/components/ui/tooltip/tooltip.html +0 -79
- package/docs/crawl/docs/_core-concept/dataFlow.html +0 -177
- package/docs/crawl/docs/_core-concept/overview.html +0 -66
- package/docs/crawl/docs/_core-concept/subscriber.html +0 -75
- package/docs/crawl/docs/_decorators/ancestor-attribute.html +0 -116
- package/docs/crawl/docs/_decorators/auto-subscribe.html +0 -202
- package/docs/crawl/docs/_decorators/bind.html +0 -141
- package/docs/crawl/docs/_decorators/get.html +0 -149
- package/docs/crawl/docs/_decorators/handle.html +0 -165
- package/docs/crawl/docs/_decorators/on-assign.html +0 -355
- package/docs/crawl/docs/_decorators/patch.html +0 -78
- package/docs/crawl/docs/_decorators/post.html +0 -139
- package/docs/crawl/docs/_decorators/publish.html +0 -61
- package/docs/crawl/docs/_decorators/put.html +0 -78
- package/docs/crawl/docs/_decorators/subscribe.html +0 -109
- package/docs/crawl/docs/_decorators/wait-for-ancestors.html +0 -137
- package/docs/crawl/docs/_directives/sub.html +0 -93
- package/docs/crawl/docs/_getting-started/ai-agents.html +0 -173
- package/docs/crawl/docs/_getting-started/concorde-manual-install.html +0 -100
- package/docs/crawl/docs/_getting-started/concorde-outside.html +0 -58
- package/docs/crawl/docs/_getting-started/create-a-component.html +0 -111
- package/docs/crawl/docs/_getting-started/my-first-component.html +0 -189
- package/docs/crawl/docs/_getting-started/my-first-subscriber.html +0 -110
- package/docs/crawl/docs/_getting-started/pubsub.html +0 -62
- package/docs/crawl/docs/_getting-started/start.html +0 -76
- package/docs/crawl/docs/_getting-started/theming.html +0 -85
- package/docs/crawl/docs/_misc/api-configuration.html +0 -149
- package/docs/crawl/docs/_misc/dataProviderKey.html +0 -135
- package/docs/crawl/docs/_misc/docs-mock-api.html +0 -158
- package/docs/crawl/docs/_misc/dynamic-path.html +0 -180
- package/docs/crawl/docs/_misc/endpoint.html +0 -50
- package/docs/crawl/docs/_misc/formelement-subscriber-removal.html +0 -138
- package/docs/crawl/docs/_misc/html-integration.html +0 -48
- package/docs/crawl/hubs/decorators.html +0 -547
- package/docs/crawl/hubs/form-components.html +0 -359
- package/docs/crawl/hubs/remote-data.html +0 -452
- package/docs/crawl/index.html +0 -101
- package/docs/llms-full.txt +0 -5761
- package/docs/llms.txt +0 -104
- package/docs/sitemap.xml +0 -237
- package/docs/src/core/components/functional/date/date.md +0 -290
- package/docs/src/core/components/functional/fetch/fetch.md +0 -125
- package/docs/src/core/components/functional/if/if.md +0 -9
- package/docs/src/core/components/functional/jsonata/jsonata.md +0 -56
- package/docs/src/core/components/functional/list/list.md +0 -65
- package/docs/src/core/components/functional/mix/mix.md +0 -41
- package/docs/src/core/components/functional/queue/queue.md +0 -72
- package/docs/src/core/components/functional/router/router.md +0 -94
- package/docs/src/core/components/functional/sdui/default-library.json +0 -108
- package/docs/src/core/components/functional/sdui/example.json +0 -99
- package/docs/src/core/components/functional/sdui/sdui.md +0 -356
- package/docs/src/core/components/functional/states/states.md +0 -87
- package/docs/src/core/components/functional/submit/submit.md +0 -114
- package/docs/src/core/components/functional/subscriber/subscriber.md +0 -91
- package/docs/src/core/components/functional/value/value.md +0 -35
- package/docs/src/core/components/ui/alert/alert.md +0 -121
- package/docs/src/core/components/ui/alert-messages/alert-messages.md +0 -0
- package/docs/src/core/components/ui/badge/badge.md +0 -127
- package/docs/src/core/components/ui/button/button.md +0 -182
- package/docs/src/core/components/ui/captcha/captcha.md +0 -12
- package/docs/src/core/components/ui/card/card.md +0 -97
- package/docs/src/core/components/ui/divider/divider.md +0 -35
- package/docs/src/core/components/ui/form/checkbox/checkbox.md +0 -77
- package/docs/src/core/components/ui/form/fieldset/fieldset.md +0 -129
- package/docs/src/core/components/ui/form/form-actions/form-actions.md +0 -77
- package/docs/src/core/components/ui/form/form-layout/form-layout.md +0 -44
- package/docs/src/core/components/ui/form/input/input.md +0 -142
- package/docs/src/core/components/ui/form/input-autocomplete/input-autocomplete.md +0 -29
- package/docs/src/core/components/ui/form/radio/radio.md +0 -57
- package/docs/src/core/components/ui/form/select/select.md +0 -71
- package/docs/src/core/components/ui/form/switch/switch.md +0 -57
- package/docs/src/core/components/ui/form/textarea/textarea.md +0 -65
- package/docs/src/core/components/ui/group/group.md +0 -75
- package/docs/src/core/components/ui/icon/icon.md +0 -125
- package/docs/src/core/components/ui/icon/icons.json +0 -1
- package/docs/src/core/components/ui/image/image.md +0 -107
- package/docs/src/core/components/ui/link/link.md +0 -43
- package/docs/src/core/components/ui/loader/loader.md +0 -55
- package/docs/src/core/components/ui/menu/menu.md +0 -329
- package/docs/src/core/components/ui/modal/modal.md +0 -119
- package/docs/src/core/components/ui/pop/pop.md +0 -96
- package/docs/src/core/components/ui/progress/progress.md +0 -63
- package/docs/src/core/components/ui/table/table.md +0 -455
- package/docs/src/core/components/ui/toast/toast.md +0 -166
- package/docs/src/core/components/ui/tooltip/tooltip.md +0 -82
- package/docs/src/docs/_core-concept/dataFlow.md +0 -88
- package/docs/src/docs/_core-concept/overview.md +0 -57
- package/docs/src/docs/_core-concept/subscriber.md +0 -75
- package/docs/src/docs/_decorators/ancestor-attribute.md +0 -127
- package/docs/src/docs/_decorators/auto-subscribe.md +0 -202
- package/docs/src/docs/_decorators/bind.md +0 -167
- package/docs/src/docs/_decorators/get.md +0 -162
- package/docs/src/docs/_decorators/handle.md +0 -175
- package/docs/src/docs/_decorators/on-assign.md +0 -390
- package/docs/src/docs/_decorators/patch.md +0 -70
- package/docs/src/docs/_decorators/post.md +0 -146
- package/docs/src/docs/_decorators/publish.md +0 -55
- package/docs/src/docs/_decorators/put.md +0 -70
- package/docs/src/docs/_decorators/subscribe.md +0 -100
- package/docs/src/docs/_decorators/wait-for-ancestors.md +0 -163
- package/docs/src/docs/_directives/sub.md +0 -91
- package/docs/src/docs/_getting-started/ai-agents.md +0 -76
- package/docs/src/docs/_getting-started/concorde-manual-install.md +0 -133
- package/docs/src/docs/_getting-started/concorde-outside.md +0 -33
- package/docs/src/docs/_getting-started/create-a-component.md +0 -139
- package/docs/src/docs/_getting-started/my-first-component.md +0 -236
- package/docs/src/docs/_getting-started/my-first-subscriber.md +0 -120
- package/docs/src/docs/_getting-started/pubsub.md +0 -37
- package/docs/src/docs/_getting-started/start.md +0 -47
- package/docs/src/docs/_getting-started/theming.md +0 -91
- package/docs/src/docs/_misc/api-configuration.md +0 -81
- package/docs/src/docs/_misc/dataProviderKey.md +0 -168
- package/docs/src/docs/_misc/docs-mock-api.md +0 -63
- package/docs/src/docs/_misc/dynamic-path.md +0 -71
- package/docs/src/docs/_misc/endpoint.md +0 -45
- package/docs/src/docs/_misc/formelement-subscriber-removal.md +0 -115
- package/docs/src/docs/_misc/html-integration.md +0 -15
- package/docs/src/docs/search/docs-search.json +0 -9507
- package/docs/src/tag-list.json +0 -1
- package/docs/src/tsconfig-model.json +0 -23
- package/docs/src/tsconfig.declarations.json +0 -22
- package/docs/src/tsconfig.emit.json +0 -23
- package/docs/src/tsconfig.json +0 -1182
- package/gitlab/job_github_mirror.sh +0 -39
- package/scripts/github-export.mjs +0 -150
- package/src/css.d.ts +0 -19
- package/src/docs/prism/index.ts +0 -6
- package/src/docs/prism/prism.css +0 -158
- package/src/docs/prism/prism.js +0 -1022
- package/src/tsconfig.declarations.json +0 -22
- 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
|
-
}
|
package/src/docs/prism/index.ts
DELETED
package/src/docs/prism/prism.css
DELETED
|
@@ -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
|
-
}
|