@gatewaze/admin-embed 0.1.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.
Files changed (96) hide show
  1. package/README.md +42 -0
  2. package/dist/AiSkillsPicker-dbFhcanE.js +373 -0
  3. package/dist/ContentAccessPage-D0HRqPFc.js +264 -0
  4. package/dist/DataTable-fe6yRVpF.js +1984 -0
  5. package/dist/DetailPageHeader-D_v7924k.js +69 -0
  6. package/dist/EditionEmail-CyhC8232.js +8382 -0
  7. package/dist/GuideContent-DBXKCu7r.js +7580 -0
  8. package/dist/HostMediaTab-BsIBEQ1v.js +440 -0
  9. package/dist/InboxPage-C8ivCKdx.js +1112 -0
  10. package/dist/NewsletterCanvasEditor--B06apn3.js +11453 -0
  11. package/dist/NewsletterSetupWizard-BqV6-fa5.js +347 -0
  12. package/dist/NewsletterSignup-DRVZIpOs.js +224 -0
  13. package/dist/Page-D3u8IZ2a.js +14 -0
  14. package/dist/Toaster-Cde0i6IA.js +18 -0
  15. package/dist/Tooltip-CqxUlW1d.js +746 -0
  16. package/dist/_collectionSlug_-B3UN6M-Q.js +308 -0
  17. package/dist/_collection_-Qz4k_Qjl.js +139 -0
  18. package/dist/_edition_-DQXwkI_-.js +301 -0
  19. package/dist/_id_-CtT7rT9f.js +257 -0
  20. package/dist/_id_-CzScE4Qn.js +1197 -0
  21. package/dist/_virtual_gatewaze-modules-BeloWlOa.js +991 -0
  22. package/dist/admin-B0Mmrh_O.js +1239 -0
  23. package/dist/admin-CcfoK6vD.js +17 -0
  24. package/dist/admin-embed.js +21844 -0
  25. package/dist/admin.css +2 -0
  26. package/dist/block-editor-vXBShAue.js +226 -0
  27. package/dist/brand-DklYwIeA.js +11 -0
  28. package/dist/brick-editor-CmBitMMK.js +225 -0
  29. package/dist/broadcastService-CBqXNt_N.js +190 -0
  30. package/dist/classnames-uWIYaD6z.js +44 -0
  31. package/dist/contentAccessService-Cs7tdAo-.js +59 -0
  32. package/dist/context-jzuubYRz.js +5 -0
  33. package/dist/createSafeContext-P1pK0sAN.js +17 -0
  34. package/dist/detail-B8SVFJJr.js +26285 -0
  35. package/dist/detail-uFBxRbLF.js +2966 -0
  36. package/dist/dist-DTrOExw8.js +38806 -0
  37. package/dist/edition-slug-CARO24Bs.js +7 -0
  38. package/dist/export-edition-html-C_hdXQu5.js +18893 -0
  39. package/dist/floating-ui.dom-Cyv879E9.js +987 -0
  40. package/dist/hooks-C377EXJG.js +2974 -0
  41. package/dist/img/mlops-logo.png +0 -0
  42. package/dist/img/mlops-logo2.png +0 -0
  43. package/dist/index.d.ts +105 -0
  44. package/dist/jsx-runtime-CjozyJt-.js +180 -0
  45. package/dist/lib-CylJmhlJ.js +828 -0
  46. package/dist/list-C0cz0aQz.js +451 -0
  47. package/dist/list-CIVgIGsU.js +166 -0
  48. package/dist/logo/mlops-alt.png +0 -0
  49. package/dist/logo/mlops-logo.png +0 -0
  50. package/dist/new-r4KWpqa6.js +80 -0
  51. package/dist/outline-DwDYhYcF.js +6538 -0
  52. package/dist/pages-Ersfxcz7.js +216 -0
  53. package/dist/preview/12627f.jpg +0 -0
  54. package/dist/preview/af009d.jpg +0 -0
  55. package/dist/public-api-LD11kMxh.js +238 -0
  56. package/dist/react-DB2tPNit.js +933 -0
  57. package/dist/react-dom-giQNVXng.js +267 -0
  58. package/dist/registry-4XrV9iNG.js +7 -0
  59. package/dist/render-BtUWfMUt.js +59634 -0
  60. package/dist/resolvePeopleByEmail-hivX2l07.js +828 -0
  61. package/dist/runtime-config.js +10 -0
  62. package/dist/sends-BkPO6PG2.js +182 -0
  63. package/dist/server.browser-Pj3QUa7k.js +15227 -0
  64. package/dist/shim-BCerG8nb.js +6681 -0
  65. package/dist/sonnerHostBridge-CXuCMM3R.js +665 -0
  66. package/dist/src-BWDAOzZO.js +799 -0
  67. package/dist/starter-templates-CFs-QUdF.js +3077 -0
  68. package/dist/storage-VDSvnkvR.js +39 -0
  69. package/dist/templateParser-BQ2IsJ6c.js +49 -0
  70. package/dist/templates-rjQjWsRr.js +253 -0
  71. package/dist/theme/gatewaze/android-icon-144x144.png +0 -0
  72. package/dist/theme/gatewaze/android-icon-192x192.png +0 -0
  73. package/dist/theme/gatewaze/android-icon-36x36.png +0 -0
  74. package/dist/theme/gatewaze/android-icon-48x48.png +0 -0
  75. package/dist/theme/gatewaze/android-icon-72x72.png +0 -0
  76. package/dist/theme/gatewaze/android-icon-96x96.png +0 -0
  77. package/dist/theme/gatewaze/favicon-144x144.png +0 -0
  78. package/dist/theme/gatewaze/favicon-16x16.png +0 -0
  79. package/dist/theme/gatewaze/favicon-192x192.png +0 -0
  80. package/dist/theme/gatewaze/favicon-32x32.png +0 -0
  81. package/dist/theme/gatewaze/favicon-96x96.png +0 -0
  82. package/dist/theme/gatewaze/favicon.ico +0 -0
  83. package/dist/theme/gatewaze/gatewaze-icon-512.png +0 -0
  84. package/dist/theme/gatewaze/gatewaze-logo-black.svg +24 -0
  85. package/dist/theme/gatewaze/gatewaze-logo-white.svg +20 -0
  86. package/dist/theme/gatewaze/gatewaze-poweredby-black.svg +25 -0
  87. package/dist/theme/gatewaze/gatewaze-poweredby-white.svg +25 -0
  88. package/dist/theme/gatewaze/logo_black.svg +24 -0
  89. package/dist/theme/gatewaze/logo_white.svg +20 -0
  90. package/dist/theme-D6odw5nx.js +586 -0
  91. package/dist/ui-DRIo9Krs.js +9747 -0
  92. package/dist/upload-DMNfZ6FX.js +505 -0
  93. package/dist/useModuleFeature-DgsFIUpv.js +8 -0
  94. package/dist/utils-BcVvIjaY.js +36 -0
  95. package/dist/with-selector-B8eSdVx_.js +100 -0
  96. package/package.json +33 -0
