@almadar/ui 6.13.0 → 6.14.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/{UserContext-g_LcDiGN.d.cts → CurrentPagePathContext-J1lqjvAq.d.cts} +2 -97
- package/dist/{UserContext-g_LcDiGN.d.ts → CurrentPagePathContext-J1lqjvAq.d.ts} +2 -97
- package/dist/{EntityBindingContext-D5lRu6p1.d.cts → EntityBindingContext-BMz9xiBa.d.cts} +2 -3
- package/dist/{EntityBindingContext-D5lRu6p1.d.ts → EntityBindingContext-BMz9xiBa.d.ts} +2 -3
- package/dist/{GameAudioProvider-D8GynTNq.d.cts → GameAudioProvider-Cpw_lMPY.d.cts} +1 -1
- package/dist/{GameAudioProvider-Dozqx4sL.d.ts → GameAudioProvider-DIjFiy70.d.ts} +1 -1
- package/dist/UserContext-D566nfWA.d.cts +99 -0
- package/dist/UserContext-D566nfWA.d.ts +99 -0
- package/dist/avl/index.cjs +367 -61
- package/dist/avl/index.d.cts +1 -1
- package/dist/avl/index.d.ts +1 -1
- package/dist/avl/index.js +369 -63
- package/dist/{avl-schema-parser-PVu8rgsy.d.cts → avl-schema-parser-B25PL-a8.d.cts} +1 -1
- package/dist/{avl-schema-parser-DX-aVCCm.d.ts → avl-schema-parser-CM0pQo8E.d.ts} +1 -1
- package/dist/components/index.cjs +360 -108
- package/dist/components/index.d.cts +8 -24
- package/dist/components/index.d.ts +8 -24
- package/dist/components/index.js +362 -109
- package/dist/context/index.d.cts +2 -1
- package/dist/context/index.d.ts +2 -1
- package/dist/lib/drawable/three/index.cjs +126 -3
- package/dist/lib/drawable/three/index.d.cts +3 -3
- package/dist/lib/drawable/three/index.d.ts +3 -3
- package/dist/lib/drawable/three/index.js +126 -3
- package/dist/lib/index.cjs +1 -4
- package/dist/lib/index.d.cts +2 -2
- package/dist/lib/index.d.ts +2 -2
- package/dist/lib/index.js +1 -4
- package/dist/{offline-executor-QUdKOj7f.d.cts → offline-executor-DdV2o0Zu.d.cts} +4 -19
- package/dist/{offline-executor-QUdKOj7f.d.ts → offline-executor-DdV2o0Zu.d.ts} +4 -19
- package/dist/{paintDispatch-CK5uwYEq.d.cts → paintDispatch-Dh1pgljl.d.cts} +79 -1
- package/dist/{paintDispatch-CK5uwYEq.d.ts → paintDispatch-Dh1pgljl.d.ts} +79 -1
- package/dist/providers/index.cjs +354 -53
- package/dist/providers/index.d.cts +10 -9
- package/dist/providers/index.d.ts +10 -9
- package/dist/providers/index.js +355 -54
- package/dist/renderer/index.cjs +0 -15
- package/dist/renderer/index.d.cts +4 -9
- package/dist/renderer/index.d.ts +4 -9
- package/dist/renderer/index.js +1 -15
- package/dist/runtime/index.cjs +369 -72
- package/dist/runtime/index.d.cts +14 -11
- package/dist/runtime/index.d.ts +14 -11
- package/dist/runtime/index.js +371 -74
- package/dist/{verificationRegistry-D8bHWD8Q.d.ts → verificationRegistry-Cwa52VyK.d.ts} +1 -1
- package/dist/{verificationRegistry-BLsjb1oU.d.cts → verificationRegistry-DTrKDRoa.d.cts} +1 -1
- package/package.json +4 -4
package/dist/renderer/index.cjs
CHANGED
|
@@ -111,11 +111,6 @@ function executeEffect(effect, config) {
|
|
|
111
111
|
executeNavigate(path, params, config);
|
|
112
112
|
break;
|
|
113
113
|
}
|
|
114
|
-
case "notify": {
|
|
115
|
-
const [message, options] = args;
|
|
116
|
-
executeNotify(message, options, config);
|
|
117
|
-
break;
|
|
118
|
-
}
|
|
119
114
|
case "emit": {
|
|
120
115
|
const [event, payload] = args;
|
|
121
116
|
executeEmit(event, payload, config);
|
|
@@ -131,9 +126,6 @@ function executeRenderUI(slot, patternConfig, config) {
|
|
|
131
126
|
function executeNavigate(path, params, config) {
|
|
132
127
|
config.navigate(path, params);
|
|
133
128
|
}
|
|
134
|
-
function executeNotify(message, options, config) {
|
|
135
|
-
config.notify(message, options);
|
|
136
|
-
}
|
|
137
129
|
function executeEmit(event, payload, config) {
|
|
138
130
|
config.eventBus.emit(event, payload);
|
|
139
131
|
}
|
|
@@ -152,8 +144,6 @@ function parseClientEffect(raw) {
|
|
|
152
144
|
return ["render-ui", args[0], args[1]];
|
|
153
145
|
case "navigate":
|
|
154
146
|
return ["navigate", args[0], args[1]];
|
|
155
|
-
case "notify":
|
|
156
|
-
return ["notify", args[0], args[1]];
|
|
157
147
|
case "emit":
|
|
158
148
|
return ["emit", args[0], args[1]];
|
|
159
149
|
default:
|
|
@@ -175,9 +165,6 @@ function filterEffectsByType(effects, type) {
|
|
|
175
165
|
function getRenderUIEffects(effects) {
|
|
176
166
|
return filterEffectsByType(effects, "render-ui");
|
|
177
167
|
}
|
|
178
|
-
function getNotifyEffects(effects) {
|
|
179
|
-
return filterEffectsByType(effects, "notify");
|
|
180
|
-
}
|
|
181
168
|
var log3 = logger.createLogger("almadar:ui:effects:client-hook");
|
|
182
169
|
function useClientEffects(effects, options) {
|
|
183
170
|
const {
|
|
@@ -542,7 +529,6 @@ var OfflineExecutor = class {
|
|
|
542
529
|
// Client effects - execute immediately
|
|
543
530
|
case "render-ui":
|
|
544
531
|
case "navigate":
|
|
545
|
-
case "notify":
|
|
546
532
|
case "emit":
|
|
547
533
|
clientEffects.push(effect);
|
|
548
534
|
break;
|
|
@@ -838,7 +824,6 @@ exports.createOfflineExecutor = createOfflineExecutor;
|
|
|
838
824
|
exports.executeClientEffects = executeClientEffects;
|
|
839
825
|
exports.getInlineSlots = getInlineSlots;
|
|
840
826
|
exports.getKnownPatterns = getKnownPatterns;
|
|
841
|
-
exports.getNotifyEffects = getNotifyEffects;
|
|
842
827
|
exports.getPatternDefinition = getPatternDefinition;
|
|
843
828
|
exports.getPatternMapping = getPatternMapping;
|
|
844
829
|
exports.getPatternsByCategory = getPatternsByCategory;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { M as MappedPattern, C as ClientEffect, a as ClientEffectExecutorConfig,
|
|
2
|
-
export { E as EventResponse,
|
|
1
|
+
import { M as MappedPattern, C as ClientEffect, a as ClientEffectExecutorConfig, D as DataContext, b as DataResolution, S as SlotDefinition } from '../offline-executor-DdV2o0Zu.cjs';
|
|
2
|
+
export { E as EventResponse, N as NavigationContextValue, c as NavigationProvider, d as NavigationProviderProps, e as NavigationState, O as OfflineExecutor, f as OfflineExecutorConfig, g as OfflineExecutorState, P as PendingSyncEffect, h as SlotType, U as UseOfflineExecutorOptions, i as UseOfflineExecutorResult, j as comparePathSpecificity, k as createOfflineExecutor, l as extractRouteParams, m as findPageByName, n as findPageByPath, o as getAllPages, p as getDefaultPage, q as matchPath, r as matchPathAmong, s as pathMatches, u as useActivePage, t as useInitPayload, v as useNavigateTo, w as useNavigation, x as useNavigationId, y as useNavigationState, z as useOfflineExecutor } from '../offline-executor-DdV2o0Zu.cjs';
|
|
3
3
|
import { PatternPropDef } from '@almadar/core/patterns';
|
|
4
4
|
import { PatternConfig, FieldValue, EntityRow, UISlot } from '@almadar/core';
|
|
5
5
|
export { PatternConfig, UISlot } from '@almadar/core';
|
|
@@ -118,12 +118,11 @@ declare function getPatternDefinition(type: string): PatternDefinition | undefin
|
|
|
118
118
|
* executeClientEffects(
|
|
119
119
|
* [
|
|
120
120
|
* ['render-ui', 'main', { type: 'entity-table', entity: 'Task' }],
|
|
121
|
-
* ['
|
|
121
|
+
* ['emit', 'TASKS_LOADED']
|
|
122
122
|
* ],
|
|
123
123
|
* {
|
|
124
124
|
* renderToSlot: (slot, pattern) => slotManager.render(slot, pattern),
|
|
125
125
|
* navigate: (path) => router.push(path),
|
|
126
|
-
* notify: (message, opts) => toast.show(message, opts),
|
|
127
126
|
* eventBus: { emit: (event, payload) => bus.emit(event, payload) }
|
|
128
127
|
* }
|
|
129
128
|
* );
|
|
@@ -144,10 +143,6 @@ declare function parseClientEffects(raw: FieldValue[] | undefined): ClientEffect
|
|
|
144
143
|
* Get all render-ui effects.
|
|
145
144
|
*/
|
|
146
145
|
declare function getRenderUIEffects(effects: ClientEffect[]): Array<['render-ui', string, PatternConfig | null]>;
|
|
147
|
-
/**
|
|
148
|
-
* Get all notify effects.
|
|
149
|
-
*/
|
|
150
|
-
declare function getNotifyEffects(effects: ClientEffect[]): Array<['notify', string, NotifyOptions?]>;
|
|
151
146
|
|
|
152
147
|
/**
|
|
153
148
|
* Options for the useClientEffects hook
|
|
@@ -340,4 +335,4 @@ declare const ALL_SLOTS: UISlot[];
|
|
|
340
335
|
*/
|
|
341
336
|
declare function initializePatterns(): number;
|
|
342
337
|
|
|
343
|
-
export { ALL_SLOTS, ClientEffect, ClientEffectConfigContext, ClientEffectConfigProvider, ClientEffectExecutorConfig, DataContext, DataResolution, MappedPattern,
|
|
338
|
+
export { ALL_SLOTS, ClientEffect, ClientEffectConfigContext, ClientEffectConfigProvider, ClientEffectExecutorConfig, DataContext, DataResolution, MappedPattern, SLOT_DEFINITIONS, SlotDefinition, type UseClientEffectsOptions, type UseClientEffectsResult, executeClientEffects, getInlineSlots, getKnownPatterns, getPatternDefinition, getPatternMapping, getPatternsByCategory, getRenderUIEffects, getSlotDefinition, hasEntities, initializePatternResolver, initializePatterns, isKnownPattern, isPortalSlot, parseClientEffect, parseClientEffects, resolveEntityById, resolveEntityData, resolveEntityDataWithQuery, resolvePattern, setComponentMapping, setPatternRegistry, useClientEffectConfig, useClientEffectConfigOptional, useClientEffects };
|
package/dist/renderer/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { M as MappedPattern, C as ClientEffect, a as ClientEffectExecutorConfig,
|
|
2
|
-
export { E as EventResponse,
|
|
1
|
+
import { M as MappedPattern, C as ClientEffect, a as ClientEffectExecutorConfig, D as DataContext, b as DataResolution, S as SlotDefinition } from '../offline-executor-DdV2o0Zu.js';
|
|
2
|
+
export { E as EventResponse, N as NavigationContextValue, c as NavigationProvider, d as NavigationProviderProps, e as NavigationState, O as OfflineExecutor, f as OfflineExecutorConfig, g as OfflineExecutorState, P as PendingSyncEffect, h as SlotType, U as UseOfflineExecutorOptions, i as UseOfflineExecutorResult, j as comparePathSpecificity, k as createOfflineExecutor, l as extractRouteParams, m as findPageByName, n as findPageByPath, o as getAllPages, p as getDefaultPage, q as matchPath, r as matchPathAmong, s as pathMatches, u as useActivePage, t as useInitPayload, v as useNavigateTo, w as useNavigation, x as useNavigationId, y as useNavigationState, z as useOfflineExecutor } from '../offline-executor-DdV2o0Zu.js';
|
|
3
3
|
import { PatternPropDef } from '@almadar/core/patterns';
|
|
4
4
|
import { PatternConfig, FieldValue, EntityRow, UISlot } from '@almadar/core';
|
|
5
5
|
export { PatternConfig, UISlot } from '@almadar/core';
|
|
@@ -118,12 +118,11 @@ declare function getPatternDefinition(type: string): PatternDefinition | undefin
|
|
|
118
118
|
* executeClientEffects(
|
|
119
119
|
* [
|
|
120
120
|
* ['render-ui', 'main', { type: 'entity-table', entity: 'Task' }],
|
|
121
|
-
* ['
|
|
121
|
+
* ['emit', 'TASKS_LOADED']
|
|
122
122
|
* ],
|
|
123
123
|
* {
|
|
124
124
|
* renderToSlot: (slot, pattern) => slotManager.render(slot, pattern),
|
|
125
125
|
* navigate: (path) => router.push(path),
|
|
126
|
-
* notify: (message, opts) => toast.show(message, opts),
|
|
127
126
|
* eventBus: { emit: (event, payload) => bus.emit(event, payload) }
|
|
128
127
|
* }
|
|
129
128
|
* );
|
|
@@ -144,10 +143,6 @@ declare function parseClientEffects(raw: FieldValue[] | undefined): ClientEffect
|
|
|
144
143
|
* Get all render-ui effects.
|
|
145
144
|
*/
|
|
146
145
|
declare function getRenderUIEffects(effects: ClientEffect[]): Array<['render-ui', string, PatternConfig | null]>;
|
|
147
|
-
/**
|
|
148
|
-
* Get all notify effects.
|
|
149
|
-
*/
|
|
150
|
-
declare function getNotifyEffects(effects: ClientEffect[]): Array<['notify', string, NotifyOptions?]>;
|
|
151
146
|
|
|
152
147
|
/**
|
|
153
148
|
* Options for the useClientEffects hook
|
|
@@ -340,4 +335,4 @@ declare const ALL_SLOTS: UISlot[];
|
|
|
340
335
|
*/
|
|
341
336
|
declare function initializePatterns(): number;
|
|
342
337
|
|
|
343
|
-
export { ALL_SLOTS, ClientEffect, ClientEffectConfigContext, ClientEffectConfigProvider, ClientEffectExecutorConfig, DataContext, DataResolution, MappedPattern,
|
|
338
|
+
export { ALL_SLOTS, ClientEffect, ClientEffectConfigContext, ClientEffectConfigProvider, ClientEffectExecutorConfig, DataContext, DataResolution, MappedPattern, SLOT_DEFINITIONS, SlotDefinition, type UseClientEffectsOptions, type UseClientEffectsResult, executeClientEffects, getInlineSlots, getKnownPatterns, getPatternDefinition, getPatternMapping, getPatternsByCategory, getRenderUIEffects, getSlotDefinition, hasEntities, initializePatternResolver, initializePatterns, isKnownPattern, isPortalSlot, parseClientEffect, parseClientEffects, resolveEntityById, resolveEntityData, resolveEntityDataWithQuery, resolvePattern, setComponentMapping, setPatternRegistry, useClientEffectConfig, useClientEffectConfigOptional, useClientEffects };
|
package/dist/renderer/index.js
CHANGED
|
@@ -109,11 +109,6 @@ function executeEffect(effect, config) {
|
|
|
109
109
|
executeNavigate(path, params, config);
|
|
110
110
|
break;
|
|
111
111
|
}
|
|
112
|
-
case "notify": {
|
|
113
|
-
const [message, options] = args;
|
|
114
|
-
executeNotify(message, options, config);
|
|
115
|
-
break;
|
|
116
|
-
}
|
|
117
112
|
case "emit": {
|
|
118
113
|
const [event, payload] = args;
|
|
119
114
|
executeEmit(event, payload, config);
|
|
@@ -129,9 +124,6 @@ function executeRenderUI(slot, patternConfig, config) {
|
|
|
129
124
|
function executeNavigate(path, params, config) {
|
|
130
125
|
config.navigate(path, params);
|
|
131
126
|
}
|
|
132
|
-
function executeNotify(message, options, config) {
|
|
133
|
-
config.notify(message, options);
|
|
134
|
-
}
|
|
135
127
|
function executeEmit(event, payload, config) {
|
|
136
128
|
config.eventBus.emit(event, payload);
|
|
137
129
|
}
|
|
@@ -150,8 +142,6 @@ function parseClientEffect(raw) {
|
|
|
150
142
|
return ["render-ui", args[0], args[1]];
|
|
151
143
|
case "navigate":
|
|
152
144
|
return ["navigate", args[0], args[1]];
|
|
153
|
-
case "notify":
|
|
154
|
-
return ["notify", args[0], args[1]];
|
|
155
145
|
case "emit":
|
|
156
146
|
return ["emit", args[0], args[1]];
|
|
157
147
|
default:
|
|
@@ -173,9 +163,6 @@ function filterEffectsByType(effects, type) {
|
|
|
173
163
|
function getRenderUIEffects(effects) {
|
|
174
164
|
return filterEffectsByType(effects, "render-ui");
|
|
175
165
|
}
|
|
176
|
-
function getNotifyEffects(effects) {
|
|
177
|
-
return filterEffectsByType(effects, "notify");
|
|
178
|
-
}
|
|
179
166
|
var log3 = createLogger("almadar:ui:effects:client-hook");
|
|
180
167
|
function useClientEffects(effects, options) {
|
|
181
168
|
const {
|
|
@@ -540,7 +527,6 @@ var OfflineExecutor = class {
|
|
|
540
527
|
// Client effects - execute immediately
|
|
541
528
|
case "render-ui":
|
|
542
529
|
case "navigate":
|
|
543
|
-
case "notify":
|
|
544
530
|
case "emit":
|
|
545
531
|
clientEffects.push(effect);
|
|
546
532
|
break;
|
|
@@ -763,4 +749,4 @@ function initializePatterns() {
|
|
|
763
749
|
return Object.keys(componentMapping2).length;
|
|
764
750
|
}
|
|
765
751
|
|
|
766
|
-
export { ALL_SLOTS, ClientEffectConfigContext, ClientEffectConfigProvider, OfflineExecutor, SLOT_DEFINITIONS, createOfflineExecutor, executeClientEffects, getInlineSlots, getKnownPatterns,
|
|
752
|
+
export { ALL_SLOTS, ClientEffectConfigContext, ClientEffectConfigProvider, OfflineExecutor, SLOT_DEFINITIONS, createOfflineExecutor, executeClientEffects, getInlineSlots, getKnownPatterns, getPatternDefinition, getPatternMapping, getPatternsByCategory, getRenderUIEffects, getSlotDefinition, hasEntities, initializePatternResolver, initializePatterns, isKnownPattern, isPortalSlot, parseClientEffect, parseClientEffects, resolveEntityById, resolveEntityData, resolveEntityDataWithQuery, resolvePattern, setComponentMapping, setPatternRegistry, useClientEffectConfig, useClientEffectConfigOptional, useClientEffects, useOfflineExecutor };
|