feat: update deps

This commit is contained in:
Nicola Turcato 2025-10-03 15:28:39 +02:00
parent 9db6dfc489
commit 21803ec15e
No known key found for this signature in database
GPG Key ID: D9F5F250B7E4AF08
11 changed files with 1728 additions and 780 deletions

View File

@ -1,5 +1,5 @@
{ {
"$schema": "https://biomejs.dev/schemas/2.1.4/schema.json", "$schema": "https://biomejs.dev/schemas/2.2.5/schema.json",
"vcs": { "enabled": false, "clientKind": "git", "useIgnoreFile": false }, "vcs": { "enabled": false, "clientKind": "git", "useIgnoreFile": false },
"files": { "ignoreUnknown": false, "includes": ["**"] }, "files": { "ignoreUnknown": false, "includes": ["**"] },
"formatter": { "formatter": {

372
dist/ContentTree.js vendored
View File

@ -1,104 +1,270 @@
"use strict"; 'use strict'
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { var __createBinding =
if (k2 === undefined) k2 = k; (this && this.__createBinding) ||
var desc = Object.getOwnPropertyDescriptor(m, k); (Object.create
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { ? function (o, m, k, k2) {
desc = { enumerable: true, get: function() { return m[k]; } }; if (k2 === undefined) k2 = k
} var desc = Object.getOwnPropertyDescriptor(m, k)
Object.defineProperty(o, k2, desc); if (
}) : (function(o, m, k, k2) { !desc ||
if (k2 === undefined) k2 = k; ('get' in desc ? !m.__esModule : desc.writable || desc.configurable)
o[k2] = m[k]; ) {
})); desc = {
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { enumerable: true,
Object.defineProperty(o, "default", { enumerable: true, value: v }); get: function () {
}) : function(o, v) { return m[k]
o["default"] = v; },
}); }
var __importStar = (this && this.__importStar) || (function () { }
var ownKeys = function(o) { Object.defineProperty(o, k2, desc)
ownKeys = Object.getOwnPropertyNames || function (o) { }
var ar = []; : function (o, m, k, k2) {
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; if (k2 === undefined) k2 = k
return ar; o[k2] = m[k]
}; })
return ownKeys(o); var __setModuleDefault =
}; (this && this.__setModuleDefault) ||
return function (mod) { (Object.create
if (mod && mod.__esModule) return mod; ? function (o, v) {
var result = {}; Object.defineProperty(o, 'default', { enumerable: true, value: v })
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); }
__setModuleDefault(result, mod); : function (o, v) {
return result; o['default'] = v
}; })
})(); var __importStar =
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { (this && this.__importStar) ||
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } (function () {
return new (P || (P = Promise))(function (resolve, reject) { var ownKeys = function (o) {
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } ownKeys =
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } Object.getOwnPropertyNames ||
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } function (o) {
step((generator = generator.apply(thisArg, _arguments || [])).next()); var ar = []
}); for (var k in o)
}; if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k
var __generator = (this && this.__generator) || function (thisArg, body) { return ar
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype); }
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g; return ownKeys(o)
function verb(n) { return function (v) { return step([n, v]); }; } }
function step(op) { return function (mod) {
if (f) throw new TypeError("Generator is already executing."); if (mod && mod.__esModule) return mod
while (g && (g = 0, op[0] && (_ = 0)), _) try { var result = {}
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t; if (mod != null)
if (y = 0, t) op = [op[0] & 2, t.value]; for (var k = ownKeys(mod), i = 0; i < k.length; i++)
switch (op[0]) { if (k[i] !== 'default') __createBinding(result, mod, k[i])
case 0: case 1: t = op; break; __setModuleDefault(result, mod)
case 4: _.label++; return { value: op[1], done: false }; return result
case 5: _.label++; y = op[1]; op = [0]; continue; }
case 7: op = _.ops.pop(); _.trys.pop(); continue; })()
default: var __awaiter =
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } (this && this.__awaiter) ||
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } function (thisArg, _arguments, P, generator) {
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } function adopt(value) {
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } return value instanceof P
if (t[2]) _.ops.pop(); ? value
_.trys.pop(); continue; : new P(function (resolve) {
} resolve(value)
op = body.call(thisArg, _); })
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } }
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; return new (P || (P = Promise))(function (resolve, reject) {
} function fulfilled(value) {
}; try {
Object.defineProperty(exports, "__esModule", { value: true }); step(generator.next(value))
exports.ContentTree = void 0; } catch (e) {
var react_1 = __importStar(require("react")); reject(e)
var ContentTreeRoot_1 = require("./ContentTreeRoot"); }
var ContentTreeUtils_1 = require("./ContentTreeUtils"); }
function rejected(value) {
try {
step(generator['throw'](value))
} catch (e) {
reject(e)
}
}
function step(result) {
result.done
? resolve(result.value)
: adopt(result.value).then(fulfilled, rejected)
}
step((generator = generator.apply(thisArg, _arguments || [])).next())
})
}
var __generator =
(this && this.__generator) ||
function (thisArg, body) {
var _ = {
label: 0,
sent: function () {
if (t[0] & 1) throw t[1]
return t[1]
},
trys: [],
ops: [],
},
f,
y,
t,
g = Object.create(
(typeof Iterator === 'function' ? Iterator : Object).prototype,
)
return (
(g.next = verb(0)),
(g['throw'] = verb(1)),
(g['return'] = verb(2)),
typeof Symbol === 'function' &&
(g[Symbol.iterator] = function () {
return this
}),
g
)
function verb(n) {
return function (v) {
return step([n, v])
}
}
function step(op) {
if (f) throw new TypeError('Generator is already executing.')
while ((g && ((g = 0), op[0] && (_ = 0)), _))
try {
if (
((f = 1),
y &&
(t =
op[0] & 2
? y['return']
: op[0]
? y['throw'] || ((t = y['return']) && t.call(y), 0)
: y.next) &&
!(t = t.call(y, op[1])).done)
)
return t
if (((y = 0), t)) op = [op[0] & 2, t.value]
switch (op[0]) {
case 0:
case 1:
t = op
break
case 4:
_.label++
return { value: op[1], done: false }
case 5:
_.label++
y = op[1]
op = [0]
continue
case 7:
op = _.ops.pop()
_.trys.pop()
continue
default:
if (
!((t = _.trys), (t = t.length > 0 && t[t.length - 1])) &&
(op[0] === 6 || op[0] === 2)
) {
_ = 0
continue
}
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) {
_.label = op[1]
break
}
if (op[0] === 6 && _.label < t[1]) {
_.label = t[1]
t = op
break
}
if (t && _.label < t[2]) {
_.label = t[2]
_.ops.push(op)
break
}
if (t[2]) _.ops.pop()
_.trys.pop()
continue
}
op = body.call(thisArg, _)
} catch (e) {
op = [6, e]
y = 0
} finally {
f = t = 0
}
if (op[0] & 5) throw op[1]
return { value: op[0] ? op[1] : void 0, done: true }
}
}
Object.defineProperty(exports, '__esModule', { value: true })
exports.ContentTree = void 0
var react_1 = __importStar(require('react'))
var ContentTreeRoot_1 = require('./ContentTreeRoot')
var ContentTreeUtils_1 = require('./ContentTreeUtils')
var ContentTree = function (_a) { var ContentTree = function (_a) {
var sdkInstance = _a.sdkInstance, cma = _a.cma, rootType = _a.rootType, nodeContentTypes = _a.nodeContentTypes, titleFields = _a.titleFields, locales = _a.locales, _b = _a.indentation, indentation = _b === void 0 ? 1 : _b, iconRegistry = _a.iconRegistry; var sdkInstance = _a.sdkInstance,
var stLocale = (0, react_1.useState)(locales[0])[0]; cma = _a.cma,
var _c = (0, react_1.useState)([(0, ContentTreeUtils_1.emptyNodeProps)()]), rootNodes = _c[0], setRootNodes = _c[1]; rootType = _a.rootType,
(0, react_1.useEffect)(function () { nodeContentTypes = _a.nodeContentTypes,
if (sdkInstance) { titleFields = _a.titleFields,
loadData().catch(function (err) { locales = _a.locales,
throw new Error('loadRootData', err); _b = _a.indentation,
}); indentation = _b === void 0 ? 1 : _b,
} iconRegistry = _a.iconRegistry
}, [sdkInstance]); var stLocale = (0, react_1.useState)(locales[0])[0]
var loadData = function () { return __awaiter(void 0, void 0, void 0, function () { var _c = (0, react_1.useState)([(0, ContentTreeUtils_1.emptyNodeProps)()]),
var CfRootData, nodes; rootNodes = _c[0],
return __generator(this, function (_a) { setRootNodes = _c[1]
switch (_a.label) { ;(0, react_1.useEffect)(
case 0: return [4, cma.entry.getMany({ function () {
query: { content_type: rootType }, if (sdkInstance) {
})]; loadData().catch(function (err) {
case 1: throw new Error('loadRootData', err)
CfRootData = _a.sent(); })
nodes = (0, ContentTreeUtils_1.cfEntriesToNodes)(CfRootData.items, titleFields, stLocale, locales, nodeContentTypes, iconRegistry); }
setRootNodes(nodes); },
return [2]; [sdkInstance],
} )
}); var loadData = function () {
}); }; return __awaiter(void 0, void 0, void 0, function () {
return (react_1.default.createElement(react_1.default.Fragment, null, rootNodes.map(function (node, i) { return (react_1.default.createElement(ContentTreeRoot_1.ContentTreeRoot, { key: i.toString(), node: node, locales: locales, nodeContentTypes: nodeContentTypes, iconRegistry: iconRegistry, cma: cma, titleFields: titleFields, sdkInstance: sdkInstance, depth: indentation })); }))); var CfRootData, nodes
}; return __generator(this, function (_a) {
exports.ContentTree = ContentTree; switch (_a.label) {
case 0:
return [
4,
cma.entry.getMany({
query: { content_type: rootType },
}),
]
case 1:
CfRootData = _a.sent()
nodes = (0, ContentTreeUtils_1.cfEntriesToNodes)(
CfRootData.items,
titleFields,
stLocale,
locales,
nodeContentTypes,
iconRegistry,
)
setRootNodes(nodes)
return [2]
}
})
})
}
return react_1.default.createElement(
react_1.default.Fragment,
null,
rootNodes.map(function (node, i) {
return react_1.default.createElement(ContentTreeRoot_1.ContentTreeRoot, {
key: i.toString(),
node: node,
locales: locales,
nodeContentTypes: nodeContentTypes,
iconRegistry: iconRegistry,
cma: cma,
titleFields: titleFields,
sdkInstance: sdkInstance,
depth: indentation,
})
}),
)
}
exports.ContentTree = ContentTree

View File

