@almadar/ui 2.48.7 → 2.49.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/avl/index.cjs +25 -3
- package/dist/avl/index.js +27 -5
- package/dist/components/index.cjs +24 -1
- package/dist/components/index.js +25 -2
- package/dist/providers/index.cjs +24 -1
- package/dist/providers/index.js +25 -2
- package/dist/runtime/index.cjs +25 -3
- package/dist/runtime/index.js +27 -5
- package/package.json +4 -4
package/dist/avl/index.cjs
CHANGED
|
@@ -22031,6 +22031,7 @@ SyntaxHighlighter__default.default.registerLanguage("toml", langToml__default.de
|
|
|
22031
22031
|
SyntaxHighlighter__default.default.registerLanguage("go", langGo__default.default);
|
|
22032
22032
|
SyntaxHighlighter__default.default.registerLanguage("graphql", langGraphql__default.default);
|
|
22033
22033
|
SyntaxHighlighter__default.default.registerLanguage("orb", syntax.orbLanguage);
|
|
22034
|
+
SyntaxHighlighter__default.default.registerLanguage("lolo", syntax.loloLanguage);
|
|
22034
22035
|
var orbStyleOverrides = {
|
|
22035
22036
|
"orb-binding": { color: syntax.ORB_COLORS.dark.binding, fontWeight: "bold" },
|
|
22036
22037
|
"orb-effect": { color: syntax.ORB_COLORS.dark.effect, fontWeight: "bold" },
|
|
@@ -22052,6 +22053,27 @@ var orbStyleOverrides = {
|
|
|
22052
22053
|
"orb-op-async": { color: syntax.ORB_COLORS.dark.async }
|
|
22053
22054
|
};
|
|
22054
22055
|
var orbStyle = { ...dark__default.default, ...orbStyleOverrides };
|
|
22056
|
+
var loloStyleOverrides = {
|
|
22057
|
+
"lolo-binding": { color: syntax.ORB_COLORS.dark.binding, fontWeight: "bold" },
|
|
22058
|
+
"lolo-event": { color: syntax.ORB_COLORS.dark.event },
|
|
22059
|
+
"lolo-effect": { color: syntax.ORB_COLORS.dark.effect, fontWeight: "bold" },
|
|
22060
|
+
"keyword": { color: syntax.ORB_COLORS.dark.loloKeyword },
|
|
22061
|
+
"lolo-constructor": { color: syntax.ORB_COLORS.dark.loloConstructor },
|
|
22062
|
+
"lolo-arrow": { color: syntax.ORB_COLORS.dark.loloArrow },
|
|
22063
|
+
"lolo-reference": { color: syntax.ORB_COLORS.dark.loloReference },
|
|
22064
|
+
"lolo-type": { color: syntax.ORB_COLORS.dark.fieldType },
|
|
22065
|
+
"lolo-persistence": { color: syntax.ORB_COLORS.dark.persistence },
|
|
22066
|
+
"lolo-unknown-op": { color: syntax.ORB_COLORS.dark.error },
|
|
22067
|
+
"lolo-op-arithmetic": { color: syntax.ORB_COLORS.dark.arithmetic, fontWeight: "bold" },
|
|
22068
|
+
"lolo-op-comparison": { color: syntax.ORB_COLORS.dark.comparison },
|
|
22069
|
+
"lolo-op-logic": { color: syntax.ORB_COLORS.dark.logic },
|
|
22070
|
+
"lolo-op-string": { color: syntax.ORB_COLORS.dark.string },
|
|
22071
|
+
"lolo-op-collection": { color: syntax.ORB_COLORS.dark.collection },
|
|
22072
|
+
"lolo-op-time": { color: syntax.ORB_COLORS.dark.time },
|
|
22073
|
+
"lolo-op-control": { color: syntax.ORB_COLORS.dark.control },
|
|
22074
|
+
"lolo-op-async": { color: syntax.ORB_COLORS.dark.async }
|
|
22075
|
+
};
|
|
22076
|
+
var loloStyle = { ...dark__default.default, ...loloStyleOverrides };
|
|
22055
22077
|
function computeFoldRegions(code) {
|
|
22056
22078
|
const lines = code.split("\n");
|
|
22057
22079
|
const regions = [];
|
|
@@ -22100,7 +22122,8 @@ var CodeBlock = React125__namespace.default.memo(
|
|
|
22100
22122
|
}) => {
|
|
22101
22123
|
const code = typeof rawCode === "string" ? rawCode : String(rawCode ?? "");
|
|
22102
22124
|
const isOrb = language === "orb";
|
|
22103
|
-
const
|
|
22125
|
+
const isLolo = language === "lolo";
|
|
22126
|
+
const activeStyle = isOrb ? orbStyle : isLolo ? loloStyle : dark__default.default;
|
|
22104
22127
|
const eventBus = useEventBus();
|
|
22105
22128
|
const { t: _t } = useTranslate();
|
|
22106
22129
|
const scrollRef = React125.useRef(null);
|
|
@@ -47102,8 +47125,6 @@ function ServerBridgeProvider({
|
|
|
47102
47125
|
}, [schema, registerSchema, unregisterSchema]);
|
|
47103
47126
|
return /* @__PURE__ */ jsxRuntime.jsx(ServerBridgeContext.Provider, { value: { connected, sendEvent }, children });
|
|
47104
47127
|
}
|
|
47105
|
-
|
|
47106
|
-
// runtime/prepareSchemaForPreview.ts
|
|
47107
47128
|
function generateEntityRow(entity, idx) {
|
|
47108
47129
|
const row = { id: String(idx) };
|
|
47109
47130
|
for (const f3 of entity.fields) {
|
|
@@ -47132,6 +47153,7 @@ function buildMockData(schema) {
|
|
|
47132
47153
|
for (const orbital of schema.orbitals) {
|
|
47133
47154
|
const entity = orbital.entity;
|
|
47134
47155
|
if (!entity || typeof entity === "string") continue;
|
|
47156
|
+
if (core.isEntityCall(entity)) continue;
|
|
47135
47157
|
const entityName = entity.name;
|
|
47136
47158
|
if (!entityName) continue;
|
|
47137
47159
|
if (entity.instances && entity.instances.length > 0) {
|
package/dist/avl/index.js
CHANGED
|
@@ -24,7 +24,7 @@ import remarkMath from 'remark-math';
|
|
|
24
24
|
import rehypeKatex from 'rehype-katex';
|
|
25
25
|
import SyntaxHighlighter from 'react-syntax-highlighter/dist/esm/prism-light';
|
|
26
26
|
import dark from 'react-syntax-highlighter/dist/esm/styles/prism/vsc-dark-plus';
|
|
27
|
-
import { orbLanguage, ORB_COLORS } from '@almadar/syntax';
|
|
27
|
+
import { orbLanguage, loloLanguage, ORB_COLORS } from '@almadar/syntax';
|
|
28
28
|
import langJson from 'react-syntax-highlighter/dist/esm/languages/prism/json';
|
|
29
29
|
import langJavascript from 'react-syntax-highlighter/dist/esm/languages/prism/javascript';
|
|
30
30
|
import langTypescript from 'react-syntax-highlighter/dist/esm/languages/prism/typescript';
|
|
@@ -41,7 +41,7 @@ import langDiff from 'react-syntax-highlighter/dist/esm/languages/prism/diff';
|
|
|
41
41
|
import langToml from 'react-syntax-highlighter/dist/esm/languages/prism/toml';
|
|
42
42
|
import langGo from 'react-syntax-highlighter/dist/esm/languages/prism/go';
|
|
43
43
|
import langGraphql from 'react-syntax-highlighter/dist/esm/languages/prism/graphql';
|
|
44
|
-
import { FieldTypeSchema, schemaToIR, getPage, isCircuitEvent } from '@almadar/core';
|
|
44
|
+
import { FieldTypeSchema, isEntityCall, schemaToIR, getPage, isCircuitEvent } from '@almadar/core';
|
|
45
45
|
import '@tanstack/react-query';
|
|
46
46
|
import { StateMachineManager, createContextFromBindings, interpolateValue, EffectExecutor } from '@almadar/runtime';
|
|
47
47
|
|
|
@@ -21985,6 +21985,7 @@ SyntaxHighlighter.registerLanguage("toml", langToml);
|
|
|
21985
21985
|
SyntaxHighlighter.registerLanguage("go", langGo);
|
|
21986
21986
|
SyntaxHighlighter.registerLanguage("graphql", langGraphql);
|
|
21987
21987
|
SyntaxHighlighter.registerLanguage("orb", orbLanguage);
|
|
21988
|
+
SyntaxHighlighter.registerLanguage("lolo", loloLanguage);
|
|
21988
21989
|
var orbStyleOverrides = {
|
|
21989
21990
|
"orb-binding": { color: ORB_COLORS.dark.binding, fontWeight: "bold" },
|
|
21990
21991
|
"orb-effect": { color: ORB_COLORS.dark.effect, fontWeight: "bold" },
|
|
@@ -22006,6 +22007,27 @@ var orbStyleOverrides = {
|
|
|
22006
22007
|
"orb-op-async": { color: ORB_COLORS.dark.async }
|
|
22007
22008
|
};
|
|
22008
22009
|
var orbStyle = { ...dark, ...orbStyleOverrides };
|
|
22010
|
+
var loloStyleOverrides = {
|
|
22011
|
+
"lolo-binding": { color: ORB_COLORS.dark.binding, fontWeight: "bold" },
|
|
22012
|
+
"lolo-event": { color: ORB_COLORS.dark.event },
|
|
22013
|
+
"lolo-effect": { color: ORB_COLORS.dark.effect, fontWeight: "bold" },
|
|
22014
|
+
"keyword": { color: ORB_COLORS.dark.loloKeyword },
|
|
22015
|
+
"lolo-constructor": { color: ORB_COLORS.dark.loloConstructor },
|
|
22016
|
+
"lolo-arrow": { color: ORB_COLORS.dark.loloArrow },
|
|
22017
|
+
"lolo-reference": { color: ORB_COLORS.dark.loloReference },
|
|
22018
|
+
"lolo-type": { color: ORB_COLORS.dark.fieldType },
|
|
22019
|
+
"lolo-persistence": { color: ORB_COLORS.dark.persistence },
|
|
22020
|
+
"lolo-unknown-op": { color: ORB_COLORS.dark.error },
|
|
22021
|
+
"lolo-op-arithmetic": { color: ORB_COLORS.dark.arithmetic, fontWeight: "bold" },
|
|
22022
|
+
"lolo-op-comparison": { color: ORB_COLORS.dark.comparison },
|
|
22023
|
+
"lolo-op-logic": { color: ORB_COLORS.dark.logic },
|
|
22024
|
+
"lolo-op-string": { color: ORB_COLORS.dark.string },
|
|
22025
|
+
"lolo-op-collection": { color: ORB_COLORS.dark.collection },
|
|
22026
|
+
"lolo-op-time": { color: ORB_COLORS.dark.time },
|
|
22027
|
+
"lolo-op-control": { color: ORB_COLORS.dark.control },
|
|
22028
|
+
"lolo-op-async": { color: ORB_COLORS.dark.async }
|
|
22029
|
+
};
|
|
22030
|
+
var loloStyle = { ...dark, ...loloStyleOverrides };
|
|
22009
22031
|
function computeFoldRegions(code) {
|
|
22010
22032
|
const lines = code.split("\n");
|
|
22011
22033
|
const regions = [];
|
|
@@ -22054,7 +22076,8 @@ var CodeBlock = React125__default.memo(
|
|
|
22054
22076
|
}) => {
|
|
22055
22077
|
const code = typeof rawCode === "string" ? rawCode : String(rawCode ?? "");
|
|
22056
22078
|
const isOrb = language === "orb";
|
|
22057
|
-
const
|
|
22079
|
+
const isLolo = language === "lolo";
|
|
22080
|
+
const activeStyle = isOrb ? orbStyle : isLolo ? loloStyle : dark;
|
|
22058
22081
|
const eventBus = useEventBus();
|
|
22059
22082
|
const { t: _t } = useTranslate();
|
|
22060
22083
|
const scrollRef = useRef(null);
|
|
@@ -47056,8 +47079,6 @@ function ServerBridgeProvider({
|
|
|
47056
47079
|
}, [schema, registerSchema, unregisterSchema]);
|
|
47057
47080
|
return /* @__PURE__ */ jsx(ServerBridgeContext.Provider, { value: { connected, sendEvent }, children });
|
|
47058
47081
|
}
|
|
47059
|
-
|
|
47060
|
-
// runtime/prepareSchemaForPreview.ts
|
|
47061
47082
|
function generateEntityRow(entity, idx) {
|
|
47062
47083
|
const row = { id: String(idx) };
|
|
47063
47084
|
for (const f3 of entity.fields) {
|
|
@@ -47086,6 +47107,7 @@ function buildMockData(schema) {
|
|
|
47086
47107
|
for (const orbital of schema.orbitals) {
|
|
47087
47108
|
const entity = orbital.entity;
|
|
47088
47109
|
if (!entity || typeof entity === "string") continue;
|
|
47110
|
+
if (isEntityCall(entity)) continue;
|
|
47089
47111
|
const entityName = entity.name;
|
|
47090
47112
|
if (!entityName) continue;
|
|
47091
47113
|
if (entity.instances && entity.instances.length > 0) {
|
|
@@ -9122,6 +9122,7 @@ SyntaxHighlighter__default.default.registerLanguage("toml", langToml__default.de
|
|
|
9122
9122
|
SyntaxHighlighter__default.default.registerLanguage("go", langGo__default.default);
|
|
9123
9123
|
SyntaxHighlighter__default.default.registerLanguage("graphql", langGraphql__default.default);
|
|
9124
9124
|
SyntaxHighlighter__default.default.registerLanguage("orb", syntax.orbLanguage);
|
|
9125
|
+
SyntaxHighlighter__default.default.registerLanguage("lolo", syntax.loloLanguage);
|
|
9125
9126
|
var orbStyleOverrides = {
|
|
9126
9127
|
"orb-binding": { color: syntax.ORB_COLORS.dark.binding, fontWeight: "bold" },
|
|
9127
9128
|
"orb-effect": { color: syntax.ORB_COLORS.dark.effect, fontWeight: "bold" },
|
|
@@ -9143,6 +9144,27 @@ var orbStyleOverrides = {
|
|
|
9143
9144
|
"orb-op-async": { color: syntax.ORB_COLORS.dark.async }
|
|
9144
9145
|
};
|
|
9145
9146
|
var orbStyle = { ...dark__default.default, ...orbStyleOverrides };
|
|
9147
|
+
var loloStyleOverrides = {
|
|
9148
|
+
"lolo-binding": { color: syntax.ORB_COLORS.dark.binding, fontWeight: "bold" },
|
|
9149
|
+
"lolo-event": { color: syntax.ORB_COLORS.dark.event },
|
|
9150
|
+
"lolo-effect": { color: syntax.ORB_COLORS.dark.effect, fontWeight: "bold" },
|
|
9151
|
+
"keyword": { color: syntax.ORB_COLORS.dark.loloKeyword },
|
|
9152
|
+
"lolo-constructor": { color: syntax.ORB_COLORS.dark.loloConstructor },
|
|
9153
|
+
"lolo-arrow": { color: syntax.ORB_COLORS.dark.loloArrow },
|
|
9154
|
+
"lolo-reference": { color: syntax.ORB_COLORS.dark.loloReference },
|
|
9155
|
+
"lolo-type": { color: syntax.ORB_COLORS.dark.fieldType },
|
|
9156
|
+
"lolo-persistence": { color: syntax.ORB_COLORS.dark.persistence },
|
|
9157
|
+
"lolo-unknown-op": { color: syntax.ORB_COLORS.dark.error },
|
|
9158
|
+
"lolo-op-arithmetic": { color: syntax.ORB_COLORS.dark.arithmetic, fontWeight: "bold" },
|
|
9159
|
+
"lolo-op-comparison": { color: syntax.ORB_COLORS.dark.comparison },
|
|
9160
|
+
"lolo-op-logic": { color: syntax.ORB_COLORS.dark.logic },
|
|
9161
|
+
"lolo-op-string": { color: syntax.ORB_COLORS.dark.string },
|
|
9162
|
+
"lolo-op-collection": { color: syntax.ORB_COLORS.dark.collection },
|
|
9163
|
+
"lolo-op-time": { color: syntax.ORB_COLORS.dark.time },
|
|
9164
|
+
"lolo-op-control": { color: syntax.ORB_COLORS.dark.control },
|
|
9165
|
+
"lolo-op-async": { color: syntax.ORB_COLORS.dark.async }
|
|
9166
|
+
};
|
|
9167
|
+
var loloStyle = { ...dark__default.default, ...loloStyleOverrides };
|
|
9146
9168
|
function computeFoldRegions(code) {
|
|
9147
9169
|
const lines = code.split("\n");
|
|
9148
9170
|
const regions = [];
|
|
@@ -9191,7 +9213,8 @@ var CodeBlock = React90__namespace.default.memo(
|
|
|
9191
9213
|
}) => {
|
|
9192
9214
|
const code = typeof rawCode === "string" ? rawCode : String(rawCode ?? "");
|
|
9193
9215
|
const isOrb = language === "orb";
|
|
9194
|
-
const
|
|
9216
|
+
const isLolo = language === "lolo";
|
|
9217
|
+
const activeStyle = isOrb ? orbStyle : isLolo ? loloStyle : dark__default.default;
|
|
9195
9218
|
const eventBus = useEventBus();
|
|
9196
9219
|
const { t: _t } = useTranslate();
|
|
9197
9220
|
const scrollRef = React90.useRef(null);
|
package/dist/components/index.js
CHANGED
|
@@ -14,7 +14,7 @@ import remarkMath from 'remark-math';
|
|
|
14
14
|
import rehypeKatex from 'rehype-katex';
|
|
15
15
|
import SyntaxHighlighter from 'react-syntax-highlighter/dist/esm/prism-light';
|
|
16
16
|
import dark from 'react-syntax-highlighter/dist/esm/styles/prism/vsc-dark-plus';
|
|
17
|
-
import { orbLanguage, ORB_COLORS } from '@almadar/syntax';
|
|
17
|
+
import { orbLanguage, loloLanguage, ORB_COLORS } from '@almadar/syntax';
|
|
18
18
|
import langJson from 'react-syntax-highlighter/dist/esm/languages/prism/json';
|
|
19
19
|
import langJavascript from 'react-syntax-highlighter/dist/esm/languages/prism/javascript';
|
|
20
20
|
import langTypescript from 'react-syntax-highlighter/dist/esm/languages/prism/typescript';
|
|
@@ -9077,6 +9077,7 @@ SyntaxHighlighter.registerLanguage("toml", langToml);
|
|
|
9077
9077
|
SyntaxHighlighter.registerLanguage("go", langGo);
|
|
9078
9078
|
SyntaxHighlighter.registerLanguage("graphql", langGraphql);
|
|
9079
9079
|
SyntaxHighlighter.registerLanguage("orb", orbLanguage);
|
|
9080
|
+
SyntaxHighlighter.registerLanguage("lolo", loloLanguage);
|
|
9080
9081
|
var orbStyleOverrides = {
|
|
9081
9082
|
"orb-binding": { color: ORB_COLORS.dark.binding, fontWeight: "bold" },
|
|
9082
9083
|
"orb-effect": { color: ORB_COLORS.dark.effect, fontWeight: "bold" },
|
|
@@ -9098,6 +9099,27 @@ var orbStyleOverrides = {
|
|
|
9098
9099
|
"orb-op-async": { color: ORB_COLORS.dark.async }
|
|
9099
9100
|
};
|
|
9100
9101
|
var orbStyle = { ...dark, ...orbStyleOverrides };
|
|
9102
|
+
var loloStyleOverrides = {
|
|
9103
|
+
"lolo-binding": { color: ORB_COLORS.dark.binding, fontWeight: "bold" },
|
|
9104
|
+
"lolo-event": { color: ORB_COLORS.dark.event },
|
|
9105
|
+
"lolo-effect": { color: ORB_COLORS.dark.effect, fontWeight: "bold" },
|
|
9106
|
+
"keyword": { color: ORB_COLORS.dark.loloKeyword },
|
|
9107
|
+
"lolo-constructor": { color: ORB_COLORS.dark.loloConstructor },
|
|
9108
|
+
"lolo-arrow": { color: ORB_COLORS.dark.loloArrow },
|
|
9109
|
+
"lolo-reference": { color: ORB_COLORS.dark.loloReference },
|
|
9110
|
+
"lolo-type": { color: ORB_COLORS.dark.fieldType },
|
|
9111
|
+
"lolo-persistence": { color: ORB_COLORS.dark.persistence },
|
|
9112
|
+
"lolo-unknown-op": { color: ORB_COLORS.dark.error },
|
|
9113
|
+
"lolo-op-arithmetic": { color: ORB_COLORS.dark.arithmetic, fontWeight: "bold" },
|
|
9114
|
+
"lolo-op-comparison": { color: ORB_COLORS.dark.comparison },
|
|
9115
|
+
"lolo-op-logic": { color: ORB_COLORS.dark.logic },
|
|
9116
|
+
"lolo-op-string": { color: ORB_COLORS.dark.string },
|
|
9117
|
+
"lolo-op-collection": { color: ORB_COLORS.dark.collection },
|
|
9118
|
+
"lolo-op-time": { color: ORB_COLORS.dark.time },
|
|
9119
|
+
"lolo-op-control": { color: ORB_COLORS.dark.control },
|
|
9120
|
+
"lolo-op-async": { color: ORB_COLORS.dark.async }
|
|
9121
|
+
};
|
|
9122
|
+
var loloStyle = { ...dark, ...loloStyleOverrides };
|
|
9101
9123
|
function computeFoldRegions(code) {
|
|
9102
9124
|
const lines = code.split("\n");
|
|
9103
9125
|
const regions = [];
|
|
@@ -9146,7 +9168,8 @@ var CodeBlock = React90__default.memo(
|
|
|
9146
9168
|
}) => {
|
|
9147
9169
|
const code = typeof rawCode === "string" ? rawCode : String(rawCode ?? "");
|
|
9148
9170
|
const isOrb = language === "orb";
|
|
9149
|
-
const
|
|
9171
|
+
const isLolo = language === "lolo";
|
|
9172
|
+
const activeStyle = isOrb ? orbStyle : isLolo ? loloStyle : dark;
|
|
9150
9173
|
const eventBus = useEventBus();
|
|
9151
9174
|
const { t: _t } = useTranslate();
|
|
9152
9175
|
const scrollRef = useRef(null);
|
package/dist/providers/index.cjs
CHANGED
|
@@ -4007,6 +4007,7 @@ SyntaxHighlighter__default.default.registerLanguage("toml", langToml__default.de
|
|
|
4007
4007
|
SyntaxHighlighter__default.default.registerLanguage("go", langGo__default.default);
|
|
4008
4008
|
SyntaxHighlighter__default.default.registerLanguage("graphql", langGraphql__default.default);
|
|
4009
4009
|
SyntaxHighlighter__default.default.registerLanguage("orb", syntax.orbLanguage);
|
|
4010
|
+
SyntaxHighlighter__default.default.registerLanguage("lolo", syntax.loloLanguage);
|
|
4010
4011
|
var orbStyleOverrides = {
|
|
4011
4012
|
"orb-binding": { color: syntax.ORB_COLORS.dark.binding, fontWeight: "bold" },
|
|
4012
4013
|
"orb-effect": { color: syntax.ORB_COLORS.dark.effect, fontWeight: "bold" },
|
|
@@ -4028,6 +4029,27 @@ var orbStyleOverrides = {
|
|
|
4028
4029
|
"orb-op-async": { color: syntax.ORB_COLORS.dark.async }
|
|
4029
4030
|
};
|
|
4030
4031
|
var orbStyle = { ...dark__default.default, ...orbStyleOverrides };
|
|
4032
|
+
var loloStyleOverrides = {
|
|
4033
|
+
"lolo-binding": { color: syntax.ORB_COLORS.dark.binding, fontWeight: "bold" },
|
|
4034
|
+
"lolo-event": { color: syntax.ORB_COLORS.dark.event },
|
|
4035
|
+
"lolo-effect": { color: syntax.ORB_COLORS.dark.effect, fontWeight: "bold" },
|
|
4036
|
+
"keyword": { color: syntax.ORB_COLORS.dark.loloKeyword },
|
|
4037
|
+
"lolo-constructor": { color: syntax.ORB_COLORS.dark.loloConstructor },
|
|
4038
|
+
"lolo-arrow": { color: syntax.ORB_COLORS.dark.loloArrow },
|
|
4039
|
+
"lolo-reference": { color: syntax.ORB_COLORS.dark.loloReference },
|
|
4040
|
+
"lolo-type": { color: syntax.ORB_COLORS.dark.fieldType },
|
|
4041
|
+
"lolo-persistence": { color: syntax.ORB_COLORS.dark.persistence },
|
|
4042
|
+
"lolo-unknown-op": { color: syntax.ORB_COLORS.dark.error },
|
|
4043
|
+
"lolo-op-arithmetic": { color: syntax.ORB_COLORS.dark.arithmetic, fontWeight: "bold" },
|
|
4044
|
+
"lolo-op-comparison": { color: syntax.ORB_COLORS.dark.comparison },
|
|
4045
|
+
"lolo-op-logic": { color: syntax.ORB_COLORS.dark.logic },
|
|
4046
|
+
"lolo-op-string": { color: syntax.ORB_COLORS.dark.string },
|
|
4047
|
+
"lolo-op-collection": { color: syntax.ORB_COLORS.dark.collection },
|
|
4048
|
+
"lolo-op-time": { color: syntax.ORB_COLORS.dark.time },
|
|
4049
|
+
"lolo-op-control": { color: syntax.ORB_COLORS.dark.control },
|
|
4050
|
+
"lolo-op-async": { color: syntax.ORB_COLORS.dark.async }
|
|
4051
|
+
};
|
|
4052
|
+
var loloStyle = { ...dark__default.default, ...loloStyleOverrides };
|
|
4031
4053
|
function computeFoldRegions(code) {
|
|
4032
4054
|
const lines = code.split("\n");
|
|
4033
4055
|
const regions = [];
|
|
@@ -4076,7 +4098,8 @@ var CodeBlock = React114__namespace.default.memo(
|
|
|
4076
4098
|
}) => {
|
|
4077
4099
|
const code = typeof rawCode === "string" ? rawCode : String(rawCode ?? "");
|
|
4078
4100
|
const isOrb = language === "orb";
|
|
4079
|
-
const
|
|
4101
|
+
const isLolo = language === "lolo";
|
|
4102
|
+
const activeStyle = isOrb ? orbStyle : isLolo ? loloStyle : dark__default.default;
|
|
4080
4103
|
const eventBus = useEventBus();
|
|
4081
4104
|
const { t: _t } = useTranslate();
|
|
4082
4105
|
const scrollRef = React114.useRef(null);
|
package/dist/providers/index.js
CHANGED
|
@@ -17,7 +17,7 @@ import remarkMath from 'remark-math';
|
|
|
17
17
|
import rehypeKatex from 'rehype-katex';
|
|
18
18
|
import SyntaxHighlighter from 'react-syntax-highlighter/dist/esm/prism-light';
|
|
19
19
|
import dark from 'react-syntax-highlighter/dist/esm/styles/prism/vsc-dark-plus';
|
|
20
|
-
import { orbLanguage, ORB_COLORS } from '@almadar/syntax';
|
|
20
|
+
import { orbLanguage, loloLanguage, ORB_COLORS } from '@almadar/syntax';
|
|
21
21
|
import langJson from 'react-syntax-highlighter/dist/esm/languages/prism/json';
|
|
22
22
|
import langJavascript from 'react-syntax-highlighter/dist/esm/languages/prism/javascript';
|
|
23
23
|
import langTypescript from 'react-syntax-highlighter/dist/esm/languages/prism/typescript';
|
|
@@ -3962,6 +3962,7 @@ SyntaxHighlighter.registerLanguage("toml", langToml);
|
|
|
3962
3962
|
SyntaxHighlighter.registerLanguage("go", langGo);
|
|
3963
3963
|
SyntaxHighlighter.registerLanguage("graphql", langGraphql);
|
|
3964
3964
|
SyntaxHighlighter.registerLanguage("orb", orbLanguage);
|
|
3965
|
+
SyntaxHighlighter.registerLanguage("lolo", loloLanguage);
|
|
3965
3966
|
var orbStyleOverrides = {
|
|
3966
3967
|
"orb-binding": { color: ORB_COLORS.dark.binding, fontWeight: "bold" },
|
|
3967
3968
|
"orb-effect": { color: ORB_COLORS.dark.effect, fontWeight: "bold" },
|
|
@@ -3983,6 +3984,27 @@ var orbStyleOverrides = {
|
|
|
3983
3984
|
"orb-op-async": { color: ORB_COLORS.dark.async }
|
|
3984
3985
|
};
|
|
3985
3986
|
var orbStyle = { ...dark, ...orbStyleOverrides };
|
|
3987
|
+
var loloStyleOverrides = {
|
|
3988
|
+
"lolo-binding": { color: ORB_COLORS.dark.binding, fontWeight: "bold" },
|
|
3989
|
+
"lolo-event": { color: ORB_COLORS.dark.event },
|
|
3990
|
+
"lolo-effect": { color: ORB_COLORS.dark.effect, fontWeight: "bold" },
|
|
3991
|
+
"keyword": { color: ORB_COLORS.dark.loloKeyword },
|
|
3992
|
+
"lolo-constructor": { color: ORB_COLORS.dark.loloConstructor },
|
|
3993
|
+
"lolo-arrow": { color: ORB_COLORS.dark.loloArrow },
|
|
3994
|
+
"lolo-reference": { color: ORB_COLORS.dark.loloReference },
|
|
3995
|
+
"lolo-type": { color: ORB_COLORS.dark.fieldType },
|
|
3996
|
+
"lolo-persistence": { color: ORB_COLORS.dark.persistence },
|
|
3997
|
+
"lolo-unknown-op": { color: ORB_COLORS.dark.error },
|
|
3998
|
+
"lolo-op-arithmetic": { color: ORB_COLORS.dark.arithmetic, fontWeight: "bold" },
|
|
3999
|
+
"lolo-op-comparison": { color: ORB_COLORS.dark.comparison },
|
|
4000
|
+
"lolo-op-logic": { color: ORB_COLORS.dark.logic },
|
|
4001
|
+
"lolo-op-string": { color: ORB_COLORS.dark.string },
|
|
4002
|
+
"lolo-op-collection": { color: ORB_COLORS.dark.collection },
|
|
4003
|
+
"lolo-op-time": { color: ORB_COLORS.dark.time },
|
|
4004
|
+
"lolo-op-control": { color: ORB_COLORS.dark.control },
|
|
4005
|
+
"lolo-op-async": { color: ORB_COLORS.dark.async }
|
|
4006
|
+
};
|
|
4007
|
+
var loloStyle = { ...dark, ...loloStyleOverrides };
|
|
3986
4008
|
function computeFoldRegions(code) {
|
|
3987
4009
|
const lines = code.split("\n");
|
|
3988
4010
|
const regions = [];
|
|
@@ -4031,7 +4053,8 @@ var CodeBlock = React114__default.memo(
|
|
|
4031
4053
|
}) => {
|
|
4032
4054
|
const code = typeof rawCode === "string" ? rawCode : String(rawCode ?? "");
|
|
4033
4055
|
const isOrb = language === "orb";
|
|
4034
|
-
const
|
|
4056
|
+
const isLolo = language === "lolo";
|
|
4057
|
+
const activeStyle = isOrb ? orbStyle : isLolo ? loloStyle : dark;
|
|
4035
4058
|
const eventBus = useEventBus();
|
|
4036
4059
|
const { t: _t } = useTranslate();
|
|
4037
4060
|
const scrollRef = useRef(null);
|
package/dist/runtime/index.cjs
CHANGED
|
@@ -9927,6 +9927,7 @@ SyntaxHighlighter__default.default.registerLanguage("toml", langToml__default.de
|
|
|
9927
9927
|
SyntaxHighlighter__default.default.registerLanguage("go", langGo__default.default);
|
|
9928
9928
|
SyntaxHighlighter__default.default.registerLanguage("graphql", langGraphql__default.default);
|
|
9929
9929
|
SyntaxHighlighter__default.default.registerLanguage("orb", syntax.orbLanguage);
|
|
9930
|
+
SyntaxHighlighter__default.default.registerLanguage("lolo", syntax.loloLanguage);
|
|
9930
9931
|
var orbStyleOverrides = {
|
|
9931
9932
|
"orb-binding": { color: syntax.ORB_COLORS.dark.binding, fontWeight: "bold" },
|
|
9932
9933
|
"orb-effect": { color: syntax.ORB_COLORS.dark.effect, fontWeight: "bold" },
|
|
@@ -9948,6 +9949,27 @@ var orbStyleOverrides = {
|
|
|
9948
9949
|
"orb-op-async": { color: syntax.ORB_COLORS.dark.async }
|
|
9949
9950
|
};
|
|
9950
9951
|
var orbStyle = { ...dark__default.default, ...orbStyleOverrides };
|
|
9952
|
+
var loloStyleOverrides = {
|
|
9953
|
+
"lolo-binding": { color: syntax.ORB_COLORS.dark.binding, fontWeight: "bold" },
|
|
9954
|
+
"lolo-event": { color: syntax.ORB_COLORS.dark.event },
|
|
9955
|
+
"lolo-effect": { color: syntax.ORB_COLORS.dark.effect, fontWeight: "bold" },
|
|
9956
|
+
"keyword": { color: syntax.ORB_COLORS.dark.loloKeyword },
|
|
9957
|
+
"lolo-constructor": { color: syntax.ORB_COLORS.dark.loloConstructor },
|
|
9958
|
+
"lolo-arrow": { color: syntax.ORB_COLORS.dark.loloArrow },
|
|
9959
|
+
"lolo-reference": { color: syntax.ORB_COLORS.dark.loloReference },
|
|
9960
|
+
"lolo-type": { color: syntax.ORB_COLORS.dark.fieldType },
|
|
9961
|
+
"lolo-persistence": { color: syntax.ORB_COLORS.dark.persistence },
|
|
9962
|
+
"lolo-unknown-op": { color: syntax.ORB_COLORS.dark.error },
|
|
9963
|
+
"lolo-op-arithmetic": { color: syntax.ORB_COLORS.dark.arithmetic, fontWeight: "bold" },
|
|
9964
|
+
"lolo-op-comparison": { color: syntax.ORB_COLORS.dark.comparison },
|
|
9965
|
+
"lolo-op-logic": { color: syntax.ORB_COLORS.dark.logic },
|
|
9966
|
+
"lolo-op-string": { color: syntax.ORB_COLORS.dark.string },
|
|
9967
|
+
"lolo-op-collection": { color: syntax.ORB_COLORS.dark.collection },
|
|
9968
|
+
"lolo-op-time": { color: syntax.ORB_COLORS.dark.time },
|
|
9969
|
+
"lolo-op-control": { color: syntax.ORB_COLORS.dark.control },
|
|
9970
|
+
"lolo-op-async": { color: syntax.ORB_COLORS.dark.async }
|
|
9971
|
+
};
|
|
9972
|
+
var loloStyle = { ...dark__default.default, ...loloStyleOverrides };
|
|
9951
9973
|
function computeFoldRegions(code) {
|
|
9952
9974
|
const lines = code.split("\n");
|
|
9953
9975
|
const regions = [];
|
|
@@ -9996,7 +10018,8 @@ var CodeBlock = React114__namespace.default.memo(
|
|
|
9996
10018
|
}) => {
|
|
9997
10019
|
const code = typeof rawCode === "string" ? rawCode : String(rawCode ?? "");
|
|
9998
10020
|
const isOrb = language === "orb";
|
|
9999
|
-
const
|
|
10021
|
+
const isLolo = language === "lolo";
|
|
10022
|
+
const activeStyle = isOrb ? orbStyle : isLolo ? loloStyle : dark__default.default;
|
|
10000
10023
|
const eventBus = useEventBus();
|
|
10001
10024
|
const { t: _t } = useTranslate();
|
|
10002
10025
|
const scrollRef = React114.useRef(null);
|
|
@@ -33741,8 +33764,6 @@ function ServerBridgeProvider({
|
|
|
33741
33764
|
}, [schema, registerSchema, unregisterSchema]);
|
|
33742
33765
|
return /* @__PURE__ */ jsxRuntime.jsx(ServerBridgeContext.Provider, { value: { connected, sendEvent }, children });
|
|
33743
33766
|
}
|
|
33744
|
-
|
|
33745
|
-
// runtime/prepareSchemaForPreview.ts
|
|
33746
33767
|
function generateEntityRow(entity, idx) {
|
|
33747
33768
|
const row = { id: String(idx) };
|
|
33748
33769
|
for (const f3 of entity.fields) {
|
|
@@ -33771,6 +33792,7 @@ function buildMockData(schema) {
|
|
|
33771
33792
|
for (const orbital of schema.orbitals) {
|
|
33772
33793
|
const entity = orbital.entity;
|
|
33773
33794
|
if (!entity || typeof entity === "string") continue;
|
|
33795
|
+
if (core.isEntityCall(entity)) continue;
|
|
33774
33796
|
const entityName = entity.name;
|
|
33775
33797
|
if (!entityName) continue;
|
|
33776
33798
|
if (entity.instances && entity.instances.length > 0) {
|
package/dist/runtime/index.js
CHANGED
|
@@ -5,7 +5,7 @@ import { clsx } from 'clsx';
|
|
|
5
5
|
import { twMerge } from 'tailwind-merge';
|
|
6
6
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
7
7
|
import '@tanstack/react-query';
|
|
8
|
-
import { isCircuitEvent, schemaToIR, getPage, clearSchemaCache as clearSchemaCache$1 } from '@almadar/core';
|
|
8
|
+
import { isCircuitEvent, schemaToIR, getPage, clearSchemaCache as clearSchemaCache$1, isEntityCall } from '@almadar/core';
|
|
9
9
|
import { StateMachineManager, createContextFromBindings, interpolateValue, EffectExecutor } from '@almadar/runtime';
|
|
10
10
|
import { UISlotProvider, useUISlots } from '@almadar/ui/context';
|
|
11
11
|
import { createPortal } from 'react-dom';
|
|
@@ -20,7 +20,7 @@ import remarkMath from 'remark-math';
|
|
|
20
20
|
import rehypeKatex from 'rehype-katex';
|
|
21
21
|
import SyntaxHighlighter from 'react-syntax-highlighter/dist/esm/prism-light';
|
|
22
22
|
import dark from 'react-syntax-highlighter/dist/esm/styles/prism/vsc-dark-plus';
|
|
23
|
-
import { orbLanguage, ORB_COLORS } from '@almadar/syntax';
|
|
23
|
+
import { orbLanguage, loloLanguage, ORB_COLORS } from '@almadar/syntax';
|
|
24
24
|
import langJson from 'react-syntax-highlighter/dist/esm/languages/prism/json';
|
|
25
25
|
import langJavascript from 'react-syntax-highlighter/dist/esm/languages/prism/javascript';
|
|
26
26
|
import langTypescript from 'react-syntax-highlighter/dist/esm/languages/prism/typescript';
|
|
@@ -9882,6 +9882,7 @@ SyntaxHighlighter.registerLanguage("toml", langToml);
|
|
|
9882
9882
|
SyntaxHighlighter.registerLanguage("go", langGo);
|
|
9883
9883
|
SyntaxHighlighter.registerLanguage("graphql", langGraphql);
|
|
9884
9884
|
SyntaxHighlighter.registerLanguage("orb", orbLanguage);
|
|
9885
|
+
SyntaxHighlighter.registerLanguage("lolo", loloLanguage);
|
|
9885
9886
|
var orbStyleOverrides = {
|
|
9886
9887
|
"orb-binding": { color: ORB_COLORS.dark.binding, fontWeight: "bold" },
|
|
9887
9888
|
"orb-effect": { color: ORB_COLORS.dark.effect, fontWeight: "bold" },
|
|
@@ -9903,6 +9904,27 @@ var orbStyleOverrides = {
|
|
|
9903
9904
|
"orb-op-async": { color: ORB_COLORS.dark.async }
|
|
9904
9905
|
};
|
|
9905
9906
|
var orbStyle = { ...dark, ...orbStyleOverrides };
|
|
9907
|
+
var loloStyleOverrides = {
|
|
9908
|
+
"lolo-binding": { color: ORB_COLORS.dark.binding, fontWeight: "bold" },
|
|
9909
|
+
"lolo-event": { color: ORB_COLORS.dark.event },
|
|
9910
|
+
"lolo-effect": { color: ORB_COLORS.dark.effect, fontWeight: "bold" },
|
|
9911
|
+
"keyword": { color: ORB_COLORS.dark.loloKeyword },
|
|
9912
|
+
"lolo-constructor": { color: ORB_COLORS.dark.loloConstructor },
|
|
9913
|
+
"lolo-arrow": { color: ORB_COLORS.dark.loloArrow },
|
|
9914
|
+
"lolo-reference": { color: ORB_COLORS.dark.loloReference },
|
|
9915
|
+
"lolo-type": { color: ORB_COLORS.dark.fieldType },
|
|
9916
|
+
"lolo-persistence": { color: ORB_COLORS.dark.persistence },
|
|
9917
|
+
"lolo-unknown-op": { color: ORB_COLORS.dark.error },
|
|
9918
|
+
"lolo-op-arithmetic": { color: ORB_COLORS.dark.arithmetic, fontWeight: "bold" },
|
|
9919
|
+
"lolo-op-comparison": { color: ORB_COLORS.dark.comparison },
|
|
9920
|
+
"lolo-op-logic": { color: ORB_COLORS.dark.logic },
|
|
9921
|
+
"lolo-op-string": { color: ORB_COLORS.dark.string },
|
|
9922
|
+
"lolo-op-collection": { color: ORB_COLORS.dark.collection },
|
|
9923
|
+
"lolo-op-time": { color: ORB_COLORS.dark.time },
|
|
9924
|
+
"lolo-op-control": { color: ORB_COLORS.dark.control },
|
|
9925
|
+
"lolo-op-async": { color: ORB_COLORS.dark.async }
|
|
9926
|
+
};
|
|
9927
|
+
var loloStyle = { ...dark, ...loloStyleOverrides };
|
|
9906
9928
|
function computeFoldRegions(code) {
|
|
9907
9929
|
const lines = code.split("\n");
|
|
9908
9930
|
const regions = [];
|
|
@@ -9951,7 +9973,8 @@ var CodeBlock = React114__default.memo(
|
|
|
9951
9973
|
}) => {
|
|
9952
9974
|
const code = typeof rawCode === "string" ? rawCode : String(rawCode ?? "");
|
|
9953
9975
|
const isOrb = language === "orb";
|
|
9954
|
-
const
|
|
9976
|
+
const isLolo = language === "lolo";
|
|
9977
|
+
const activeStyle = isOrb ? orbStyle : isLolo ? loloStyle : dark;
|
|
9955
9978
|
const eventBus = useEventBus();
|
|
9956
9979
|
const { t: _t } = useTranslate();
|
|
9957
9980
|
const scrollRef = useRef(null);
|
|
@@ -33696,8 +33719,6 @@ function ServerBridgeProvider({
|
|
|
33696
33719
|
}, [schema, registerSchema, unregisterSchema]);
|
|
33697
33720
|
return /* @__PURE__ */ jsx(ServerBridgeContext.Provider, { value: { connected, sendEvent }, children });
|
|
33698
33721
|
}
|
|
33699
|
-
|
|
33700
|
-
// runtime/prepareSchemaForPreview.ts
|
|
33701
33722
|
function generateEntityRow(entity, idx) {
|
|
33702
33723
|
const row = { id: String(idx) };
|
|
33703
33724
|
for (const f3 of entity.fields) {
|
|
@@ -33726,6 +33747,7 @@ function buildMockData(schema) {
|
|
|
33726
33747
|
for (const orbital of schema.orbitals) {
|
|
33727
33748
|
const entity = orbital.entity;
|
|
33728
33749
|
if (!entity || typeof entity === "string") continue;
|
|
33750
|
+
if (isEntityCall(entity)) continue;
|
|
33729
33751
|
const entityName = entity.name;
|
|
33730
33752
|
if (!entityName) continue;
|
|
33731
33753
|
if (entity.instances && entity.instances.length > 0) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@almadar/ui",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.49.0",
|
|
4
4
|
"description": "React UI components, hooks, and providers for Almadar",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/components/index.js",
|
|
@@ -118,11 +118,11 @@
|
|
|
118
118
|
"access": "public"
|
|
119
119
|
},
|
|
120
120
|
"dependencies": {
|
|
121
|
-
"@almadar/core": ">=2.
|
|
121
|
+
"@almadar/core": ">=4.2.0",
|
|
122
122
|
"@almadar/evaluator": ">=2.5.4",
|
|
123
123
|
"@almadar/patterns": ">=2.10.0",
|
|
124
|
-
"@almadar/std": ">=
|
|
125
|
-
"@almadar/syntax": ">=1.
|
|
124
|
+
"@almadar/std": ">=5.2.0",
|
|
125
|
+
"@almadar/syntax": ">=1.2.0",
|
|
126
126
|
"@almadar/runtime": ">=2.0.0",
|
|
127
127
|
"@xyflow/react": "12.10.1",
|
|
128
128
|
"clsx": "^2.1.0",
|