@tesouro/embedded-components-react 0.2.247 → 0.2.248

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.
@@ -0,0 +1,36 @@
1
+ import * as react from 'react';
2
+
3
+ interface WidgetSuiteStyleProbeLabels {
4
+ title: string;
5
+ body: string;
6
+ }
7
+
8
+ interface WidgetSuiteStyleProbeProps {
9
+ labels?: Partial<WidgetSuiteStyleProbeLabels>;
10
+ }
11
+ /**
12
+ * Scaffold-only smoke component (EMBD-4854).
13
+ *
14
+ * A newly generated UI library is absent from the package's Nx dependency graph
15
+ * until something imports it, and the Tailwind `@source` block is derived from
16
+ * that graph — so its `ttw:` utilities have no backing rules and every story
17
+ * renders unstyled. The package reaches both widget-suite libs through
18
+ * `src/experimental/WidgetSuite.ts`, which points at the feature lib, which
19
+ * re-exports this component; this component is the visible proof it works.
20
+ *
21
+ * It is also what the experimental subpath currently resolves to, so a host can
22
+ * mount the real specifier and see backed styles before the shell exists.
23
+ *
24
+ * `ttw:min-h-[364px]` is deliberately an arbitrary value no other surface emits:
25
+ * a generic utility like `ttw:flex` would still resolve from another widget's
26
+ * source even if this library were dropped from `@source`, which is the exact
27
+ * gap the probe exists to catch. The package's `styles.gate.spec.ts` sentinels
28
+ * that class, so dropping the anchor reds CI rather than silently unstyling.
29
+ *
30
+ * Delete this component (and its story) once the real suite shell supplies the
31
+ * styling proof — and repoint the sentinel at it.
32
+ */
33
+ declare const WidgetSuiteStyleProbe: ({ labels: labelOverrides, }: WidgetSuiteStyleProbeProps) => react.JSX.Element;
34
+
35
+ export { WidgetSuiteStyleProbe };
36
+ export type { WidgetSuiteStyleProbeProps };
@@ -0,0 +1,3 @@
1
+ import { WidgetSuiteStyleProbe as e } from "../libs/tesouro-embedded-components-react/widget-suite/ui/dist/index3.js";
2
+ import "../libs/tesouro-embedded-components-react/widget-suite/feature/dist/index.js";
3
+ export { e as WidgetSuiteStyleProbe };
@@ -1,22 +1,36 @@
1
+ import * as react from 'react';
2
+
3
+ interface WidgetSuiteStyleProbeLabels {
4
+ title: string;
5
+ body: string;
6
+ }
7
+
8
+ interface WidgetSuiteStyleProbeProps {
9
+ labels?: Partial<WidgetSuiteStyleProbeLabels>;
10
+ }
1
11
  /**
2
- * Entry-point probe **not a widget, and not intended for use.**
12
+ * Scaffold-only smoke component (EMBD-4854).
3
13
  *
4
- * The experimental path (EMBD-4849) landed before its first real module, so this
5
- * exists to give the plumbing something to resolve: the `./experimental/*` glob
6
- * export needs a file behind it, `attw` needs a named sample subpath, and the
7
- * verdaccio round-trip needs an import that survives an external install. It
8
- * exports a value and a type so both `dist/experimental/*.js` and
9
- * `dist/experimental/*.d.ts` are non-trivial.
14
+ * A newly generated UI library is absent from the package's Nx dependency graph
15
+ * until something imports it, and the Tailwind `@source` block is derived from
16
+ * that graph so its `ttw:` utilities have no backing rules and every story
17
+ * renders unstyled. The package reaches both widget-suite libs through
18
+ * `src/experimental/WidgetSuite.ts`, which points at the feature lib, which
19
+ * re-exports this component; this component is the visible proof it works.
10
20
  *
11
- * Delete it in the PR that puts the first real module on this path.
21
+ * It is also what the experimental subpath currently resolves to, so a host can
22
+ * mount the real specifier and see backed styles before the shell exists.
23
+ *
24
+ * `ttw:min-h-[364px]` is deliberately an arbitrary value no other surface emits:
25
+ * a generic utility like `ttw:flex` would still resolve from another widget's
26
+ * source even if this library were dropped from `@source`, which is the exact
27
+ * gap the probe exists to catch. The package's `styles.gate.spec.ts` sentinels
28
+ * that class, so dropping the anchor reds CI rather than silently unstyling.
29
+ *
30
+ * Delete this component (and its story) once the real suite shell supplies the
31
+ * styling proof — and repoint the sentinel at it.
12
32
  */
13
- interface ExperimentalEntryPointInfo {
14
- /** The published subpath this module is reachable at. */
15
- readonly entryPoint: '@tesouro/embedded-components-react/experimental';
16
- /** Always `false` — nothing on this path carries a compatibility promise. */
17
- readonly stable: false;
18
- }
19
- declare function experimentalEntryPointInfo(): ExperimentalEntryPointInfo;
33
+ declare const WidgetSuiteStyleProbe: ({ labels: labelOverrides, }: WidgetSuiteStyleProbeProps) => react.JSX.Element;
20
34
 