@ -1,37 +1,139 @@
"use strict"; 'use strict'
var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) { var __makeTemplateObject =
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; } (this && this.__makeTemplateObject) ||
return cooked; function (cooked, raw) {
}; if (Object.defineProperty) {
var __importDefault = (this && this.__importDefault) || function (mod) { Object.defineProperty(cooked, 'raw', { value: raw })
return (mod && mod.__esModule) ? mod : { "default": mod }; } else {
}; cooked.raw = raw
Object.defineProperty(exports, "__esModule", { value: true }); }
exports.StyledSpinner = exports.StyledContentTreeNodePublishingStatus = exports.StyledContentTreeNodeName = exports.StyledContentTreeNodeWedge = exports.StyledContentTreeTableNodeCell = exports.StyledContentTreeTable = void 0; return cooked
var styled_components_1 = __importDefault(require("styled-components")); }
exports.StyledContentTreeTable = styled_components_1.default.table(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n\twidth: 100%;\n\tcolor: black;\n\tborder: 0;\n\tpadding: 0 60px;\n\tmargin: 0 auto;\n\ttd {\n\t\tpadding: 0.2em 1em 0.2em 0.2em;\n\t\tcolor: #999999;\n\t\tborder-bottom: 1px solid #efefef;\n\t}\n\tth {\n\t\ttext-align: left;\n\t\tfont-weight: normal;\n\t\tfont-size: 85%;\n\t\tcolor: #666666;\n\t\tbackground: #efefef;\n\t\tpadding: 0.2em;\n\t}\n\tth.first {\n\t\tfont-weight: bold !important;\n\t\tcolor: black !important;\n\t}\n"], ["\n\twidth: 100%;\n\tcolor: black;\n\tborder: 0;\n\tpadding: 0 60px;\n\tmargin: 0 auto;\n\ttd {\n\t\tpadding: 0.2em 1em 0.2em 0.2em;\n\t\tcolor: #999999;\n\t\tborder-bottom: 1px solid #efefef;\n\t}\n\tth {\n\t\ttext-align: left;\n\t\tfont-weight: normal;\n\t\tfont-size: 85%;\n\t\tcolor: #666666;\n\t\tbackground: #efefef;\n\t\tpadding: 0.2em;\n\t}\n\tth.first {\n\t\tfont-weight: bold !important;\n\t\tcolor: black !important;\n\t}\n"]))); var __importDefault =
exports.StyledContentTreeTableNodeCell = styled_components_1.default.td(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n\tpadding-left: ", "em !important;\n\tpadding-right: 2em !important;\n\tcolor: black !important;\n\tmin-width: 450px !important;\n"], ["\n\tpadding-left: ", "em !important;\n\tpadding-right: 2em !important;\n\tcolor: black !important;\n\tmin-width: 450px !important;\n"])), function (props) { return props.$depth; }); (this && this.__importDefault) ||
exports.StyledContentTreeNodeWedge = styled_components_1.default.div(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n\tdisplay: inline-block;\n\twidth: 1em;\n\ttext-align: left;\n\ta {\n\t\tcursor: pointer;\n\t\tfont-size: 130%;\n\t\tline-height: 100%;\n\t}\n"], ["\n\tdisplay: inline-block;\n\twidth: 1em;\n\ttext-align: left;\n\ta {\n\t\tcursor: pointer;\n\t\tfont-size: 130%;\n\t\tline-height: 100%;\n\t}\n"]))); function (mod) {
exports.StyledContentTreeNodeName = styled_components_1.default.div(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n\tdisplay: inline-block;\n\ta {\n\t\tcursor: pointer;\n\t}\n\ta:hover {\n\t\ttext-decoration: underline;\n\t}\n"], ["\n\tdisplay: inline-block;\n\ta {\n\t\tcursor: pointer;\n\t}\n\ta:hover {\n\t\ttext-decoration: underline;\n\t}\n"]))); return mod && mod.__esModule ? mod : { default: mod }
}
Object.defineProperty(exports, '__esModule', { value: true })
exports.StyledSpinner =
exports.StyledContentTreeNodePublishingStatus =
exports.StyledContentTreeNodeName =
exports.StyledContentTreeNodeWedge =
exports.StyledContentTreeTableNodeCell =
exports.StyledContentTreeTable =
void 0
var styled_components_1 = __importDefault(require('styled-components'))
exports.StyledContentTreeTable = styled_components_1.default.table(
templateObject_1 ||
(templateObject_1 = __makeTemplateObject(
[
'\n\twidth: 100%;\n\tcolor: black;\n\tborder: 0;\n\tpadding: 0 60px;\n\tmargin: 0 auto;\n\ttd {\n\t\tpadding: 0.2em 1em 0.2em 0.2em;\n\t\tcolor: #999999;\n\t\tborder-bottom: 1px solid #efefef;\n\t}\n\tth {\n\t\ttext-align: left;\n\t\tfont-weight: normal;\n\t\tfont-size: 85%;\n\t\tcolor: #666666;\n\t\tbackground: #efefef;\n\t\tpadding: 0.2em;\n\t}\n\tth.first {\n\t\tfont-weight: bold !important;\n\t\tcolor: black !important;\n\t}\n',
],
[
'\n\twidth: 100%;\n\tcolor: black;\n\tborder: 0;\n\tpadding: 0 60px;\n\tmargin: 0 auto;\n\ttd {\n\t\tpadding: 0.2em 1em 0.2em 0.2em;\n\t\tcolor: #999999;\n\t\tborder-bottom: 1px solid #efefef;\n\t}\n\tth {\n\t\ttext-align: left;\n\t\tfont-weight: normal;\n\t\tfont-size: 85%;\n\t\tcolor: #666666;\n\t\tbackground: #efefef;\n\t\tpadding: 0.2em;\n\t}\n\tth.first {\n\t\tfont-weight: bold !important;\n\t\tcolor: black !important;\n\t}\n',
],
)),
)
exports.StyledContentTreeTableNodeCell = styled_components_1.default.td(
templateObject_2 ||
(templateObject_2 = __makeTemplateObject(
[
'\n\tpadding-left: ',
'em !important;\n\tpadding-right: 2em !important;\n\tcolor: black !important;\n\tmin-width: 450px !important;\n',
],
[
'\n\tpadding-left: ',
'em !important;\n\tpadding-right: 2em !important;\n\tcolor: black !important;\n\tmin-width: 450px !important;\n',
],
)),
function (props) {
return props.$depth
},
)
exports.StyledContentTreeNodeWedge = styled_components_1.default.div(
templateObject_3 ||
(templateObject_3 = __makeTemplateObject(
[
'\n\tdisplay: inline-block;\n\twidth: 1em;\n\ttext-align: left;\n\ta {\n\t\tcursor: pointer;\n\t\tfont-size: 130%;\n\t\tline-height: 100%;\n\t}\n',
],
[
'\n\tdisplay: inline-block;\n\twidth: 1em;\n\ttext-align: left;\n\ta {\n\t\tcursor: pointer;\n\t\tfont-size: 130%;\n\t\tline-height: 100%;\n\t}\n',
],
)),
)
exports.StyledContentTreeNodeName = styled_components_1.default.div(
templateObject_4 ||
(templateObject_4 = __makeTemplateObject(
[
'\n\tdisplay: inline-block;\n\ta {\n\t\tcursor: pointer;\n\t}\n\ta:hover {\n\t\ttext-decoration: underline;\n\t}\n',
],
[
'\n\tdisplay: inline-block;\n\ta {\n\t\tcursor: pointer;\n\t}\n\ta:hover {\n\t\ttext-decoration: underline;\n\t}\n',
],
)),
)
var getPublishingStatusColors = function (status) { var getPublishingStatusColors = function (status) {
switch (status) { switch (status) {
case 'draft': case 'draft':
return { return {
publishingStatusBg: 'rgb(253, 229, 192)', publishingStatusBg: 'rgb(253, 229, 192)',
publishingStatusFg: 'rgb(177, 45, 0)', publishingStatusFg: 'rgb(177, 45, 0)',
}; }
case 'changed': case 'changed':
return { return {
publishingStatusBg: 'rgb(206, 236, 255)', publishingStatusBg: 'rgb(206, 236, 255)',
publishingStatusFg: 'rgb(0, 89, 200)', publishingStatusFg: 'rgb(0, 89, 200)',
}; }
case 'published': case 'published':
return { return {
publishingStatusBg: 'rgb(205, 243, 198)', publishingStatusBg: 'rgb(205, 243, 198)',
publishingStatusFg: 'rgb(0, 109, 35)', publishingStatusFg: 'rgb(0, 109, 35)',
}; }
} }
}; }
exports.StyledContentTreeNodePublishingStatus = styled_components_1.default.div(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n\tdisplay: inline-block;\n\tfont-family:\n\t\t-apple-system,\n\t\tBlinkMacSystemFont,\n\t\tSegoe UI,\n\t\tHelvetica,\n\t\tArial,\n\t\tsans-serif,\n\t\tApple Color Emoji,\n\t\tSegoe UI Emoji,\n\t\tSegoe UI Symbol;\n\tfont-weight: 600;\n\tfont-size: 80%;\n\ttext-transform: uppercase;\n\tletter-spacing: 0.06rem;\n\tborder-radius: 4px;\n\tpadding: 0 0.2rem;\n\tcolor: ", " !important;\n\tbackground-color: ", " !important;\n"], ["\n\tdisplay: inline-block;\n\tfont-family:\n\t\t-apple-system,\n\t\tBlinkMacSystemFont,\n\t\tSegoe UI,\n\t\tHelvetica,\n\t\tArial,\n\t\tsans-serif,\n\t\tApple Color Emoji,\n\t\tSegoe UI Emoji,\n\t\tSegoe UI Symbol;\n\tfont-weight: 600;\n\tfont-size: 80%;\n\ttext-transform: uppercase;\n\tletter-spacing: 0.06rem;\n\tborder-radius: 4px;\n\tpadding: 0 0.2rem;\n\tcolor: ", " !important;\n\tbackground-color: ", " !important;\n"])), function (props) { var _a; return (_a = getPublishingStatusColors(props.$status)) === null || _a === void 0 ? void 0 : _a.publishingStatusFg; }, function (props) { var _a; return (_a = getPublishingStatusColors(props.$status)) === null || _a === void 0 ? void 0 : _a.publishingStatusBg; }); exports.StyledContentTreeNodePublishingStatus = styled_components_1.default.div(
exports.StyledSpinner = styled_components_1.default.div(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n\tdisplay: inline-block;\n\twidth: 1em;\n\tanimation: rotate 1s infinite;\n\t@keyframes rotate {\n\t\tfrom {\n\t\t\ttransform: rotate(0deg);\n\t\t}\n\t\tto {\n\t\t\ttransform: rotate(360deg);\n\t\t}\n\t}\n"], ["\n\tdisplay: inline-block;\n\twidth: 1em;\n\tanimation: rotate 1s infinite;\n\t@keyframes rotate {\n\t\tfrom {\n\t\t\ttransform: rotate(0deg);\n\t\t}\n\t\tto {\n\t\t\ttransform: rotate(360deg);\n\t\t}\n\t}\n"]))); templateObject_5 ||
var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6; (templateObject_5 = __makeTemplateObject(
[
'\n\tdisplay: inline-block;\n\tfont-family:\n\t\t-apple-system,\n\t\tBlinkMacSystemFont,\n\t\tSegoe UI,\n\t\tHelvetica,\n\t\tArial,\n\t\tsans-serif,\n\t\tApple Color Emoji,\n\t\tSegoe UI Emoji,\n\t\tSegoe UI Symbol;\n\tfont-weight: 600;\n\tfont-size: 80%;\n\ttext-transform: uppercase;\n\tletter-spacing: 0.06rem;\n\tborder-radius: 4px;\n\tpadding: 0 0.2rem;\n\tcolor: ',
' !important;\n\tbackground-color: ',
' !important;\n',
],
[
'\n\tdisplay: inline-block;\n\tfont-family:\n\t\t-apple-system,\n\t\tBlinkMacSystemFont,\n\t\tSegoe UI,\n\t\tHelvetica,\n\t\tArial,\n\t\tsans-serif,\n\t\tApple Color Emoji,\n\t\tSegoe UI Emoji,\n\t\tSegoe UI Symbol;\n\tfont-weight: 600;\n\tfont-size: 80%;\n\ttext-transform: uppercase;\n\tletter-spacing: 0.06rem;\n\tborder-radius: 4px;\n\tpadding: 0 0.2rem;\n\tcolor: ',
' !important;\n\tbackground-color: ',
' !important;\n',
],
)),
function (props) {
var _a
return (_a = getPublishingStatusColors(props.$status)) === null ||
_a === void 0
? void 0
: _a.publishingStatusFg
},
function (props) {
var _a
return (_a = getPublishingStatusColors(props.$status)) === null ||
_a === void 0
? void 0
: _a.publishingStatusBg
},
)
exports.StyledSpinner = styled_components_1.default.div(
templateObject_6 ||
(templateObject_6 = __makeTemplateObject(
[
'\n\tdisplay: inline-block;\n\twidth: 1em;\n\tanimation: rotate 1s infinite;\n\t@keyframes rotate {\n\t\tfrom {\n\t\t\ttransform: rotate(0deg);\n\t\t}\n\t\tto {\n\t\t\ttransform: rotate(360deg);\n\t\t}\n\t}\n',
],
[
'\n\tdisplay: inline-block;\n\twidth: 1em;\n\tanimation: rotate 1s infinite;\n\t@keyframes rotate {\n\t\tfrom {\n\t\t\ttransform: rotate(0deg);\n\t\t}\n\t\tto {\n\t\t\ttransform: rotate(360deg);\n\t\t}\n\t}\n',
],
)),
)
var templateObject_1,
templateObject_2,
templateObject_3,
templateObject_4,
templateObject_5,
templateObject_6

View File

@ -1,123 +1,317 @@
"use strict"; 'use strict'
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { var __createBinding =
if (k2 === undefined) k2 = k; (this && this.__createBinding) ||
var desc = Object.getOwnPropertyDescriptor(m, k); (Object.create
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { ? function (o, m, k, k2) {
desc = { enumerable: true, get: function() { return m[k]; } }; if (k2 === undefined) k2 = k
} var desc = Object.getOwnPropertyDescriptor(m, k)
Object.defineProperty(o, k2, desc); if (
}) : (function(o, m, k, k2) { !desc ||
if (k2 === undefined) k2 = k; ('get' in desc ? !m.__esModule : desc.writable || desc.configurable)
o[k2] = m[k]; ) {
})); desc = {
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { enumerable: true,
Object.defineProperty(o, "default", { enumerable: true, value: v }); get: function () {
}) : function(o, v) { return m[k]
o["default"] = v; },
}); }
var __importStar = (this && this.__importStar) || (function () { }
var ownKeys = function(o) { Object.defineProperty(o, k2, desc)
ownKeys = Object.getOwnPropertyNames || function (o) { }
var ar = []; : function (o, m, k, k2) {
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; if (k2 === undefined) k2 = k
return ar; o[k2] = m[k]
}; })
return ownKeys(o); var __setModuleDefault =
}; (this && this.__setModuleDefault) ||
return function (mod) { (Object.create
if (mod && mod.__esModule) return mod; ? function (o, v) {
var result = {}; Object.defineProperty(o, 'default', { enumerable: true, value: v })
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); }
__setModuleDefault(result, mod); : function (o, v) {
return result; o['default'] = v
}; })
})(); var __importStar =
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { (this && this.__importStar) ||
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } (function () {
return new (P || (P = Promise))(function (resolve, reject) { var ownKeys = function (o) {
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } ownKeys =
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } Object.getOwnPropertyNames ||
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } function (o) {
step((generator = generator.apply(thisArg, _arguments || [])).next()); var ar = []
}); for (var k in o)
}; if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k
var __generator = (this && this.__generator) || function (thisArg, body) { return ar
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype); }
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g; return ownKeys(o)
function verb(n) { return function (v) { return step([n, v]); }; } }
function step(op) { return function (mod) {
if (f) throw new TypeError("Generator is already executing."); if (mod && mod.__esModule) return mod
while (g && (g = 0, op[0] && (_ = 0)), _) try { var result = {}
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t; if (mod != null)
if (y = 0, t) op = [op[0] & 2, t.value]; for (var k = ownKeys(mod), i = 0; i < k.length; i++)
switch (op[0]) { if (k[i] !== 'default') __createBinding(result, mod, k[i])
case 0: case 1: t = op; break; __setModuleDefault(result, mod)
case 4: _.label++; return { value: op[1], done: false }; return result
case 5: _.label++; y = op[1]; op = [0]; continue; }
case 7: op = _.ops.pop(); _.trys.pop(); continue; })()
default: var __awaiter =
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } (this && this.__awaiter) ||
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } function (thisArg, _arguments, P, generator) {
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } function adopt(value) {
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } return value instanceof P
if (t[2]) _.ops.pop(); ? value
_.trys.pop(); continue; : new P(function (resolve) {
} resolve(value)
op = body.call(thisArg, _); })
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } }
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; return new (P || (P = Promise))(function (resolve, reject) {
} function fulfilled(value) {
}; try {
Object.defineProperty(exports, "__esModule", { value: true }); step(generator.next(value))
var react_1 = __importStar(require("react")); } catch (e) {
var ContentTree_styled_1 = require("./ContentTree.styled"); reject(e)
var Icons_1 = require("./Icons"); }
}
function rejected(value) {
try {
step(generator['throw'](value))
} catch (e) {
reject(e)
}
}
function step(result) {
result.done
? resolve(result.value)
: adopt(result.value).then(fulfilled, rejected)
}
step((generator = generator.apply(thisArg, _arguments || [])).next())
})
}
var __generator =
(this && this.__generator) ||
function (thisArg, body) {
var _ = {
label: 0,
sent: function () {
if (t[0] & 1) throw t[1]
return t[1]
},
trys: [],
ops: [],
},
f,
y,
t,
g = Object.create(
(typeof Iterator === 'function' ? Iterator : Object).prototype,
)
return (
(g.next = verb(0)),
(g['throw'] = verb(1)),
(g['return'] = verb(2)),
typeof Symbol === 'function' &&
(g[Symbol.iterator] = function () {
return this
}),
g
)
function verb(n) {
return function (v) {
return step([n, v])
}
}
function step(op) {
if (f) throw new TypeError('Generator is already executing.')
while ((g && ((g = 0), op[0] && (_ = 0)), _))
try {
if (
((f = 1),
y &&
(t =
op[0] & 2
? y['return']
: op[0]
? y['throw'] || ((t = y['return']) && t.call(y), 0)
: y.next) &&
!(t = t.call(y, op[1])).done)
)
return t
if (((y = 0), t)) op = [op[0] & 2, t.value]
switch (op[0]) {
case 0:
case 1:
t = op
break
case 4:
_.label++
return { value: op[1], done: false }
case 5:
_.label++
y = op[1]
op = [0]
continue
case 7:
op = _.ops.pop()
_.trys.pop()
continue
default:
if (
!((t = _.trys), (t = t.length > 0 && t[t.length - 1])) &&
(op[0] === 6 || op[0] === 2)
) {
_ = 0
continue
}
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) {
_.label = op[1]
break
}
if (op[0] === 6 && _.label < t[1]) {
_.label = t[1]
t = op
break
}
if (t && _.label < t[2]) {
_.label = t[2]
_.ops.push(op)
break
}
if (t[2]) _.ops.pop()
_.trys.pop()
continue
}
op = body.call(thisArg, _)
} catch (e) {
op = [6, e]
y = 0
} finally {
f = t = 0
}
if (op[0] & 5) throw op[1]
return { value: op[0] ? op[1] : void 0, done: true }
}
}
Object.defineProperty(exports, '__esModule', { value: true })
var react_1 = __importStar(require('react'))
var ContentTree_styled_1 = require('./ContentTree.styled')
var Icons_1 = require('./Icons')
var ContentTreeNode = function (props) { var ContentTreeNode = function (props) {
var _a, _b; var _a, _b
var _c = (0, react_1.useState)(false), loading = _c[0], setLoading = _c[1]; var _c = (0, react_1.useState)(false),
var addChildren = function (node) { return __awaiter(void 0, void 0, void 0, function () { loading = _c[0],
return __generator(this, function (_a) { setLoading = _c[1]
switch (_a.label) { var addChildren = function (node) {
case 0: return __awaiter(void 0, void 0, void 0, function () {
setLoading(true); return __generator(this, function (_a) {
return [4, props.addChildNodes(node)]; switch (_a.label) {
case 1: case 0:
_a.sent(); setLoading(true)
setLoading(false); return [4, props.addChildNodes(node)]
return [2]; case 1:
} _a.sent()
}); setLoading(false)
}); }; return [2]
var handleEditEntry = function () { }
props.editEntry(props.node.id).catch(function (err) { })
throw new Error('handleEditEntry', err); })
}); }
}; var handleEditEntry = function () {
var handleAddChildren = function (node) { props.editEntry(props.node.id).catch(function (err) {
addChildren(node).catch(function (err) { throw new Error('handleEditEntry', err)
throw new Error('handleAddChildren', err); })
}); }
}; var handleAddChildren = function (node) {
return (react_1.default.createElement(react_1.default.Fragment, null, addChildren(node).catch(function (err) {
react_1.default.createElement("tr", null, throw new Error('handleAddChildren', err)
react_1.default.createElement(ContentTree_styled_1.StyledContentTreeTableNodeCell, { "$depth": props.depth }, })
react_1.default.createElement(ContentTree_styled_1.StyledContentTreeNodeWedge, null, loading ? (react_1.default.createElement(ContentTree_styled_1.StyledSpinner, null, "-")) : props.node.hasChildNodes ? (props.node.expand ? (react_1.default.createElement("a", { onClick: function () { }
handleAddChildren(props.node); return react_1.default.createElement(
} }, "+")) : (react_1.default.createElement("a", { onClick: function () { react_1.default.Fragment,
props.removeChildNodes(props.node); null,
} }, "-"))) : null), react_1.default.createElement(
react_1.default.createElement(Icons_1.Icon, { id: props.node.icon }), 'tr',
react_1.default.createElement(ContentTree_styled_1.StyledContentTreeNodeName, null, null,
react_1.default.createElement("a", { onClick: function () { react_1.default.createElement(
handleEditEntry(); ContentTree_styled_1.StyledContentTreeTableNodeCell,
}, title: props.node.id }, props.node.name))), { $depth: props.depth },
react_1.default.createElement("td", null, props.node.contentType), react_1.default.createElement(
react_1.default.createElement("td", null, ContentTree_styled_1.StyledContentTreeNodeWedge,
react_1.default.createElement(ContentTree_styled_1.StyledContentTreeNodePublishingStatus, { "$status": (_a = props.node.publishingStatus) !== null && _a !== void 0 ? _a : '' }, props.node.publishingStatus)), null,
react_1.default.createElement("td", null, props.node.updatedAt), loading
react_1.default.createElement("td", null, props.node.publishedAt)), (_b = props.node.childNodes) === null || _b === void 0 ? void 0 : ? react_1.default.createElement(
_b.map(function (node, i) { ContentTree_styled_1.StyledSpinner,
return (react_1.default.createElement(ContentTreeNode, { key: i.toString(), node: node, depth: props.depth && props.depth + 1, addChildNodes: props.addChildNodes, removeChildNodes: props.removeChildNodes, editEntry: props.editEntry })); null,
}))); '-',
}; )
exports.default = ContentTreeNode; : props.node.hasChildNodes
? props.node.expand
? react_1.default.createElement(
'a',
{
onClick: function () {
handleAddChildren(props.node)
},
},
'+',
)
: react_1.default.createElement(
'a',
{
onClick: function () {
props.removeChildNodes(props.node)
},
},
'-',
)
: null,
),
react_1.default.createElement(Icons_1.Icon, { id: props.node.icon }),
react_1.default.createElement(
ContentTree_styled_1.StyledContentTreeNodeName,
null,
react_1.default.createElement(
'a',
{
onClick: function () {
handleEditEntry()
},
title: props.node.id,
},
props.node.name,
),
),
),
react_1.default.createElement('td', null, props.node.contentType),
react_1.default.createElement(
'td',
null,
react_1.default.createElement(
ContentTree_styled_1.StyledContentTreeNodePublishingStatus,
{
$status:
(_a = props.node.publishingStatus) !== null && _a !== void 0
? _a
: '',
},
props.node.publishingStatus,
),
),
react_1.default.createElement('td', null, props.node.updatedAt),
react_1.default.createElement('td', null, props.node.publishedAt),
),
(_b = props.node.childNodes) === null || _b === void 0
? void 0
: _b.map(function (node, i) {
return react_1.default.createElement(ContentTreeNode, {
key: i.toString(),
node: node,
depth: props.depth && props.depth + 1,
addChildNodes: props.addChildNodes,
removeChildNodes: props.removeChildNodes,
editEntry: props.editEntry,
})
}),
)
}
exports.default = ContentTreeNode

