@_linked/primitives 1.2.2 → 1.2.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.
- package/CHANGELOG.md +34 -0
- package/lib/cjs/components/Drawer.d.ts +5 -5
- package/lib/cjs/index.d.ts +1 -1
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/index.js.map +1 -1
- package/lib/cjs/ontologies/primitives.d.ts +3 -3
- package/lib/cjs/ontologies/primitives.js +0 -3
- package/lib/cjs/ontologies/primitives.js.map +1 -1
- package/lib/cjs/ontologies/primitives.register.d.ts +1 -0
- package/lib/cjs/ontologies/primitives.register.js +52 -0
- package/lib/cjs/ontologies/primitives.register.js.map +1 -0
- package/lib/cjs/package.json +1 -1
- package/lib/esm/components/Drawer.d.ts +5 -5
- package/lib/esm/index.d.ts +1 -1
- package/lib/esm/index.js +1 -1
- package/lib/esm/index.js.map +1 -1
- package/lib/esm/ontologies/primitives.d.ts +3 -3
- package/lib/esm/ontologies/primitives.js +0 -3
- package/lib/esm/ontologies/primitives.js.map +1 -1
- package/lib/esm/ontologies/primitives.register.d.ts +1 -0
- package/lib/esm/ontologies/primitives.register.js +17 -0
- package/lib/esm/ontologies/primitives.register.js.map +1 -0
- package/lib/esm/package.json +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,39 @@
|
|
|
1
1
|
# @\_linked/primitives
|
|
2
2
|
|
|
3
|
+
## 1.2.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#30](https://github.com/linked-fw/primitives/pull/30) [`05edb14`](https://github.com/linked-fw/primitives/commit/05edb14ea7b7816883cd573751d0ba5398ab19c6) Thanks [@flyon](https://github.com/flyon)! - The ontology no longer registers by importing itself.
|
|
8
|
+
|
|
9
|
+
It carried `import * as _this from './<prefix>.js'` and passed that namespace to
|
|
10
|
+
`linkedOntology()`. Under `tsc` the self-reference survives; under a bundler it does
|
|
11
|
+
not — Rollup treats it as a circular import and elides it, so the binding is
|
|
12
|
+
`undefined` and a consuming app dies at boot with `_this is not defined`.
|
|
13
|
+
|
|
14
|
+
Registration now lives in a `<prefix>.register.ts` sibling, imported from the package
|
|
15
|
+
entry. Nothing changes for consumers: importing this package still registers the
|
|
16
|
+
ontology.
|
|
17
|
+
|
|
18
|
+
## 1.2.3
|
|
19
|
+
|
|
20
|
+
### Patch Changes
|
|
21
|
+
|
|
22
|
+
- [#28](https://github.com/linked-fw/primitives/pull/28) [`23878a3`](https://github.com/linked-fw/primitives/commit/23878a34f6b8c5a720f280f0a2658f785babc0f1) Thanks [@flyon](https://github.com/flyon)! - Compiles under React 19.
|
|
23
|
+
|
|
24
|
+
React 19 removed `React.ElementRef`. Thirty components used it to type their
|
|
25
|
+
forwarded ref, so **this package has not compiled since the React 19 upgrade**
|
|
26
|
+
— and because its `lib/` was left behind at the last successful build, that was
|
|
27
|
+
invisible until a consumer failed to resolve an asset the stale build never
|
|
28
|
+
emitted:
|
|
29
|
+
|
|
30
|
+
```
|
|
31
|
+
Could not resolve "./Tooltip.module.css"
|
|
32
|
+
from "packages/primitives/lib/esm/components/Tooltip.js"
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
`React.ComponentRef` is the same type under its current name.
|
|
36
|
+
|
|
3
37
|
## 1.2.2
|
|
4
38
|
|
|
5
39
|
### Patch Changes
|
|
@@ -7,10 +7,10 @@ declare const Root: {
|
|
|
7
7
|
({ shouldScaleBackground, ...props }: React.ComponentProps<typeof DrawerPrimitive.Root>): React.JSX.Element;
|
|
8
8
|
displayName: string;
|
|
9
9
|
};
|
|
10
|
-
declare const Trigger: React.ForwardRefExoticComponent<React.ComponentPropsWithoutRef<typeof DrawerPrimitive.Trigger> & React.RefAttributes<React.
|
|
10
|
+
declare const Trigger: React.ForwardRefExoticComponent<React.ComponentPropsWithoutRef<typeof DrawerPrimitive.Trigger> & React.RefAttributes<React.ComponentRef<typeof DrawerPrimitive.Trigger>>>;
|
|
11
11
|
declare const Portal: typeof import("vaul").Portal;
|
|
12
|
-
declare const Close: React.ForwardRefExoticComponent<React.ComponentPropsWithoutRef<typeof DrawerPrimitive.Close> & React.RefAttributes<React.
|
|
13
|
-
declare const Overlay: React.ForwardRefExoticComponent<React.ComponentPropsWithoutRef<typeof DrawerPrimitive.Overlay> & React.RefAttributes<React.
|
|
12
|
+
declare const Close: React.ForwardRefExoticComponent<React.ComponentPropsWithoutRef<typeof DrawerPrimitive.Close> & React.RefAttributes<React.ComponentRef<typeof DrawerPrimitive.Close>>>;
|
|
13
|
+
declare const Overlay: React.ForwardRefExoticComponent<React.ComponentPropsWithoutRef<typeof DrawerPrimitive.Overlay> & React.RefAttributes<React.ComponentRef<typeof DrawerPrimitive.Overlay>>>;
|
|
14
14
|
interface ContentProps extends React.ComponentPropsWithoutRef<typeof DrawerPrimitive.Content> {
|
|
15
15
|
hideHandle?: boolean;
|
|
16
16
|
}
|
|
@@ -23,8 +23,8 @@ declare const Footer: {
|
|
|
23
23
|
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): React.JSX.Element;
|
|
24
24
|
displayName: string;
|
|
25
25
|
};
|
|
26
|
-
declare const Title: React.ForwardRefExoticComponent<React.ComponentPropsWithoutRef<typeof DrawerPrimitive.Title> & React.RefAttributes<React.
|
|
27
|
-
declare const Description: React.ForwardRefExoticComponent<React.ComponentPropsWithoutRef<typeof DrawerPrimitive.Description> & React.RefAttributes<React.
|
|
26
|
+
declare const Title: React.ForwardRefExoticComponent<React.ComponentPropsWithoutRef<typeof DrawerPrimitive.Title> & React.RefAttributes<React.ComponentRef<typeof DrawerPrimitive.Title>>>;
|
|
27
|
+
declare const Description: React.ForwardRefExoticComponent<React.ComponentPropsWithoutRef<typeof DrawerPrimitive.Description> & React.RefAttributes<React.ComponentRef<typeof DrawerPrimitive.Description>>>;
|
|
28
28
|
export declare const Drawer: {
|
|
29
29
|
Root: typeof Root;
|
|
30
30
|
Portal: typeof Portal;
|
package/lib/cjs/index.d.ts
CHANGED
package/lib/cjs/index.js
CHANGED
|
@@ -16,7 +16,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
require("./theme.css");
|
|
18
18
|
require("./types.js");
|
|
19
|
-
require("./ontologies/primitives.js");
|
|
19
|
+
require("./ontologies/primitives.register.js");
|
|
20
20
|
//SHAPES FIRST
|
|
21
21
|
// import './shapes/YourShape.js';
|
|
22
22
|
//THEN COMPONENTS
|
package/lib/cjs/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,uBAAqB;AACrB,sBAAoB;AACpB
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,uBAAqB;AACrB,sBAAoB;AACpB,+CAA6C;AAE7C,cAAc;AACd,kCAAkC;AAElC,iBAAiB;AACjB,iCAA+B;AAC/B,kCAAgC;AAChC,iCAA+B;AAC/B,gCAA8B;AAC9B,kCAAgC;AAChC,oCAAkC;AAClC,sCAAoC;AACpC,kCAAgC;AAChC,iCAA+B;AAC/B,qCAAmC;AACnC,kCAAgC;AAChC,uCAAqC;AACrC,oCAAkC;AAClC,qCAAmC;AACnC,qCAAmC;AACnC,uCAAqC;AACrC,sCAAoC;AACpC,gCAA8B;AAC9B,mCAAiC;AACjC,uCAAqC;AACrC,kCAAgC;AAChC,sCAAoC;AACpC,mCAAiC;AACjC,mCAAiC;AACjC,kCAAgC;AAChC,uCAAqC;AACrC,kCAAgC;AAChC,iCAA+B;AAC/B,mCAAiC;AACjC,oCAAkC;AAClC,0CAAwC;AACxC,mCAAiC;AACjC,uCAAqC;AACrC,mCAAiC;AACjC,yCAAuC;AACvC,0CAAwC;AACxC,sCAAoC;AACpC,yCAAuC;AACvC,sCAAoC;AACpC,kCAAgC;AAChC,sCAAoC;AACpC,wCAAsC;AACtC,uCAAqC;AACrC,gCAA8B;AAC9B,mCAAiC;AACjC,0CAAwC;AAExC,gCAA8B;AAE9B,uFAAuF;AACvF,qEAAqE;AACrE,8CAA4B"}
|
|
@@ -8,8 +8,8 @@ export declare const loadData: () => Promise<{
|
|
|
8
8
|
};
|
|
9
9
|
"@graph": any[];
|
|
10
10
|
}>;
|
|
11
|
-
export declare const ns: (term: string) => import("@_linked/core/utils/NodeReference
|
|
12
|
-
export declare const _self: import("@_linked/core/utils/NodeReference
|
|
11
|
+
export declare const ns: (term: string) => import("@_linked/core/utils/NodeReference").NodeReferenceValue;
|
|
12
|
+
export declare const _self: import("@_linked/core/utils/NodeReference").NodeReferenceValue;
|
|
13
13
|
export declare const radix: {
|
|
14
|
-
_self: import("@_linked/core/utils/NodeReference
|
|
14
|
+
_self: import("@_linked/core/utils/NodeReference").NodeReferenceValue;
|
|
15
15
|
};
|
|
@@ -36,8 +36,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
36
36
|
exports.radix = exports._self = exports.ns = exports.loadData = void 0;
|
|
37
37
|
const Prefix_1 = require("@_linked/core/utils/Prefix");
|
|
38
38
|
const NameSpace_1 = require("@_linked/core/utils/NameSpace");
|
|
39
|
-
const package_js_1 = require("../package.js");
|
|
40
|
-
const _this = __importStar(require("./primitives.js"));
|
|
41
39
|
const dataFile = '../data/primitives.json';
|
|
42
40
|
const base = 'http://lincd.org/ont/radix/';
|
|
43
41
|
Prefix_1.Prefix.add('radix', base);
|
|
@@ -51,5 +49,4 @@ exports._self = (0, exports.ns)('');
|
|
|
51
49
|
exports.radix = {
|
|
52
50
|
_self: exports._self,
|
|
53
51
|
};
|
|
54
|
-
(0, package_js_1.linkedOntology)(_this, exports.ns, 'radix', exports.loadData, dataFile);
|
|
55
52
|
//# sourceMappingURL=primitives.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"primitives.js","sourceRoot":"","sources":["../../../src/ontologies/primitives.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,uDAAoD;AACpD,6DAAgE;
|
|
1
|
+
{"version":3,"file":"primitives.js","sourceRoot":"","sources":["../../../src/ontologies/primitives.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,uDAAoD;AACpD,6DAAgE;AAEhE,MAAM,QAAQ,GAAG,yBAAyB,CAAC;AAC3C,MAAM,IAAI,GAAG,6BAA6B,CAAC;AAE3C,eAAM,CAAC,GAAG,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;AAEnB,MAAM,QAAQ,GAAG,GAAG,EAAE;IAC3B,YAAY;IACZ,OAAO,kDAAO,yBAAyB,IAEpC,IAAI,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;AAClC,CAAC,CAAC;AALW,QAAA,QAAQ,YAKnB;AAEW,QAAA,EAAE,GAAG,IAAA,2BAAe,EAAC,IAAI,CAAC,CAAC;AAC3B,QAAA,KAAK,GAAG,IAAA,UAAE,EAAC,EAAE,CAAC,CAAC;AAEf,QAAA,KAAK,GAAG;IACnB,KAAK,EAAL,aAAK;CACN,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
+
/**
|
|
37
|
+
* Registers this ontology.
|
|
38
|
+
*
|
|
39
|
+
* Kept out of `primitives.ts` because registration needs that module's whole export
|
|
40
|
+
* namespace, and a module cannot import itself once a bundler is involved: Rollup
|
|
41
|
+
* treats a static self-reference as a circular import and elides it, so the binding is
|
|
42
|
+
* undefined at runtime and the consuming app dies at boot with `_this is not
|
|
43
|
+
* defined`. `tsc` preserves it, which is why the pattern survived for as long as
|
|
44
|
+
* packages were built with `tsc` alone.
|
|
45
|
+
*
|
|
46
|
+
* From a sibling module the same import is ordinary and survives.
|
|
47
|
+
*/
|
|
48
|
+
const terms = __importStar(require("./primitives.js"));
|
|
49
|
+
const primitives_js_1 = require("./primitives.js");
|
|
50
|
+
const package_js_1 = require("../package.js");
|
|
51
|
+
(0, package_js_1.linkedOntology)(terms, primitives_js_1.ns, 'radix', primitives_js_1.loadData, '../data/primitives.json');
|
|
52
|
+
//# sourceMappingURL=primitives.register.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"primitives.register.js","sourceRoot":"","sources":["../../../src/ontologies/primitives.register.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;;GAWG;AACH,uDAAyC;AACzC,mDAA6C;AAC7C,8CAA6C;AAE7C,IAAA,2BAAc,EAAC,KAAK,EAAE,kBAAE,EAAE,OAAO,EAAE,wBAAQ,EAAE,yBAAyB,CAAC,CAAC"}
|
package/lib/cjs/package.json
CHANGED
|
@@ -7,10 +7,10 @@ declare const Root: {
|
|
|
7
7
|
({ shouldScaleBackground, ...props }: React.ComponentProps<typeof DrawerPrimitive.Root>): React.JSX.Element;
|
|
8
8
|
displayName: string;
|
|
9
9
|
};
|
|
10
|
-
declare const Trigger: React.ForwardRefExoticComponent<React.ComponentPropsWithoutRef<typeof DrawerPrimitive.Trigger> & React.RefAttributes<React.
|
|
10
|
+
declare const Trigger: React.ForwardRefExoticComponent<React.ComponentPropsWithoutRef<typeof DrawerPrimitive.Trigger> & React.RefAttributes<React.ComponentRef<typeof DrawerPrimitive.Trigger>>>;
|
|
11
11
|
declare const Portal: typeof import("vaul").Portal;
|
|
12
|
-
declare const Close: React.ForwardRefExoticComponent<React.ComponentPropsWithoutRef<typeof DrawerPrimitive.Close> & React.RefAttributes<React.
|
|
13
|
-
declare const Overlay: React.ForwardRefExoticComponent<React.ComponentPropsWithoutRef<typeof DrawerPrimitive.Overlay> & React.RefAttributes<React.
|
|
12
|
+
declare const Close: React.ForwardRefExoticComponent<React.ComponentPropsWithoutRef<typeof DrawerPrimitive.Close> & React.RefAttributes<React.ComponentRef<typeof DrawerPrimitive.Close>>>;
|
|
13
|
+
declare const Overlay: React.ForwardRefExoticComponent<React.ComponentPropsWithoutRef<typeof DrawerPrimitive.Overlay> & React.RefAttributes<React.ComponentRef<typeof DrawerPrimitive.Overlay>>>;
|
|
14
14
|
interface ContentProps extends React.ComponentPropsWithoutRef<typeof DrawerPrimitive.Content> {
|
|
15
15
|
hideHandle?: boolean;
|
|
16
16
|
}
|
|
@@ -23,8 +23,8 @@ declare const Footer: {
|
|
|
23
23
|
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): React.JSX.Element;
|
|
24
24
|
displayName: string;
|
|
25
25
|
};
|
|
26
|
-
declare const Title: React.ForwardRefExoticComponent<React.ComponentPropsWithoutRef<typeof DrawerPrimitive.Title> & React.RefAttributes<React.
|
|
27
|
-
declare const Description: React.ForwardRefExoticComponent<React.ComponentPropsWithoutRef<typeof DrawerPrimitive.Description> & React.RefAttributes<React.
|
|
26
|
+
declare const Title: React.ForwardRefExoticComponent<React.ComponentPropsWithoutRef<typeof DrawerPrimitive.Title> & React.RefAttributes<React.ComponentRef<typeof DrawerPrimitive.Title>>>;
|
|
27
|
+
declare const Description: React.ForwardRefExoticComponent<React.ComponentPropsWithoutRef<typeof DrawerPrimitive.Description> & React.RefAttributes<React.ComponentRef<typeof DrawerPrimitive.Description>>>;
|
|
28
28
|
export declare const Drawer: {
|
|
29
29
|
Root: typeof Root;
|
|
30
30
|
Portal: typeof Portal;
|
package/lib/esm/index.d.ts
CHANGED
package/lib/esm/index.js
CHANGED
package/lib/esm/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,aAAa,CAAC;AACrB,OAAO,YAAY,CAAC;AACpB,OAAO,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,aAAa,CAAC;AACrB,OAAO,YAAY,CAAC;AACpB,OAAO,qCAAqC,CAAC;AAE7C,cAAc;AACd,kCAAkC;AAElC,iBAAiB;AACjB,OAAO,uBAAuB,CAAC;AAC/B,OAAO,wBAAwB,CAAC;AAChC,OAAO,uBAAuB,CAAC;AAC/B,OAAO,sBAAsB,CAAC;AAC9B,OAAO,wBAAwB,CAAC;AAChC,OAAO,0BAA0B,CAAC;AAClC,OAAO,4BAA4B,CAAC;AACpC,OAAO,wBAAwB,CAAC;AAChC,OAAO,uBAAuB,CAAC;AAC/B,OAAO,2BAA2B,CAAC;AACnC,OAAO,wBAAwB,CAAC;AAChC,OAAO,6BAA6B,CAAC;AACrC,OAAO,0BAA0B,CAAC;AAClC,OAAO,2BAA2B,CAAC;AACnC,OAAO,2BAA2B,CAAC;AACnC,OAAO,6BAA6B,CAAC;AACrC,OAAO,4BAA4B,CAAC;AACpC,OAAO,sBAAsB,CAAC;AAC9B,OAAO,yBAAyB,CAAC;AACjC,OAAO,6BAA6B,CAAC;AACrC,OAAO,wBAAwB,CAAC;AAChC,OAAO,4BAA4B,CAAC;AACpC,OAAO,yBAAyB,CAAC;AACjC,OAAO,yBAAyB,CAAC;AACjC,OAAO,wBAAwB,CAAC;AAChC,OAAO,6BAA6B,CAAC;AACrC,OAAO,wBAAwB,CAAC;AAChC,OAAO,uBAAuB,CAAC;AAC/B,OAAO,yBAAyB,CAAC;AACjC,OAAO,0BAA0B,CAAC;AAClC,OAAO,gCAAgC,CAAC;AACxC,OAAO,yBAAyB,CAAC;AACjC,OAAO,6BAA6B,CAAC;AACrC,OAAO,yBAAyB,CAAC;AACjC,OAAO,+BAA+B,CAAC;AACvC,OAAO,gCAAgC,CAAC;AACxC,OAAO,4BAA4B,CAAC;AACpC,OAAO,+BAA+B,CAAC;AACvC,OAAO,4BAA4B,CAAC;AACpC,OAAO,wBAAwB,CAAC;AAChC,OAAO,4BAA4B,CAAC;AACpC,OAAO,8BAA8B,CAAC;AACtC,OAAO,6BAA6B,CAAC;AACrC,OAAO,sBAAsB,CAAC;AAC9B,OAAO,yBAAyB,CAAC;AACjC,OAAO,gCAAgC,CAAC;AAExC,OAAO,sBAAsB,CAAC;AAE9B,uFAAuF;AACvF,qEAAqE;AACrE,cAAc,aAAa,CAAC"}
|
|
@@ -8,8 +8,8 @@ export declare const loadData: () => Promise<{
|
|
|
8
8
|
};
|
|
9
9
|
"@graph": any[];
|
|
10
10
|
}>;
|
|
11
|
-
export declare const ns: (term: string) => import("@_linked/core/utils/NodeReference
|
|
12
|
-
export declare const _self: import("@_linked/core/utils/NodeReference
|
|
11
|
+
export declare const ns: (term: string) => import("@_linked/core/utils/NodeReference").NodeReferenceValue;
|
|
12
|
+
export declare const _self: import("@_linked/core/utils/NodeReference").NodeReferenceValue;
|
|
13
13
|
export declare const radix: {
|
|
14
|
-
_self: import("@_linked/core/utils/NodeReference
|
|
14
|
+
_self: import("@_linked/core/utils/NodeReference").NodeReferenceValue;
|
|
15
15
|
};
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import { Prefix } from '@_linked/core/utils/Prefix';
|
|
2
2
|
import { createNameSpace } from '@_linked/core/utils/NameSpace';
|
|
3
|
-
import { linkedOntology } from '../package.js';
|
|
4
|
-
import * as _this from './primitives.js';
|
|
5
3
|
const dataFile = '../data/primitives.json';
|
|
6
4
|
const base = 'http://lincd.org/ont/radix/';
|
|
7
5
|
Prefix.add('radix', base);
|
|
@@ -16,5 +14,4 @@ export const _self = ns('');
|
|
|
16
14
|
export const radix = {
|
|
17
15
|
_self,
|
|
18
16
|
};
|
|
19
|
-
linkedOntology(_this, ns, 'radix', loadData, dataFile);
|
|
20
17
|
//# sourceMappingURL=primitives.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"primitives.js","sourceRoot":"","sources":["../../../src/ontologies/primitives.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAC;AACpD,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;
|
|
1
|
+
{"version":3,"file":"primitives.js","sourceRoot":"","sources":["../../../src/ontologies/primitives.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAC;AACpD,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAEhE,MAAM,QAAQ,GAAG,yBAAyB,CAAC;AAC3C,MAAM,IAAI,GAAG,6BAA6B,CAAC;AAE3C,MAAM,CAAC,GAAG,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;AAE1B,MAAM,CAAC,MAAM,QAAQ,GAAG,GAAG,EAAE;IAC3B,YAAY;IACZ,OAAO,MAAM,CAAC,yBAAyB,EAAE;QACvC,IAAI,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE;KACvB,CAAC,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;AAClC,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,EAAE,GAAG,eAAe,CAAC,IAAI,CAAC,CAAC;AACxC,MAAM,CAAC,MAAM,KAAK,GAAG,EAAE,CAAC,EAAE,CAAC,CAAC;AAE5B,MAAM,CAAC,MAAM,KAAK,GAAG;IACnB,KAAK;CACN,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Registers this ontology.
|
|
3
|
+
*
|
|
4
|
+
* Kept out of `primitives.ts` because registration needs that module's whole export
|
|
5
|
+
* namespace, and a module cannot import itself once a bundler is involved: Rollup
|
|
6
|
+
* treats a static self-reference as a circular import and elides it, so the binding is
|
|
7
|
+
* undefined at runtime and the consuming app dies at boot with `_this is not
|
|
8
|
+
* defined`. `tsc` preserves it, which is why the pattern survived for as long as
|
|
9
|
+
* packages were built with `tsc` alone.
|
|
10
|
+
*
|
|
11
|
+
* From a sibling module the same import is ordinary and survives.
|
|
12
|
+
*/
|
|
13
|
+
import * as terms from './primitives.js';
|
|
14
|
+
import { loadData, ns } from './primitives.js';
|
|
15
|
+
import { linkedOntology } from '../package.js';
|
|
16
|
+
linkedOntology(terms, ns, 'radix', loadData, '../data/primitives.json');
|
|
17
|
+
//# sourceMappingURL=primitives.register.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"primitives.register.js","sourceRoot":"","sources":["../../../src/ontologies/primitives.register.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AACH,OAAO,KAAK,KAAK,MAAM,iBAAiB,CAAC;AACzC,OAAO,EAAC,QAAQ,EAAE,EAAE,EAAC,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EAAC,cAAc,EAAC,MAAM,eAAe,CAAC;AAE7C,cAAc,CAAC,KAAK,EAAE,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,yBAAyB,CAAC,CAAC"}
|
package/lib/esm/package.json
CHANGED