@orieljs/framework 0.1.0-alpha.7 → 0.1.0-alpha.9

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.
@@ -532,7 +532,7 @@ var Application2 = class _Application extends Container {
532
532
  this.scoped(Vite, () => new Vite(this));
533
533
  }
534
534
  base;
535
- version = "0.1.0-alpha.7";
535
+ version = "0.1.0-alpha.9";
536
536
  providers = [];
537
537
  bootingCallbacks = [];
538
538
  bootedCallbacks = [];
@@ -4685,6 +4685,19 @@ var LiveServiceProvider = class extends ServiceProvider {
4685
4685
  }
4686
4686
  }
4687
4687
  };
4688
+ function describeComponent(cls) {
4689
+ const container2 = currentContainer();
4690
+ const instance = container2 ? container2.make(cls) : new cls();
4691
+ const methods = /* @__PURE__ */ new Set();
4692
+ const isBase = (proto) => proto === Component.prototype || proto === Object.prototype;
4693
+ for (let proto = Object.getPrototypeOf(instance); proto !== null && !isBase(proto); proto = Object.getPrototypeOf(proto)) {
4694
+ for (const name of Object.getOwnPropertyNames(proto)) methods.add(name);
4695
+ }
4696
+ return {
4697
+ actions: [...methods].filter((name) => isCallable(instance, name)).sort(),
4698
+ properties: Object.keys(instance).filter((name) => isUpdatable(instance, name)).sort()
4699
+ };
4700
+ }
4688
4701
  function urlWindow(current, last, onEachSide) {
4689
4702
  const range = (from, to) => Array.from({ length: Math.max(to - from + 1, 0) }, (_, index) => from + index);
4690
4703
  if (last < onEachSide * 2 + 8) return range(1, last);
@@ -8356,12 +8369,14 @@ export {
8356
8369
  live,
8357
8370
  Live,
8358
8371
  componentName,
8372
+ componentFiles,
8359
8373
  PERSISTENT_MIDDLEWARE,
8360
8374
  persistentMiddleware,
8361
8375
  WithPagination,
8362
8376
  LiveComponentManager,
8363
8377
  UPDATE_URI,
8364
8378
  LiveServiceProvider,
8379
+ describeComponent,
8365
8380
  Pagination,
8366
8381
  travelTo,
8367
8382
  travelBack,
@@ -8415,4 +8430,4 @@ export {
8415
8430
  StorageFake,
8416
8431
  FakeFile
8417
8432
  };
8418
- //# sourceMappingURL=chunk-4MWG3B7G.js.map
8433
+ //# sourceMappingURL=chunk-YAB54Y5I.js.map