@pine-ds/icons 9.4.0 → 9.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2,7 +2,7 @@
2
2
  <html>
3
3
  <head>
4
4
  <meta charset="utf-8">
5
- <title>Pine icons Library - 9.3.1</title>
5
+ <title>Pine icons Library - 9.4.0</title>
6
6
  <link rel="icon" href="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><text y='.9em' font-size='90'>🌲</text></svg>"/>
7
7
 
8
8
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
@@ -201,7 +201,7 @@
201
201
  <div class="icon-count-container">
202
202
  <p class="icon-count">367 icons</p>
203
203
  </div>
204
- <h1>Pine Icons - 9.3.1</h1>
204
+ <h1>Pine Icons - 9.4.0</h1>
205
205
  <div class="search-container">
206
206
  <label for="search" class="visually-hidden">Search all 367 icons</label>
207
207
  <input type="text" id="search" class="search-input" placeholder="Search icons by name or tag..." oninput="filterIcons(this.value)">
@@ -578,7 +578,7 @@
578
578
  <button class="icon-button" title="Copy wrench code snippet" data-tags="preferences,settings,spanner,tool,tools" data-icon-name="wrench"><pds-icon name="wrench"></pds-icon><span class="visually-hidden">Copy wrench icon code</span></button>
579
579
  <button class="icon-button" title="Copy zoom-in code snippet" data-tags="plus,zoom,zoom in" data-icon-name="zoom-in"><pds-icon name="zoom-in"></pds-icon><span class="visually-hidden">Copy zoom-in icon code</span></button>
580
580
  <button class="icon-button" title="Copy zoom-out code snippet" data-tags="minus,zoom,zoom out" data-icon-name="zoom-out"><pds-icon name="zoom-out"></pds-icon><span class="visually-hidden">Copy zoom-out icon code</span></button>
581
- <svg data-pdsicons="9.3.1" style="display:none">
581
+ <svg data-pdsicons="9.4.0" style="display:none">
582
582
  <style>
