@tesouro/embedded-components-react 0.2.242 → 0.2.244

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/README.md CHANGED
@@ -49,12 +49,33 @@ boundary.
49
49
 
50
50
  ### Entry points
51
51
 
52
- | Import path | What you get |
53
- | ----------------------------------------------- | -------------------------------------------------------------------------- |
54
- | `@tesouro/embedded-components-react` | All widgets plus `RootWidgetProvider` / `WidgetProvider`. |
55
- | `@tesouro/embedded-components-react/styles.css` | The widget stylesheet — see [About the stylesheet](#about-the-stylesheet). |
56
- | `@tesouro/embedded-components-react/core` | Framework-agnostic token utilities (`createWidgetTokenManager`). |
57
- | `@tesouro/embedded-components-react/monite-sdk` | Monite SDK surface for Monite-backed widgets. |
52
+ | Import path | What you get |
53
+ | ------------------------------------------------- | ------------------------------------------------------------------------------------ |
54
+ | `@tesouro/embedded-components-react` | All widgets plus `RootWidgetProvider` / `WidgetProvider`. |
55
+ | `@tesouro/embedded-components-react/styles.css` | The widget stylesheet — see [About the stylesheet](#about-the-stylesheet). |
56
+ | `@tesouro/embedded-components-react/core` | Framework-agnostic token utilities (`createWidgetTokenManager`). |
57
+ | `@tesouro/embedded-components-react/monite-sdk` | Monite SDK surface for Monite-backed widgets. |
58
+ | `@tesouro/embedded-components-react/experimental` | Work in progress — no compatibility promise. See [below](#experimental-entry-point). |
59
+
60
+ ### Experimental entry point
61
+
62
+ `@tesouro/embedded-components-react/experimental` (and the per-module
63
+ `@tesouro/embedded-components-react/experimental/<Module>`) is a staging area for
64
+ work in progress. It is **outside this package's semver contract**:
65
+
66
+ - Anything exported there can change shape or be **removed outright in any
67
+ release, including a patch**. There is no deprecation window.
68
+ - Its exports are deliberately not documented here — no prop tables, no
69
+ reference entry. Read the shipped types.
70
+ - It is unsupported. If you hit a problem with it, use the released widget on
71
+ the main entry point instead.
72
+
73
+ Use it only when we have pointed you at a specific module, and pin the package
74
+ to an exact version if you do.
75
+
76
+ Everything else in this package — the main entry point, `./core`,
77
+ `./monite-sdk`, `./lib/*` and the stylesheet — carries the normal compatibility
78
+ promise and is unaffected by churn on this path.
58
79
 
59
80
  ### About the stylesheet
60
81
 
@@ -583,7 +604,8 @@ This package ships ESM with TypeScript declarations and is intended for
583
604
  **bundler-based** consumers — Vite, webpack, esbuild, Next.js — which is how
584
605
  React apps are built. Its types are exposed through the package `exports` map, so
585
606
  set TypeScript's `"moduleResolution"` to **`"bundler"`** (the modern default) and
586
- every entrypoint (`.`, `./core`, `./monite-sdk`, `./lib/*`) resolves cleanly.
607
+ every entrypoint (`.`, `./core`, `./monite-sdk`, `./lib/*`, `./experimental`,
608
+ `./experimental/*`) resolves cleanly.
587
609
 
588
610
  The published declarations are **self-contained**: the build bundles each
589
611
  entrypoint's `.d.ts` (`scripts/bundle-dts.mjs`) so it inlines the internal
@@ -0,0 +1,22 @@
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 };
@@ -0,0 +1,9 @@
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 };
@@ -0,0 +1,22 @@
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 };
@@ -0,0 +1,2 @@
1
+ import { experimentalEntryPointInfo as e } from "./EntryPointProbe.js";
2
+ export { e as experimentalEntryPointInfo };
@@ -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.242", n = "cdbabdce116921ca7205e545cf4292c570b9550f", r = Object.freeze({
2
+ var e = "@tesouro/embedded-components-react", t = "0.2.244", n = "158b3cc4f007d24e9afc002efc06e4cab9fa524b", r = Object.freeze({
3
3
  library_name: e,
4
4
  library_version: t,
5
5
  library_sha: n
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tesouro/embedded-components-react",
3
- "version": "0.2.242",
3
+ "version": "0.2.244",
4
4
  "license": "Apache-2.0",
5
5
  "type": "module",
6
6
  "packageDepSync": {
@@ -38,6 +38,16 @@
38
38
  "import": "./dist/core.js",
39
39
  "default": "./dist/core.js"
40
40
  },
41
+ "./experimental": {
42
+ "types": "./dist/experimental/index.d.ts",
43
+ "import": "./dist/experimental/index.js",
44
+ "default": "./dist/experimental/index.js"
45
+ },
46
+ "./experimental/*": {
47
+ "types": "./dist/experimental/*.d.ts",
48
+ "import": "./dist/experimental/*.js",
49
+ "default": "./dist/experimental/*.js"
50
+ },
41
51
  "./monite-sdk": {
42
52
  "types": "./dist/lib/monite-sdk.d.ts",
43
53
  "import": "./dist/lib/monite-sdk.js",