Binary file
Binary file
@@ -0,0 +1,105 @@
1
+ // Generated by scripts/build.mjs — do not edit.
2
+ // Copied verbatim from packages/admin/src/embed/types.ts, plus the entry's own exports.
3
+
4
+ /**
5
+ * Public contract for @gatewaze/admin-embed, the embeddable admin
6
+ * library. The host application's outlet component is the only intended
7
+ * caller of mount()/unmount(); this file has no dependency on any host
8
+ * framework.
9
+ */
10
+
11
+ export interface GwHostContext {
12
+ /**
13
+ * Leading '/', no trailing slash, URL-path-safe segments only, and
14
+ * must equal the host route prefix exactly (e.g. '/apps/gw').
15
+ */
16
+ basename: string;
17
+ supabase: { url: string; anonKey: string };
18
+ /**
19
+ * '' or a same-origin absolute path (leading '/', no scheme/host, no
20
+ * trailing slash); '' means /api/gw. Cross-origin values are rejected —
21
+ * the token-containment guarantee (the Supabase access token never
22
+ * rides to a third-party origin) depends on this always resolving
23
+ * same-origin.
24
+ */
25
+ apiBaseUrl: string;
26
+ /**
27
+ * Host overlay. Runtime-gates even compiled-in modules on top of
28
+ * whatever GW's own installed_modules/RLS state allows — it narrows,
29
+ * it never widens. ids/feature strings come from GW's existing module
30
+ * registry (the same names useModuleSlots consumes); the host passes
31
+ * them through, it does not invent keys.
32
+ */
33
+ enabled: { moduleIds: string[]; features: string[] };
34
+ signIn: { lfidStartUrl: string; returnUrl: string };
35
+ /** Session isolation; embed defaults to 'host_embed' if omitted. */
36
+ storageKeySuffix?: string;
37
+ /**
38
+ * Where Radix portals render. Host-owned; must outlive the mount, and
39
+ * only the embed (and unmount) writes into it.
40
+ */
41
+ portalContainer?: HTMLElement;
42
+ /**
43
+ * Host notification sink. When present, `toast()` calls inside the embed are rendered by the
44
+ * HOST's notification system instead of the embed's own toaster, so they look and stack like
45
+ * every other notification in the host app. Absent: the embed falls back to its own toaster.
46
+ *
47
+ * Only string-content toasts can cross this boundary; anything richer stays with the embed.
48
+ */
49
+ notify?: (notification: GwEmbedNotification) => void;
50
+ /** Host hook: embed gave up. */
51
+ onFatal?: (err: GwEmbedFatalError) => void;
52
+ /**
53
+ * SPA navigation to host routes OUTSIDE the prefix (basename-relative
54
+ * useNavigate can't leave it). Fallback when absent: full
55
+ * window.location assign.
56
+ */
57
+ navigateHost?: (path: string) => void;
58
+ /**
59
+ * Host telemetry sink; console.warn fallback if absent. The embed
60
+ * never imports a host logging singleton.
61
+ */
62
+ telemetry?: (event: { name: string; [key: string]: unknown }) => void;
63
+ }
64
+
65
+ export type GwEmbedFatalErrorType =
66
+ | 'config_invalid'
67
+ | 'import_failed'
68
+ | 'mount_aborted'
69
+ | 'render_crash';
70
+
71
+ export interface GwEmbedFatalError {
72
+ error_type: GwEmbedFatalErrorType;
73
+ /** e.g. 'gw_double_mount', 'gw_ctx_basename_invalid'. */
74
+ code: string;
75
+ /** Sanitized — never includes tokens, URLs with query/fragment, or stack traces. */
76
+ message: string;
77
+ field?: string;
78
+ recoverable: boolean;
79
+ }
80
+
81
+ export interface GwEmbedHandle {
82
+ unmount(): void;
83
+ }
84
+
85
+ /** Severity of a notification handed to the host, mapped from the embed's toast levels. */
86
+ export type GwEmbedNotificationLevel = 'success' | 'error' | 'warning' | 'info';
87
+
88
+ /** One notification for GwHostContext.notify. */
89
+ export interface GwEmbedNotification {
90
+ level: GwEmbedNotificationLevel;
91
+ /** Plain text; the host renders it with its own components. */
92
+ message: string;
93
+ /** Optional secondary line. */
94
+ description?: string;
95
+ /** Stable id for this notification, unique within the mount. */
96
+ id: string;
97
+ /** Requested lifetime in ms, if the caller asked for one. The host may ignore it. */
98
+ durationMs?: number;
99
+ }
100
+
101
+ /** Mounts the admin module set into `el`. Never throws; failures report through ctx.onFatal. */
102
+ export declare function mount(el: HTMLElement, ctx: GwHostContext): GwEmbedHandle;
103
+
104
+ /** Embed build version, logged by the host at mount so a support ticket can pin the build. */
105
+ export declare const version: string;
@@ -0,0 +1,180 @@
1
+ import { n as e, t } from "./react-DB2tPNit.js";
2
+ //#region ../../node_modules/.pnpm/react@19.2.4/node_modules/react/cjs/react-jsx-runtime.production.js
3
+ var n = /* @__PURE__ */ e(((e) => {
4
+ var t = Symbol.for("react.transitional.element"), n = Symbol.for("react.fragment");
5
+ function r(e, n, r) {
6
+ var i = null;
7
+ if (r !== void 0 && (i = "" + r), n.key !== void 0 && (i = "" + n.key), "key" in n) for (var a in r = {}, n) a !== "key" && (r[a] = n[a]);
8
+ else r = n;
9
+ return n = r.ref, {
10
+ $$typeof: t,
11
+ type: e,
12
+ key: i,
13
+ ref: n === void 0 ? null : n,
14
+ props: r
15
+ };
16
+ }
17
+ e.Fragment = n, e.jsx = r, e.jsxs = r;
18
+ })), r = /* @__PURE__ */ e(((e) => {
19
+ process.env.NODE_ENV !== "production" && (function() {
20
+ function n(e) {
21
+ if (e == null) return null;
22
+ if (typeof e == "function") return e.$$typeof === k ? null : e.displayName || e.name || null;
23
+ if (typeof e == "string") return e;
24
+ switch (e) {
25
+ case v: return "Fragment";
26
+ case b: return "Profiler";
27
+ case y: return "StrictMode";
28
+ case w: return "Suspense";
29
+ case T: return "SuspenseList";
30
+ case O: return "Activity";
31
+ }
32
+ if (typeof e == "object") switch (typeof e.tag == "number" && console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), e.$$typeof) {
33
+ case _: return "Portal";
34
+ case S: return e.displayName || "Context";
35
+ case x: return (e._context.displayName || "Context") + ".Consumer";
36
+ case C:
37
+ var t = e.render;
38
+ return e = e.displayName, e ||= (e = t.displayName || t.name || "", e === "" ? "ForwardRef" : "ForwardRef(" + e + ")"), e;
39
+ case E: return t = e.displayName || null, t === null ? n(e.type) || "Memo" : t;
40
+ case D:
41
+ t = e._payload, e = e._init;
42
+ try {
43
+ return n(e(t));
44
+ } catch {}
45
+ }
46
+ return null;
47
+ }
48
+ function r(e) {
49
+ return "" + e;
50
+ }
51
+ function i(e) {
52
+ try {
53
+ r(e);
54
+ var t = !1;
55
+ } catch {
56
+ t = !0;
57
+ }
58
+ if (t) {
59
+ t = console;
60
+ var n = t.error, i = typeof Symbol == "function" && Symbol.toStringTag && e[Symbol.toStringTag] || e.constructor.name || "Object";
61
+ return n.call(t, "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.", i), r(e);
62
+ }
63
+ }
64
+ function a(e) {
65
+ if (e === v) return "<>";
66
+ if (typeof e == "object" && e && e.$$typeof === D) return "<...>";
67
+ try {
68
+ var t = n(e);
69
+ return t ? "<" + t + ">" : "<...>";
70
+ } catch {
71
+ return "<...>";
72
+ }
73
+ }
74
+ function o() {
75
+ var e = A.A;
76
+ return e === null ? null : e.getOwner();
77
+ }
78
+ function s() {
79
+ return Error("react-stack-top-frame");
80
+ }
81
+ function c(e) {
82
+ if (j.call(e, "key")) {
83
+ var t = Object.getOwnPropertyDescriptor(e, "key").get;
84
+ if (t && t.isReactWarning) return !1;
85
+ }
86
+ return e.key !== void 0;
87
+ }
88
+ function l(e, t) {
89
+ function n() {
90
+ P || (P = !0, console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)", t));
91
+ }
92
+ n.isReactWarning = !0, Object.defineProperty(e, "key", {
93
+ get: n,
94
+ configurable: !0
95
+ });
96
+ }
97
+ function u() {
98
+ var e = n(this.type);
99
+ return F[e] || (F[e] = !0, console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")), e = this.props.ref, e === void 0 ? null : e;
100
+ }
101
+ function d(e, t, n, r, i, a) {
102
+ var o = n.ref;
103
+ return e = {
104
+ $$typeof: g,
105
+ type: e,
106
+ key: t,
107
+ props: n,
108
+ _owner: r
109
+ }, (o === void 0 ? null : o) === null ? Object.defineProperty(e, "ref", {
110
+ enumerable: !1,
111
+ value: null
112
+ }) : Object.defineProperty(e, "ref", {
113
+ enumerable: !1,
114
+ get: u
115
+ }), e._store = {}, Object.defineProperty(e._store, "validated", {
116
+ configurable: !1,
117
+ enumerable: !1,
118
+ writable: !0,
119
+ value: 0
120
+ }), Object.defineProperty(e, "_debugInfo", {
121
+ configurable: !1,
122
+ enumerable: !1,
123
+ writable: !0,
124
+ value: null
125
+ }), Object.defineProperty(e, "_debugStack", {
126
+ configurable: !1,
127
+ enumerable: !1,
128
+ writable: !0,
129
+ value: i
130
+ }), Object.defineProperty(e, "_debugTask", {
131
+ configurable: !1,
132
+ enumerable: !1,
133
+ writable: !0,
134
+ value: a
135
+ }), Object.freeze && (Object.freeze(e.props), Object.freeze(e)), e;
136
+ }
137
+ function f(e, t, r, a, s, u) {
138
+ var f = t.children;
139
+ if (f !== void 0) if (a) if (M(f)) {
140
+ for (a = 0; a < f.length; a++) p(f[a]);
141
+ Object.freeze && Object.freeze(f);
142
+ } else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
143
+ else p(f);
144
+ if (j.call(t, "key")) {
145
+ f = n(e);
146
+ var m = Object.keys(t).filter(function(e) {
147
+ return e !== "key";
148
+ });
149
+ a = 0 < m.length ? "{key: someKey, " + m.join(": ..., ") + ": ...}" : "{key: someKey}", R[f + a] || (m = 0 < m.length ? "{" + m.join(": ..., ") + ": ...}" : "{}", console.error("A props object containing a \"key\" prop is being spread into JSX:\n let props = %s;\n <%s {...props} />\nReact keys must be passed directly to JSX without using spread:\n let props = %s;\n <%s key={someKey} {...props} />", a, f, m, f), R[f + a] = !0);
150
+ }
151
+ if (f = null, r !== void 0 && (i(r), f = "" + r), c(t) && (i(t.key), f = "" + t.key), "key" in t) for (var h in r = {}, t) h !== "key" && (r[h] = t[h]);
152
+ else r = t;
153
+ return f && l(r, typeof e == "function" ? e.displayName || e.name || "Unknown" : e), d(e, f, r, o(), s, u);
154
+ }
155
+ function p(e) {
156
+ m(e) ? e._store && (e._store.validated = 1) : typeof e == "object" && e && e.$$typeof === D && (e._payload.status === "fulfilled" ? m(e._payload.value) && e._payload.value._store && (e._payload.value._store.validated = 1) : e._store && (e._store.validated = 1));
157
+ }
158
+ function m(e) {
159
+ return typeof e == "object" && !!e && e.$$typeof === g;
160
+ }
161
+ var h = t(), g = Symbol.for("react.transitional.element"), _ = Symbol.for("react.portal"), v = Symbol.for("react.fragment"), y = Symbol.for("react.strict_mode"), b = Symbol.for("react.profiler"), x = Symbol.for("react.consumer"), S = Symbol.for("react.context"), C = Symbol.for("react.forward_ref"), w = Symbol.for("react.suspense"), T = Symbol.for("react.suspense_list"), E = Symbol.for("react.memo"), D = Symbol.for("react.lazy"), O = Symbol.for("react.activity"), k = Symbol.for("react.client.reference"), A = h.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, j = Object.prototype.hasOwnProperty, M = Array.isArray, N = console.createTask ? console.createTask : function() {
162
+ return null;
163
+ };
164
+ h = { react_stack_bottom_frame: function(e) {
165
+ return e();
166
+ } };
167
+ var P, F = {}, I = h.react_stack_bottom_frame.bind(h, s)(), L = N(a(s)), R = {};
168
+ e.Fragment = v, e.jsx = function(e, t, n) {
169
+ var r = 1e4 > A.recentlyCreatedOwnerStacks++;
170
+ return f(e, t, n, !1, r ? Error("react-stack-top-frame") : I, r ? N(a(e)) : L);
171
+ }, e.jsxs = function(e, t, n) {
172
+ var r = 1e4 > A.recentlyCreatedOwnerStacks++;
173
+ return f(e, t, n, !0, r ? Error("react-stack-top-frame") : I, r ? N(a(e)) : L);
174
+ };
175
+ })();
176
+ })), i = /* @__PURE__ */ e(((e, t) => {
177
+ t.exports = process.env.NODE_ENV === "production" ? n() : r();
178
+ }));
179
+ //#endregion
180
+ export { i as t };