583
583
  .pdsicon {
584
584
  fill: currentColor;
package/dist/docs.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "timestamp": "2025-05-01T20:57:06",
2
+ "timestamp": "2025-05-01T21:14:58",
3
3
  "compiler": {
4
4
  "name": "@stencil/core",
5
5
  "version": "4.28.2",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pds-icons",
3
- "version": "9.3.1",
3
+ "version": "9.4.0",
4
4
  "icons": [
5
5
  {
6
6
  "name": "access-key",
@@ -1,4 +1,4 @@
1
- <svg data-pdsicons="9.3.1" style="display:none">
1
+ <svg data-pdsicons="9.4.0" style="display:none">
2
2
  <style>
3
3
  .pdsicon {
4
4
  fill: currentColor;
@@ -152,7 +152,7 @@ const createChangelogHTML = async (statusResults) => {
152
152
  const versionMatch = changelogContent.match(/Pine Icons - (v[\d.]+)/);
153
153
  const version = versionMatch ? versionMatch[1] : '{{version}}';
154
154
  const date = filename.replace('-changelog.html', '');
155
- changelogRecords.push(`<div class="changelog-entry changelog-entry--${idx}"><a class="changelog-entry__link" href="changelogs/${filename}"><p class="changelog-entry_date">${date}</p><p class="changelog-entry_version">${version}</p></a></div>`);
155
+ changelogRecords.push(`<div class="changelog-entry changelog-entry--${idx}"><a class="changelog-entry__link" href="changelogs/${filename}"><p class="changelog-entry__date">${date}</p><p class="changelog-entry__version">${version}</p></a></div>`);
156
156
  }
157
157
  numberOfChangelogs++;
158
158
  }
@@ -1 +1 @@
1
- {"version":3,"file":"finalize-export.js","sourceRoot":"","sources":["../../../scripts/figma_icons/finalize-export.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAEpD,OAAO,KAAK,MAAM,OAAO,CAAC,CAAC,qCAAqC;AAChE,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,EAAE,MAAM,UAAU,CAAC;AAC1B,OAAO,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAC;AAC1C,OAAO,EAAE,SAAS,EAAkC,MAAM,YAAY,CAAC;AAGvE,MAAM,IAAI,GAAG,KAAK,CAAC,KAAK,CAAC;AACzB,MAAM,KAAK,GAAG,KAAK,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M,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAE,sBAAsB,CAAC,GAAG,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC;QACpF,QAAQ,GAAG,gBAAgB,CAAC,UAAU,EAAE,QAAQ,EAAE,sSAAsS,CAAC,CAAC;IAC5V,CAAC;IAED,IAAI,CAAC,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;QACjB,OAAO,GAAG,MAAM,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAE,sBAAsB,CAAC,GAAG,EAAE,IAAI,CAAC,EAAE,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC;QACjG,OAAO,GAAG,gBAAgB,CAAC,SAAS,EAAE,OAAO,EAAE,iNAAiN,CAAC,CAAC;IACpQ,CAAC;IAED,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,CAAC;AACjD,CAAC,CAAA;AAED;;;;;GAKG;AACH,MAAM,kBAAkB,GAAG,CAAC,MAAuB,EAAE,EAAE;IACrD,GAAG,CAAC,wBAAwB,CAAC,CAAA;IAC7B,MAAM,MAAM,GAAG,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,YAAY,EAAE,IAAI,CAAC,CAAC;IACpD,EAAE,CAAC,MAAM,CAAC,MAAM,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,CAAC;AACtD,CAAC,CAAA","sourcesContent":["import { collectionCopy } from '../collection-copy';\n\nimport chalk from 'chalk'; // Terminal string styling done right\nimport path from 'path';\nimport fs from 'fs-extra';\nimport { exec } from 'node:child_process';\nimport { simpleGit, SimpleGitOptions, StatusResult } from 'simple-git';\nimport { FigmaIcon, FigmaIconConfig, SvgDiffResult } from './types';\n\nconst info = chalk.white;\nconst error = chalk.red.bold;\nconst detail = chalk.yellowBright;\nconst log = console.log;\n\nconst baseDir = process.cwd();\nconst scriptsDir = path.join(baseDir, 'scripts');\nconst srcDir = path.join(baseDir, 'src');\nconst srcSvgBasePath = path.join(srcDir, 'svg');\n\nconst date = new Date();\nconst strDate = [date.getFullYear().toString(), (date.getMonth() + 1).toString().padStart(2,'0'), date.getDate().toString().padStart(2, '0')].join('-');\n\n\nexport const run = async(config, data, rootDir: string) => {\n const git = gitClient();\n await git.add(srcSvgBasePath);\n\n const statusResults: StatusResult = await git.status([srcSvgBasePath]);\n const filesChanged = statusResults.files;\n\n // Even if there are no changes, we still want to update the index.html\n if (filesChanged.length <= 0) {\n log(detail('No SVG changes were found. Proceeding to update index.html...'))\n\n removeTmpDirectory(config);\n\n return;\n }\n\n log('Copying collections...');\n await collectionCopy(rootDir);\n\n log(info('Creating JSON Icon List'));\n createJsonIconList(data.icons, srcDir);\n\n log(info('Calling createChangelogHTML'));\n await createChangelogHTML(statusResults);\n\n // restore staged files in case of failure\n exec(`git restore --staged ${srcSvgBasePath}`)\n}\n\n/**\n *\n * Helper Methods\n *\n *\n */\n\n/**\n * Reads the file contents to read the Svg File and stores\n * into a property to be used later\n *\n * @param status - staus indicator, this could be D - deleted, M - modified, or empty - new\n * @param filePath - relattive path to the file\n * @returns - SvgDiffResult\n */\nconst buildBeforeAndAfterSvg = async (status: string, filePath: string, previousFilePath: string = null): Promise<SvgDiffResult> => {\n const filename = path.basename(filePath);\n const previousFileName = previousFilePath && path.basename(previousFilePath);\n\n let beforeSvg = null;\n let afterSvg = null;\n\n switch(status) {\n case 'D':\n beforeSvg = await getFileContentsFromGit(filePath);\n break;\n\n case 'M':\n beforeSvg = await getFileContentsFromGit(filePath);\n afterSvg = await getFileContentsFromDisk(filename)\n break;\n\n case 'R':\n beforeSvg = await getFileContentsFromGit(previousFilePath);\n afterSvg = await getFileContentsFromDisk(filename)\n break;\n\n case '':\n afterSvg = await getFileContentsFromDisk(filename);\n break;\n }\n\n\n return {\n previousFileName,\n filename,\n status,\n before: beforeSvg,\n after: afterSvg,\n }\n}\n\n/**\n * Generates a Header, table, and description\n *\n * @param sectionName - name used for the Header\n * @param data - an array of {@link SVGDiffResult}\n * @param description - text to display under the table as a description\n * @returns The string of html used to represent a section e.g Added in the Changelog\n */\nconst buildHTMLSection = (sectionName: string, data: Array<SvgDiffResult>, description: string) => {\n const content = `<h2>${sectionName}</h2>`;\n const table: string = buildHTMLTable(data, sectionName == 'Renamed');\n const desc = `<p>${description}</p>`;\n\n return [content, table, desc].join('\\n');\n}\n\n\n/**\n * Generates a HTML Table\n *\n * @param data an array of {@link SvgDiffResult}\n * @returns - The html table markup\n */\nconst buildHTMLTable = (data: Array<SvgDiffResult>, isRenamed = false) => {\n const tableRows = data.map((diff) => `<tr>\n ${ isRenamed ? `<td>${diff.previousFileName}</td>` : ''}\n <td>${diff.filename}</td>\n <td>${diff.before || ''}</td>\n <td>${diff.after || ''}</td>\n</tr>`);\n\n const tableBody = `<tbody>\n ${tableRows.join('')}\n </tbody>`\n\n const table = `<table class=\"changelog-table\">\n <thead>\n <tr>\n ${ isRenamed ? `<td>Previous Filename</td>` : ''}\n <td>${ isRenamed ? `New Filename</td>` : 'FileName'}</td>\n <td>Before</td>\n <td>After</td>\n </tr>\n </thead>\n ${tableBody}\n</table>`\n\n return table;\n}\n\n/**\n * Creates the Changelog.html file based on the\n * latest data pulled from Figma\n *\n * @returns The results from SimpleGit.status()\n */\nconst createChangelogHTML = async (statusResults: StatusResult) => {\n const { modified, created, deleted, renamed } = await processStatusResults(statusResults);\n\n // Adding or Deleting will be Major version bump\n // Modifying will be a MINOR version bump\n\n const html = fs.readFileSync(path.join(scriptsDir, 'figma_icons', 'changelog-template.html'), 'utf8')\n .replace(/{{date}}/g, strDate)\n .replace(/{{modified}}/g, statusResults.modified.length.toString())\n .replace(/{{deleted}}/g, statusResults.deleted.length.toString())\n .replace(/{{created}}/g, statusResults.created.length.toString())\n .replace(/{{renamed}}/g, statusResults.renamed.length.toString())\n .replace(/{{content}}/g, [created, modified, deleted, renamed].join('\\n'));\n\n const changelogFilename = `${strDate}-changelog.html`\n const changelogPath = path.join(baseDir, 'changelogs');\n const fullChangelogFilename = path.join(changelogPath, changelogFilename)\n\n // Write file to changelogs directory\n fs.writeFileSync(fullChangelogFilename, html);\n\n const arrChangelogs = fs.readdirSync(changelogPath);\n\n const changelogRecords = [];\n let numberOfChangelogs = 0;\n\n arrChangelogs.reverse().forEach((filename, idx) => {\n if (path.extname(filename) === '.html') {\n if (idx < 10) {\n const changelogContent = fs.readFileSync(path.join(changelogPath, filename), 'utf8');\n const versionMatch = changelogContent.match(/Pine Icons - (v[\\d.]+)/);\n const version = versionMatch ? versionMatch[1] : '{{version}}';\n const date = filename.replace('-changelog.html', '');\n\n changelogRecords.push(`<div class=\"changelog-entry changelog-entry--${idx}\"><a class=\"changelog-entry__link\" href=\"changelogs/${filename}\"><p class=\"changelog-entry_date\">${date}</p><p class=\"changelog-entry_version\">${version}</p></a></div>`);\n }\n numberOfChangelogs++;\n }\n });\n log('Number of Changelog files found: ', detail(numberOfChangelogs));\n\n const indexHtml = fs.readFileSync(path.join(baseDir, 'src', 'index-template.html'), 'utf8')\n .replace(/{{changelogs}}/g, changelogRecords.join('\\n'));\n\n // Copy index.html file to www worker folder\n fs.writeFileSync(path.join(baseDir, 'src', 'index.html'), indexHtml);\n\n if ( fs.ensureDir(path.join(baseDir, 'www')) ) {\n const wwwChangelogPath = path.join(baseDir, 'www', 'changelogs');\n const wwwChangelogFile = path.join(wwwChangelogPath, changelogFilename);\n\n // Create Changelogs folder in `www` worker folder\n fs.mkdirSync(wwwChangelogPath, { recursive: true })\n fs.copyFileSync(fullChangelogFilename, wwwChangelogFile)\n }\n return statusResults;\n}\n\n/**\n * Creates JSON data file that contains additional\n * metadata\n *\n * @example\n * ```\n * {\n * \"category\": \"features\",\n * \"name\": \"access-key\",\n * \"tags\": [\n * \"access\",\n * \"key\",\n * \"license\",\n * \"object\",\n * \"password\",\n * \"secure\"\n * ]\n * }\n * ```\n *\n * @param icons - array of FigmaIcons\n * @param outputDir - output directory to save the JSON data\n */\nconst createJsonIconList = (icons: Array<FigmaIcon>, outputDir: string) => {\n try {\n icons = icons.sort((a, b) => {\n if (a.name < b.name) return -1;\n if (a.name > b.name) return 1;\n return 0;\n });\n\n const outputObj = {\n icons: icons.map((icon) => {\n let tags;\n\n if (icon.tags) {\n tags = icon.tags?.split(',').map((tag) => (tag.trim())).sort();\n }\n else {\n tags = icon.name.split('-');\n }\n\n return {\n name: icon.name,\n category: icon.frame || null,\n tags: tags.sort(),\n }\n }\n )};\n\n const srcJsonStr = JSON.stringify(outputObj, null, 2) + '\\n';\n fs.writeFileSync(path.join(outputDir, 'icon-data.json'), srcJsonStr);\n\n }\n catch (e) {\n logErrorMessage('createJsonIconList', e);\n }\n}\n\n/**\n * Reads the file contents located on disk\n * @param filename - the name of the file\n * @returns string\n */\nconst getFileContentsFromDisk = async (filename: string) => {\n return await fs.readFileSync(path.join(srcSvgBasePath, filename), 'utf8');\n}\n\n/**\n * Reads the file contents using git cat-file\n * See {@link https://git-scm.com/docs/git-cat-file} for more details\n *\n * @param filePath - the relative path to the file on disk\n * @returns string\n */\nconst getFileContentsFromGit = async (filePath: string) => {\n return await gitClient().catFile(['blob', `HEAD:${filePath}`]);\n}\n\n/**\n * Creates an instance of the SimpleGit object\n * @param options - list of SimpleGitOptions\n * @returns SimpleGit client\n */\nconst gitClient = (options: Partial<SimpleGitOptions> = { baseDir: srcSvgBasePath, binary: 'git' } ) => {\n return simpleGit(options);\n}\n\n/**\n * Logs an error message\n * @param methodName - the name of the method the error occurred in\n * @param err - the error\n */\nconst logErrorMessage = (methodName: string, err) => {\n log('Error in ' , detail(methodName), '\\n Message: ', error(err));\n}\n\n/**\n * Processes the SimpleGit status results and builds\n * the HTML Section data\n *\n * @param results - list of results from SimpleGit.status\n * @returns object - string html data for modifed, created, deleted\n */\nconst processStatusResults = async (results: StatusResult) => {\n const { modified: m, created: n, deleted: d, renamed: r } = results;\n\n let created, deleted, modified, renamed;\n\n if (n.length > 0) {\n created = await Promise.all(n.map((path) => { return buildBeforeAndAfterSvg('', path)}));\n created = buildHTMLSection('Added', created, 'What does \"Added\" mean? These are new icons introduced in this version. They will not appear in the \"before\" column because they did not exist in the previous version.');\n }\n\n if (d.length > 0) {\n deleted = await Promise.all(d.map((path) => ( buildBeforeAndAfterSvg('D', path))));\n deleted = buildHTMLSection('Deleted', deleted, 'What does \"Deleted\" mean? These icons were present in the previous version but have been removed. They will not appear in the \"after\" column because they no longer exist.');\n }\n\n if (m.length > 0) {\n modified = await Promise.all(m.map((path) => ( buildBeforeAndAfterSvg('M', path))));\n modified = buildHTMLSection('Modified', modified, 'What does \"Modified\" mean? These icons have changed since the previous version. Changes may be visual or in the underlying code. If visual, the difference will show in the \"before\" and \"after\" columns. If only the code changed, the icon may look the same but will still be listed as modified.');\n }\n\n if (r.length > 0) {\n renamed = await Promise.all(r.map((path) => ( buildBeforeAndAfterSvg('R', path.to, path.from))));\n renamed = buildHTMLSection('Renamed', renamed, 'What does \"Renamed\" mean? These icons existed in the previous version but were renamed. You will see both the previous and new filenames. There are no visual changes between the \"before\" and \"after\" columns.');\n }\n\n return { created, deleted, modified, renamed };\n}\n\n/**\n * Removes the tmp directory created during\n * the download process from the FigmaAPI\n *\n * @param config - FigmaIconConfig object\n */\nconst removeTmpDirectory = (config: FigmaIconConfig) => {\n log('Removing tmp directory')\n const tmpDir = path.join(config.downloadPath, '..');\n fs.rmSync(tmpDir, { force: true, recursive: true });\n}\n"]}
1
+ {"version":3,"file":"finalize-export.js","sourceRoot":"","sources":["../../../scripts/figma_icons/finalize-export.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAEpD,OAAO,KAAK,MAAM,OAAO,CAAC,CAAC,qCAAqC;AAChE,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,EAAE,MAAM,UAAU,CAAC;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chalk'; // Terminal string styling done right\nimport path from 'path';\nimport fs from 'fs-extra';\nimport { exec } from 'node:child_process';\nimport { simpleGit, SimpleGitOptions, StatusResult } from 'simple-git';\nimport { FigmaIcon, FigmaIconConfig, SvgDiffResult } from './types';\n\nconst info = chalk.white;\nconst error = chalk.red.bold;\nconst detail = chalk.yellowBright;\nconst log = console.log;\n\nconst baseDir = process.cwd();\nconst scriptsDir = path.join(baseDir, 'scripts');\nconst srcDir = path.join(baseDir, 'src');\nconst srcSvgBasePath = path.join(srcDir, 'svg');\n\nconst date = new Date();\nconst strDate = [date.getFullYear().toString(), (date.getMonth() + 1).toString().padStart(2,'0'), date.getDate().toString().padStart(2, '0')].join('-');\n\n\nexport const run = async(config, data, rootDir: string) => {\n const git = gitClient();\n await git.add(srcSvgBasePath);\n\n const statusResults: StatusResult = await git.status([srcSvgBasePath]);\n const filesChanged = statusResults.files;\n\n // Even if there are no changes, we still want to update the index.html\n if (filesChanged.length <= 0) {\n log(detail('No SVG changes were found. Proceeding to update index.html...'))\n\n removeTmpDirectory(config);\n\n return;\n }\n\n log('Copying collections...');\n await collectionCopy(rootDir);\n\n log(info('Creating JSON Icon List'));\n createJsonIconList(data.icons, srcDir);\n\n log(info('Calling createChangelogHTML'));\n await createChangelogHTML(statusResults);\n\n // restore staged files in case of failure\n exec(`git restore --staged ${srcSvgBasePath}`)\n}\n\n/**\n *\n * Helper Methods\n *\n *\n */\n\n/**\n * Reads the file contents to read the Svg File and stores\n * into a property to be used later\n *\n * @param status - staus indicator, this could be D - deleted, M - modified, or empty - new\n * @param filePath - relattive path to the file\n * @returns - SvgDiffResult\n */\nconst buildBeforeAndAfterSvg = async (status: string, filePath: string, previousFilePath: string = null): Promise<SvgDiffResult> => {\n const filename = path.basename(filePath);\n const previousFileName = previousFilePath && path.basename(previousFilePath);\n\n let beforeSvg = null;\n let afterSvg = null;\n\n switch(status) {\n case 'D':\n beforeSvg = await getFileContentsFromGit(filePath);\n break;\n\n case 'M':\n beforeSvg = await getFileContentsFromGit(filePath);\n afterSvg = await getFileContentsFromDisk(filename)\n break;\n\n case 'R':\n beforeSvg = await getFileContentsFromGit(previousFilePath);\n afterSvg = await getFileContentsFromDisk(filename)\n break;\n\n case '':\n afterSvg = await getFileContentsFromDisk(filename);\n break;\n }\n\n\n return {\n previousFileName,\n filename,\n status,\n before: beforeSvg,\n after: afterSvg,\n }\n}\n\n/**\n * Generates a Header, table, and description\n *\n * @param sectionName - name used for the Header\n * @param data - an array of {@link SVGDiffResult}\n * @param description - text to display under the table as a description\n * @returns The string of html used to represent a section e.g Added in the Changelog\n */\nconst buildHTMLSection = (sectionName: string, data: Array<SvgDiffResult>, description: string) => {\n const content = `<h2>${sectionName}</h2>`;\n const table: string = buildHTMLTable(data, sectionName == 'Renamed');\n const desc = `<p>${description}</p>`;\n\n return [content, table, desc].join('\\n');\n}\n\n\n/**\n * Generates a HTML Table\n *\n * @param data an array of {@link SvgDiffResult}\n * @returns - The html table markup\n */\nconst buildHTMLTable = (data: Array<SvgDiffResult>, isRenamed = false) => {\n const tableRows = data.map((diff) => `<tr>\n ${ isRenamed ? `<td>${diff.previousFileName}</td>` : ''}\n <td>${diff.filename}</td>\n <td>${diff.before || ''}</td>\n <td>${diff.after || ''}</td>\n</tr>`);\n\n const tableBody = `<tbody>\n ${tableRows.join('')}\n </tbody>`\n\n const table = `<table class=\"changelog-table\">\n <thead>\n <tr>\n ${ isRenamed ? `<td>Previous Filename</td>` : ''}\n <td>${ isRenamed ? `New Filename</td>` : 'FileName'}</td>\n <td>Before</td>\n <td>After</td>\n </tr>\n </thead>\n ${tableBody}\n</table>`\n\n return table;\n}\n\n/**\n * Creates the Changelog.html file based on the\n * latest data pulled from Figma\n *\n * @returns The results from SimpleGit.status()\n */\nconst createChangelogHTML = async (statusResults: StatusResult) => {\n const { modified, created, deleted, renamed } = await processStatusResults(statusResults);\n\n // Adding or Deleting will be Major version bump\n // Modifying will be a MINOR version bump\n\n const html = fs.readFileSync(path.join(scriptsDir, 'figma_icons', 'changelog-template.html'), 'utf8')\n .replace(/{{date}}/g, strDate)\n .replace(/{{modified}}/g, statusResults.modified.length.toString())\n .replace(/{{deleted}}/g, statusResults.deleted.length.toString())\n .replace(/{{created}}/g, statusResults.created.length.toString())\n .replace(/{{renamed}}/g, statusResults.renamed.length.toString())\n .replace(/{{content}}/g, [created, modified, deleted, renamed].join('\\n'));\n\n const changelogFilename = `${strDate}-changelog.html`\n const changelogPath = path.join(baseDir, 'changelogs');\n const fullChangelogFilename = path.join(changelogPath, changelogFilename)\n\n // Write file to changelogs directory\n fs.writeFileSync(fullChangelogFilename, html);\n\n const arrChangelogs = fs.readdirSync(changelogPath);\n\n const changelogRecords = [];\n let numberOfChangelogs = 0;\n\n arrChangelogs.reverse().forEach((filename, idx) => {\n if (path.extname(filename) === '.html') {\n if (idx < 10) {\n const changelogContent = fs.readFileSync(path.join(changelogPath, filename), 'utf8');\n const versionMatch = changelogContent.match(/Pine Icons - (v[\\d.]+)/);\n const version = versionMatch ? versionMatch[1] : '{{version}}';\n const date = filename.replace('-changelog.html', '');\n\n changelogRecords.push(`<div class=\"changelog-entry changelog-entry--${idx}\"><a class=\"changelog-entry__link\" href=\"changelogs/${filename}\"><p class=\"changelog-entry__date\">${date}</p><p class=\"changelog-entry__version\">${version}</p></a></div>`);\n }\n numberOfChangelogs++;\n }\n });\n log('Number of Changelog files found: ', detail(numberOfChangelogs));\n\n const indexHtml = fs.readFileSync(path.join(baseDir, 'src', 'index-template.html'), 'utf8')\n .replace(/{{changelogs}}/g, changelogRecords.join('\\n'));\n\n // Copy index.html file to www worker folder\n fs.writeFileSync(path.join(baseDir, 'src', 'index.html'), indexHtml);\n\n if ( fs.ensureDir(path.join(baseDir, 'www')) ) {\n const wwwChangelogPath = path.join(baseDir, 'www', 'changelogs');\n const wwwChangelogFile = path.join(wwwChangelogPath, changelogFilename);\n\n // Create Changelogs folder in `www` worker folder\n fs.mkdirSync(wwwChangelogPath, { recursive: true })\n fs.copyFileSync(fullChangelogFilename, wwwChangelogFile)\n }\n return statusResults;\n}\n\n/**\n * Creates JSON data file that contains additional\n * metadata\n *\n * @example\n * ```\n * {\n * \"category\": \"features\",\n * \"name\": \"access-key\",\n * \"tags\": [\n * \"access\",\n * \"key\",\n * \"license\",\n * \"object\",\n * \"password\",\n * \"secure\"\n * ]\n * }\n * ```\n *\n * @param icons - array of FigmaIcons\n * @param outputDir - output directory to save the JSON data\n */\nconst createJsonIconList = (icons: Array<FigmaIcon>, outputDir: string) => {\n try {\n icons = icons.sort((a, b) => {\n if (a.name < b.name) return -1;\n if (a.name > b.name) return 1;\n return 0;\n });\n\n const outputObj = {\n icons: icons.map((icon) => {\n let tags;\n\n if (icon.tags) {\n tags = icon.tags?.split(',').map((tag) => (tag.trim())).sort();\n }\n else {\n tags = icon.name.split('-');\n }\n\n return {\n name: icon.name,\n category: icon.frame || null,\n tags: tags.sort(),\n }\n }\n )};\n\n const srcJsonStr = JSON.stringify(outputObj, null, 2) + '\\n';\n fs.writeFileSync(path.join(outputDir, 'icon-data.json'), srcJsonStr);\n\n }\n catch (e) {\n logErrorMessage('createJsonIconList', e);\n }\n}\n\n/**\n * Reads the file contents located on disk\n * @param filename - the name of the file\n * @returns string\n */\nconst getFileContentsFromDisk = async (filename: string) => {\n return await fs.readFileSync(path.join(srcSvgBasePath, filename), 'utf8');\n}\n\n/**\n * Reads the file contents using git cat-file\n * See {@link https://git-scm.com/docs/git-cat-file} for more details\n *\n * @param filePath - the relative path to the file on disk\n * @returns string\n */\nconst getFileContentsFromGit = async (filePath: string) => {\n return await gitClient().catFile(['blob', `HEAD:${filePath}`]);\n}\n\n/**\n * Creates an instance of the SimpleGit object\n * @param options - list of SimpleGitOptions\n * @returns SimpleGit client\n */\nconst gitClient = (options: Partial<SimpleGitOptions> = { baseDir: srcSvgBasePath, binary: 'git' } ) => {\n return simpleGit(options);\n}\n\n/**\n * Logs an error message\n * @param methodName - the name of the method the error occurred in\n * @param err - the error\n */\nconst logErrorMessage = (methodName: string, err) => {\n log('Error in ' , detail(methodName), '\\n Message: ', error(err));\n}\n\n/**\n * Processes the SimpleGit status results and builds\n * the HTML Section data\n *\n * @param results - list of results from SimpleGit.status\n * @returns object - string html data for modifed, created, deleted\n */\nconst processStatusResults = async (results: StatusResult) => {\n const { modified: m, created: n, deleted: d, renamed: r } = results;\n\n let created, deleted, modified, renamed;\n\n if (n.length > 0) {\n created = await Promise.all(n.map((path) => { return buildBeforeAndAfterSvg('', path)}));\n created = buildHTMLSection('Added', created, 'What does \"Added\" mean? These are new icons introduced in this version. They will not appear in the \"before\" column because they did not exist in the previous version.');\n }\n\n if (d.length > 0) {\n deleted = await Promise.all(d.map((path) => ( buildBeforeAndAfterSvg('D', path))));\n deleted = buildHTMLSection('Deleted', deleted, 'What does \"Deleted\" mean? These icons were present in the previous version but have been removed. They will not appear in the \"after\" column because they no longer exist.');\n }\n\n if (m.length > 0) {\n modified = await Promise.all(m.map((path) => ( buildBeforeAndAfterSvg('M', path))));\n modified = buildHTMLSection('Modified', modified, 'What does \"Modified\" mean? These icons have changed since the previous version. Changes may be visual or in the underlying code. If visual, the difference will show in the \"before\" and \"after\" columns. If only the code changed, the icon may look the same but will still be listed as modified.');\n }\n\n if (r.length > 0) {\n renamed = await Promise.all(r.map((path) => ( buildBeforeAndAfterSvg('R', path.to, path.from))));\n renamed = buildHTMLSection('Renamed', renamed, 'What does \"Renamed\" mean? These icons existed in the previous version but were renamed. You will see both the previous and new filenames. There are no visual changes between the \"before\" and \"after\" columns.');\n }\n\n return { created, deleted, modified, renamed };\n}\n\n/**\n * Removes the tmp directory created during\n * the download process from the FigmaAPI\n *\n * @param config - FigmaIconConfig object\n */\nconst removeTmpDirectory = (config: FigmaIconConfig) => {\n log('Removing tmp directory')\n const tmpDir = path.join(config.downloadPath, '..');\n fs.rmSync(tmpDir, { force: true, recursive: true });\n}\n"]}
package/icons/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- /* pds-icons v9.3.1, Types */
1
+ /* pds-icons v9.4.0, Types */
2
2
 
3
3
  export declare var accessKey: string
4
4
  export declare var activity: string
package/icons/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /* pds-icons v9.3.1, CommonJs */
1
+ /* pds-icons v9.4.0, CommonJs */
2
2
 
3
3
  exports.accessKey = "data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' class='pdsicon'><path fill-rule='evenodd' d='M8 9a7 7 0 1 1 6.06 6.937 14 14 0 0 0-.514-.062l-.01.008a9 9 0 0 0-.25.245l-1.579 1.58A1 1 0 0 1 11 18h-1v1a1 1 0 0 1-1 1H8v1a1 1 0 0 1-1 1H4.568c-.252 0-.498 0-.706-.017a2 2 0 0 1-.77-.201 2 2 0 0 1-.874-.874 2 2 0 0 1-.201-.77C2 19.93 2 19.684 2 19.432v-1.82c0-.19-.001-.43.055-.665a2 2 0 0 1 .24-.578c.126-.206.296-.375.43-.509l.036-.036 5.111-5.11c.126-.126.196-.197.245-.25l.008-.01-.003-.045c-.01-.103-.03-.244-.06-.469A7 7 0 0 1 8 9m0 9v-1a1 1 0 0 1 1-1h1.586l1.286-1.286.052-.053c.18-.18.398-.4.646-.539a1.8 1.8 0 0 1 .693-.234c.193-.027.382-.014.52 0 .145.014.324.038.525.065l.018.002q.33.045.674.045a5 5 0 1 0-4.955-4.326l.002.018c.027.201.051.38.065.524.014.14.027.328 0 .521-.038.265-.104.46-.234.693-.14.248-.359.466-.54.646l-.052.052-5.11 5.11a6 6 0 0 0-.171.175l-.002.002v.004a6 6 0 0 0-.003.244V19.4a8 8 0 0 0 .011.588l.014.002c.116.01.278.01.575.01H6v-1a1 1 0 0 1 1-1zm6-11a1 1 0 0 1 1-1c.766 0 1.536.293 2.121.879.586.585.879 1.355.879 2.12A1 1 0 1 1 16 9a1 1 0 0 0-.293-.707A1 1 0 0 0 15 8a1 1 0 0 1-1-1'/></svg>"
4
4
  exports.activity = "data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' class='pdsicon'><path fill-rule='evenodd' d='M9 2a1 1 0 0 1 .949.684L15 17.838l2.051-6.154A1 1 0 0 1 18 11h4a1 1 0 1 1 0 2h-3.28l-2.771 8.316a1 1 0 0 1-1.898 0L9 6.162l-2.051 6.154A1 1 0 0 1 6 13H2a1 1 0 1 1 0-2h3.28L8.05 2.684A1 1 0 0 1 9 2'/></svg>"
package/icons/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- /* pds-icons v9.3.1, ES Modules */
1
+ /* pds-icons v9.4.0, ES Modules */
2
2
 
3
3
  export const accessKey = "data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' class='pdsicon'><path fill-rule='evenodd' d='M8 9a7 7 0 1 1 6.06 6.937 14 14 0 0 0-.514-.062l-.01.008a9 9 0 0 0-.25.245l-1.579 1.58A1 1 0 0 1 11 18h-1v1a1 1 0 0 1-1 1H8v1a1 1 0 0 1-1 1H4.568c-.252 0-.498 0-.706-.017a2 2 0 0 1-.77-.201 2 2 0 0 1-.874-.874 2 2 0 0 1-.201-.77C2 19.93 2 19.684 2 19.432v-1.82c0-.19-.001-.43.055-.665a2 2 0 0 1 .24-.578c.126-.206.296-.375.43-.509l.036-.036 5.111-5.11c.126-.126.196-.197.245-.25l.008-.01-.003-.045c-.01-.103-.03-.244-.06-.469A7 7 0 0 1 8 9m0 9v-1a1 1 0 0 1 1-1h1.586l1.286-1.286.052-.053c.18-.18.398-.4.646-.539a1.8 1.8 0 0 1 .693-.234c.193-.027.382-.014.52 0 .145.014.324.038.525.065l.018.002q.33.045.674.045a5 5 0 1 0-4.955-4.326l.002.018c.027.201.051.38.065.524.014.14.027.328 0 .521-.038.265-.104.46-.234.693-.14.248-.359.466-.54.646l-.052.052-5.11 5.11a6 6 0 0 0-.171.175l-.002.002v.004a6 6 0 0 0-.003.244V19.4a8 8 0 0 0 .011.588l.014.002c.116.01.278.01.575.01H6v-1a1 1 0 0 1 1-1zm6-11a1 1 0 0 1 1-1c.766 0 1.536.293 2.121.879.586.585.879 1.355.879 2.12A1 1 0 1 1 16 9a1 1 0 0 0-.293-.707A1 1 0 0 0 15 8a1 1 0 0 1-1-1'/></svg>"
4
4
  export const activity = "data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' class='pdsicon'><path fill-rule='evenodd' d='M9 2a1 1 0 0 1 .949.684L15 17.838l2.051-6.154A1 1 0 0 1 18 11h4a1 1 0 1 1 0 2h-3.28l-2.771 8.316a1 1 0 0 1-1.898 0L9 6.162l-2.051 6.154A1 1 0 0 1 6 13H2a1 1 0 1 1 0-2h3.28L8.05 2.684A1 1 0 0 1 9 2'/></svg>"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pine-ds/icons/icons",
3
- "version": "9.3.1",
3
+ "version": "9.4.0",
4
4
  "module": "index.mjs",
5
5
  "main": "index.js",
6
6
  "typings": "index.d.ts",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pine-ds/icons",
3
- "version": "9.4.0",
3
+ "version": "9.4.1",
4
4
  "license": "MIT",
5
5
  "description": "Pine Icon Library",
6
6
  "author": " Kajabi Design System Services",