@seedgrid/fe-components 2026.3.3-1 → 2026.3.3-3

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
+ const ptPT = {
2
2
  "components.actions.clear": "Limpar",
3
3
  "components.wizard.next": "Próximo",
4
4
  "components.wizard.previous": "Anterior",
@@ -67,18 +67,19 @@
67
67
  "components.validators.birthdate.ageMax": "A idade deve ser de no máximo {max} anos.",
68
68
  "components.autocomplete.empty": "Nenhum registo encontrado.",
69
69
  "components.autocomplete.loading": "A carregar...",
70
- "components.inputs.number.min": "O valor deve ser no m\u00ednimo {min}.",
71
- "components.inputs.number.max": "O valor deve ser no m\u00e1ximo {max}.",
72
- "components.fab.resetConfirm": "Repor a posi\u00e7\u00e3o do bot\u00e3o?",
73
- "components.fab.resetPosition": "Repor posi\u00e7\u00e3o",
70
+ "components.inputs.number.min": "O valor deve ser no mínimo {min}.",
71
+ "components.inputs.number.max": "O valor deve ser no máximo {max}.",
72
+ "components.fab.resetConfirm": "Repor a posição do botão?",
73
+ "components.fab.resetPosition": "Repor posição",
74
74
  "components.fab.yes": "Sim",
75
- "components.fab.no": "N\u00e3o",
76
- "components.dock.resetPosition": "Repor posi\u00e7\u00e3o",
77
- "components.dock.resetConfirm": "Tem a certeza de que deseja repor a posi\u00e7\u00e3o do dock para o padr\u00e3o?",
75
+ "components.fab.no": "Não",
76
+ "components.dock.resetPosition": "Repor posição",
77
+ "components.dock.resetConfirm": "Tem a certeza de que deseja repor a posição do dock para o padrão?",
78
78
  "components.dock.dropHere": "Largue aqui",
79
79
  "components.actions.cancel": "Cancelar",
80
80
  "components.actions.confirm": "Confirmar",
81
- "components.rating.required": "Por favor, forne\u00e7a uma avalia\u00e7\u00e3o",
82
- "components.rating.cancel": "Cancelar avalia\u00e7\u00e3o",
83
- "components.radiogroup.cancel": "Nenhuma op\u00e7\u00e3o"
84
- }
81
+ "components.rating.required": "Por favor, forneça uma avaliação",
82
+ "components.rating.cancel": "Cancelar avaliação",
83
+ "components.radiogroup.cancel": "Nenhuma opção"
84
+ };
85
+ export default ptPT;
@@ -1 +1 @@
1
- {"version":3,"file":"SgPlayground.d.ts","sourceRoot":"","sources":["../../src/others/SgPlayground.tsx"],"names":[],"mappings":"AAiBA,MAAM,MAAM,iBAAiB,GAAG;IAC9B,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,YAAY,CAAC,EAAE,YAAY,GAAG,SAAS,CAAC;IACxC,MAAM,CAAC,EAAE,kBAAkB,CAAC;IAC5B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACzB,cAAc,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACjC,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,UAAU,CAAC,EAAE,UAAU,GAAG,YAAY,GAAG,MAAM,CAAC;IAChD,cAAc,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACjC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,YAAY,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACtC,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,uBAAuB,CAAC,EAAE,MAAM,CAAC;IACjC,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,aAAa,CAAC,EAAE,uBAAuB,EAAE,CAAC;IAC1C,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,MAA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AU,CAAC,EAAE,MAAM,CAAC;IACpB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,aAAa,CAAC,EAAE,uBAAuB,EAAE,CAAC;IAC1C,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG,MAAM,GAAG,OAAO,GAAG,UAAU,GAAG,QAAQ,GAAG,MAAM,CAAC;AACnF,MAAM,MAAM,uBAAuB,GAAG;IACpC,aAAa,EAAE,MAAM,EAAE,CAAC;IACxB,aAAa,EAAE,OAAO,CAAC;IACvB,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,OAAO,CAAC;IACtB,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B,CAAC;AA2wBF,MAAM,CAAC,OAAO,UAAU,YAAY,CAAC,KAAK,EAAE,QAAQ,CAAC,iBAAiB,CAAC,2CA2atE"}
@@ -439,13 +439,6 @@ function resolveDefaultNpmRegistriesFromEnv() {
439
439
  }
