@_linked/shape-ui 2.3.3 → 2.3.4

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.
@@ -1,3 +1,18 @@
1
- import { getPackageShape, linkedOntology, linkedShape, linkedUtil, packageExports, registerPackageExport, registerPackageModule } from '@_linked/core/package';
2
- export declare const packageName: string;
3
- export { getPackageShape, linkedOntology, linkedShape, linkedUtil, packageExports, registerPackageExport, registerPackageModule, };
1
+ /**
2
+ * This package's own identity.
3
+ *
4
+ * It used to re-export `@_linked/core`'s decorators verbatim, which meant any
5
+ * shape declared here would register under the package name `@_linked/core`
6
+ * and carry a `.../shape/core/...` IRI. A third name — a cosmetic
7
+ * `packageName: '@_linked/ui'` literal — matched neither the npm name nor the
8
+ * registration.
9
+ *
10
+ * Nothing is decorated here today, so nothing was mis-registered. The point is
11
+ * that the next shape added to this package would have been, silently: a shape
12
+ * whose IRI names the wrong package is unreachable by `Server.call`, which
13
+ * routes on exactly that name.
14
+ */
15
+ export declare const linkedShape: {
16
+ <T extends typeof import("@_linked/core/shapes/Shape").Shape>(constructor: T): void;
17
+ <T extends typeof import("@_linked/core/shapes/Shape").Shape>(config?: import("@_linked/core/utils/Package").ShapeConfig): (constructor: T) => void;
18
+ }, linkedUtil: (constructor: any) => any, linkedOntology: (allFileExports: any, nameSpace: (term: string) => import("@_linked/core/utils/NodeReference").NodeReferenceValue, suggestedPrefixAndFileName: string, loadDataFunction?: () => Promise<any>, dataSource?: string | string[]) => void, registerPackageExport: (exportedObject: any) => void, registerPackageModule: (_module: any) => void, getPackageShape: (name: string) => import("@_linked/core/shapes/Shape").ShapeConstructor | undefined, packageExports: any, packageName: string;
@@ -1,4 +1,17 @@
1
- import { getPackageShape, linkedOntology, linkedShape, linkedUtil, packageExports, registerPackageExport, registerPackageModule, } from '@_linked/core/package';
2
- export const { packageName } = { packageName: '@_linked/ui' };
3
- export { getPackageShape, linkedOntology, linkedShape, linkedUtil, packageExports, registerPackageExport, registerPackageModule, };
1
+ import { linkedPackage } from '@_linked/core/utils/Package';
2
+ /**
3
+ * This package's own identity.
4
+ *
5
+ * It used to re-export `@_linked/core`'s decorators verbatim, which meant any
6
+ * shape declared here would register under the package name `@_linked/core`
7
+ * and carry a `.../shape/core/...` IRI. A third name — a cosmetic
8
+ * `packageName: '@_linked/ui'` literal — matched neither the npm name nor the
9
+ * registration.
10
+ *
11
+ * Nothing is decorated here today, so nothing was mis-registered. The point is
12
+ * that the next shape added to this package would have been, silently: a shape
13
+ * whose IRI names the wrong package is unreachable by `Server.call`, which
14
+ * routes on exactly that name.
15
+ */
16
+ export const { linkedShape, linkedUtil, linkedOntology, registerPackageExport, registerPackageModule, getPackageShape, packageExports, packageName, } = linkedPackage('@_linked/shape-ui');
4
17
  //# sourceMappingURL=package.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"package.js","sourceRoot":"","sources":["../../src/package.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,eAAe,EACf,cAAc,EACd,WAAW,EACX,UAAU,EACV,cAAc,EACd,qBAAqB,EACrB,qBAAqB,GACtB,MAAM,uBAAuB,CAAC;AAE/B,MAAM,CAAC,MAAM,EAAE,WAAW,EAAE,GAAG,EAAE,WAAW,EAAE,aAAa,EAAE,CAAC;AAE9D,OAAO,EACL,eAAe,EACf,cAAc,EACd,WAAW,EACX,UAAU,EACV,cAAc,EACd,qBAAqB,EACrB,qBAAqB,GACtB,CAAC"}
1
+ {"version":3,"file":"package.js","sourceRoot":"","sources":["../../src/package.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,aAAa,EAAC,MAAM,6BAA6B,CAAC;AAE1D;;;;;;;;;;;;;GAaG;AACH,MAAM,CAAC,MAAM,EACX,WAAW,EACX,UAAU,EACV,cAAc,EACd,qBAAqB,EACrB,qBAAqB,EACrB,eAAe,EACf,cAAc,EACd,WAAW,GACZ,GAAG,aAAa,CAAC,mBAAmB,CAAC,CAAC"}
package/package.json CHANGED
@@ -10,7 +10,7 @@
10
10
  "type": "git",
11
11
  "url": "git+https://github.com/linked-fw/shape-ui.git"
12
12
  },
13
- "version": "2.3.3",
13
+ "version": "2.3.4",
14
14
  "packageManager": "npm@11.19.1",
15
15
  "type": "module",
16
16
  "linkedPackage": true,
package/src/package.ts CHANGED
@@ -1,21 +1,26 @@
1
- import {
2
- getPackageShape,
3
- linkedOntology,
1
+ import {linkedPackage} from '@_linked/core/utils/Package';
2
+
3
+ /**
4
+ * This package's own identity.
5
+ *
6
+ * It used to re-export `@_linked/core`'s decorators verbatim, which meant any
7
+ * shape declared here would register under the package name `@_linked/core`
8
+ * and carry a `.../shape/core/...` IRI. A third name — a cosmetic
9
+ * `packageName: '@_linked/ui'` literal — matched neither the npm name nor the
10
+ * registration.
11
+ *
12
+ * Nothing is decorated here today, so nothing was mis-registered. The point is
13
+ * that the next shape added to this package would have been, silently: a shape
14
+ * whose IRI names the wrong package is unreachable by `Server.call`, which
15
+ * routes on exactly that name.
16
+ */
17
+ export const {
4
18
  linkedShape,
5
19
  linkedUtil,
6
- packageExports,
20
+ linkedOntology,
7
21
  registerPackageExport,
8
22
  registerPackageModule,
9
- } from '@_linked/core/package';
10
-
11
- export const { packageName } = { packageName: '@_linked/ui' };
12
-
13
- export {
14
23
  getPackageShape,
15
- linkedOntology,
16
- linkedShape,
17
- linkedUtil,
18
24
  packageExports,
19
- registerPackageExport,
20
- registerPackageModule,
21
- };
25
+ packageName,
26
+ } = linkedPackage('@_linked/shape-ui');