Initial commit

This commit is contained in:
2025-03-07 19:22:02 +01:00
commit 4a98255d83
55743 changed files with 5280367 additions and 0 deletions
+22
View File
@@ -0,0 +1,22 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
function _export(target, all) {
for(var name in all)Object.defineProperty(target, name, {
enumerable: true,
get: all[name]
});
}
_export(exports, {
LinkContextProvider: function() {
return _linkContext.LinkContextProvider;
},
linkContextDefaultValue: function() {
return _linkContext.linkContextDefaultValue;
},
useLinkContext: function() {
return _linkContext.useLinkContext;
}
});
const _linkContext = require("./linkContext");
+1
View File
@@ -0,0 +1 @@
{"version":3,"sources":["../src/contexts/index.ts"],"sourcesContent":["export type { LinkContextValue } from './linkContext';\nexport { LinkContextProvider, linkContextDefaultValue, useLinkContext } from './linkContext';\n"],"names":["LinkContextProvider","linkContextDefaultValue","useLinkContext"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;","mappings":";;;;;;;;;;;IACSA,mBAAmB;eAAnBA,gCAAmB;;IAAEC,uBAAuB;eAAvBA,oCAAuB;;IAAEC,cAAc;eAAdA,2BAAc;;;6BAAQ"}
+32
View File
@@ -0,0 +1,32 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
function _export(target, all) {
for(var name in all)Object.defineProperty(target, name, {
enumerable: true,
get: all[name]
});
}
_export(exports, {
LinkContextProvider: function() {
return LinkContextProvider;
},
linkContextDefaultValue: function() {
return linkContextDefaultValue;
},
useLinkContext: function() {
return useLinkContext;
}
});
const _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard");
const _react = /*#__PURE__*/ _interop_require_wildcard._(require("react"));
const LinkContext = /*#__PURE__*/ _react.createContext(undefined);
const linkContextDefaultValue = {
inline: false
};
const LinkContextProvider = LinkContext.Provider;
const useLinkContext = ()=>{
var _React_useContext;
return (_React_useContext = _react.useContext(LinkContext)) !== null && _React_useContext !== void 0 ? _React_useContext : linkContextDefaultValue;
};
@@ -0,0 +1 @@
{"version":3,"sources":["../src/contexts/linkContext.ts"],"sourcesContent":["import * as React from 'react';\n\nexport type LinkContextValue = {\n inline?: boolean;\n};\n\nconst LinkContext = React.createContext<LinkContextValue | undefined>(undefined);\n\nexport const linkContextDefaultValue: LinkContextValue = {\n inline: false,\n};\n\nexport const LinkContextProvider = LinkContext.Provider;\nexport const useLinkContext = () => React.useContext(LinkContext) ?? linkContextDefaultValue;\n"],"names":["LinkContextProvider","linkContextDefaultValue","useLinkContext","LinkContext","React","createContext","undefined","inline","Provider","useContext"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","mappings":";;;;;;;;;;;IAYaA,mBAAAA;eAAAA;;IAJAC,uBAAAA;eAAAA;;IAKAC,cAAAA;eAAAA;;;;iEAbU;AAMvB,MAAMC,4BAAcC,OAAMC,aAAa,CAA+BC;AAE/D,MAAML,0BAA4C;IACvDM,QAAQ;AACV;AAEO,MAAMP,sBAAsBG,YAAYK,QAAQ;AAChD,MAAMN,iBAAiB;QAAME;WAAAA,CAAAA,oBAAAA,OAAMK,UAAU,CAACN,YAAAA,MAAAA,QAAjBC,sBAAAA,KAAAA,IAAAA,oBAAiCH;AAAsB"}