infaira-canvas 0.4.0 → 0.5.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/commands/init.js
CHANGED
|
@@ -166,10 +166,9 @@ import type { IContextProvider } from './ican';
|
|
|
166
166
|
import './styles.scss';
|
|
167
167
|
|
|
168
168
|
// ─── useService hook ──────────────────────────────────────────────────────────
|
|
169
|
-
// Call any InfAIra microservice
|
|
169
|
+
// Call any InfAIra microservice directly:
|
|
170
170
|
//
|
|
171
|
-
//
|
|
172
|
-
// ICan (now): useService(icanContext, 'Assets', 'Asset:List', { limit: 20 })
|
|
171
|
+
// useService(icanContext, 'Assets', 'Asset:List', { limit: 20 })
|
|
173
172
|
//
|
|
174
173
|
// The result is the raw microservice response — no extra wrapper to unwrap.
|
|
175
174
|
// For orchestrated flows that call multiple services, use executeAction with
|
|
@@ -226,7 +225,7 @@ export interface IWidgetProps {
|
|
|
226
225
|
|
|
227
226
|
// ─── Widget ───────────────────────────────────────────────────────────────────
|
|
228
227
|
const ${componentName}: React.FC<IWidgetProps> = ({ icanContext }) => {
|
|
229
|
-
// ── Fetch data via executeService
|
|
228
|
+
// ── Fetch data via executeService ────────────────────────────────────────
|
|
230
229
|
// Replace 'Assets' / 'Asset:List' with your app + service path.
|
|
231
230
|
// All InfAIra apps: Assets, Locations, UserManagement, FMS, PPM, IBMS
|
|
232
231
|
const { data, loading, error, refetch } = useService<IListResponse>(
|
package/package.json
CHANGED
|
@@ -1727,7 +1727,6 @@
|
|
|
1727
1727
|
if (!window.registerUI) window.registerUI = function () {};
|
|
1728
1728
|
if (!window.registerMenuItem) window.registerMenuItem = function () {};
|
|
1729
1729
|
if (!window.registerLocalization) window.registerLocalization = function () {};
|
|
1730
|
-
if (!window.UXPComponents) window.UXPComponents = {};
|
|
1731
1730
|
if (!window.WidgetDesignerComponents) window.WidgetDesignerComponents = {};
|
|
1732
1731
|
|
|
1733
1732
|
console.log('[ICan] Components loaded — InfAIra Canvas v2.0 (canonical, matches widget-bridge.ts)');
|