View File

@ -1,271 +1,512 @@
"use strict"; 'use strict'
var __assign = (this && this.__assign) || function () { var __assign =
__assign = Object.assign || function(t) { (this && this.__assign) ||
for (var s, i = 1, n = arguments.length; i < n; i++) { function () {
s = arguments[i]; __assign =
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) Object.assign ||
t[p] = s[p]; function (t) {
} for (var s, i = 1, n = arguments.length; i < n; i++) {
return t; s = arguments[i]
}; for (var p in s)
return __assign.apply(this, arguments); if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p]
}; }
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { return t
if (k2 === undefined) k2 = k; }
var desc = Object.getOwnPropertyDescriptor(m, k); return __assign.apply(this, arguments)
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { }
desc = { enumerable: true, get: function() { return m[k]; } }; var __createBinding =
} (this && this.__createBinding) ||
Object.defineProperty(o, k2, desc); (Object.create
}) : (function(o, m, k, k2) { ? function (o, m, k, k2) {
if (k2 === undefined) k2 = k; if (k2 === undefined) k2 = k
o[k2] = m[k]; var desc = Object.getOwnPropertyDescriptor(m, k)
})); if (
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { !desc ||
Object.defineProperty(o, "default", { enumerable: true, value: v }); ('get' in desc ? !m.__esModule : desc.writable || desc.configurable)
}) : function(o, v) { ) {
o["default"] = v; desc = {
}); enumerable: true,
var __importStar = (this && this.__importStar) || (function () { get: function () {
var ownKeys = function(o) { return m[k]
ownKeys = Object.getOwnPropertyNames || function (o) { },
var ar = []; }
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; }
return ar; Object.defineProperty(o, k2, desc)
}; }
return ownKeys(o); : function (o, m, k, k2) {
}; if (k2 === undefined) k2 = k
return function (mod) { o[k2] = m[k]
if (mod && mod.__esModule) return mod; })
var result = {}; var __setModuleDefault =
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); (this && this.__setModuleDefault) ||
__setModuleDefault(result, mod); (Object.create
return result; ? function (o, v) {
}; Object.defineProperty(o, 'default', { enumerable: true, value: v })
})(); }
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { : function (o, v) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } o['default'] = v
return new (P || (P = Promise))(function (resolve, reject) { })
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } var __importStar =
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } (this && this.__importStar) ||
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } (function () {
step((generator = generator.apply(thisArg, _arguments || [])).next()); var ownKeys = function (o) {
}); ownKeys =
}; Object.getOwnPropertyNames ||
var __generator = (this && this.__generator) || function (thisArg, body) { function (o) {
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype); var ar = []
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g; for (var k in o)
function verb(n) { return function (v) { return step([n, v]); }; } if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k
function step(op) { return ar
if (f) throw new TypeError("Generator is already executing."); }
while (g && (g = 0, op[0] && (_ = 0)), _) try { return ownKeys(o)
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t; }
if (y = 0, t) op = [op[0] & 2, t.value]; return function (mod) {
switch (op[0]) { if (mod && mod.__esModule) return mod
case 0: case 1: t = op; break; var result = {}
case 4: _.label++; return { value: op[1], done: false }; if (mod != null)
case 5: _.label++; y = op[1]; op = [0]; continue; for (var k = ownKeys(mod), i = 0; i < k.length; i++)
case 7: op = _.ops.pop(); _.trys.pop(); continue; if (k[i] !== 'default') __createBinding(result, mod, k[i])
default: __setModuleDefault(result, mod)
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } return result
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } }
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } })()
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } var __awaiter =
if (t[2]) _.ops.pop(); (this && this.__awaiter) ||
_.trys.pop(); continue; function (thisArg, _arguments, P, generator) {
} function adopt(value) {
op = body.call(thisArg, _); return value instanceof P
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } ? value
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; : new P(function (resolve) {
} resolve(value)
}; })
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) { }
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) { return new (P || (P = Promise))(function (resolve, reject) {
if (ar || !(i in from)) { function fulfilled(value) {
if (!ar) ar = Array.prototype.slice.call(from, 0, i); try {
ar[i] = from[i]; step(generator.next(value))
} } catch (e) {
} reject(e)
return to.concat(ar || Array.prototype.slice.call(from)); }
}; }
var __importDefault = (this && this.__importDefault) || function (mod) { function rejected(value) {
return (mod && mod.__esModule) ? mod : { "default": mod }; try {
}; step(generator['throw'](value))
Object.defineProperty(exports, "__esModule", { value: true }); } catch (e) {
exports.ContentTreeRoot = void 0; reject(e)
var react_1 = __importStar(require("react")); }
var ContentTree_styled_1 = require("./ContentTree.styled"); }
var ContentTreeNode_1 = __importDefault(require("./ContentTreeNode")); function step(result) {
var ContentTreeUtils_1 = require("./ContentTreeUtils"); result.done
? resolve(result.value)
: adopt(result.value).then(fulfilled, rejected)
}
step((generator = generator.apply(thisArg, _arguments || [])).next())
})
}
var __generator =
(this && this.__generator) ||
function (thisArg, body) {
var _ = {
label: 0,
sent: function () {
if (t[0] & 1) throw t[1]
return t[1]
},
trys: [],
ops: [],
},
f,
y,
t,
g = Object.create(
(typeof Iterator === 'function' ? Iterator : Object).prototype,
)
return (
(g.next = verb(0)),
(g['throw'] = verb(1)),
(g['return'] = verb(2)),
typeof Symbol === 'function' &&
(g[Symbol.iterator] = function () {
return this
}),
g
)
function verb(n) {
return function (v) {
return step([n, v])
}
}
function step(op) {
if (f) throw new TypeError('Generator is already executing.')
while ((g && ((g = 0), op[0] && (_ = 0)), _))
try {
if (
((f = 1),
y &&
(t =
op[0] & 2
? y['return']
: op[0]
? y['throw'] || ((t = y['return']) && t.call(y), 0)
: y.next) &&
!(t = t.call(y, op[1])).done)
)
return t
if (((y = 0), t)) op = [op[0] & 2, t.value]
switch (op[0]) {
case 0:
case 1:
t = op
break
case 4:
_.label++
return { value: op[1], done: false }
case 5:
_.label++
y = op[1]
op = [0]
continue
case 7:
op = _.ops.pop()
_.trys.pop()
continue
default:
if (
!((t = _.trys), (t = t.length > 0 && t[t.length - 1])) &&
(op[0] === 6 || op[0] === 2)
) {
_ = 0
continue
}
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) {
_.label = op[1]
break
}
if (op[0] === 6 && _.label < t[1]) {
_.label = t[1]
t = op
break
}
if (t && _.label < t[2]) {
_.label = t[2]
_.ops.push(op)
break
}
if (t[2]) _.ops.pop()
_.trys.pop()
continue
}
op = body.call(thisArg, _)
} catch (e) {
op = [6, e]
y = 0
} finally {
f = t = 0
}
if (op[0] & 5) throw op[1]
return { value: op[0] ? op[1] : void 0, done: true }
}
}
var __spreadArray =
(this && this.__spreadArray) ||
function (to, from, pack) {
if (pack || arguments.length === 2)
for (var i = 0, l = from.length, ar; i < l; i++) {
if (ar || !(i in from)) {
if (!ar) ar = Array.prototype.slice.call(from, 0, i)
ar[i] = from[i]
}
}
return to.concat(ar || Array.prototype.slice.call(from))
}
var __importDefault =
(this && this.__importDefault) ||
function (mod) {
return mod && mod.__esModule ? mod : { default: mod }
}
Object.defineProperty(exports, '__esModule', { value: true })
exports.ContentTreeRoot = void 0
var react_1 = __importStar(require('react'))
var ContentTree_styled_1 = require('./ContentTree.styled')
var ContentTreeNode_1 = __importDefault(require('./ContentTreeNode'))
var ContentTreeUtils_1 = require('./ContentTreeUtils')
var ContentTreeRoot = function (_a) { var ContentTreeRoot = function (_a) {
var node = _a.node, sdkInstance = _a.sdkInstance, cma = _a.cma, nodeContentTypes = _a.nodeContentTypes, titleFields = _a.titleFields, locales = _a.locales, depth = _a.depth, iconRegistry = _a.iconRegistry; var node = _a.node,
var stLocale = (0, react_1.useState)(locales[0])[0]; sdkInstance = _a.sdkInstance,
var _b = (0, react_1.useState)((0, ContentTreeUtils_1.emptyNodeProps)()), stRoot = _b[0], setStRoot = _b[1]; cma = _a.cma,
(0, react_1.useEffect)(function () { nodeContentTypes = _a.nodeContentTypes,
if (node.id) { titleFields = _a.titleFields,
loadRootData(node).catch(function (err) { locales = _a.locales,
throw new Error('loadRootData', err); depth = _a.depth,
}); iconRegistry = _a.iconRegistry
} var stLocale = (0, react_1.useState)(locales[0])[0]
}, [node]); var _b = (0, react_1.useState)((0, ContentTreeUtils_1.emptyNodeProps)()),
var loadRootData = function (rootNode) { return __awaiter(void 0, void 0, void 0, function () { stRoot = _b[0],
var childEntries, childNodes, nodes, newIdPositionMap_1, tree_1; setStRoot = _b[1]
return __generator(this, function (_a) { ;(0, react_1.useEffect)(
switch (_a.label) { function () {
case 0: return [4, getContentfulChildEntries(rootNode.id)]; if (node.id) {
case 1: loadRootData(node).catch(function (err) {
childEntries = _a.sent(); throw new Error('loadRootData', err)
childNodes = (0, ContentTreeUtils_1.cfEntriesToNodes)(childEntries, titleFields, stLocale, locales, nodeContentTypes, iconRegistry, rootNode.id); })
nodes = __spreadArray([rootNode], childNodes, true); }
if (nodes.length > 0) { },
newIdPositionMap_1 = nodes.reduce(function (acc, el, i) { [node],
acc[el.id] = i; )
return acc; var loadRootData = function (rootNode) {
}, {}); return __awaiter(void 0, void 0, void 0, function () {
tree_1 = (0, ContentTreeUtils_1.emptyNodeProps)(); var childEntries, childNodes, nodes, newIdPositionMap_1, tree_1
nodes.forEach(function (node) { return __generator(this, function (_a) {
var _a; switch (_a.label) {
node.childNodes = []; case 0:
if (!node.parentId) { return [4, getContentfulChildEntries(rootNode.id)]
tree_1 = node; case 1:
return; childEntries = _a.sent()
} childNodes = (0, ContentTreeUtils_1.cfEntriesToNodes)(
var parentEl = nodes[newIdPositionMap_1[node.parentId]]; childEntries,
if (parentEl) { titleFields,
parentEl.childNodes = __spreadArray(__spreadArray([], ((_a = parentEl.childNodes) !== null && _a !== void 0 ? _a : []), true), [node], false); stLocale,
parentEl.expand = false; locales,
} nodeContentTypes,
}); iconRegistry,
console.log('🌴 tree', tree_1); rootNode.id,
setStRoot(tree_1); )
} nodes = __spreadArray([rootNode], childNodes, true)
return [2]; if (nodes.length > 0) {
} newIdPositionMap_1 = nodes.reduce(function (acc, el, i) {
}); acc[el.id] = i
}); }; return acc
var addChildNodes = function (node) { return __awaiter(void 0, void 0, void 0, function () { }, {})
var childNodes, cfChildren; tree_1 = (0, ContentTreeUtils_1.emptyNodeProps)()
return __generator(this, function (_a) { nodes.forEach(function (node) {
switch (_a.label) { var _a
case 0: node.childNodes = []
childNodes = []; if (!node.parentId) {
return [4, getContentfulChildEntries(node.id)]; tree_1 = node
case 1: return
cfChildren = _a.sent(); }
childNodes = (0, ContentTreeUtils_1.cfEntriesToNodes)(cfChildren, titleFields, stLocale, locales, nodeContentTypes, iconRegistry, node.id); var parentEl = nodes[newIdPositionMap_1[node.parentId]]
setStRoot(function (prevState) { if (parentEl) {
var newState = __assign({}, prevState); parentEl.childNodes = __spreadArray(
recursiveProcessNodes(node.id, function (targetNode) { __spreadArray(
targetNode.childNodes = childNodes; [],
targetNode.expand = false; (_a = parentEl.childNodes) !== null && _a !== void 0
}, newState); ? _a
return newState; : [],
}); true,
return [2]; ),
} [node],
}); false,
}); }; )
var recursiveProcessNodes = function (targetNodeId, processNode, node) { parentEl.expand = false
if (node.id === targetNodeId) { }
processNode(node); })
} console.log('🌴 tree', tree_1)
if (node.childNodes != null) { setStRoot(tree_1)
for (var _i = 0, _a = node.childNodes; _i < _a.length; _i++) { }
var targetNode = _a[_i]; return [2]
recursiveProcessNodes(targetNodeId, processNode, targetNode); }
} })
} })
}; }
var editEntry = function (entryId) { return __awaiter(void 0, void 0, void 0, function () { var addChildNodes = function (node) {
return __generator(this, function (_a) { return __awaiter(void 0, void 0, void 0, function () {
switch (_a.label) { var childNodes, cfChildren
case 0: return [4, sdkInstance.navigator.openEntry(entryId, { slideIn: true })]; return __generator(this, function (_a) {
case 1: switch (_a.label) {
_a.sent(); case 0:
return [2]; childNodes = []
} return [4, getContentfulChildEntries(node.id)]
}); case 1:
}); }; cfChildren = _a.sent()
var getContentfulChildEntries = function (parentId) { return __awaiter(void 0, void 0, void 0, function () { childNodes = (0, ContentTreeUtils_1.cfEntriesToNodes)(
var parentItem, allChildIds, _i, _a, key, childNodeRefs, _b, childNodeRefs_1, childNodeRef, allItems, done, skip, col, cfChildren, idPositionMap, _c, allChildIds_1, childId; cfChildren,
return __generator(this, function (_d) { titleFields,
switch (_d.label) { stLocale,
case 0: return [4, cma.entry.get({ entryId: parentId })]; locales,
case 1: nodeContentTypes,
parentItem = _d.sent(); iconRegistry,
allChildIds = []; node.id,
for (_i = 0, _a = Object.keys(parentItem.fields); _i < _a.length; _i++) { )
key = _a[_i]; setStRoot(function (prevState) {
if (nodeContentTypes.includes(key)) { var newState = __assign({}, prevState)
childNodeRefs = parentItem.fields[key][stLocale]; recursiveProcessNodes(
if (Array.isArray(childNodeRefs)) { node.id,
for (_b = 0, childNodeRefs_1 = childNodeRefs; _b < childNodeRefs_1.length; _b++) { function (targetNode) {
childNodeRef = childNodeRefs_1[_b]; targetNode.childNodes = childNodes
allChildIds.push(childNodeRef.sys.id); targetNode.expand = false
} },
} newState,
else { )
allChildIds.push(childNodeRefs.sys.id); return newState
} })
} return [2]
} }
allItems = []; })
done = false; })
skip = 0; }
_d.label = 2; var recursiveProcessNodes = function (targetNodeId, processNode, node) {
case 2: if (node.id === targetNodeId) {
if (!!done) return [3, 4]; processNode(node)
return [4, cma.entry.getMany({ }
query: { if (node.childNodes != null) {
'sys.id[in]': allChildIds.join(','), for (var _i = 0, _a = node.childNodes; _i < _a.length; _i++) {
skip: skip, var targetNode = _a[_i]
}, recursiveProcessNodes(targetNodeId, processNode, targetNode)
})]; }
case 3: }
col = _d.sent(); }
allItems.push.apply(allItems, col.items); var editEntry = function (entryId) {
if (allItems.length < col.total) { return __awaiter(void 0, void 0, void 0, function () {
skip += 100; return __generator(this, function (_a) {
} switch (_a.label) {
else { case 0:
done = true; return [
} 4,
return [3, 2]; sdkInstance.navigator.openEntry(entryId, { slideIn: true }),
case 4: ]
cfChildren = []; case 1:
idPositionMap = allItems.reduce(function (acc, el, i) { _a.sent()
acc[el.sys.id] = i; return [2]
return acc; }
}, {}); })
for (_c = 0, allChildIds_1 = allChildIds; _c < allChildIds_1.length; _c++) { })
childId = allChildIds_1[_c]; }
if (allItems[idPositionMap[childId]]) { var getContentfulChildEntries = function (parentId) {
cfChildren.push(allItems[idPositionMap[childId]]); return __awaiter(void 0, void 0, void 0, function () {
} var parentItem,
} allChildIds,
return [2, cfChildren]; _i,
} _a,
}); key,
}); }; childNodeRefs,
var removeChildNodes = function (node) { _b,
setStRoot(function (prevState) { childNodeRefs_1,
var newState = __assign({}, prevState); childNodeRef,
recursiveProcessNodes(node.id, function (targetNode) { allItems,
targetNode.childNodes = []; done,
targetNode.expand = true; skip,
}, newState); col,
return newState; cfChildren,
}); idPositionMap,
}; _c,
return (react_1.default.createElement(react_1.default.Fragment, null, allChildIds_1,
react_1.default.createElement(ContentTree_styled_1.StyledContentTreeTable, null, childId
react_1.default.createElement("tbody", null, return __generator(this, function (_d) {
react_1.default.createElement("tr", null, switch (_d.label) {
react_1.default.createElement("th", null, "Nodes"), case 0:
react_1.default.createElement("th", null, "Content Type"), return [4, cma.entry.get({ entryId: parentId })]
react_1.default.createElement("th", null, "Status"), case 1:
react_1.default.createElement("th", null, "Last Modified"), parentItem = _d.sent()
react_1.default.createElement("th", null, "Last Published")), allChildIds = []
react_1.default.createElement(ContentTreeNode_1.default, { node: stRoot, depth: depth, addChildNodes: addChildNodes, removeChildNodes: removeChildNodes, editEntry: editEntry }))))); for (
}; _i = 0, _a = Object.keys(parentItem.fields);
exports.ContentTreeRoot = ContentTreeRoot; _i < _a.length;
_i++
) {
key = _a[_i]
if (nodeContentTypes.includes(key)) {
childNodeRefs = parentItem.fields[key][stLocale]
if (Array.isArray(childNodeRefs)) {
for (
_b = 0, childNodeRefs_1 = childNodeRefs;
_b < childNodeRefs_1.length;
_b++
) {
childNodeRef = childNodeRefs_1[_b]
allChildIds.push(childNodeRef.sys.id)
}
} else {
allChildIds.push(childNodeRefs.sys.id)
}
}
}
allItems = []
done = false
skip = 0
_d.label = 2
case 2:
if (!!done) return [3, 4]
return [
4,
cma.entry.getMany({
query: {
'sys.id[in]': allChildIds.join(','),
skip: skip,
},
}),
]
case 3:
col = _d.sent()
allItems.push.apply(allItems, col.items)
if (allItems.length < col.total) {
skip += 100
} else {
done = true
}
return [3, 2]
case 4:
cfChildren = []
idPositionMap = allItems.reduce(function (acc, el, i) {
acc[el.sys.id] = i
return acc
}, {})
for (
_c = 0, allChildIds_1 = allChildIds;
_c < allChildIds_1.length;
_c++
) {
childId = allChildIds_1[_c]
if (allItems[idPositionMap[childId]]) {
cfChildren.push(allItems[idPositionMap[childId]])
}
}
return [2, cfChildren]
}
})
})
}
var removeChildNodes = function (node) {
setStRoot(function (prevState) {
var newState = __assign({}, prevState)
recursiveProcessNodes(
node.id,
function (targetNode) {
targetNode.childNodes = []
targetNode.expand = true
},
newState,
)
return newState
})
}
return react_1.default.createElement(
react_1.default.Fragment,
null,
react_1.default.createElement(
ContentTree_styled_1.StyledContentTreeTable,
null,
react_1.default.createElement(
'tbody',
null,
react_1.default.createElement(
'tr',
null,
react_1.default.createElement('th', null, 'Nodes'),
react_1.default.createElement('th', null, 'Content Type'),
react_1.default.createElement('th', null, 'Status'),
react_1.default.createElement('th', null, 'Last Modified'),
react_1.default.createElement('th', null, 'Last Published'),
),
react_1.default.createElement(ContentTreeNode_1.default, {
node: stRoot,
depth: depth,
addChildNodes: addChildNodes,
removeChildNodes: removeChildNodes,
editEntry: editEntry,
}),
),
),
)
}
exports.ContentTreeRoot = ContentTreeRoot