21
- export { experimentalEntryPointInfo };
22
- export type { ExperimentalEntryPointInfo };
35
+ export { WidgetSuiteStyleProbe };
36
+ export type { WidgetSuiteStyleProbeProps };
@@ -1,2 +1,3 @@
1
- import { experimentalEntryPointInfo as e } from "./EntryPointProbe.js";
2
- export { e as experimentalEntryPointInfo };
1
+ import { WidgetSuiteStyleProbe as e } from "../libs/tesouro-embedded-components-react/widget-suite/ui/dist/index3.js";
2
+ import "./WidgetSuite.js";
3
+ export { e as WidgetSuiteStyleProbe };
package/dist/index.css CHANGED
@@ -916,6 +916,9 @@
916
916
  .ttw\:min-h-\[300px\] {
917
917
  min-height: 300px;
918
918
  }
919
+ .ttw\:min-h-\[364px\] {
920
+ min-height: 364px;
921
+ }
919
922
  .ttw\:min-h-\[1123px\] {
920
923
  min-height: 1123px;
921
924
  }
@@ -1,5 +1,5 @@
1
1
  //#region ../../libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js
2
- var e = "@tesouro/embedded-components-react", t = "0.2.247", n = "e1f0d2840e1d252413df407dd44d2b9f786d24b0", r = Object.freeze({
2
+ var e = "@tesouro/embedded-components-react", t = "0.2.248", n = "5bc80b8f15e9061c4e1e1b3aa9ae08f264031f70", r = Object.freeze({
3
3
  library_name: e,
4
4
  library_version: t,
5
5
  library_sha: n
@@ -0,0 +1,3 @@
1
+ import { WidgetSuiteStyleProbe as e } from "../../ui/dist/index3.js";
2
+ import "../../ui/dist/index.js";
3
+ export { e as WidgetSuiteStyleProbe };
@@ -0,0 +1,3 @@
1
+ import "./index2.js";
2
+ import { WidgetSuiteStyleProbe as e } from "./index3.js";
3
+ export { e as WidgetSuiteStyleProbe };
@@ -0,0 +1,7 @@
1
+ //#region ../../libs/tesouro-embedded-components-react/widget-suite/ui/dist/index2.js
2
+ var e = {
3
+ title: "Widget suite styling is wired",
4
+ body: "This box is 364px tall and uses theme tokens. If it is unstyled, this library is missing from the generated Tailwind @source block."
5
+ };
6
+ //#endregion
7
+ export { e as WIDGET_SUITE_STYLE_PROBE_LABELS_EN };
@@ -0,0 +1,25 @@
1
+ import { Typography as e } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
2
+ import { WIDGET_SUITE_STYLE_PROBE_LABELS_EN as t } from "./index2.js";
3
+ import { useMemo as n } from "react";
4
+ import { jsx as r, jsxs as i } from "react/jsx-runtime";
5
+ //#region ../../libs/tesouro-embedded-components-react/widget-suite/ui/dist/index3.js
6
+ var a = ({ labels: a }) => {
7
+ let o = n(() => ({
8
+ ...t,
9
+ ...a
10
+ }), [a]);
11
+ return /* @__PURE__ */ i("div", {
12
+ "data-testid": "widget-suite-style-probe",
13
+ className: "ttw:flex ttw:min-h-[364px] ttw:flex-col ttw:items-center ttw:justify-center ttw:gap-2 ttw:rounded-lg ttw:border ttw:border-border ttw:bg-muted ttw:p-6 ttw:text-center",
14
+ children: [/* @__PURE__ */ r(e, {
15
+ variant: "h5",
16
+ children: o.title
17
+ }), /* @__PURE__ */ r(e, {
18
+ variant: "body2",
19
+ color: "muted",
20
+ children: o.body
21
+ })]
22
+ });
23
+ };
24
+ //#endregion
25
+ export { a as WidgetSuiteStyleProbe };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tesouro/embedded-components-react",
3
- "version": "0.2.247",
3
+ "version": "0.2.248",
4
4
  "license": "Apache-2.0",
5
5
  "type": "module",
6
6
  "packageDepSync": {
@@ -1,22 +0,0 @@
1
- /**
2
- * Entry-point probe — **not a widget, and not intended for use.**
3
- *
4
- * The experimental path (EMBD-4849) landed before its first real module, so this
5
- * exists to give the plumbing something to resolve: the `./experimental/*` glob
6
- * export needs a file behind it, `attw` needs a named sample subpath, and the
7
- * verdaccio round-trip needs an import that survives an external install. It
8
- * exports a value and a type so both `dist/experimental/*.js` and
9
- * `dist/experimental/*.d.ts` are non-trivial.
10
- *
11
- * Delete it in the PR that puts the first real module on this path.
12
- */
13
- interface ExperimentalEntryPointInfo {
14
- /** The published subpath this module is reachable at. */
15
- readonly entryPoint: '@tesouro/embedded-components-react/experimental';
16
- /** Always `false` — nothing on this path carries a compatibility promise. */
17
- readonly stable: false;
18
- }
19
- declare function experimentalEntryPointInfo(): ExperimentalEntryPointInfo;
20
-
21
- export { experimentalEntryPointInfo };
22
- export type { ExperimentalEntryPointInfo };
@@ -1,9 +0,0 @@
1
- //#region src/experimental/EntryPointProbe.ts
2
- function e() {
3
- return {
4
- entryPoint: "@tesouro/embedded-components-react/experimental",
5
- stable: !1
6
- };
7
- }
8
- //#endregion
9
- export { e as experimentalEntryPointInfo };