@supersoniks/concorde 5.0.4 → 5.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.agents/skills/concorde-component-docs/SKILL.md +194 -0
- package/.agents/skills/concorde-component-docs/template.md +45 -0
- package/ai/cursor/rules/concorde-theme.mdc +1 -1
- package/ai/cursor/rules/concorde.mdc +1 -1
- package/ai/skills/concorde/SKILL.md +1 -1
- package/ai/skills/concorde-theme/SKILL.md +21 -10
- package/build-infos.json +1 -1
- package/concorde-core.bundle.js +528 -534
- package/concorde-core.es.js +4257 -4212
- package/dist/concorde-core.bundle.js +528 -534
- package/dist/concorde-core.es.js +4257 -4212
- package/dist/docs-mock-api-sw.js +2 -0
- package/dist/docs-mock-api-sw.js.map +2 -2
- package/docs/assets/index-CD4WyL6o.css +1 -0
- package/docs/assets/{index-D8MVWqY6.js → index-wVZpLVYW.js} +1221 -1350
- package/docs/crawl/core/components/ui/alert/alert.html +172 -71
- package/docs/crawl/core/components/ui/alert-messages/alert-messages.html +113 -5
- package/docs/crawl/core/components/ui/badge/badge.html +157 -79
- package/docs/crawl/core/components/ui/button/button.html +1 -0
- package/docs/crawl/core/components/ui/captcha/captcha.html +90 -8
- package/docs/crawl/core/components/ui/card/card.html +222 -68
- package/docs/crawl/core/components/ui/divider/divider.html +117 -31
- package/docs/crawl/core/components/ui/form/fieldset/fieldset.html +232 -101
- package/docs/crawl/core/components/ui/form/form-actions/form-actions.html +95 -52
- package/docs/crawl/core/components/ui/form/form-layout/form-layout.html +97 -38
- package/docs/crawl/core/components/ui/form/input/input.html +3 -3
- package/docs/crawl/core/components/ui/form/textarea/textarea.html +3 -3
- package/docs/crawl/core/components/ui/group/group.html +60 -38
- package/docs/crawl/core/components/ui/icon/icon.html +136 -47
- package/docs/crawl/core/components/ui/image/image.html +244 -56
- package/docs/crawl/core/components/ui/link/link.html +67 -9
- package/docs/crawl/core/components/ui/loader/loader.html +97 -23
- package/docs/crawl/core/components/ui/menu/menu.html +162 -90
- package/docs/crawl/core/components/ui/modal/modal.html +275 -50
- package/docs/crawl/core/components/ui/pop/pop.html +260 -66
- package/docs/crawl/core/components/ui/progress/progress.html +103 -30
- package/docs/crawl/core/components/ui/table/table.html +303 -171
- package/docs/crawl/core/components/ui/theme/theme.html +131 -0
- package/docs/crawl/core/components/ui/toast/toast.html +170 -59
- package/docs/crawl/core/components/ui/tooltip/tooltip.html +90 -29
- package/docs/crawl/docs/_decorators/ancestor-attribute.html +3 -2
- package/docs/crawl/docs/_getting-started/concorde-outside.html +3 -3
- package/docs/crawl/docs/_getting-started/start.html +1 -1
- package/docs/crawl/docs/_getting-started/theming.html +311 -63
- package/docs/crawl/hubs/form-components.html +75 -53
- package/docs/crawl/index.html +7 -6
- 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/docs/llms-full.txt +1703 -456
- package/docs/llms.txt +25 -32
- package/docs/sitemap.xml +3 -0
- package/docs/src/core/components/functional/fetch/fetch.md +0 -0
- package/docs/src/core/components/functional/if/if.md +0 -0
- package/docs/src/core/components/functional/list/list.md +0 -0
- package/docs/src/core/components/functional/router/router.md +0 -0
- package/docs/src/core/components/functional/sdui/sdui.md +0 -0
- package/docs/src/core/components/functional/states/states.md +0 -0
- package/docs/src/core/components/functional/submit/submit.md +0 -0
- package/docs/src/core/components/ui/alert/alert.md +147 -72
- package/docs/src/core/components/ui/alert-messages/alert-messages.md +85 -0
- package/docs/src/core/components/ui/badge/badge.md +141 -80
- package/docs/src/core/components/ui/button/button.md +1 -0
- package/docs/src/core/components/ui/captcha/captcha.md +65 -6
- package/docs/src/core/components/ui/card/card.md +183 -65
- package/docs/src/core/components/ui/divider/divider.md +107 -13
- package/docs/src/core/components/ui/form/fieldset/fieldset.md +175 -99
- package/docs/src/core/components/ui/form/form-actions/form-actions.md +75 -52
- package/docs/src/core/components/ui/form/form-layout/form-layout.md +109 -34
- package/docs/src/core/components/ui/form/input/input.md +1 -1
- package/docs/src/core/components/ui/form/radio/radio.md +0 -0
- package/docs/src/core/components/ui/form/select/select.md +0 -0
- package/docs/src/core/components/ui/form/switch/switch.md +0 -0
- package/docs/src/core/components/ui/form/textarea/textarea.md +1 -1
- package/docs/src/core/components/ui/group/group.md +36 -36
- package/docs/src/core/components/ui/icon/icon.md +132 -43
- package/docs/src/core/components/ui/image/image.md +179 -53
- package/docs/src/core/components/ui/link/link.md +45 -7
- package/docs/src/core/components/ui/loader/loader.md +79 -22
- package/docs/src/core/components/ui/menu/menu.md +133 -92
- package/docs/src/core/components/ui/modal/modal.md +163 -47
- package/docs/src/core/components/ui/pop/pop.md +262 -64
- package/docs/src/core/components/ui/progress/progress.md +76 -30
- package/docs/src/core/components/ui/table/table.md +147 -171
- package/docs/src/core/components/ui/theme/theme.md +122 -0
- package/docs/src/core/components/ui/toast/toast.md +108 -58
- package/docs/src/core/components/ui/tooltip/tooltip.md +68 -26
- package/docs/src/docs/_core-concept/subscriber.md +0 -0
- package/docs/src/docs/_decorators/ancestor-attribute.md +3 -2
- package/docs/src/docs/_getting-started/concorde-outside.md +3 -3
- package/docs/src/docs/_getting-started/my-first-subscriber.md +0 -0
- package/docs/src/docs/_getting-started/pubsub.md +0 -0
- package/docs/src/docs/_getting-started/start.md +1 -1
- package/docs/src/docs/_getting-started/theming.md +223 -61
- package/docs/src/docs/search/docs-search.json +3083 -348
- package/docs/src/tsconfig.json +63 -3
- package/gitlab/job_tests.sh +0 -0
- package/index.html +4 -2
- package/package.json +7 -1
- package/public/docs-mock-api-sw.js +2 -0
- package/public/docs-mock-api-sw.js.map +2 -2
- package/scripts/post-build-docs.js +0 -0
- package/scripts/post-build.mjs +0 -0
- package/src/core/components/functional/fetch/fetch.md +0 -0
- package/src/core/components/functional/if/if.md +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/sdui.md +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/ui/_css/align.ts +1 -0
- package/src/core/components/ui/_css/size.ts +0 -0
- package/src/core/components/ui/_css/type.ts +86 -8
- package/src/core/components/ui/_i18n/ui-aria-labels.ts +8 -0
- package/src/core/components/ui/alert/alert.md +21 -2
- package/src/core/components/ui/alert-messages/alert-messages.md +85 -0
- package/src/core/components/ui/badge/badge.md +19 -6
- package/src/core/components/ui/badge/badge.ts +8 -9
- package/src/core/components/ui/button/button.ts +5 -15
- package/src/core/components/ui/captcha/altchaStyles.ts +0 -0
- package/src/core/components/ui/captcha/captcha.md +65 -6
- package/src/core/components/ui/card/card.md +73 -10
- package/src/core/components/ui/card/card.ts +24 -22
- package/src/core/components/ui/divider/divider.md +107 -13
- package/src/core/components/ui/divider/divider.ts +40 -33
- package/src/core/components/ui/form/fieldset/fieldset.md +175 -99
- package/src/core/components/ui/form/fieldset/fieldset.ts +15 -28
- package/src/core/components/ui/form/fieldset/legend.ts +13 -13
- package/src/core/components/ui/form/form-actions/form-actions.md +75 -52
- package/src/core/components/ui/form/form-actions/form-actions.ts +7 -5
- package/src/core/components/ui/form/form-layout/form-layout.md +109 -34
- package/src/core/components/ui/form/form-layout/form-layout.ts +27 -24
- 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/form/textarea/textarea.ts +4 -3
- package/src/core/components/ui/group/group.md +36 -36
- package/src/core/components/ui/group/group.ts +5 -10
- package/src/core/components/ui/icon/icon.md +132 -43
- package/src/core/components/ui/image/image.md +35 -3
- package/src/core/components/ui/link/link.md +43 -5
- package/src/core/components/ui/loader/loader.md +79 -22
- package/src/core/components/ui/loader/loader.ts +67 -27
- package/src/core/components/ui/loader/styles/fixed.ts +6 -11
- package/src/core/components/ui/menu/menu.md +133 -92
- package/src/core/components/ui/menu/menu.ts +53 -58
- package/src/core/components/ui/modal/modal.md +163 -47
- package/src/core/components/ui/modal/modal.ts +2 -4
- package/src/core/components/ui/pop/pop.md +217 -123
- package/src/core/components/ui/pop/pop.ts +0 -1
- package/src/core/components/ui/progress/progress.md +76 -30
- package/src/core/components/ui/progress/progress.ts +25 -56
- package/src/core/components/ui/table/table-caption.ts +2 -2
- package/src/core/components/ui/table/table-tbody.ts +3 -3
- package/src/core/components/ui/table/table-td.ts +23 -18
- package/src/core/components/ui/table/table-th.ts +8 -8
- package/src/core/components/ui/table/table-tr.ts +4 -4
- package/src/core/components/ui/table/table.md +147 -171
- package/src/core/components/ui/table/table.ts +20 -19
- package/src/core/components/ui/theme/theme-collection/auto.ts +15 -0
- package/src/core/components/ui/theme/theme-collection/core-variables.ts +8 -31
- package/src/core/components/ui/theme/theme-collection/dark.ts +1 -7
- package/src/core/components/ui/theme/theme-collection/light.ts +30 -26
- package/src/core/components/ui/theme/theme.md +122 -0
- package/src/core/components/ui/theme/theme.ts +30 -7
- package/src/core/components/ui/toast/toast-item.ts +6 -9
- package/src/core/components/ui/toast/toast.md +108 -58
- package/src/core/components/ui/toast/types.ts +1 -1
- package/src/core/components/ui/tooltip/tooltip.md +68 -26
- 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/my-first-subscriber.md +0 -0
- package/src/docs/_getting-started/pubsub.md +0 -0
- package/src/docs/_getting-started/start.md +1 -1
- package/src/docs/_getting-started/theming.md +223 -61
- package/src/docs/code.ts +125 -58
- package/src/docs/example/users.ts +0 -0
- package/src/docs/header/header.ts +62 -54
- package/src/docs/mock-api/router.ts +2 -0
- package/src/docs/navigation/navigation.ts +6 -3
- package/src/docs/search/docs-search.json +2504 -399
- package/src/docs/search/markdown-renderer.ts +6 -6
- package/src/docs/search/page.ts +0 -0
- package/src/docs/search/search.ts +4 -4
- package/src/docs/tailwind/css/tailwind.css +6 -5
- package/src/tsconfig.json +18 -0
- package/src/tsconfig.tsbuildinfo +1 -1
- package/tailwind.config.js +19 -0
- 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/docs/assets/index-DiD0qYvE.css +0 -1
- package/docs/src/tsconfig.declarations.json +0 -22
- package/docs/src/tsconfig.emit.json +0 -23
- package/gitlab/job_github_mirror.sh +0 -39
- package/scripts/github-export.mjs +0 -150
- package/src/css.d.ts +0 -19
- package/src/tsconfig.declarations.json +0 -22
- package/src/tsconfig.emit.json +0 -23
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"extends": "./tsconfig-model.json",
|
|
3
|
-
"compilerOptions": {
|
|
4
|
-
"noEmit": false,
|
|
5
|
-
"emitDeclarationOnly": true,
|
|
6
|
-
"declaration": true,
|
|
7
|
-
"declarationMap": true,
|
|
8
|
-
"outDir": "../dist/types",
|
|
9
|
-
"rootDir": "."
|
|
10
|
-
},
|
|
11
|
-
"include": ["**/*.ts"],
|
|
12
|
-
"exclude": [
|
|
13
|
-
"node_modules/**/*",
|
|
14
|
-
"**/*.spec.ts",
|
|
15
|
-
"**/*.test.ts",
|
|
16
|
-
"**/*.demo.ts",
|
|
17
|
-
"**/*.stories.ts",
|
|
18
|
-
"**/*.type-test.ts",
|
|
19
|
-
"docs.ts",
|
|
20
|
-
"docs/**/*"
|
|
21
|
-
]
|
|
22
|
-
}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"extends": "./tsconfig-model.json",
|
|
3
|
-
"compilerOptions": {
|
|
4
|
-
"noEmit": false,
|
|
5
|
-
"emitDeclarationOnly": false,
|
|
6
|
-
"declaration": false,
|
|
7
|
-
"sourceMap": true,
|
|
8
|
-
"outDir": "../dist/js",
|
|
9
|
-
"rootDir": ".",
|
|
10
|
-
"lib": ["ES2021", "DOM", "DOM.Iterable"]
|
|
11
|
-
},
|
|
12
|
-
"include": ["**/*.ts"],
|
|
13
|
-
"exclude": [
|
|
14
|
-
"node_modules/**/*",
|
|
15
|
-
"**/*.spec.ts",
|
|
16
|
-
"**/*.test.ts",
|
|
17
|
-
"**/*.demo.ts",
|
|
18
|
-
"**/*.stories.ts",
|
|
19
|
-
"**/*.type-test.ts",
|
|
20
|
-
"docs.ts",
|
|
21
|
-
"docs/**/*"
|
|
22
|
-
]
|
|
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,22 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"extends": "./tsconfig-model.json",
|
|
3
|
-
"compilerOptions": {
|
|
4
|
-
"noEmit": false,
|
|
5
|
-
"emitDeclarationOnly": true,
|
|
6
|
-
"declaration": true,
|
|
7
|
-
"declarationMap": true,
|
|
8
|
-
"outDir": "../dist/types",
|
|
9
|
-
"rootDir": "."
|
|
10
|
-
},
|
|
11
|
-
"include": ["**/*.ts"],
|
|
12
|
-
"exclude": [
|
|
13
|
-
"node_modules/**/*",
|
|
14
|
-
"**/*.spec.ts",
|
|
15
|
-
"**/*.test.ts",
|
|
16
|
-
"**/*.demo.ts",
|
|
17
|
-
"**/*.stories.ts",
|
|
18
|
-
"**/*.type-test.ts",
|
|
19
|
-
"docs.ts",
|
|
20
|
-
"docs/**/*"
|
|
21
|
-
]
|
|
22
|
-
}
|
package/src/tsconfig.emit.json
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"extends": "./tsconfig-model.json",
|
|
3
|
-
"compilerOptions": {
|
|
4
|
-
"noEmit": false,
|
|
5
|
-
"emitDeclarationOnly": false,
|
|
6
|
-
"declaration": false,
|
|
7
|
-
"sourceMap": true,
|
|
8
|
-
"outDir": "../dist/js",
|
|
9
|
-
"rootDir": ".",
|
|
10
|
-
"lib": ["ES2021", "DOM", "DOM.Iterable"]
|
|
11
|
-
},
|
|
12
|
-
"include": ["**/*.ts"],
|
|
13
|
-
"exclude": [
|
|
14
|
-
"node_modules/**/*",
|
|
15
|
-
"**/*.spec.ts",
|
|
16
|
-
"**/*.test.ts",
|
|
17
|
-
"**/*.demo.ts",
|
|
18
|
-
"**/*.stories.ts",
|
|
19
|
-
"**/*.type-test.ts",
|
|
20
|
-
"docs.ts",
|
|
21
|
-
"docs/**/*"
|
|
22
|
-
]
|
|
23
|
-
}
|