View File

@ -1,67 +1,92 @@
"use strict"; 'use strict'
Object.defineProperty(exports, "__esModule", { value: true }); Object.defineProperty(exports, '__esModule', { value: true })
exports.cfEntriesToNodes = exports.emptyNodeProps = void 0; exports.cfEntriesToNodes = exports.emptyNodeProps = void 0
var emptyNodeProps = function () { var emptyNodeProps = function () {
return { id: '', name: '', expand: false, parentId: '' }; return { id: '', name: '', expand: false, parentId: '' }
}; }
exports.emptyNodeProps = emptyNodeProps; exports.emptyNodeProps = emptyNodeProps
var cfEntryHasChildren = function (entry, nodeContentTypes, locales) { var cfEntryHasChildren = function (entry, nodeContentTypes, locales) {
var _a; var _a
for (var _i = 0, nodeContentTypes_1 = nodeContentTypes; _i < nodeContentTypes_1.length; _i++) { for (
var nodeContentType = nodeContentTypes_1[_i]; var _i = 0, nodeContentTypes_1 = nodeContentTypes;
for (var _b = 0, locales_1 = locales; _b < locales_1.length; _b++) { _i < nodeContentTypes_1.length;
var locale = locales_1[_b]; _i++
if ((_a = entry.fields[nodeContentType]) === null || _a === void 0 ? void 0 : _a[locale]) { ) {
return true; var nodeContentType = nodeContentTypes_1[_i]
} for (var _b = 0, locales_1 = locales; _b < locales_1.length; _b++) {
} var locale = locales_1[_b]
} if (
return false; (_a = entry.fields[nodeContentType]) === null || _a === void 0
}; ? void 0
: _a[locale]
) {
return true
}
}
}
return false
}
var cfEntryPublishingStatus = function (entry) { var cfEntryPublishingStatus = function (entry) {
if (!entry.sys.publishedVersion) { if (!entry.sys.publishedVersion) {
return 'draft'; return 'draft'
} }
if (entry.sys.version - entry.sys.publishedVersion === 1) { if (entry.sys.version - entry.sys.publishedVersion === 1) {
return 'published'; return 'published'
} }
return 'changed'; return 'changed'
}; }
var cfEntriesToNodes = function (entries, titleFields, stLocale, locales, nodeContentTypes, iconRegistry, parentId) { var cfEntriesToNodes = function (
if (entries.length === 0) { entries,
return []; titleFields,
} stLocale,
var nodeArray = []; locales,
entries.forEach(function (entry) { nodeContentTypes,
var _a; iconRegistry,
if (!entry) { parentId,
return; ) {
} if (entries.length === 0) {
var name = ''; return []
for (var _i = 0, titleFields_1 = titleFields; _i < titleFields_1.length; _i++) { }
var titleField = titleFields_1[_i]; var nodeArray = []
if ((_a = entry.fields[titleField]) === null || _a === void 0 ? void 0 : _a[stLocale]) { entries.forEach(function (entry) {
name = entry.fields[titleField][stLocale]; var _a
break; if (!entry) {
} return
} }
if (name === '') { var name = ''
name = entry.sys.id; for (
} var _i = 0, titleFields_1 = titleFields;
var node = { _i < titleFields_1.length;
id: entry.sys.id, _i++
name: name, ) {
contentType: entry.sys.contentType.sys.id, var titleField = titleFields_1[_i]
icon: iconRegistry != null ? iconRegistry[entry.sys.contentType.sys.id] : '', if (
expand: !!parentId, (_a = entry.fields[titleField]) === null || _a === void 0
parentId: parentId, ? void 0
hasChildNodes: cfEntryHasChildren(entry, nodeContentTypes, locales), : _a[stLocale]
publishingStatus: cfEntryPublishingStatus(entry), ) {
updatedAt: entry.sys.updatedAt, name = entry.fields[titleField][stLocale]
publishedAt: entry.sys.publishedAt, break
}; }
nodeArray.push(node); }
}); if (name === '') {
return nodeArray; name = entry.sys.id
}; }
exports.cfEntriesToNodes = cfEntriesToNodes; var node = {
id: entry.sys.id,
name: name,
contentType: entry.sys.contentType.sys.id,
icon:
iconRegistry != null ? iconRegistry[entry.sys.contentType.sys.id] : '',
expand: !!parentId,
parentId: parentId,
hasChildNodes: cfEntryHasChildren(entry, nodeContentTypes, locales),
publishingStatus: cfEntryPublishingStatus(entry),
updatedAt: entry.sys.updatedAt,
publishedAt: entry.sys.publishedAt,
}
nodeArray.push(node)
})
return nodeArray
}
exports.cfEntriesToNodes = cfEntriesToNodes

