odoro 0.1.5 → 0.3.0

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.
@@ -1,4 +1,4 @@
1
1
  #!/usr/bin/env node
2
- export { buildProject, reportBuild } from './chunk-RSKKKNAM.js';
2
+ export { buildProject, reportBuild } from './chunk-HCU53TIK.js';
3
3
  import './chunk-G5QXVBYT.js';
4
4
  import './chunk-JMEHF3KN.js';
@@ -1641,6 +1641,14 @@ var CATEGORIES = [
1641
1641
  "image",
1642
1642
  "ui",
1643
1643
  "section",
1644
+ /**
1645
+ * Le rideau d'ouverture.
1646
+ *
1647
+ * Pas une section : une section occupe une place dans le flux de la page,
1648
+ * un chargeur couvre l'ecran entier et disparait. Les ranger ensemble
1649
+ * obligerait chaque section a declarer laquelle des deux elle est.
1650
+ */
1651
+ "loader",
1644
1652
  "hooks"
1645
1653
  ];
1646
1654
  var PERF_TIERS = ["light", "medium", "heavy"];
@@ -240,7 +240,9 @@ function outputsForEntry(result, entry, outDir, root) {
240
240
  return { script: void 0, styles: [] };
241
241
  }
242
242
  async function taillerFeuilles(result, config, html) {
243
- const produits = Object.keys(result.metafile.outputs).map((f) => resolve(config.root, f));
243
+ const produits = Object.keys(result.metafile.outputs).map(
244
+ (f) => resolve(config.root, f)
245
+ );
244
246
  const feuilles = produits.filter((f) => f.endsWith(".css"));
245
247
  if (feuilles.length === 0) return;
246
248
  const sources = [html];
package/dist/cli.js CHANGED
@@ -130,7 +130,7 @@ function rootFrom(flags, positional) {
130
130
  async function run(argv) {
131
131
  const { command, positional, flags } = parseArgs(argv);
132
132
  if (flags["version"] === true) {
133
- const manifest = await import('./package-N4PY2QRI.js');
133
+ const manifest = await import('./package-U7R7SC4H.js');
134
134
  console.log(manifest.default.version);
135
135
  return 0;
136
136
  }
@@ -160,7 +160,7 @@ async function run(argv) {
160
160
  return new Promise(() => void 0);
161
161
  }
162
162
  case "build": {
163
- const { buildProject, reportBuild } = await import('./build-I27VUYCK.js');
163
+ const { buildProject, reportBuild } = await import('./build-3SPCMZXZ.js');
164
164
  const config = await loadConfig(rootFrom(flags, positional), overridesFrom(flags));
165
165
  const output = await buildProject(config);
166
166
  reportBuild(output, process.cwd());
@@ -178,7 +178,7 @@ async function run(argv) {
178
178
  case "list":
179
179
  case "diff":
180
180
  case "doctor": {
181
- const registry = await import('./commands-FVAHVVVN.js');
181
+ const registry = await import('./commands-PT3NS65O.js');
182
182
  const options = {
183
183
  root: typeof flags["root"] === "string" ? flags["root"] : process.cwd(),
184
184
  registry: typeof flags["registry"] === "string" ? flags["registry"] : void 0,
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  import { guessAlias, defaultAliases } from './chunk-T6RLHSCW.js';
3
- import { object, string, _minLength, array, _default, record, literal, safeParse, resolveGraph, describeProblem, parseMeta } from './chunk-G2WW7N4C.js';
3
+ import { object, string, _minLength, array, _default, record, literal, safeParse, resolveGraph, describeProblem, parseMeta } from './chunk-34RGOZFA.js';
4
4
  import { colors, info, warn, success, error } from './chunk-JMEHF3KN.js';
5
5
  import { readFile, writeFile, mkdir, rm, rename } from 'fs/promises';
6
6
  import { join, isAbsolute, resolve, dirname, posix } from 'path';
package/dist/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  export { defineConfig, loadConfig } from './chunk-Q35CGY2Z.js';
3
3
  import './chunk-T6RLHSCW.js';
4
- export { buildProject, reportBuild } from './chunk-RSKKKNAM.js';
4
+ export { buildProject, reportBuild } from './chunk-HCU53TIK.js';
5
5
  export { ModuleGraph, depFileName, detectSelfAccepting, optimizeDeps, scanDependencies, startDevServer } from './chunk-G5QXVBYT.js';
6
6
  export { startPreviewServer } from './chunk-2YDI5NKV.js';
7
7
  import './chunk-JMEHF3KN.js';
@@ -2,7 +2,7 @@
2
2
  // package.json
3
3
  var package_default = {
4
4
  name: "odoro",
5
- version: "0.1.5",
5
+ version: "0.3.0",
6
6
  type: "module",
7
7
  license: "UNLICENSED",
8
8
  author: "BouBouw",
@@ -33,7 +33,7 @@ import * as z from 'zod/mini';
33
33
  */
34
34
 
35
35
  /** Categories de composants du registre. */
36
- declare const CATEGORIES: readonly ["text", "background", "effect", "hero", "image", "ui", "section", "hooks"];
36
+ declare const CATEGORIES: readonly ["text", "background", "effect", "hero", "image", "ui", "section", "loader", "hooks"];
37
37
  /** Niveaux de cout d'un composant. */
38
38
  declare const PERF_TIERS: readonly ["light", "medium", "heavy"];
39
39
  /** Backends graphiques declarables. */
@@ -44,6 +44,7 @@ declare const FALLBACKS: readonly ["poster", "gradient", "static", "none"];
44
44
  declare const baseSchema: z.ZodMiniObject<{
45
45
  name: z.ZodMiniString<string>;
46
46
  category: z.ZodMiniEnum<{
47
+ loader: "loader";
47
48
  text: "text";
48
49
  background: "background";
49
50
  effect: "effect";
@@ -114,6 +115,7 @@ type RegistryMetaInput = z.input<typeof baseSchema>;
114
115
  declare const metaSchema: z.ZodMiniObject<{
115
116
  name: z.ZodMiniString<string>;
116
117
  category: z.ZodMiniEnum<{
118
+ loader: "loader";
117
119
  text: "text";
118
120
  background: "background";
119
121
  effect: "effect";
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- export { CATEGORIES, FALLBACKS, GL_BACKENDS, PERF_TIERS, describeProblem, entryId, metaSchema, parseMeta, resolveGraph, toCatalogue, validateCatalogue } from '../chunk-G2WW7N4C.js';
2
+ export { CATEGORIES, FALLBACKS, GL_BACKENDS, PERF_TIERS, describeProblem, entryId, metaSchema, parseMeta, resolveGraph, toCatalogue, validateCatalogue } from '../chunk-34RGOZFA.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "odoro",
3
- "version": "0.1.5",
3
+ "version": "0.3.0",
4
4
  "type": "module",
5
5
  "license": "UNLICENSED",
6
6
  "author": "BouBouw",
@@ -37,9 +37,10 @@ composants de la librairie, sans toucher a leur code.
37
37
  Une seule feuille de style : `@odoro-cli/libs/styles.css`, a importer une fois
38
38
  a la racine de l'application.
39
39
 
40
- Elle pese 1,7 Mo sur le disque, mais ce n'est pas ce que vos visiteurs
41
- telechargent : la compilation n'en garde que les classes que votre code
42
- emploie reellement quelques dizaines de kilooctets en pratique.
40
+ Elle ne contient que le socle variables, preflight, animations. Les
41
+ utilitaires sont produits a la compilation, pour les seules classes que votre
42
+ code emploie : quelques dizaines de kilooctets en pratique, et toute la palette
43
+ disponible sans que rien ne pese.
43
44
 
44
45
  ## Rechargement a chaud
45
46