@superblocksteam/library 2.0.49 → 2.0.51-next.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.
- package/dist/{early-console-buffer-DWTLgla0.js → early-console-buffer-Bd5jqqBJ.js} +2 -2
- package/dist/{early-console-buffer-DWTLgla0.js.map → early-console-buffer-Bd5jqqBJ.js.map} +1 -1
- package/dist/index.d.ts +4 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +99 -49
- package/dist/index.js.map +1 -1
- package/dist/{logs-DDh7Anxs.js → logs-BA3qqo2m.js} +2 -2
- package/dist/{logs-DDh7Anxs.js.map → logs-BA3qqo2m.js.map} +1 -1
- package/dist/{root-store-DSXdJ9lh.js → root-store-Cc3dO2jP.js} +14 -4
- package/dist/{root-store-DSXdJ9lh.js.map → root-store-Cc3dO2jP.js.map} +1 -1
- package/dist/root-store-xviorlO5.js +4 -0
- package/dist/utils-BVE4VhSk.js +3 -0
- package/dist/{utils-CCBWAYIM.js → utils-xmrGF_mk.js} +2 -2
- package/dist/{utils-CCBWAYIM.js.map → utils-xmrGF_mk.js.map} +1 -1
- package/package.json +2 -4
- package/dist/root-store-4FotQ8o2.js +0 -4
- package/dist/utils-BCrSLIhM.js +0 -3
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { early_console_buffer_default } from "./early-console-buffer-
|
|
1
|
+
import { t as early_console_buffer_default } from "./early-console-buffer-Bd5jqqBJ.js";
|
|
2
2
|
import { resourceFromAttributes } from "@opentelemetry/resources";
|
|
3
3
|
import { ATTR_SERVICE_NAME } from "@opentelemetry/semantic-conventions";
|
|
4
4
|
import { OTLPLogExporter } from "@opentelemetry/exporter-logs-otlp-http";
|
|
@@ -27,4 +27,4 @@ function initLibraryLoggerProvider(context) {
|
|
|
27
27
|
|
|
28
28
|
//#endregion
|
|
29
29
|
export { initLibraryLoggerProvider };
|
|
30
|
-
//# sourceMappingURL=logs-
|
|
30
|
+
//# sourceMappingURL=logs-BA3qqo2m.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"logs-
|
|
1
|
+
{"version":3,"file":"logs-BA3qqo2m.js","names":[],"sources":["../src/lib/tracing/logs.ts"],"sourcesContent":["import { OTLPLogExporter } from \"@opentelemetry/exporter-logs-otlp-http\";\nimport { resourceFromAttributes } from \"@opentelemetry/resources\";\nimport {\n BatchLogRecordProcessor,\n LoggerProvider,\n} from \"@opentelemetry/sdk-logs\";\nimport { ATTR_SERVICE_NAME } from \"@opentelemetry/semantic-conventions\";\nimport LibraryEarlyConsoleBuffer from \"./early-console-buffer.js\";\n\ninterface LoggingContext {\n windowOriginUrl: string;\n environment: string;\n appId: string;\n userId?: string;\n userEmail?: string;\n orgId: string;\n orgName?: string;\n}\n\nexport function initLibraryLoggerProvider(context: LoggingContext) {\n const logExporter = new OTLPLogExporter({\n url: context.windowOriginUrl + \"/api/v1/logs\",\n headers: {\n \"Content-Type\": \"application/json\",\n },\n });\n\n const resource = resourceFromAttributes({\n [ATTR_SERVICE_NAME]: \"superblocks-ui-framework\",\n \"user-id\": context.userId,\n \"user-email\": context.userEmail,\n \"organization-id\": context.orgId,\n \"organization-name\": context.orgName,\n \"application-id\": context.appId,\n \"deployment.environment\": context.environment,\n });\n\n const loggerProvider = new LoggerProvider({\n resource,\n processors: [new BatchLogRecordProcessor(logExporter)],\n });\n\n const otelLogger = loggerProvider.getLogger(\n \"superblocks-ui-framework\",\n \"1.0.0\",\n );\n\n // Enable buffered console logs with rich context\n LibraryEarlyConsoleBuffer.getInstance().enableOpenTelemetry(otelLogger);\n}\n"],"mappings":";;;;;;;AAmBA,SAAgB,0BAA0B,SAAyB;CACjE,MAAM,cAAc,IAAI,gBAAgB;EACtC,KAAK,QAAQ,kBAAkB;EAC/B,SAAS,EACP,gBAAgB,oBACjB;EACF,CAAC;CAiBF,MAAM,aALiB,IAAI,eAAe;EACxC,UAXe,uBAAuB;IACrC,oBAAoB;GACrB,WAAW,QAAQ;GACnB,cAAc,QAAQ;GACtB,mBAAmB,QAAQ;GAC3B,qBAAqB,QAAQ;GAC7B,kBAAkB,QAAQ;GAC1B,0BAA0B,QAAQ;GACnC,CAAC;EAIA,YAAY,CAAC,IAAI,wBAAwB,YAAY,CAAC;EACvD,CAAC,CAEgC,UAChC,4BACA,QACD;AAGD,8BAA0B,aAAa,CAAC,oBAAoB,WAAW"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { getTracer } from "./utils-
|
|
1
|
+
import { t as getTracer } from "./utils-xmrGF_mk.js";
|
|
2
2
|
import { NotificationPosition, SbEntityType, TriggerStepType, isValidStepDef } from "@superblocksteam/library-shared/types";
|
|
3
3
|
import _, { cloneDeep, get, isEmpty, isNumber, isObject, isString, isUndefined, pick, set, throttle, toNumber, toString } from "lodash";
|
|
4
4
|
import * as React$1 from "react";
|
|
@@ -145,6 +145,7 @@ var DeployedParentBridge = class {
|
|
|
145
145
|
addComponentToAiContext(_sourceId) {}
|
|
146
146
|
toggleComponentInAiContext(_sourceId, _instanceId, _label) {}
|
|
147
147
|
setAiContextMode(_mode) {}
|
|
148
|
+
sendAiLoaderState(_shouldShowLoader) {}
|
|
148
149
|
sendRuntimeError(_data) {}
|
|
149
150
|
sendClearRuntimeError(_id) {}
|
|
150
151
|
};
|
|
@@ -413,6 +414,15 @@ var SuperblocksEditorBridge = class SuperblocksEditorBridge {
|
|
|
413
414
|
}
|
|
414
415
|
}, forceSend);
|
|
415
416
|
}
|
|
417
|
+
sendAiLoaderState(shouldShowLoader) {
|
|
418
|
+
this.sendImmediate({
|
|
419
|
+
type: "ai-updates",
|
|
420
|
+
payload: {
|
|
421
|
+
type: "loader-state",
|
|
422
|
+
shouldShowLoader
|
|
423
|
+
}
|
|
424
|
+
});
|
|
425
|
+
}
|
|
416
426
|
socketError(message) {
|
|
417
427
|
this.sendImmediate({
|
|
418
428
|
type: "socket/error",
|
|
@@ -991,7 +1001,7 @@ var registry_default = EventRegistry;
|
|
|
991
1001
|
|
|
992
1002
|
//#endregion
|
|
993
1003
|
//#region src/lib/triggers/run-event-handlers.ts
|
|
994
|
-
const getRootStore = () => import("./root-store-
|
|
1004
|
+
const getRootStore = () => import("./root-store-xviorlO5.js").then((module) => module.default);
|
|
995
1005
|
const runEventHandlers = async ({ flow, name, scopeId, additionalContext }) => {
|
|
996
1006
|
const context$1 = {
|
|
997
1007
|
scopeId,
|
|
@@ -4707,5 +4717,5 @@ var RootStore = class {
|
|
|
4707
4717
|
var root_store_default = new RootStore();
|
|
4708
4718
|
|
|
4709
4719
|
//#endregion
|
|
4710
|
-
export {
|
|
4711
|
-
//# sourceMappingURL=root-store-
|
|
4720
|
+
export { getName as A, Section as C, NavigationEvent as D, run_event_handlers_default as E, isEmbeddedBySuperblocksFirstParty as F, isEditMode as I, getEditStore as L, isNameEqual as M, editorBridge as N, navigation as O, iframeMessageHandler as P, RecordProp as S, createPropertiesPanelDefinition as T, DevTools as _, addNewPromise as a, Prop as b, FileManager as c, CLASS_NAMES as d, colors as f, EventFlow as g, LazyFunction as h, generateId as i, isName as j, isLocalLink as k, getFileWithUploadId as l, GLOBAL_SCOPE_ID as m, DEFAULT_ANONYMOUS_SOURCE_ID as n, rejectById as o, system_error_default as p, startEditorSync as r, resolveById as s, root_store_default as t, sendNotification as u, createInternalPropsList as v, VALIDATORS as w, PropsPanelCategory as x, createManagedPropsList as y };
|
|
4721
|
+
//# sourceMappingURL=root-store-Cc3dO2jP.js.map
|