356
dist/Icons.js vendored
View File

@ -1,80 +1,278 @@
"use strict"; 'use strict'
var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) { var __makeTemplateObject =
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; } (this && this.__makeTemplateObject) ||
return cooked; function (cooked, raw) {
}; if (Object.defineProperty) {
var __importDefault = (this && this.__importDefault) || function (mod) { Object.defineProperty(cooked, 'raw', { value: raw })
return (mod && mod.__esModule) ? mod : { "default": mod }; } else {
}; cooked.raw = raw
Object.defineProperty(exports, "__esModule", { value: true }); }
exports.StyledIcon = exports.Icon = void 0; return cooked
var react_1 = __importDefault(require("react")); }
var styled_components_1 = __importDefault(require("styled-components")); var __importDefault =
(this && this.__importDefault) ||
function (mod) {
return mod && mod.__esModule ? mod : { default: mod }
}
Object.defineProperty(exports, '__esModule', { value: true })
exports.StyledIcon = exports.Icon = void 0
var react_1 = __importDefault(require('react'))
var styled_components_1 = __importDefault(require('styled-components'))
var Icon = function (props) { var Icon = function (props) {
switch (props.id) { switch (props.id) {
case 'WORLD': case 'WORLD':
return (react_1.default.createElement(exports.StyledIcon, null, return react_1.default.createElement(
react_1.default.createElement("svg", { id: "Layer_1", "data-name": "Layer 1", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 128 128" }, exports.StyledIcon,
react_1.default.createElement("title", null, "WORLD"), null,
react_1.default.createElement("path", { d: "M113.66,23.69q-.345-.435-.72-.87A63.786,63.786,0,0,0,64.92.02C64.61.01,64.31,0,64,0s-.61.01-.92.02A63.789,63.789,0,0,0,14.93,22.98a6.164,6.164,0,0,0-.47.57.138.138,0,0,1-.03.04,63.8,63.8,0,0,0,0,80.82.138.138,0,0,1,.03.04,6.171,6.171,0,0,0,.47.57l.01.01a63.776,63.776,0,0,0,48.14,22.95c.614.02,1.226.02,1.84,0a63.786,63.786,0,0,0,48.02-22.8q.375-.435.72-.87a63.826,63.826,0,0,0,0-80.62ZM99.49,62.25a106.208,106.208,0,0,0-4.07-28.03,69.57,69.57,0,0,0,16.19-7.51,60.158,60.158,0,0,1,12.86,35.54ZM65.75,3.59c10.69,1.1,19.99,12.14,25.36,28.3a100.612,100.612,0,0,1-25.36,3.58Zm-3.5,31.88a100.612,100.612,0,0,1-25.36-3.58c5.37-16.16,14.67-27.2,25.36-28.3Zm0,3.5V62.25H32.01a104.4,104.4,0,0,1,3.85-27.02A104.159,104.159,0,0,0,62.25,38.97Zm0,26.78V89.03a104.161,104.161,0,0,0-26.39,3.74,104.4,104.4,0,0,1-3.85-27.02Zm0,26.78v31.88c-10.69-1.1-19.99-12.14-25.36-28.3A100.612,100.612,0,0,1,62.25,92.53Zm3.5,0a100.612,100.612,0,0,1,25.36,3.58c-5.37,16.16-14.67,27.2-25.36,28.3Zm0-3.5V65.75H95.99a104.477,104.477,0,0,1-3.85,27.03A103.333,103.333,0,0,0,65.75,89.03Zm0-26.78V38.97a103.33,103.33,0,0,0,26.39-3.75,104.478,104.478,0,0,1,3.85,27.03Zm43.6-38.26A66.171,66.171,0,0,1,94.37,30.9C90.53,19.48,84.76,10.4,77.89,5.11A60.6,60.6,0,0,1,109.35,23.99ZM50.11,5.11C43.24,10.4,37.47,19.48,33.63,30.9A67.031,67.031,0,0,1,18.65,24,60.513,60.513,0,0,1,50.11,5.11ZM16.39,26.7a69.605,69.605,0,0,0,16.19,7.53,106.07,106.07,0,0,0-4.07,28.02H3.53A60.188,60.188,0,0,1,16.39,26.7ZM28.51,65.75a106.069,106.069,0,0,0,4.07,28.02v.01a69.183,69.183,0,0,0-16.19,7.52A60.188,60.188,0,0,1,3.53,65.75ZM18.65,104a67.031,67.031,0,0,1,14.98-6.9c3.84,11.42,9.61,20.5,16.48,25.79A60.514,60.514,0,0,1,18.65,104Zm59.24,18.89c6.87-5.29,12.64-14.37,16.48-25.79a66.169,66.169,0,0,1,14.98,6.91A60.6,60.6,0,0,1,77.89,122.89Zm33.72-21.6a69.573,69.573,0,0,0-16.19-7.51,106.208,106.208,0,0,0,4.07-28.03h24.98A60.158,60.158,0,0,1,111.61,101.29Z" })))); react_1.default.createElement(
case 'PAGE': 'svg',
return (react_1.default.createElement(exports.StyledIcon, null, {
react_1.default.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 48 48" }, id: 'Layer_1',
react_1.default.createElement("defs", null), 'data-name': 'Layer 1',
react_1.default.createElement("title", null, "Asset 47ldpi"), xmlns: 'http://www.w3.org/2000/svg',
react_1.default.createElement("g", { id: "Layer_2", "data-name": "Layer 2" }, viewBox: '0 0 128 128',
react_1.default.createElement("g", { id: "layer_1-2", "data-name": "layer 1" }, },
react_1.default.createElement("path", { d: "M47,48H1a1,1,0,0,1-1-1V1A1,1,0,0,1,1,0H47a1,1,0,0,1,1,1V47A1,1,0,0,1,47,48ZM2,46H46V2H2Z" }), react_1.default.createElement('title', null, 'WORLD'),
react_1.default.createElement("rect", { x: "34", y: "25", width: "8", height: "2" }), react_1.default.createElement('path', {
react_1.default.createElement("rect", { x: "22", y: "25", width: "10", height: "2" }), d: 'M113.66,23.69q-.345-.435-.72-.87A63.786,63.786,0,0,0,64.92.02C64.61.01,64.31,0,64,0s-.61.01-.92.02A63.789,63.789,0,0,0,14.93,22.98a6.164,6.164,0,0,0-.47.57.138.138,0,0,1-.03.04,63.8,63.8,0,0,0,0,80.82.138.138,0,0,1,.03.04,6.171,6.171,0,0,0,.47.57l.01.01a63.776,63.776,0,0,0,48.14,22.95c.614.02,1.226.02,1.84,0a63.786,63.786,0,0,0,48.02-22.8q.375-.435.72-.87a63.826,63.826,0,0,0,0-80.62ZM99.49,62.25a106.208,106.208,0,0,0-4.07-28.03,69.57,69.57,0,0,0,16.19-7.51,60.158,60.158,0,0,1,12.86,35.54ZM65.75,3.59c10.69,1.1,19.99,12.14,25.36,28.3a100.612,100.612,0,0,1-25.36,3.58Zm-3.5,31.88a100.612,100.612,0,0,1-25.36-3.58c5.37-16.16,14.67-27.2,25.36-28.3Zm0,3.5V62.25H32.01a104.4,104.4,0,0,1,3.85-27.02A104.159,104.159,0,0,0,62.25,38.97Zm0,26.78V89.03a104.161,104.161,0,0,0-26.39,3.74,104.4,104.4,0,0,1-3.85-27.02Zm0,26.78v31.88c-10.69-1.1-19.99-12.14-25.36-28.3A100.612,100.612,0,0,1,62.25,92.53Zm3.5,0a100.612,100.612,0,0,1,25.36,3.58c-5.37,16.16-14.67,27.2-25.36,28.3Zm0-3.5V65.75H95.99a104.477,104.477,0,0,1-3.85,27.03A103.333,103.333,0,0,0,65.75,89.03Zm0-26.78V38.97a103.33,103.33,0,0,0,26.39-3.75,104.478,104.478,0,0,1,3.85,27.03Zm43.6-38.26A66.171,66.171,0,0,1,94.37,30.9C90.53,19.48,84.76,10.4,77.89,5.11A60.6,60.6,0,0,1,109.35,23.99ZM50.11,5.11C43.24,10.4,37.47,19.48,33.63,30.9A67.031,67.031,0,0,1,18.65,24,60.513,60.513,0,0,1,50.11,5.11ZM16.39,26.7a69.605,69.605,0,0,0,16.19,7.53,106.07,106.07,0,0,0-4.07,28.02H3.53A60.188,60.188,0,0,1,16.39,26.7ZM28.51,65.75a106.069,106.069,0,0,0,4.07,28.02v.01a69.183,69.183,0,0,0-16.19,7.52A60.188,60.188,0,0,1,3.53,65.75ZM18.65,104a67.031,67.031,0,0,1,14.98-6.9c3.84,11.42,9.61,20.5,16.48,25.79A60.514,60.514,0,0,1,18.65,104Zm59.24,18.89c6.87-5.29,12.64-14.37,16.48-25.79a66.169,66.169,0,0,1,14.98,6.91A60.6,60.6,0,0,1,77.89,122.89Zm33.72-21.6a69.573,69.573,0,0,0-16.19-7.51,106.208,106.208,0,0,0,4.07-28.03h24.98A60.158,60.158,0,0,1,111.61,101.29Z',
react_1.default.createElement("rect", { x: "31", y: "30", width: "7", height: "2" }), }),
react_1.default.createElement("rect", { x: "22", y: "30", width: "7", height: "2" }), ),
react_1.default.createElement("rect", { x: "36", y: "35", width: "6", height: "2" }), )
react_1.default.createElement("rect", { x: "22", y: "35", width: "12", height: "2" }), case 'PAGE':
react_1.default.createElement("rect", { x: "22", y: "40", width: "9", height: "2" }), return react_1.default.createElement(
react_1.default.createElement("path", { d: "M18,42H7a1,1,0,0,1-1-1V26a1,1,0,0,1,1-1H18a1,1,0,0,1,1,1V41A1,1,0,0,1,18,42ZM8,40h9V27H8Z" }), exports.StyledIcon,
react_1.default.createElement("path", { d: "M41,22H7a1,1,0,0,1-1-1V15a1,1,0,0,1,1-1H41a1,1,0,0,1,1,1v6A1,1,0,0,1,41,22ZM8,20H40V16H8Z" }), null,
react_1.default.createElement("rect", { x: "4", y: "4", width: "2", height: "2" }), react_1.default.createElement(
react_1.default.createElement("rect", { x: "8", y: "4", width: "2", height: "2" }), 'svg',
react_1.default.createElement("rect", { x: "12", y: "4", width: "2", height: "2" }), { xmlns: 'http://www.w3.org/2000/svg', viewBox: '0 0 48 48' },
react_1.default.createElement("rect", { x: "1", y: "8", width: "46", height: "2" })))))); react_1.default.createElement('defs', null),
case 'APP': react_1.default.createElement('title', null, 'Asset 47ldpi'),
return (react_1.default.createElement(exports.StyledIcon, null, react_1.default.createElement(
react_1.default.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 32 32" }, 'g',
react_1.default.createElement("title", null, "8-Book"), { id: 'Layer_2', 'data-name': 'Layer 2' },
react_1.default.createElement("g", { id: "_8-Book", "data-name": "8-Book" }, react_1.default.createElement(
react_1.default.createElement("path", { d: "M27,23a5,5,0,0,0-3-1H6a5,5,0,0,0-3,1V5A3,3,0,0,1,6,2H18V0H6A5,5,0,0,0,1,5V27a5,5,0,0,0,5,5H28a1,1,0,0,0,1-1V19H27Zm0,7H6a3,3,0,0,1,0-6H24a3,3,0,0,1,2.82,2H10v2H27Z" }), 'g',
react_1.default.createElement("rect", { x: "6", y: "26", width: "2", height: "2" }), { id: 'layer_1-2', 'data-name': 'layer 1' },
react_1.default.createElement("path", { d: "M15,7V5H7A1,1,0,0,0,6,6v4a1,1,0,0,0,1,1h8V9H8V7Z" }), react_1.default.createElement('path', {
react_1.default.createElement("rect", { x: "6", y: "14", width: "2", height: "2" }), d: 'M47,48H1a1,1,0,0,1-1-1V1A1,1,0,0,1,1,0H47a1,1,0,0,1,1,1V47A1,1,0,0,1,47,48ZM2,46H46V2H2Z',
react_1.default.createElement("rect", { x: "10", y: "14", width: "2", height: "2" }), }),
react_1.default.createElement("path", { d: "M31,11V9H28.9a5,5,0,0,0-.73-1.75l1.54-1.54L28.29,4.29,26.75,5.83A5,5,0,0,0,25,5.1V3H23V5.1a5,5,0,0,0-1.75.73L19.71,4.29,18.29,5.71l1.54,1.54A5,5,0,0,0,19.1,9H17v2h2.1a5,5,0,0,0,.73,1.75l-1.54,1.54,1.41,1.41,1.54-1.54A5,5,0,0,0,23,14.9V17h2V14.9a5,5,0,0,0,1.75-.73l1.54,1.54,1.41-1.41-1.54-1.54A5,5,0,0,0,28.9,11Zm-7,2a3,3,0,1,1,3-3A3,3,0,0,1,24,13Z" }))))); react_1.default.createElement('rect', {
case 'CART': x: '34',
return (react_1.default.createElement(exports.StyledIcon, null, y: '25',
react_1.default.createElement("svg", { version: "1.1", id: "shopping_x5F_carts_1_", xmlns: "http://www.w3.org/2000/svg", x: "0", y: "0", viewBox: "0 0 128 128" }, width: '8',
react_1.default.createElement("g", { id: "_x31__1_" }, height: '2',
react_1.default.createElement("path", { d: "M92.1 96c-5.2 0-9.3 4.2-9.3 9.3 0 5.2 4.2 9.3 9.3 9.3s9.3-4.2 9.3-9.3c0-5.1-4.1-9.3-9.3-9.3zm0 16a6.7 6.7 0 1 1 6.7-6.7c0 3.8-3 6.7-6.7 6.7zM41.4 96c-5.2 0-9.3 4.2-9.3 9.3 0 5.2 4.2 9.3 9.3 9.3s9.3-4.2 9.3-9.3c0-5.1-4.2-9.3-9.3-9.3zm0 16a6.7 6.7 0 1 1 6.7-6.7c0 3.8-3 6.7-6.7 6.7zm86.2-73.5c-.5-.8-1.3-1.2-2.2-1.2h-102L19 15.4c-.3-1.2-1.3-2.1-2.6-2.1H2.7C1.2 13.3 0 14.5 0 16c0 1.5 1.2 2.7 2.7 2.7h11.4l14.6 72.6c.3 1.2 1.3 2.1 2.6 2.1h72.2c1.1 0 2-.6 2.4-1.6L127.8 41c.3-.8.3-1.7-.2-2.5zM101.7 88H33.5l-2.7-13.3h76.7L101.7 88zm6.9-16H30.3l-2.7-13.3h86.8L108.6 72zm6.9-16H27l-2.7-13.3h96.9L115.5 56z", id: "icon_14_" }))))); }),
case 'FOLDER': react_1.default.createElement('rect', {
return (react_1.default.createElement(exports.StyledIcon, null, x: '22',
react_1.default.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 64 64" }, y: '25',
react_1.default.createElement("path", { d: "M64 15v37a5.006 5.006 0 0 1-5 5H5a5.006 5.006 0 0 1-5-5V12a5.006 5.006 0 0 1 5-5h14.116a6.966 6.966 0 0 1 5.466 2.627l5 6.247A2.983 2.983 0 0 0 31.922 17H59a1 1 0 0 1 0 2H31.922a4.979 4.979 0 0 1-3.9-1.876l-5-6.247A4.976 4.976 0 0 0 19.116 9H5a3 3 0 0 0-3 3v40a3 3 0 0 0 3 3h54a3 3 0 0 0 3-3V15a3 3 0 0 0-3-3H30a1 1 0 0 1 0-2h29a5.006 5.006 0 0 1 5 5z" })))); width: '10',
case 'LOVE': height: '2',
return (react_1.default.createElement(exports.StyledIcon, null, }),
react_1.default.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24" }, react_1.default.createElement('rect', {
react_1.default.createElement("path", { d: "M22.813 7.338a6.736 6.736 0 0 0-3.8-4.49c-3.206-1.471-6 .878-7.016 1.9-1.013-1.025-3.813-3.374-7.016-1.9a6.736 6.736 0 0 0-3.8 4.49 5.818 5.818 0 0 0 1 4.98c1.708 2.215 9.156 8.891 9.472 9.174a.514.514 0 0 0 .688 0c.316-.283 7.764-6.959 9.472-9.174a5.815 5.815 0 0 0 1-4.98zM21 11.689c-1.448 1.878-7.488 7.362-9 8.726-1.512-1.364-7.552-6.848-9-8.726a4.8 4.8 0 0 1-.812-4.1 5.711 5.711 0 0 1 3.226-3.8c2.229-1.027 4.731.311 6.186 2.05a.516.516 0 0 0 .4.188.516.516 0 0 0 .4-.188c.029-.035 2.958-3.536 6.188-2.055a5.714 5.714 0 0 1 3.226 3.8A4.8 4.8 0 0 1 21 11.689z" }), x: '31',
react_1.default.createElement("path", { d: "M6.346 5a4.39 4.39 0 0 0-2.473 2.928 3.818 3.818 0 0 0 .656 3.272.515.515 0 0 0 .816-.629 2.8 2.8 0 0 1-.472-2.392 3.366 3.366 0 0 1 1.9-2.237A.515.515 0 0 0 6.346 5z" })))); y: '30',
case 'SHORTCUT': width: '7',
return (react_1.default.createElement(exports.StyledIcon, null, height: '2',
react_1.default.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24" }, }),
react_1.default.createElement("g", { "data-name": "13.Arrow up" }, react_1.default.createElement('rect', {
react_1.default.createElement("path", { d: "M12 24a12 12 0 1 1 12-12 12.013 12.013 0 0 1-12 12zm0-22a10 10 0 1 0 10 10A10.011 10.011 0 0 0 12 2z" }), x: '22',
react_1.default.createElement("path", { d: "M18 12h-2V9h-4V7h6v5z" }), y: '30',
react_1.default.createElement("path", { d: "m3.707 17.707-1.414-1.414L6.586 12h5l4.707-4.707 1.414 1.414L12.414 14h-5l-3.707 3.707z" }))))); width: '7',
} height: '2',
return (react_1.default.createElement(exports.StyledIcon, null, }),
react_1.default.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: "20.088", height: "20.087" }, react_1.default.createElement('rect', {
react_1.default.createElement("path", { d: "M10.044 0a10.044 10.044 0 1 0 10.044 10.043A10.043 10.043 0 0 0 10.044 0zm.047 15.033a4.99 4.99 0 1 1 4.99-4.99 4.989 4.989 0 0 1-4.99 4.99z" })))); x: '36',
}; y: '35',
exports.Icon = Icon; width: '6',
exports.StyledIcon = styled_components_1.default.span(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n\tline-height: 1px;\n\tposition: relative;\n\tdisplay: inline-block;\n\tvertical-align: top;\n\twidth: 16px;\n\theight: 16px;\n\tmargin: 2px 4px;\n"], ["\n\tline-height: 1px;\n\tposition: relative;\n\tdisplay: inline-block;\n\tvertical-align: top;\n\twidth: 16px;\n\theight: 16px;\n\tmargin: 2px 4px;\n"]))); height: '2',
var templateObject_1; }),
react_1.default.createElement('rect', {
x: '22',
y: '35',
width: '12',
height: '2',
}),
react_1.default.createElement('rect', {
x: '22',
y: '40',
width: '9',
height: '2',
}),
react_1.default.createElement('path', {
d: 'M18,42H7a1,1,0,0,1-1-1V26a1,1,0,0,1,1-1H18a1,1,0,0,1,1,1V41A1,1,0,0,1,18,42ZM8,40h9V27H8Z',
}),
react_1.default.createElement('path', {
d: 'M41,22H7a1,1,0,0,1-1-1V15a1,1,0,0,1,1-1H41a1,1,0,0,1,1,1v6A1,1,0,0,1,41,22ZM8,20H40V16H8Z',
}),
react_1.default.createElement('rect', {
x: '4',
y: '4',
width: '2',
height: '2',
}),
react_1.default.createElement('rect', {
x: '8',
y: '4',
width: '2',
height: '2',
}),
react_1.default.createElement('rect', {
x: '12',
y: '4',
width: '2',
height: '2',
}),
react_1.default.createElement('rect', {
x: '1',
y: '8',
width: '46',
height: '2',
}),
),
),
),
)
case 'APP':
return react_1.default.createElement(
exports.StyledIcon,
null,
react_1.default.createElement(
'svg',
{ xmlns: 'http://www.w3.org/2000/svg', viewBox: '0 0 32 32' },
react_1.default.createElement('title', null, '8-Book'),
react_1.default.createElement(
'g',
{ id: '_8-Book', 'data-name': '8-Book' },
react_1.default.createElement('path', {
d: 'M27,23a5,5,0,0,0-3-1H6a5,5,0,0,0-3,1V5A3,3,0,0,1,6,2H18V0H6A5,5,0,0,0,1,5V27a5,5,0,0,0,5,5H28a1,1,0,0,0,1-1V19H27Zm0,7H6a3,3,0,0,1,0-6H24a3,3,0,0,1,2.82,2H10v2H27Z',
}),
react_1.default.createElement('rect', {
x: '6',
y: '26',
width: '2',
height: '2',
}),
react_1.default.createElement('path', {
d: 'M15,7V5H7A1,1,0,0,0,6,6v4a1,1,0,0,0,1,1h8V9H8V7Z',
}),
react_1.default.createElement('rect', {
x: '6',
y: '14',
width: '2',
height: '2',
}),
react_1.default.createElement('rect', {
x: '10',
y: '14',
width: '2',
height: '2',
}),
react_1.default.createElement('path', {
d: 'M31,11V9H28.9a5,5,0,0,0-.73-1.75l1.54-1.54L28.29,4.29,26.75,5.83A5,5,0,0,0,25,5.1V3H23V5.1a5,5,0,0,0-1.75.73L19.71,4.29,18.29,5.71l1.54,1.54A5,5,0,0,0,19.1,9H17v2h2.1a5,5,0,0,0,.73,1.75l-1.54,1.54,1.41,1.41,1.54-1.54A5,5,0,0,0,23,14.9V17h2V14.9a5,5,0,0,0,1.75-.73l1.54,1.54,1.41-1.41-1.54-1.54A5,5,0,0,0,28.9,11Zm-7,2a3,3,0,1,1,3-3A3,3,0,0,1,24,13Z',
}),
),
),
)
case 'CART':
return react_1.default.createElement(
exports.StyledIcon,
null,
react_1.default.createElement(
'svg',
{
version: '1.1',
id: 'shopping_x5F_carts_1_',
xmlns: 'http://www.w3.org/2000/svg',
x: '0',
y: '0',
viewBox: '0 0 128 128',
},
react_1.default.createElement(
'g',
{ id: '_x31__1_' },
react_1.default.createElement('path', {
d: 'M92.1 96c-5.2 0-9.3 4.2-9.3 9.3 0 5.2 4.2 9.3 9.3 9.3s9.3-4.2 9.3-9.3c0-5.1-4.1-9.3-9.3-9.3zm0 16a6.7 6.7 0 1 1 6.7-6.7c0 3.8-3 6.7-6.7 6.7zM41.4 96c-5.2 0-9.3 4.2-9.3 9.3 0 5.2 4.2 9.3 9.3 9.3s9.3-4.2 9.3-9.3c0-5.1-4.2-9.3-9.3-9.3zm0 16a6.7 6.7 0 1 1 6.7-6.7c0 3.8-3 6.7-6.7 6.7zm86.2-73.5c-.5-.8-1.3-1.2-2.2-1.2h-102L19 15.4c-.3-1.2-1.3-2.1-2.6-2.1H2.7C1.2 13.3 0 14.5 0 16c0 1.5 1.2 2.7 2.7 2.7h11.4l14.6 72.6c.3 1.2 1.3 2.1 2.6 2.1h72.2c1.1 0 2-.6 2.4-1.6L127.8 41c.3-.8.3-1.7-.2-2.5zM101.7 88H33.5l-2.7-13.3h76.7L101.7 88zm6.9-16H30.3l-2.7-13.3h86.8L108.6 72zm6.9-16H27l-2.7-13.3h96.9L115.5 56z',
id: 'icon_14_',
}),
),
),
)
case 'FOLDER':
return react_1.default.createElement(
exports.StyledIcon,
null,
react_1.default.createElement(
'svg',
{ xmlns: 'http://www.w3.org/2000/svg', viewBox: '0 0 64 64' },
react_1.default.createElement('path', {
d: 'M64 15v37a5.006 5.006 0 0 1-5 5H5a5.006 5.006 0 0 1-5-5V12a5.006 5.006 0 0 1 5-5h14.116a6.966 6.966 0 0 1 5.466 2.627l5 6.247A2.983 2.983 0 0 0 31.922 17H59a1 1 0 0 1 0 2H31.922a4.979 4.979 0 0 1-3.9-1.876l-5-6.247A4.976 4.976 0 0 0 19.116 9H5a3 3 0 0 0-3 3v40a3 3 0 0 0 3 3h54a3 3 0 0 0 3-3V15a3 3 0 0 0-3-3H30a1 1 0 0 1 0-2h29a5.006 5.006 0 0 1 5 5z',
}),
),
)
case 'LOVE':
return react_1.default.createElement(
exports.StyledIcon,
null,
react_1.default.createElement(
'svg',
{ xmlns: 'http://www.w3.org/2000/svg', viewBox: '0 0 24 24' },
react_1.default.createElement('path', {
d: 'M22.813 7.338a6.736 6.736 0 0 0-3.8-4.49c-3.206-1.471-6 .878-7.016 1.9-1.013-1.025-3.813-3.374-7.016-1.9a6.736 6.736 0 0 0-3.8 4.49 5.818 5.818 0 0 0 1 4.98c1.708 2.215 9.156 8.891 9.472 9.174a.514.514 0 0 0 .688 0c.316-.283 7.764-6.959 9.472-9.174a5.815 5.815 0 0 0 1-4.98zM21 11.689c-1.448 1.878-7.488 7.362-9 8.726-1.512-1.364-7.552-6.848-9-8.726a4.8 4.8 0 0 1-.812-4.1 5.711 5.711 0 0 1 3.226-3.8c2.229-1.027 4.731.311 6.186 2.05a.516.516 0 0 0 .4.188.516.516 0 0 0 .4-.188c.029-.035 2.958-3.536 6.188-2.055a5.714 5.714 0 0 1 3.226 3.8A4.8 4.8 0 0 1 21 11.689z',
}),
react_1.default.createElement('path', {
d: 'M6.346 5a4.39 4.39 0 0 0-2.473 2.928 3.818 3.818 0 0 0 .656 3.272.515.515 0 0 0 .816-.629 2.8 2.8 0 0 1-.472-2.392 3.366 3.366 0 0 1 1.9-2.237A.515.515 0 0 0 6.346 5z',
}),
),
)
case 'SHORTCUT':
return react_1.default.createElement(
exports.StyledIcon,
null,
react_1.default.createElement(
'svg',
{ xmlns: 'http://www.w3.org/2000/svg', viewBox: '0 0 24 24' },
react_1.default.createElement(
'g',
{ 'data-name': '13.Arrow up' },
react_1.default.createElement('path', {
d: 'M12 24a12 12 0 1 1 12-12 12.013 12.013 0 0 1-12 12zm0-22a10 10 0 1 0 10 10A10.011 10.011 0 0 0 12 2z',
}),
react_1.default.createElement('path', {
d: 'M18 12h-2V9h-4V7h6v5z',
}),
react_1.default.createElement('path', {
d: 'm3.707 17.707-1.414-1.414L6.586 12h5l4.707-4.707 1.414 1.414L12.414 14h-5l-3.707 3.707z',
}),
),
),
)
}
return react_1.default.createElement(
exports.StyledIcon,
null,
react_1.default.createElement(
'svg',
{
xmlns: 'http://www.w3.org/2000/svg',
width: '20.088',
height: '20.087',
},
react_1.default.createElement('path', {
d: 'M10.044 0a10.044 10.044 0 1 0 10.044 10.043A10.043 10.043 0 0 0 10.044 0zm.047 15.033a4.99 4.99 0 1 1 4.99-4.99 4.989 4.989 0 0 1-4.99 4.99z',
}),
),
)
}
exports.Icon = Icon
exports.StyledIcon = styled_components_1.default.span(
templateObject_1 ||
(templateObject_1 = __makeTemplateObject(
[
'\n\tline-height: 1px;\n\tposition: relative;\n\tdisplay: inline-block;\n\tvertical-align: top;\n\twidth: 16px;\n\theight: 16px;\n\tmargin: 2px 4px;\n',
],
[
'\n\tline-height: 1px;\n\tposition: relative;\n\tdisplay: inline-block;\n\tvertical-align: top;\n\twidth: 16px;\n\theight: 16px;\n\tmargin: 2px 4px;\n',
],
)),
)
var templateObject_1

