UNPKG

@wordpress/block-library

Version:
55 lines (53 loc) 1.96 kB
"use strict"; var __defProp = Object.defineProperty; var __getOwnPropDesc = Object.getOwnPropertyDescriptor; var __getOwnPropNames = Object.getOwnPropertyNames; var __hasOwnProp = Object.prototype.hasOwnProperty; var __export = (target, all) => { for (var name in all) __defProp(target, name, { get: all[name], enumerable: true }); }; var __copyProps = (to, from, except, desc) => { if (from && typeof from === "object" || typeof from === "function") { for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); } return to; }; var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); // packages/block-library/src/post-time-to-read/variations.js var variations_exports = {}; __export(variations_exports, { default: () => variations_default }); module.exports = __toCommonJS(variations_exports); var import_i18n = require("@wordpress/i18n"); var import_icons = require("@wordpress/icons"); var variations = [ { name: "time-to-read", title: (0, import_i18n.__)("Time to Read"), description: (0, import_i18n.__)("Show minutes required to finish reading the post."), attributes: { displayMode: "time" }, scope: ["inserter", "transform"], isActive: (blockAttributes) => blockAttributes?.displayMode === "time", icon: import_icons.timeToRead, isDefault: true }, { name: "word-count", title: (0, import_i18n.__)("Word Count"), description: (0, import_i18n.__)("Show the number of words in the post."), attributes: { displayMode: "words" }, scope: ["inserter", "transform"], isActive: (blockAttributes) => blockAttributes?.displayMode === "words", icon: import_icons.wordCount } ]; var variations_default = variations; //# sourceMappingURL=variations.js.map