440
440
  ];
441
441
  }
442
- function buildCjsModule(value) {
443
- const serialized = JSON.stringify(value);
444
- return `const data = ${serialized};
445
- module.exports = data;
446
- module.exports.default = data;
447
- `;
448
- }
449
442
  const SANDPACK_MIN_COMPONENT_MESSAGES = {
450
443
  "components.actions.clear": "Clear",
451
444
  "components.actions.cancel": "Cancel",
@@ -466,11 +459,13 @@ const SANDPACK_MIN_COMPONENT_MESSAGES = {
466
459
  "components.rating.cancel": "Cancel rating",
467
460
  "components.radiogroup.cancel": "No option"
468
461
  };
469
- const SANDPACK_SEEDGRID_PT_BR_JSON_SHIM = buildCjsModule(SANDPACK_MIN_COMPONENT_MESSAGES);
470
- const SANDPACK_SEEDGRID_PT_PT_JSON_SHIM = buildCjsModule(SANDPACK_MIN_COMPONENT_MESSAGES);
471
- const SANDPACK_SEEDGRID_EN_US_JSON_SHIM = buildCjsModule(SANDPACK_MIN_COMPONENT_MESSAGES);
472
- const SANDPACK_SEEDGRID_ES_JSON_SHIM = buildCjsModule(SANDPACK_MIN_COMPONENT_MESSAGES);
473
- const SANDPACK_SEEDGRID_BLOCKED_EMAIL_DOMAINS_JSON_SHIM = buildCjsModule({
462
+ // These shims use valid JSON so the Sandpack bundler can parse them as JSON modules.
463
+ // (The self-hosted bundler evaluates .json files as JS, wrapping them with module.exports = {...}.)
464
+ const SANDPACK_SEEDGRID_PT_BR_JSON_SHIM = JSON.stringify(SANDPACK_MIN_COMPONENT_MESSAGES);
465
+ const SANDPACK_SEEDGRID_PT_PT_JSON_SHIM = JSON.stringify(SANDPACK_MIN_COMPONENT_MESSAGES);
466
+ const SANDPACK_SEEDGRID_EN_US_JSON_SHIM = JSON.stringify(SANDPACK_MIN_COMPONENT_MESSAGES);
467
+ const SANDPACK_SEEDGRID_ES_JSON_SHIM = JSON.stringify(SANDPACK_MIN_COMPONENT_MESSAGES);
468
+ const SANDPACK_SEEDGRID_BLOCKED_EMAIL_DOMAINS_JSON_SHIM = JSON.stringify({
474
469
  blockedEmailDomains: []
475
470
  });
476
471
  function parseRgbParts(raw) {
@@ -815,18 +810,13 @@ export default function SgPlayground(props) {
815
810
  "/styles.css": { code: sandpackStylesCss || buildSandpackStylesCss({}, effectivePreviewPadding) }
816
811
  };
817
812
  if (includeSeedgridDependency) {
818
- // Override @seedgrid/fe-components package.json to point at the pre-compiled sandbox bundle
813
+ // Intercept the package entry point and redirect to the pre-compiled sandbox bundle
819
814
  // (dist/sandbox.cjs) instead of the tsc barrel file (dist/index.js).
820
- // This makes the Sandpack bundler fetch and process ONE file instead of 200+ individual files,
821
- // which dramatically reduces memory usage and eliminates "loading everything" on every run.
815
+ // This makes the Sandpack bundler fetch and process ONE file instead of 200+ individual files.
816
+ // The real package.json from npm is left intact so version resolution works normally.
822
817
  // Requires @seedgrid/fe-components to be built with: pnpm run build:sandbox
823
- files["/node_modules/@seedgrid/fe-components/package.json"] = {
824
- code: JSON.stringify({
825
- name: "@seedgrid/fe-components",
826
- version: "0.0.0-sandbox",
827
- main: "dist/sandbox.cjs",
828
- exports: { ".": { require: "./dist/sandbox.cjs", default: "./dist/sandbox.cjs" } }
829
- }),
818
+ files["/node_modules/@seedgrid/fe-components/dist/index.js"] = {
819
+ code: `module.exports = require("./sandbox.cjs");`,
830
820
  hidden: true
831
821
  };
832
822
  // Compatibility shim for legacy @seedgrid/fe-components builds that still import "qrcode" (node-only path).