54
dist/index.js vendored
View File

@ -1,19 +1,35 @@
"use strict"; 'use strict'
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { var __createBinding =
if (k2 === undefined) k2 = k; (this && this.__createBinding) ||
var desc = Object.getOwnPropertyDescriptor(m, k); (Object.create
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { ? function (o, m, k, k2) {
desc = { enumerable: true, get: function() { return m[k]; } }; if (k2 === undefined) k2 = k
} var desc = Object.getOwnPropertyDescriptor(m, k)
Object.defineProperty(o, k2, desc); if (
}) : (function(o, m, k, k2) { !desc ||
if (k2 === undefined) k2 = k; ('get' in desc ? !m.__esModule : desc.writable || desc.configurable)
o[k2] = m[k]; ) {
})); desc = {
var __exportStar = (this && this.__exportStar) || function(m, exports) { enumerable: true,
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); get: function () {
}; return m[k]
Object.defineProperty(exports, "__esModule", { value: true }); },
__exportStar(require("./ContentTree"), exports); }
__exportStar(require("./ContentTree.styled"), exports); }
__exportStar(require("./ContentTreeNode"), exports); Object.defineProperty(o, k2, desc)
}
: function (o, m, k, k2) {
if (k2 === undefined) k2 = k
o[k2] = m[k]
})
var __exportStar =
(this && this.__exportStar) ||
function (m, exports) {
for (var p in m)
if (p !== 'default' && !Object.prototype.hasOwnProperty.call(exports, p))
__createBinding(exports, m, p)
}
Object.defineProperty(exports, '__esModule', { value: true })
__exportStar(require('./ContentTree'), exports)
__exportStar(require('./ContentTree.styled'), exports)
__exportStar(require('./ContentTreeNode'), exports)

View File

@ -12,18 +12,18 @@
"lint": "biome check --write ." "lint": "biome check --write ."
}, },
"devDependencies": { "devDependencies": {
"@biomejs/biome": "2.2.4", "@biomejs/biome": "2.2.5",
"@types/react": "19.1.13", "@types/react": "19.2.0",
"@types/styled-components": "5.1.34", "@types/styled-components": "5.1.34",
"install-peers": "1.0.4", "install-peers": "1.0.4",
"typescript": "5.9.2" "typescript": "5.9.3"
}, },
"optionalDependencies": { "optionalDependencies": {
"react": "19.1.1", "react": "19.2.0",
"styled-components": "6.1.19" "styled-components": "6.1.19"
}, },
"dependencies": { "dependencies": {
"contentful-management": "11.58.0", "contentful-management": "11.60.3",
"contentful-ui-extensions-sdk": "4.44.1" "contentful-ui-extensions-sdk": "4.45.0"
} }
} }

View File

@ -9,18 +9,18 @@ importers:
.: .:
dependencies: dependencies:
contentful-management: contentful-management:
specifier: 11.58.0 specifier: 11.60.3
version: 11.58.0 version: 11.60.3
contentful-ui-extensions-sdk: contentful-ui-extensions-sdk:
specifier: 4.44.1 specifier: 4.45.0
version: 4.44.1 version: 4.45.0
devDependencies: devDependencies:
'@biomejs/biome': '@biomejs/biome':
specifier: 2.2.4 specifier: 2.2.5
version: 2.2.4 version: 2.2.5
'@types/react': '@types/react':
specifier: 19.1.13 specifier: 19.2.0
version: 19.1.13 version: 19.2.0
'@types/styled-components': '@types/styled-components':
specifier: 5.1.34 specifier: 5.1.34
version: 5.1.34 version: 5.1.34
@ -28,67 +28,71 @@ importers:
specifier: 1.0.4 specifier: 1.0.4
version: 1.0.4 version: 1.0.4
typescript: typescript:
specifier: 5.9.2 specifier: 5.9.3
version: 5.9.2 version: 5.9.3
optionalDependencies: optionalDependencies:
react: react:
specifier: 19.1.1 specifier: 19.2.0
version: 19.1.1 version: 19.2.0
styled-components: styled-components:
specifier: 6.1.19 specifier: 6.1.19
version: 6.1.19(react-dom@19.1.0(react@19.1.1))(react@19.1.1) version: 6.1.19(react-dom@19.1.0(react@19.2.0))(react@19.2.0)
packages: packages:
'@biomejs/biome@2.2.4': '@biomejs/biome@2.2.5':
resolution: {integrity: sha512-TBHU5bUy/Ok6m8c0y3pZiuO/BZoY/OcGxoLlrfQof5s8ISVwbVBdFINPQZyFfKwil8XibYWb7JMwnT8wT4WVPg==} resolution: {integrity: sha512-zcIi+163Rc3HtyHbEO7CjeHq8DjQRs40HsGbW6vx2WI0tg8mYQOPouhvHSyEnCBAorfYNnKdR64/IxO7xQ5faw==}
engines: {node: '>=14.21.3'} engines: {node: '>=14.21.3'}
hasBin: true hasBin: true
'@biomejs/cli-darwin-arm64@2.2.4': '@biomejs/cli-darwin-arm64@2.2.5':
resolution: {integrity: sha512-RJe2uiyaloN4hne4d2+qVj3d3gFJFbmrr5PYtkkjei1O9c+BjGXgpUPVbi8Pl8syumhzJjFsSIYkcLt2VlVLMA==} resolution: {integrity: sha512-MYT+nZ38wEIWVcL5xLyOhYQQ7nlWD0b/4mgATW2c8dvq7R4OQjt/XGXFkXrmtWmQofaIM14L7V8qIz/M+bx5QQ==}
engines: {node: '>=14.21.3'} engines: {node: '>=14.21.3'}
cpu: [arm64] cpu: [arm64]
os: [darwin] os: [darwin]
'@biomejs/cli-darwin-x64@2.2.4': '@biomejs/cli-darwin-x64@2.2.5':
resolution: {integrity: sha512-cFsdB4ePanVWfTnPVaUX+yr8qV8ifxjBKMkZwN7gKb20qXPxd/PmwqUH8mY5wnM9+U0QwM76CxFyBRJhC9tQwg==} resolution: {integrity: sha512-FLIEl73fv0R7dI10EnEiZLw+IMz3mWLnF95ASDI0kbx6DDLJjWxE5JxxBfmG+udz1hIDd3fr5wsuP7nwuTRdAg==}
engines: {node: '>=14.21.3'} engines: {node: '>=14.21.3'}
cpu: [x64] cpu: [x64]
os: [darwin] os: [darwin]
'@biomejs/cli-linux-arm64-musl@2.2.4': '@biomejs/cli-linux-arm64-musl@2.2.5':
resolution: {integrity: sha512-7TNPkMQEWfjvJDaZRSkDCPT/2r5ESFPKx+TEev+I2BXDGIjfCZk2+b88FOhnJNHtksbOZv8ZWnxrA5gyTYhSsQ==} resolution: {integrity: sha512-5Ov2wgAFwqDvQiESnu7b9ufD1faRa+40uwrohgBopeY84El2TnBDoMNXx6iuQdreoFGjwW8vH6k68G21EpNERw==}
engines: {node: '>=14.21.3'} engines: {node: '>=14.21.3'}
cpu: [arm64] cpu: [arm64]
os: [linux] os: [linux]
libc: [musl]
'@biomejs/cli-linux-arm64@2.2.4': '@biomejs/cli-linux-arm64@2.2.5':
resolution: {integrity: sha512-M/Iz48p4NAzMXOuH+tsn5BvG/Jb07KOMTdSVwJpicmhN309BeEyRyQX+n1XDF0JVSlu28+hiTQ2L4rZPvu7nMw==} resolution: {integrity: sha512-5DjiiDfHqGgR2MS9D+AZ8kOfrzTGqLKywn8hoXpXXlJXIECGQ32t+gt/uiS2XyGBM2XQhR6ztUvbjZWeccFMoQ==}
engines: {node: '>=14.21.3'} engines: {node: '>=14.21.3'}
cpu: [arm64] cpu: [arm64]
os: [linux] os: [linux]
libc: [glibc]
'@biomejs/cli-linux-x64-musl@2.2.4': '@biomejs/cli-linux-x64-musl@2.2.5':
resolution: {integrity: sha512-m41nFDS0ksXK2gwXL6W6yZTYPMH0LughqbsxInSKetoH6morVj43szqKx79Iudkp8WRT5SxSh7qVb8KCUiewGg==} resolution: {integrity: sha512-AVqLCDb/6K7aPNIcxHaTQj01sl1m989CJIQFQEaiQkGr2EQwyOpaATJ473h+nXDUuAcREhccfRpe/tu+0wu0eQ==}
engines: {node: '>=14.21.3'} engines: {node: '>=14.21.3'}
cpu: [x64] cpu: [x64]
os: [linux] os: [linux]
libc: [musl]
'@biomejs/cli-linux-x64@2.2.4': '@biomejs/cli-linux-x64@2.2.5':
resolution: {integrity: sha512-orr3nnf2Dpb2ssl6aihQtvcKtLySLta4E2UcXdp7+RTa7mfJjBgIsbS0B9GC8gVu0hjOu021aU8b3/I1tn+pVQ==} resolution: {integrity: sha512-fq9meKm1AEXeAWan3uCg6XSP5ObA6F/Ovm89TwaMiy1DNIwdgxPkNwxlXJX8iM6oRbFysYeGnT0OG8diCWb9ew==}
engines: {node: '>=14.21.3'} engines: {node: '>=14.21.3'}
cpu: [x64] cpu: [x64]
os: [linux] os: [linux]
libc: [glibc]
'@biomejs/cli-win32-arm64@2.2.4': '@biomejs/cli-win32-arm64@2.2.5':
resolution: {integrity: sha512-NXnfTeKHDFUWfxAefa57DiGmu9VyKi0cDqFpdI+1hJWQjGJhJutHPX0b5m+eXvTKOaf+brU+P0JrQAZMb5yYaQ==} resolution: {integrity: sha512-xaOIad4wBambwJa6mdp1FigYSIF9i7PCqRbvBqtIi9y29QtPVQ13sDGtUnsRoe6SjL10auMzQ6YAe+B3RpZXVg==}
engines: {node: '>=14.21.3'} engines: {node: '>=14.21.3'}
cpu: [arm64] cpu: [arm64]
os: [win32] os: [win32]
'@biomejs/cli-win32-x64@2.2.4': '@biomejs/cli-win32-x64@2.2.5':
resolution: {integrity: sha512-3Y4V4zVRarVh/B/eSHczR4LYoSVyv3Dfuvm3cWs5w/HScccS0+Wt/lHOcDTRYeHjQmMYVC3rIRWqyN2EI52+zg==} resolution: {integrity: sha512-F/jhuXCssPFAuciMhHKk00xnCAxJRS/pUzVfXYmOMUp//XW7mO6QeCjsjvnm8L4AO/dG2VOB0O+fJPiJ2uXtIw==}
engines: {node: '>=14.21.3'} engines: {node: '>=14.21.3'}
cpu: [x64] cpu: [x64]
os: [win32] os: [win32]
@ -106,16 +110,17 @@ packages:
'@emotion/unitless@0.8.1': '@emotion/unitless@0.8.1':
resolution: {integrity: sha512-KOEGMu6dmJZtpadb476IsZBclKvILjopjUii3V+7MnXIQCYh8W3NgNcgwo21n9LXZX6EDIKvqfjYxXebDwxKmQ==} resolution: {integrity: sha512-KOEGMu6dmJZtpadb476IsZBclKvILjopjUii3V+7MnXIQCYh8W3NgNcgwo21n9LXZX6EDIKvqfjYxXebDwxKmQ==}
'@rollup/rollup-linux-x64-gnu@4.51.0': '@rollup/rollup-linux-x64-gnu@4.52.3':
resolution: {integrity: sha512-4YHhP+Rv3T3+H3TPbUvWOw5tuSwhrVhkHHZhk4hC9VXeAOKR26/IsUAT4FsB4mT+kfIdxxb1BezQDEg/voPO8A==} resolution: {integrity: sha512-tPgGd6bY2M2LJTA1uGq8fkSPK8ZLYjDjY+ZLK9WHncCnfIz29LIXIqUgzCR0hIefzy6Hpbe8Th5WOSwTM8E7LA==}
cpu: [x64] cpu: [x64]
os: [linux] os: [linux]
libc: [glibc]
'@types/hoist-non-react-statics@3.3.5': '@types/hoist-non-react-statics@3.3.5':
resolution: {integrity: sha512-SbcrWzkKBw2cdwRTwQAswfpB9g9LJWfjtUeW/jvNwbhC8cpmmNYVePa+ncbUe0rGTQ7G3Ff6mYUN2VMfLVr+Sg==} resolution: {integrity: sha512-SbcrWzkKBw2cdwRTwQAswfpB9g9LJWfjtUeW/jvNwbhC8cpmmNYVePa+ncbUe0rGTQ7G3Ff6mYUN2VMfLVr+Sg==}
'@types/react@19.1.13': '@types/react@19.2.0':
resolution: {integrity: sha512-hHkbU/eoO3EG5/MZkuFSKmYqPbSVk5byPFa3e7y/8TybHiLMACgI8seVYlicwk7H5K/rI2px9xrQp/C+AUDTiQ==} resolution: {integrity: sha512-1LOH8xovvsKsCBq1wnT4ntDUdCJKmnEakhsuoUSy6ExlHCkGP2hqnatagYTgFk6oeL0VU31u7SNjunPN+GchtA==}
'@types/styled-components@5.1.34': '@types/styled-components@5.1.34':
resolution: {integrity: sha512-mmiVvwpYklFIv9E8qfxuPyIt/OuyIrn6gMOAMOFUO3WJfSrSE+sGUoa4PiZj77Ut7bKZpaa6o1fBKS/4TOEvnA==} resolution: {integrity: sha512-mmiVvwpYklFIv9E8qfxuPyIt/OuyIrn6gMOAMOFUO3WJfSrSE+sGUoa4PiZj77Ut7bKZpaa6o1fBKS/4TOEvnA==}
@ -144,16 +149,16 @@ packages:
resolution: {integrity: sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==} resolution: {integrity: sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==}
engines: {node: '>= 0.8'} engines: {node: '>= 0.8'}
contentful-management@11.58.0: contentful-management@11.60.3:
resolution: {integrity: sha512-17rqukaUE/dhbbNLNlt/SvJv74M7D2lRN6d+63EShIGAkdKaCROomfUV3aFB+chPKcqNuEgnxz7Lj78bBMCVBw==} resolution: {integrity: sha512-MRE/8m/A5yu1Gb1eCre1xrLlbUfj/ERUf+hFmFCMTzGUQOD9g7JKgdkioFZXJusTU57U6WLf+rNh7sloDlQnhA==}
engines: {node: '>=18'} engines: {node: '>=18'}
contentful-sdk-core@9.2.0: contentful-sdk-core@9.2.1:
resolution: {integrity: sha512-cUvHbC2u8ouJHhG3tofQhUc0FAmM/QBcalYjiczMtFKrR77BW+eSPcPg+A9DQlhIP0UGcQ/knXxoJpBvrERXTA==} resolution: {integrity: sha512-Y+Qz2tGYE2ia6o42R8DG4uFSMSLJ6qfAbKQLU6p2+KxsqvbK1Fg60wKVKF+FHMShuCnlg2EwToOvxVsM2N+BrQ==}
engines: {node: '>=18'} engines: {node: '>=18'}
contentful-ui-extensions-sdk@4.44.1: contentful-ui-extensions-sdk@4.45.0:
resolution: {integrity: sha512-6NP8zLVsZx+Nl37PKWOu85WGGAYsiTwS2KhAKLgGuRWqrXC4QAbAJ+s3AXeQAvJu/pjE2gFb+TlBw6MBBHKD2A==} resolution: {integrity: sha512-0qYXRhA9NaOU0BpkGHkuKv3cYsuj//58F1cORbczpHVfTP7z/SZhqTXB4r3wfu5ZCidUR2Q/OXj4sSB7IXRfCw==}
css-color-keywords@1.0.0: css-color-keywords@1.0.0:
resolution: {integrity: sha512-FyyrDHZKEjXDpNJYvVsV960FiqQyXc/LlYmsxl2BcdMb2WPx0OGRVgTg55rPSyLSNMqP52R9r8geSp7apN3Ofg==} resolution: {integrity: sha512-FyyrDHZKEjXDpNJYvVsV960FiqQyXc/LlYmsxl2BcdMb2WPx0OGRVgTg55rPSyLSNMqP52R9r8geSp7apN3Ofg==}
@ -310,8 +315,8 @@ packages:
react-is@16.13.1: react-is@16.13.1:
resolution: {integrity: sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ==} resolution: {integrity: sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ==}
react@19.1.1: react@19.2.0:
resolution: {integrity: sha512-w8nqGImo45dmMIfljjMwOGtbmC/mk4CMYhWIicdSflH91J9TyCyczcPFXJzrZ/ZXcgGRFeP6BU0BEJTw6tZdfQ==} resolution: {integrity: sha512-tmbWg6W31tQLeB5cdIBOicJDJRR2KzXsV7uSK9iNfLWQ5bIZfxuPEHp7M8wiHyHnn0DD1i7w3Zmin0FtkrwoCQ==}
engines: {node: '>=0.10.0'} engines: {node: '>=0.10.0'}
scheduler@0.26.0: scheduler@0.26.0:
@ -353,46 +358,46 @@ packages:
tslib@2.6.2: tslib@2.6.2:
resolution: {integrity: sha512-AEYxH93jGFPn/a2iVAwW87VuUIkR1FVUKB77NwMF7nBTDkDrrT/Hpt/IrCJ0QXhW27jTBDcf5ZY7w6RiqTMw2Q==} resolution: {integrity: sha512-AEYxH93jGFPn/a2iVAwW87VuUIkR1FVUKB77NwMF7nBTDkDrrT/Hpt/IrCJ0QXhW27jTBDcf5ZY7w6RiqTMw2Q==}
typescript@5.9.2: typescript@5.9.3:
resolution: {integrity: sha512-CWBzXQrc/qOkhidw1OzBTQuYRbfyxDXJMVJ1XNwUHGROVmuaeiEm3OslpZ1RV96d7SKKjZKrSJu3+t/xlw3R9A==} resolution: {integrity: sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw==}
engines: {node: '>=14.17'} engines: {node: '>=14.17'}
hasBin: true hasBin: true
snapshots: snapshots:
'@biomejs/biome@2.2.4': '@biomejs/biome@2.2.5':
optionalDependencies: optionalDependencies:
'@biomejs/cli-darwin-arm64': 2.2.4 '@biomejs/cli-darwin-arm64': 2.2.5
'@biomejs/cli-darwin-x64': 2.2.4 '@biomejs/cli-darwin-x64': 2.2.5
'@biomejs/cli-linux-arm64': 2.2.4 '@biomejs/cli-linux-arm64': 2.2.5
'@biomejs/cli-linux-arm64-musl': 2.2.4 '@biomejs/cli-linux-arm64-musl': 2.2.5
'@biomejs/cli-linux-x64': 2.2.4 '@biomejs/cli-linux-x64': 2.2.5
'@biomejs/cli-linux-x64-musl': 2.2.4 '@biomejs/cli-linux-x64-musl': 2.2.5
'@biomejs/cli-win32-arm64': 2.2.4 '@biomejs/cli-win32-arm64': 2.2.5
'@biomejs/cli-win32-x64': 2.2.4 '@biomejs/cli-win32-x64': 2.2.5
'@biomejs/cli-darwin-arm64@2.2.4': '@biomejs/cli-darwin-arm64@2.2.5':
optional: true optional: true
'@biomejs/cli-darwin-x64@2.2.4': '@biomejs/cli-darwin-x64@2.2.5':
optional: true optional: true
'@biomejs/cli-linux-arm64-musl@2.2.4': '@biomejs/cli-linux-arm64-musl@2.2.5':
optional: true optional: true
'@biomejs/cli-linux-arm64@2.2.4': '@biomejs/cli-linux-arm64@2.2.5':
optional: true optional: true
'@biomejs/cli-linux-x64-musl@2.2.4': '@biomejs/cli-linux-x64-musl@2.2.5':
optional: true optional: true
'@biomejs/cli-linux-x64@2.2.4': '@biomejs/cli-linux-x64@2.2.5':
optional: true optional: true
'@biomejs/cli-win32-arm64@2.2.4': '@biomejs/cli-win32-arm64@2.2.5':
optional: true optional: true
'@biomejs/cli-win32-x64@2.2.4': '@biomejs/cli-win32-x64@2.2.5':
optional: true optional: true
'@contentful/rich-text-types@16.8.5': {} '@contentful/rich-text-types@16.8.5': {}
@ -408,22 +413,22 @@ snapshots:
'@emotion/unitless@0.8.1': '@emotion/unitless@0.8.1':
optional: true optional: true
'@rollup/rollup-linux-x64-gnu@4.51.0': '@rollup/rollup-linux-x64-gnu@4.52.3':
optional: true optional: true
'@types/hoist-non-react-statics@3.3.5': '@types/hoist-non-react-statics@3.3.5':
dependencies: dependencies:
'@types/react': 19.1.13 '@types/react': 19.2.0
hoist-non-react-statics: 3.3.2 hoist-non-react-statics: 3.3.2
'@types/react@19.1.13': '@types/react@19.2.0':
dependencies: dependencies:
csstype: 3.1.3 csstype: 3.1.3
'@types/styled-components@5.1.34': '@types/styled-components@5.1.34':
dependencies: dependencies:
'@types/hoist-non-react-statics': 3.3.5 '@types/hoist-non-react-statics': 3.3.5
'@types/react': 19.1.13 '@types/react': 19.2.0
csstype: 3.1.3 csstype: 3.1.3
'@types/stylis@4.2.5': '@types/stylis@4.2.5':
@ -456,17 +461,17 @@ snapshots:
dependencies: dependencies:
delayed-stream: 1.0.0 delayed-stream: 1.0.0
contentful-management@11.58.0: contentful-management@11.60.3:
dependencies: dependencies:
'@contentful/rich-text-types': 16.8.5 '@contentful/rich-text-types': 16.8.5
axios: 1.12.2 axios: 1.12.2
contentful-sdk-core: 9.2.0 contentful-sdk-core: 9.2.1
fast-copy: 3.0.2 fast-copy: 3.0.2
globals: 15.15.0 globals: 15.15.0
transitivePeerDependencies: transitivePeerDependencies:
- debug - debug
contentful-sdk-core@9.2.0: contentful-sdk-core@9.2.1:
dependencies: dependencies:
fast-copy: 3.0.2 fast-copy: 3.0.2
lodash: 4.17.21 lodash: 4.17.21
@ -474,11 +479,11 @@ snapshots:
process: 0.11.10 process: 0.11.10
qs: 6.14.0 qs: 6.14.0
optionalDependencies: optionalDependencies:
'@rollup/rollup-linux-x64-gnu': 4.51.0 '@rollup/rollup-linux-x64-gnu': 4.52.3
contentful-ui-extensions-sdk@4.44.1: contentful-ui-extensions-sdk@4.45.0:
dependencies: dependencies:
contentful-management: 11.58.0 contentful-management: 11.60.3
transitivePeerDependencies: transitivePeerDependencies:
- debug - debug
@ -619,15 +624,15 @@ snapshots:
dependencies: dependencies:
side-channel: 1.1.0 side-channel: 1.1.0
react-dom@19.1.0(react@19.1.1): react-dom@19.1.0(react@19.2.0):
dependencies: dependencies:
react: 19.1.1 react: 19.2.0
scheduler: 0.26.0 scheduler: 0.26.0
optional: true optional: true
react-is@16.13.1: {} react-is@16.13.1: {}
react@19.1.1: react@19.2.0:
optional: true optional: true
scheduler@0.26.0: scheduler@0.26.0:
@ -667,7 +672,7 @@ snapshots:
source-map-js@1.2.1: source-map-js@1.2.1:
optional: true optional: true
styled-components@6.1.19(react-dom@19.1.0(react@19.1.1))(react@19.1.1): styled-components@6.1.19(react-dom@19.1.0(react@19.2.0))(react@19.2.0):
dependencies: dependencies:
'@emotion/is-prop-valid': 1.2.2 '@emotion/is-prop-valid': 1.2.2
'@emotion/unitless': 0.8.1 '@emotion/unitless': 0.8.1
@ -675,8 +680,8 @@ snapshots:
css-to-react-native: 3.2.0 css-to-react-native: 3.2.0
csstype: 3.1.3 csstype: 3.1.3
postcss: 8.4.49 postcss: 8.4.49
react: 19.1.1 react: 19.2.0
react-dom: 19.1.0(react@19.1.1) react-dom: 19.1.0(react@19.2.0)
shallowequal: 1.1.0 shallowequal: 1.1.0
stylis: 4.3.2 stylis: 4.3.2
tslib: 2.6.2 tslib: 2.6.2
@ -688,4 +693,4 @@ snapshots:
tslib@2.6.2: tslib@2.6.2:
optional: true optional: true
typescript@5.9.2: {} typescript@5.9.3: {}

View File

@ -1,3 +1,4 @@
onlyBuiltDependencies: onlyBuiltDependencies:
- '@biomejs/biome' - "@biomejs/biome"
- install-peers - install-peers
minimumReleaseAge: 1440