@catalystsoftware/ui 1.0.14 → 1.0.16

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.
@@ -20,7 +20,7 @@ const SELECTED_PRESET = 'MODERN'
20
20
  // Serif: Merriweather | Playfair Display | Lora | Source Serif 4 | Libre Baskerville | Space Grotesk | PT Serif | Fraunces | Cormorant Garamond | Crimson Pro | EB Garamond | Newsreader | DM Serif Display | Prata | Bodoni Moda | Young Serif
21
21
  // Mono: JetBrains Mono | Fira Code | Geist Mono | IBM Plex Mono | Roboto Mono | Space Mono | Source Code Pro | Ubuntu Mono | Red Hat Mono | Nanum Gothic Coding | Cutive Mono
22
22
  // Sand-Serif ( display & experimental ): Sora | Bricolage Grotesque | Clash Display | Syne | Unbounded | Cabinet Grotesk | Righteous | Lexend | Kanit
23
- const SELECTED_FONT = 'Geist'
23
+ const SELECTED_FONT = 'Fira Code'
24
24
 
25
25
  // ==================================================================== THEME ============================================================================
26
26
  // Themes: marshmallow | art-deco | vs-code | spotify | summer | material-design | marvel | valorant | ghibli-studio | modern-minimal | nature | elegant-luxury | neo-brutalism | pastel-dreams | clean-slate | midnight-bloom | sunset-horizon | claude | caffeine | corporate | slack | perplexity | neutral | red | rose | orange | green | blue | yellow | violet | amber | lime | emerald | fuchsia | cyan | indigo | lime | darkBlue
@@ -20,7 +20,7 @@ const SELECTED_PRESET = 'MODERN'
20
20
  // Serif: Merriweather | Playfair Display | Lora | Source Serif 4 | Libre Baskerville | Space Grotesk | PT Serif | Fraunces | Cormorant Garamond | Crimson Pro | EB Garamond | Newsreader | DM Serif Display | Prata | Bodoni Moda | Young Serif
21
21
  // Mono: JetBrains Mono | Fira Code | Geist Mono | IBM Plex Mono | Roboto Mono | Space Mono | Source Code Pro | Ubuntu Mono | Red Hat Mono | Nanum Gothic Coding | Cutive Mono
22
22
  // Sand-Serif ( display & experimental ): Sora | Bricolage Grotesque | Clash Display | Syne | Unbounded | Cabinet Grotesk | Righteous | Lexend | Kanit
23
- const SELECTED_FONT = 'Geist'
23
+ const SELECTED_FONT = 'Fira Code'
24
24
 
25
25
  // ==================================================================== THEME ============================================================================
26
26
  // Themes: marshmallow | art-deco | vs-code | spotify | summer | material-design | marvel | valorant | ghibli-studio | modern-minimal | nature | elegant-luxury | neo-brutalism | pastel-dreams | clean-slate | midnight-bloom | sunset-horizon | claude | caffeine | corporate | slack | perplexity | neutral | red | rose | orange | green | blue | yellow | violet | amber | lime | emerald | fuchsia | cyan | indigo | lime | darkBlue
package/dist/index.js CHANGED
@@ -6006,10 +6006,10 @@ var require_typescript = __commonJS((exports, module) => {
6006
6006
  Debug2.loggingHost.log(level, s);
6007
6007
  }
6008
6008
  }
6009
- function log2(s) {
6009
+ function log(s) {
6010
6010
  logMessage(3, s);
6011
6011
  }
6012
- Debug2.log = log2;
6012
+ Debug2.log = log;
6013
6013
  ((_log) => {
6014
6014
  function error2(s) {
6015
6015
  logMessage(1, s);
@@ -6019,15 +6019,15 @@ var require_typescript = __commonJS((exports, module) => {
6019
6019
  logMessage(2, s);
6020
6020
  }
6021
6021
  _log.warn = warn;
6022
- function log22(s) {
6022
+ function log2(s) {
6023
6023
  logMessage(3, s);
6024
6024
  }
6025
- _log.log = log22;
6025
+ _log.log = log2;
6026
6026
  function trace2(s) {
6027
6027
  logMessage(4, s);
6028
6028
  }
6029
6029
  _log.trace = trace2;
6030
- })(log2 = Debug2.log || (Debug2.log = {}));
6030
+ })(log = Debug2.log || (Debug2.log = {}));
6031
6031
  const assertionCache = {};
6032
6032
  function getAssertionLevel() {
6033
6033
  return currentAssertionLevel;
@@ -108940,8 +108940,8 @@ ${lanes.join(`
108940
108940
  WatchLogLevel2[WatchLogLevel2["Verbose"] = 2] = "Verbose";
108941
108941
  return WatchLogLevel2;
108942
108942
  })(WatchLogLevel || {});
108943
- function getWatchFactory(host, watchLogLevel, log2, getDetailWatchInfo2) {
108944
- setSysLog(watchLogLevel === 2 ? log2 : noop);
108943
+ function getWatchFactory(host, watchLogLevel, log, getDetailWatchInfo2) {
108944
+ setSysLog(watchLogLevel === 2 ? log : noop);
108945
108945
  const plainInvokeFactory = {
108946
108946
  watchFile: (file, callback, pollingInterval, options) => host.watchFile(file, callback, pollingInterval, options),
108947
108947
  watchDirectory: (directory, callback, flags, options) => host.watchDirectory(directory, callback, (flags & 1) !== 0, options)
@@ -108969,47 +108969,47 @@ ${lanes.join(`
108969
108969
  return typeof host.useCaseSensitiveFileNames === "boolean" ? host.useCaseSensitiveFileNames : host.useCaseSensitiveFileNames();
108970
108970
  }
108971
108971
  function createExcludeWatcherWithLogging(file, flags, options, detailInfo1, detailInfo2) {
108972
- log2(`ExcludeWatcher:: Added:: ${getWatchInfo(file, flags, options, detailInfo1, detailInfo2, getDetailWatchInfo2)}`);
108972
+ log(`ExcludeWatcher:: Added:: ${getWatchInfo(file, flags, options, detailInfo1, detailInfo2, getDetailWatchInfo2)}`);
108973
108973
  return {
108974
- close: () => log2(`ExcludeWatcher:: Close:: ${getWatchInfo(file, flags, options, detailInfo1, detailInfo2, getDetailWatchInfo2)}`)
108974
+ close: () => log(`ExcludeWatcher:: Close:: ${getWatchInfo(file, flags, options, detailInfo1, detailInfo2, getDetailWatchInfo2)}`)
108975
108975
  };
108976
108976
  }
108977
108977
  function createFileWatcherWithLogging(file, cb, flags, options, detailInfo1, detailInfo2) {
108978
- log2(`FileWatcher:: Added:: ${getWatchInfo(file, flags, options, detailInfo1, detailInfo2, getDetailWatchInfo2)}`);
108978
+ log(`FileWatcher:: Added:: ${getWatchInfo(file, flags, options, detailInfo1, detailInfo2, getDetailWatchInfo2)}`);
108979
108979
  const watcher = triggerInvokingFactory.watchFile(file, cb, flags, options, detailInfo1, detailInfo2);
108980
108980
  return {
108981
108981
  close: () => {
108982
- log2(`FileWatcher:: Close:: ${getWatchInfo(file, flags, options, detailInfo1, detailInfo2, getDetailWatchInfo2)}`);
108982
+ log(`FileWatcher:: Close:: ${getWatchInfo(file, flags, options, detailInfo1, detailInfo2, getDetailWatchInfo2)}`);
108983
108983
  watcher.close();
108984
108984
  }
108985
108985
  };
108986
108986
  }
108987
108987
  function createDirectoryWatcherWithLogging(file, cb, flags, options, detailInfo1, detailInfo2) {
108988
108988
  const watchInfo = `DirectoryWatcher:: Added:: ${getWatchInfo(file, flags, options, detailInfo1, detailInfo2, getDetailWatchInfo2)}`;
108989
- log2(watchInfo);
108989
+ log(watchInfo);
108990
108990
  const start = timestamp();
108991
108991
  const watcher = triggerInvokingFactory.watchDirectory(file, cb, flags, options, detailInfo1, detailInfo2);
108992
108992
  const elapsed = timestamp() - start;
108993
- log2(`Elapsed:: ${elapsed}ms ${watchInfo}`);
108993
+ log(`Elapsed:: ${elapsed}ms ${watchInfo}`);
108994
108994
  return {
108995
108995
  close: () => {
108996
108996
  const watchInfo2 = `DirectoryWatcher:: Close:: ${getWatchInfo(file, flags, options, detailInfo1, detailInfo2, getDetailWatchInfo2)}`;
108997
- log2(watchInfo2);
108997
+ log(watchInfo2);
108998
108998
  const start2 = timestamp();
108999
108999
  watcher.close();
109000
109000
  const elapsed2 = timestamp() - start2;
109001
- log2(`Elapsed:: ${elapsed2}ms ${watchInfo2}`);
109001
+ log(`Elapsed:: ${elapsed2}ms ${watchInfo2}`);
109002
109002
  }
109003
109003
  };
109004
109004
  }
109005
109005
  function createTriggerLoggingAddWatch(key) {
109006
109006
  return (file, cb, flags, options, detailInfo1, detailInfo2) => plainInvokeFactory[key].call(undefined, file, (...args) => {
109007
109007
  const triggerredInfo = `${key === "watchFile" ? "FileWatcher" : "DirectoryWatcher"}:: Triggered with ${args[0]} ${args[1] !== undefined ? args[1] : ""}:: ${getWatchInfo(file, flags, options, detailInfo1, detailInfo2, getDetailWatchInfo2)}`;
109008
- log2(triggerredInfo);
109008
+ log(triggerredInfo);
109009
109009
  const start = timestamp();
109010
109010
  cb.call(undefined, ...args);
109011
109011
  const elapsed = timestamp() - start;
109012
- log2(`Elapsed:: ${elapsed}ms ${triggerredInfo}`);
109012
+ log(`Elapsed:: ${elapsed}ms ${triggerredInfo}`);
109013
109013
  }, flags, options, detailInfo1, detailInfo2);
109014
109014
  }
109015
109015
  function getWatchInfo(file, flags, options, detailInfo1, detailInfo2, getDetailWatchInfo3) {
@@ -119659,7 +119659,7 @@ ${lanes.join(`
119659
119659
  }
119660
119660
  return;
119661
119661
  }
119662
- function discoverTypings(host, log2, fileNames, projectRootPath, safeList, packageNameToTypingLocation, typeAcquisition, unresolvedImports, typesRegistry, compilerOptions) {
119662
+ function discoverTypings(host, log, fileNames, projectRootPath, safeList, packageNameToTypingLocation, typeAcquisition, unresolvedImports, typesRegistry, compilerOptions) {
119663
119663
  if (!typeAcquisition || !typeAcquisition.enable) {
119664
119664
  return { cachedTypingPaths: [], newTypingNames: [], filesToWatch: [] };
119665
119665
  }
@@ -119691,8 +119691,8 @@ ${lanes.join(`
119691
119691
  }
119692
119692
  for (const excludeTypingName of exclude) {
119693
119693
  const didDelete = inferredTypings.delete(excludeTypingName);
119694
- if (didDelete && log2)
119695
- log2(`Typing for ${excludeTypingName} is in exclude list, will be ignored.`);
119694
+ if (didDelete && log)
119695
+ log(`Typing for ${excludeTypingName} is in exclude list, will be ignored.`);
119696
119696
  }
119697
119697
  packageNameToTypingLocation.forEach((typing, name) => {
119698
119698
  const registryEntry = typesRegistry.get(name);
@@ -119710,8 +119710,8 @@ ${lanes.join(`
119710
119710
  }
119711
119711
  });
119712
119712
  const result = { cachedTypingPaths, newTypingNames, filesToWatch };
119713
- if (log2)
119714
- log2(`Finished typings discovery:${stringifyIndented(result)}`);
119713
+ if (log)
119714
+ log(`Finished typings discovery:${stringifyIndented(result)}`);
119715
119715
  return result;
119716
119716
  function addInferredTyping(typingName) {
119717
119717
  if (!inferredTypings.has(typingName)) {
@@ -119719,8 +119719,8 @@ ${lanes.join(`
119719
119719
  }
119720
119720
  }
119721
119721
  function addInferredTypings(typingNames, message) {
119722
- if (log2)
119723
- log2(`${message}: ${JSON.stringify(typingNames)}`);
119722
+ if (log)
119723
+ log(`${message}: ${JSON.stringify(typingNames)}`);
119724
119724
  forEach(typingNames, addInferredTyping);
119725
119725
  }
119726
119726
  function getTypingNames(projectRootPath2, manifestName, modulesDirName, filesToWatch2) {
@@ -119747,8 +119747,8 @@ ${lanes.join(`
119747
119747
  const isScoped = pathComponents2[pathComponents2.length - 3][0] === "@";
119748
119748
  return isScoped && toFileNameLowerCase(pathComponents2[pathComponents2.length - 4]) === modulesDirName || !isScoped && toFileNameLowerCase(pathComponents2[pathComponents2.length - 3]) === modulesDirName;
119749
119749
  });
119750
- if (log2)
119751
- log2(`Searching for typing names in ${packagesFolderPath}; all files: ${JSON.stringify(dependencyManifestNames)}`);
119750
+ if (log)
119751
+ log(`Searching for typing names in ${packagesFolderPath}; all files: ${JSON.stringify(dependencyManifestNames)}`);
119752
119752
  for (const manifestPath2 of dependencyManifestNames) {
119753
119753
  const normalizedFileName = normalizePath(manifestPath2);
119754
119754
  const result2 = readConfigFile(normalizedFileName, (path) => host.readFile(path));
@@ -119760,12 +119760,12 @@ ${lanes.join(`
119760
119760
  if (ownTypes) {
119761
119761
  const absolutePath = getNormalizedAbsolutePath(ownTypes, getDirectoryPath(normalizedFileName));
119762
119762
  if (host.fileExists(absolutePath)) {
119763
- if (log2)
119764
- log2(` Package '${manifest2.name}' provides its own types.`);
119763
+ if (log)
119764
+ log(` Package '${manifest2.name}' provides its own types.`);
119765
119765
  inferredTypings.set(manifest2.name, absolutePath);
119766
119766
  } else {
119767
- if (log2)
119768
- log2(` Package '${manifest2.name}' provides its own types but they are missing.`);
119767
+ if (log)
119768
+ log(` Package '${manifest2.name}' provides its own types but they are missing.`);
119769
119769
  }
119770
119770
  } else {
119771
119771
  packageNames.push(manifest2.name);
@@ -119786,8 +119786,8 @@ ${lanes.join(`
119786
119786
  }
119787
119787
  const hasJsxFile = some(fileNames2, (f) => fileExtensionIs(f, ".jsx"));
119788
119788
  if (hasJsxFile) {
119789
- if (log2)
119790
- log2(`Inferred 'react' typings due to presence of '.jsx' extension`);
119789
+ if (log)
119790
+ log(`Inferred 'react' typings due to presence of '.jsx' extension`);
119791
119791
  addInferredTyping("react");
119792
119792
  }
119793
119793
  }
@@ -132299,7 +132299,7 @@ ${newComment.split(`
132299
132299
  const cancellationToken = host.getCancellationToken ? new CancellationTokenObject(host.getCancellationToken()) : NoopCancellationToken;
132300
132300
  const currentDirectory = host.getCurrentDirectory();
132301
132301
  maybeSetLocalizedDiagnosticMessages((_a = host.getLocalizedDiagnosticMessages) == null ? undefined : _a.bind(host));
132302
- function log2(message) {
132302
+ function log(message) {
132303
132303
  if (host.log) {
132304
132304
  host.log(message);
132305
132305
  }
@@ -132314,7 +132314,7 @@ ${newComment.split(`
132314
132314
  readFile: maybeBind(host, host.readFile),
132315
132315
  getDocumentPositionMapper: maybeBind(host, host.getDocumentPositionMapper),
132316
132316
  getSourceFileLike: maybeBind(host, host.getSourceFileLike),
132317
- log: log2
132317
+ log
132318
132318
  });
132319
132319
  function getValidSourceFile(fileName) {
132320
132320
  const sourceFile = program.getSourceFile(fileName);
@@ -132346,7 +132346,7 @@ ${newComment.split(`
132346
132346
  }
132347
132347
  const typeRootsVersion = host.getTypeRootsVersion ? host.getTypeRootsVersion() : 0;
132348
132348
  if (lastTypesRootVersion !== typeRootsVersion) {
132349
- log2("TypeRoots version has changed; provide new program");
132349
+ log("TypeRoots version has changed; provide new program");
132350
132350
  program = undefined;
132351
132351
  lastTypesRootVersion = typeRootsVersion;
132352
132352
  }
@@ -132701,15 +132701,15 @@ ${newComment.split(`
132701
132701
  includeCompletionsWithInsertText: options.includeCompletionsWithInsertText || options.includeInsertTextCompletions
132702
132702
  };
132703
132703
  synchronizeHostData();
132704
- return ts_Completions_exports.getCompletionsAtPosition(host, program, log2, getValidSourceFile(fileName), position, fullPreferences, options.triggerCharacter, options.triggerKind, cancellationToken, formattingSettings && ts_formatting_exports.getFormatContext(formattingSettings, host), options.includeSymbol);
132704
+ return ts_Completions_exports.getCompletionsAtPosition(host, program, log, getValidSourceFile(fileName), position, fullPreferences, options.triggerCharacter, options.triggerKind, cancellationToken, formattingSettings && ts_formatting_exports.getFormatContext(formattingSettings, host), options.includeSymbol);
132705
132705
  }
132706
132706
  function getCompletionEntryDetails2(fileName, position, name, formattingOptions, source, preferences = emptyOptions, data) {
132707
132707
  synchronizeHostData();
132708
- return ts_Completions_exports.getCompletionEntryDetails(program, log2, getValidSourceFile(fileName), position, { name, source, data }, host, formattingOptions && ts_formatting_exports.getFormatContext(formattingOptions, host), preferences, cancellationToken);
132708
+ return ts_Completions_exports.getCompletionEntryDetails(program, log, getValidSourceFile(fileName), position, { name, source, data }, host, formattingOptions && ts_formatting_exports.getFormatContext(formattingOptions, host), preferences, cancellationToken);
132709
132709
  }
132710
132710
  function getCompletionEntrySymbol2(fileName, position, name, source, preferences = emptyOptions) {
132711
132711
  synchronizeHostData();
132712
- return ts_Completions_exports.getCompletionEntrySymbol(program, log2, getValidSourceFile(fileName), position, { name, source }, host, preferences);
132712
+ return ts_Completions_exports.getCompletionEntrySymbol(program, log, getValidSourceFile(fileName), position, { name, source }, host, preferences);
132713
132713
  }
132714
132714
  function getQuickInfoAtPosition(fileName, position, maximumLength, verbosityLevel) {
132715
132715
  synchronizeHostData();
@@ -132962,10 +132962,10 @@ ${newComment.split(`
132962
132962
  let start = timestamp();
132963
132963
  const settings = toEditorSettings(editorOptions);
132964
132964
  const sourceFile = syntaxTreeCache.getCurrentSourceFile(fileName);
132965
- log2("getIndentationAtPosition: getCurrentSourceFile: " + (timestamp() - start));
132965
+ log("getIndentationAtPosition: getCurrentSourceFile: " + (timestamp() - start));
132966
132966
  start = timestamp();
132967
132967
  const result = ts_formatting_exports.SmartIndenter.getIndentation(position, sourceFile, settings);
132968
- log2("getIndentationAtPosition: computeIndentation : " + (timestamp() - start));
132968
+ log("getIndentationAtPosition: computeIndentation : " + (timestamp() - start));
132969
132969
  return result;
132970
132970
  }
132971
132971
  function getFormattingEditsForRange(fileName, start, end, options) {
@@ -143879,7 +143879,7 @@ ${newComment.split(`
143879
143879
  }
143880
143880
  return allCommitCharacters;
143881
143881
  }
143882
- function getCompletionsAtPosition(host, program, log2, sourceFile, position, preferences, triggerCharacter, completionKind, cancellationToken, formatContext, includeSymbol = false) {
143882
+ function getCompletionsAtPosition(host, program, log, sourceFile, position, preferences, triggerCharacter, completionKind, cancellationToken, formatContext, includeSymbol = false) {
143883
143883
  var _a;
143884
143884
  const { previousToken } = getRelevantTokens(position, sourceFile);
143885
143885
  if (triggerCharacter && !isInString(sourceFile, position, previousToken) && !isValidTrigger(sourceFile, triggerCharacter, previousToken, position)) {
@@ -143909,20 +143909,20 @@ ${newComment.split(`
143909
143909
  } else {
143910
143910
  incompleteCompletionsCache == null || incompleteCompletionsCache.clear();
143911
143911
  }
143912
- const stringCompletions = ts_Completions_StringCompletions_exports.getStringLiteralCompletions(sourceFile, position, previousToken, compilerOptions, host, program, log2, preferences, includeSymbol);
143912
+ const stringCompletions = ts_Completions_StringCompletions_exports.getStringLiteralCompletions(sourceFile, position, previousToken, compilerOptions, host, program, log, preferences, includeSymbol);
143913
143913
  if (stringCompletions) {
143914
143914
  return stringCompletions;
143915
143915
  }
143916
143916
  if (previousToken && isBreakOrContinueStatement(previousToken.parent) && (previousToken.kind === 83 || previousToken.kind === 88 || previousToken.kind === 80)) {
143917
143917
  return getLabelCompletionAtPosition(previousToken.parent);
143918
143918
  }
143919
- const completionData = getCompletionData(program, log2, sourceFile, compilerOptions, position, preferences, undefined, host, formatContext, cancellationToken);
143919
+ const completionData = getCompletionData(program, log, sourceFile, compilerOptions, position, preferences, undefined, host, formatContext, cancellationToken);
143920
143920
  if (!completionData) {
143921
143921
  return;
143922
143922
  }
143923
143923
  switch (completionData.kind) {
143924
143924
  case 0:
143925
- const response = completionInfoFromData(sourceFile, host, program, compilerOptions, log2, completionData, preferences, formatContext, position, includeSymbol);
143925
+ const response = completionInfoFromData(sourceFile, host, program, compilerOptions, log, completionData, preferences, formatContext, position, includeSymbol);
143926
143926
  if (response == null ? undefined : response.isIncomplete) {
143927
143927
  incompleteCompletionsCache == null || incompleteCompletionsCache.set(response);
143928
143928
  }
@@ -144217,7 +144217,7 @@ ${newComment.split(`
144217
144217
  function getOptionalReplacementSpan(location) {
144218
144218
  return (location == null ? undefined : location.kind) === 80 ? createTextSpanFromNode(location) : undefined;
144219
144219
  }
144220
- function completionInfoFromData(sourceFile, host, program, compilerOptions, log2, completionData, preferences, formatContext, position, includeSymbol) {
144220
+ function completionInfoFromData(sourceFile, host, program, compilerOptions, log, completionData, preferences, formatContext, position, includeSymbol) {
144221
144221
  const {
144222
144222
  symbols,
144223
144223
  contextToken,
@@ -144266,7 +144266,7 @@ ${newComment.split(`
144266
144266
  if (isChecked && !isNewIdentifierLocation && (!symbols || symbols.length === 0) && keywordFilters === 0) {
144267
144267
  return;
144268
144268
  }
144269
- const uniqueNames = getCompletionEntriesFromSymbols(symbols, entries, undefined, contextToken, location, position, sourceFile, host, program, getEmitScriptTarget(compilerOptions), log2, completionKind, preferences, compilerOptions, formatContext, isTypeOnlyLocation, propertyAccessToConvert, isJsxIdentifierExpected, isJsxInitializer, importStatementCompletion, recommendedCompletion, symbolToOriginInfoMap, symbolToSortTextMap, isJsxIdentifierExpected, isRightOfOpenTag, includeSymbol);
144269
+ const uniqueNames = getCompletionEntriesFromSymbols(symbols, entries, undefined, contextToken, location, position, sourceFile, host, program, getEmitScriptTarget(compilerOptions), log, completionKind, preferences, compilerOptions, formatContext, isTypeOnlyLocation, propertyAccessToConvert, isJsxIdentifierExpected, isJsxInitializer, importStatementCompletion, recommendedCompletion, symbolToOriginInfoMap, symbolToSortTextMap, isJsxIdentifierExpected, isRightOfOpenTag, includeSymbol);
144270
144270
  if (keywordFilters !== 0) {
144271
144271
  for (const keywordEntry of getKeywordCompletions(keywordFilters, !insideJsDocTagTypeExpression && isSourceFileJS(sourceFile))) {
144272
144272
  if (isTypeOnlyLocation && isTypeKeyword(stringToToken(keywordEntry.name)) || !isTypeOnlyLocation && isContextualKeywordInAutoImportableExpressionSpace(keywordEntry.name) || !uniqueNames.has(keywordEntry.name)) {
@@ -145060,7 +145060,7 @@ ${newComment.split(`
145060
145060
  return "TypeOnlyAlias/";
145061
145061
  }
145062
145062
  }
145063
- function getCompletionEntriesFromSymbols(symbols, entries, replacementToken, contextToken, location, position, sourceFile, host, program, target, log2, kind, preferences, compilerOptions, formatContext, isTypeOnlyLocation, propertyAccessToConvert, jsxIdentifierExpected, isJsxInitializer, importStatementCompletion, recommendedCompletion, symbolToOriginInfoMap, symbolToSortTextMap, isJsxIdentifierExpected, isRightOfOpenTag, includeSymbol = false) {
145063
+ function getCompletionEntriesFromSymbols(symbols, entries, replacementToken, contextToken, location, position, sourceFile, host, program, target, log, kind, preferences, compilerOptions, formatContext, isTypeOnlyLocation, propertyAccessToConvert, jsxIdentifierExpected, isJsxInitializer, importStatementCompletion, recommendedCompletion, symbolToOriginInfoMap, symbolToSortTextMap, isJsxIdentifierExpected, isRightOfOpenTag, includeSymbol = false) {
145064
145064
  const start = timestamp();
145065
145065
  const closestSymbolDeclaration = getClosestSymbolDeclaration(contextToken, location);
145066
145066
  const useSemicolons = probablyUsesSemicolons(sourceFile);
@@ -145087,7 +145087,7 @@ ${newComment.split(`
145087
145087
  uniques.set(name, shouldShadowLaterSymbols);
145088
145088
  insertSorted(entries, entry, compareCompletionEntries, undefined, true);
145089
145089
  }
145090
- log2("getCompletionsAtPosition: getCompletionEntriesFromSymbols: " + (timestamp() - start));
145090
+ log("getCompletionsAtPosition: getCompletionEntriesFromSymbols: " + (timestamp() - start));
145091
145091
  return {
145092
145092
  has: (name) => uniques.has(name),
145093
145093
  add: (name) => uniques.set(name, true)
@@ -145180,7 +145180,7 @@ ${newComment.split(`
145180
145180
  }
145181
145181
  return entries;
145182
145182
  }
145183
- function getSymbolCompletionFromEntryId(program, log2, sourceFile, position, entryId, host, preferences) {
145183
+ function getSymbolCompletionFromEntryId(program, log, sourceFile, position, entryId, host, preferences) {
145184
145184
  if (entryId.source === "SwitchCases/") {
145185
145185
  return { type: "cases" };
145186
145186
  }
@@ -145201,7 +145201,7 @@ ${newComment.split(`
145201
145201
  }
145202
145202
  }
145203
145203
  const compilerOptions = program.getCompilerOptions();
145204
- const completionData = getCompletionData(program, log2, sourceFile, compilerOptions, position, { includeCompletionsForModuleExports: true, includeCompletionsWithInsertText: true }, entryId, host, undefined);
145204
+ const completionData = getCompletionData(program, log, sourceFile, compilerOptions, position, { includeCompletionsForModuleExports: true, includeCompletionsWithInsertText: true }, entryId, host, undefined);
145205
145205
  if (!completionData) {
145206
145206
  return { type: "none" };
145207
145207
  }
@@ -145218,7 +145218,7 @@ ${newComment.split(`
145218
145218
  return info && info.name === entryId.name && (entryId.source === "ClassMemberSnippet/" && symbol.flags & 106500 || entryId.source === "ObjectLiteralMethodSnippet/" && symbol.flags & (4 | 8192) || getSourceFromOrigin(origin) === entryId.source || entryId.source === "ObjectLiteralMemberWithComma/") ? { type: "symbol", symbol, location, origin, contextToken, previousToken, isJsxInitializer, isTypeOnlyLocation } : undefined;
145219
145219
  }) || { type: "none" };
145220
145220
  }
145221
- function getCompletionEntryDetails(program, log2, sourceFile, position, entryId, host, formatContext, preferences, cancellationToken) {
145221
+ function getCompletionEntryDetails(program, log, sourceFile, position, entryId, host, formatContext, preferences, cancellationToken) {
145222
145222
  const typeChecker = program.getTypeChecker();
145223
145223
  const compilerOptions = program.getCompilerOptions();
145224
145224
  const { name, source, data } = entryId;
@@ -145226,7 +145226,7 @@ ${newComment.split(`
145226
145226
  if (isInString(sourceFile, position, previousToken)) {
145227
145227
  return ts_Completions_StringCompletions_exports.getStringLiteralCompletionDetails(name, sourceFile, position, previousToken, program, host, cancellationToken, preferences);
145228
145228
  }
145229
- const symbolCompletion = getSymbolCompletionFromEntryId(program, log2, sourceFile, position, entryId, host, preferences);
145229
+ const symbolCompletion = getSymbolCompletionFromEntryId(program, log, sourceFile, position, entryId, host, preferences);
145230
145230
  switch (symbolCompletion.type) {
145231
145231
  case "request": {
145232
145232
  const { request } = symbolCompletion;
@@ -145348,8 +145348,8 @@ ${newComment.split(`
145348
145348
  Debug.assert(!(data == null ? undefined : data.moduleSpecifier) || moduleSpecifier === data.moduleSpecifier);
145349
145349
  return { sourceDisplay: [textPart(moduleSpecifier)], codeActions: [codeAction] };
145350
145350
  }
145351
- function getCompletionEntrySymbol(program, log2, sourceFile, position, entryId, host, preferences) {
145352
- const completion = getSymbolCompletionFromEntryId(program, log2, sourceFile, position, entryId, host, preferences);
145351
+ function getCompletionEntrySymbol(program, log, sourceFile, position, entryId, host, preferences) {
145352
+ const completion = getSymbolCompletionFromEntryId(program, log, sourceFile, position, entryId, host, preferences);
145353
145353
  return completion.type === "symbol" ? completion.symbol : undefined;
145354
145354
  }
145355
145355
  var CompletionKind = /* @__PURE__ */ ((CompletionKind2) => {
@@ -145405,15 +145405,15 @@ ${newComment.split(`
145405
145405
  var _a;
145406
145406
  return !!((_a = symbol.declarations) == null ? undefined : _a.some((d) => d.kind === 308));
145407
145407
  }
145408
- function getCompletionData(program, log2, sourceFile, compilerOptions, position, preferences, detailsEntryId, host, formatContext, cancellationToken) {
145408
+ function getCompletionData(program, log, sourceFile, compilerOptions, position, preferences, detailsEntryId, host, formatContext, cancellationToken) {
145409
145409
  const typeChecker = program.getTypeChecker();
145410
145410
  const inCheckedFile = isCheckedFile(sourceFile, compilerOptions);
145411
145411
  let start = timestamp();
145412
145412
  let currentToken = getTokenAtPosition(sourceFile, position);
145413
- log2("getCompletionData: Get current token: " + (timestamp() - start));
145413
+ log("getCompletionData: Get current token: " + (timestamp() - start));
145414
145414
  start = timestamp();
145415
145415
  const insideComment = isInComment(sourceFile, position, currentToken);
145416
- log2("getCompletionData: Is inside comment: " + (timestamp() - start));
145416
+ log("getCompletionData: Is inside comment: " + (timestamp() - start));
145417
145417
  let insideJsDocTagTypeExpression = false;
145418
145418
  let insideJsDocImportTag = false;
145419
145419
  let isInSnippetScope = false;
@@ -145449,7 +145449,7 @@ ${newComment.split(`
145449
145449
  }
145450
145450
  }
145451
145451
  if (!insideJsDocTagTypeExpression && !insideJsDocImportTag) {
145452
- log2("Returning an empty list because completion was inside a regular comment or plain text part of a JsDoc comment.");
145452
+ log("Returning an empty list because completion was inside a regular comment or plain text part of a JsDoc comment.");
145453
145453
  return;
145454
145454
  }
145455
145455
  }
@@ -145458,7 +145458,7 @@ ${newComment.split(`
145458
145458
  const tokens = getRelevantTokens(position, sourceFile);
145459
145459
  const previousToken = tokens.previousToken;
145460
145460
  let contextToken = tokens.contextToken;
145461
- log2("getCompletionData: Get previous token: " + (timestamp() - start));
145461
+ log("getCompletionData: Get previous token: " + (timestamp() - start));
145462
145462
  let node = currentToken;
145463
145463
  let propertyAccessToConvert;
145464
145464
  let isRightOfDot = false;
@@ -145491,7 +145491,7 @@ ${newComment.split(`
145491
145491
  isNewIdentifierLocation = importStatementCompletionInfo.isNewIdentifierLocation;
145492
145492
  }
145493
145493
  if (!importStatementCompletionInfo.replacementSpan && isCompletionListBlocker(contextToken)) {
145494
- log2("Returning an empty list because completion was requested in an invalid position.");
145494
+ log("Returning an empty list because completion was requested in an invalid position.");
145495
145495
  return keywordFilters ? keywordCompletionData(keywordFilters, isJsOnlyLocation, computeCommitCharactersAndIsNewIdentifier().isNewIdentifierLocation) : undefined;
145496
145496
  }
145497
145497
  let parent2 = contextToken.parent;
@@ -145620,7 +145620,7 @@ ${newComment.split(`
145620
145620
  return keywordFilters ? keywordCompletionData(keywordFilters, isJsOnlyLocation, isNewIdentifierLocation) : undefined;
145621
145621
  }
145622
145622
  }
145623
- log2("getCompletionData: Semantic work: " + (timestamp() - semanticStart));
145623
+ log("getCompletionData: Semantic work: " + (timestamp() - semanticStart));
145624
145624
  const contextualType = previousToken && getContextualType(previousToken, position, sourceFile, typeChecker);
145625
145625
  const isLiteralExpected = !tryCast(previousToken, isStringLiteralLike) && !isJsxIdentifierExpected;
145626
145626
  const literals = !isLiteralExpected ? [] : mapDefined(contextualType && (contextualType.isUnion() ? contextualType.types : [contextualType]), (t) => t.isLiteral() && !(t.flags & 1024) ? t.value : undefined);
@@ -146083,7 +146083,7 @@ ${newComment.split(`
146083
146083
  function isCompletionListBlocker(contextToken2) {
146084
146084
  const start2 = timestamp();
146085
146085
  const result = isInStringOrRegularExpressionOrTemplateLiteral(contextToken2) || isSolelyIdentifierDefinitionLocation(contextToken2) || isDotOfNumericLiteral(contextToken2) || isInJsxText(contextToken2) || isBigIntLiteral(contextToken2);
146086
- log2("getCompletionsAtPosition: isCompletionListBlocker: " + (timestamp() - start2));
146086
+ log("getCompletionsAtPosition: isCompletionListBlocker: " + (timestamp() - start2));
146087
146087
  return result;
146088
146088
  }
146089
146089
  function isInJsxText(contextToken2) {
@@ -147293,7 +147293,7 @@ ${newComment.split(`
147293
147293
  values: map2.values.bind(map2)
147294
147294
  };
147295
147295
  }
147296
- function getStringLiteralCompletions(sourceFile, position, contextToken, options, host, program, log2, preferences, includeSymbol) {
147296
+ function getStringLiteralCompletions(sourceFile, position, contextToken, options, host, program, log, preferences, includeSymbol) {
147297
147297
  if (isInReferenceComment(sourceFile, position)) {
147298
147298
  const entries = getTripleSlashReferenceCompletion(sourceFile, position, program, host, createModuleSpecifierResolutionHost(program, host));
147299
147299
  return entries && convertPathCompletions(entries);
@@ -147302,10 +147302,10 @@ ${newComment.split(`
147302
147302
  if (!contextToken || !isStringLiteralLike(contextToken))
147303
147303
  return;
147304
147304
  const entries = getStringLiteralCompletionEntries(sourceFile, contextToken, position, program, host, preferences);
147305
- return convertStringLiteralCompletions(entries, contextToken, sourceFile, host, program, log2, options, preferences, position, includeSymbol);
147305
+ return convertStringLiteralCompletions(entries, contextToken, sourceFile, host, program, log, options, preferences, position, includeSymbol);
147306
147306
  }
147307
147307
  }
147308
- function convertStringLiteralCompletions(completion, contextToken, sourceFile, host, program, log2, options, preferences, position, includeSymbol) {
147308
+ function convertStringLiteralCompletions(completion, contextToken, sourceFile, host, program, log, options, preferences, position, includeSymbol) {
147309
147309
  if (completion === undefined) {
147310
147310
  return;
147311
147311
  }
@@ -147315,7 +147315,7 @@ ${newComment.split(`
147315
147315
  return convertPathCompletions(completion.paths);
147316
147316
  case 1: {
147317
147317
  const entries = createSortedArray();
147318
- getCompletionEntriesFromSymbols(completion.symbols, entries, contextToken, contextToken, sourceFile, position, sourceFile, host, program, 99, log2, 4, preferences, options, undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, includeSymbol);
147318
+ getCompletionEntriesFromSymbols(completion.symbols, entries, contextToken, contextToken, sourceFile, position, sourceFile, host, program, 99, log, 4, preferences, options, undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, includeSymbol);
147319
147319
  return {
147320
147320
  isGlobalCompletion: false,
147321
147321
  isMemberCompletion: true,
@@ -160683,13 +160683,13 @@ ${options.prefix}` : `
160683
160683
  isEnabled: () => false,
160684
160684
  writeLine: noop
160685
160685
  };
160686
- function typingToFileName(cachePath, packageName, installTypingHost, log2) {
160686
+ function typingToFileName(cachePath, packageName, installTypingHost, log) {
160687
160687
  try {
160688
160688
  const result = resolveModuleName(packageName, combinePaths(cachePath, "index.d.ts"), { moduleResolution: 2 }, installTypingHost);
160689
160689
  return result.resolvedModule && result.resolvedModule.resolvedFileName;
160690
160690
  } catch (e) {
160691
- if (log2.isEnabled()) {
160692
- log2.writeLine(`Failed to resolve ${packageName} in folder '${cachePath}': ${e.message}`);
160691
+ if (log.isEnabled()) {
160692
+ log.writeLine(`Failed to resolve ${packageName} in folder '${cachePath}': ${e.message}`);
160693
160693
  }
160694
160694
  return;
160695
160695
  }
@@ -160716,13 +160716,13 @@ ${options.prefix}` : `
160716
160716
  return { command, remaining: remaining - toSlice };
160717
160717
  }
160718
160718
  var TypingsInstaller = class {
160719
- constructor(installTypingHost, globalCachePath, safeListPath, typesMapLocation, throttleLimit, log2 = nullLog) {
160719
+ constructor(installTypingHost, globalCachePath, safeListPath, typesMapLocation, throttleLimit, log = nullLog) {
160720
160720
  this.installTypingHost = installTypingHost;
160721
160721
  this.globalCachePath = globalCachePath;
160722
160722
  this.safeListPath = safeListPath;
160723
160723
  this.typesMapLocation = typesMapLocation;
160724
160724
  this.throttleLimit = throttleLimit;
160725
- this.log = log2;
160725
+ this.log = log;
160726
160726
  this.packageNameToTypingLocation = /* @__PURE__ */ new Map;
160727
160727
  this.missingTypingsSet = /* @__PURE__ */ new Set;
160728
160728
  this.knownCachesSet = /* @__PURE__ */ new Set;
@@ -161198,10 +161198,10 @@ ${options.prefix}` : `
161198
161198
  }
161199
161199
  static run(self2) {
161200
161200
  self2.timerId = undefined;
161201
- const log2 = self2.logger.hasLevel(2);
161202
- const before = log2 && self2.host.getMemoryUsage();
161201
+ const log = self2.logger.hasLevel(2);
161202
+ const before = log && self2.host.getMemoryUsage();
161203
161203
  self2.host.gc();
161204
- if (log2) {
161204
+ if (log) {
161205
161205
  const after = self2.host.getMemoryUsage();
161206
161206
  self2.logger.perftrc(`GC::before ${before}, after ${after}`);
161207
161207
  }
@@ -162058,16 +162058,16 @@ ${options.prefix}` : `
162058
162058
  updateProjectIfDirty(this);
162059
162059
  return hasOneOrMoreJsAndNoTsFiles(this);
162060
162060
  }
162061
- static resolveModule(moduleName, initialDir, host, log2) {
162062
- return _Project.importServicePluginSync({ name: moduleName }, [initialDir], host, log2).resolvedModule;
162061
+ static resolveModule(moduleName, initialDir, host, log) {
162062
+ return _Project.importServicePluginSync({ name: moduleName }, [initialDir], host, log).resolvedModule;
162063
162063
  }
162064
- static importServicePluginSync(pluginConfigEntry, searchPaths, host, log2) {
162064
+ static importServicePluginSync(pluginConfigEntry, searchPaths, host, log) {
162065
162065
  Debug.assertIsDefined(host.require);
162066
162066
  let errorLogs;
162067
162067
  let resolvedModule;
162068
162068
  for (const initialDir of searchPaths) {
162069
162069
  const resolvedPath = normalizeSlashes(host.resolvePath(combinePaths(initialDir, "node_modules")));
162070
- log2(`Loading ${pluginConfigEntry.name} from ${initialDir} (resolved to ${resolvedPath})`);
162070
+ log(`Loading ${pluginConfigEntry.name} from ${initialDir} (resolved to ${resolvedPath})`);
162071
162071
  const result = host.require(resolvedPath, pluginConfigEntry.name);
162072
162072
  if (!result.error) {
162073
162073
  resolvedModule = result.module;
@@ -162078,13 +162078,13 @@ ${options.prefix}` : `
162078
162078
  }
162079
162079
  return { pluginConfigEntry, resolvedModule, errorLogs };
162080
162080
  }
162081
- static async importServicePluginAsync(pluginConfigEntry, searchPaths, host, log2) {
162081
+ static async importServicePluginAsync(pluginConfigEntry, searchPaths, host, log) {
162082
162082
  Debug.assertIsDefined(host.importPlugin);
162083
162083
  let errorLogs;
162084
162084
  let resolvedModule;
162085
162085
  for (const initialDir of searchPaths) {
162086
162086
  const resolvedPath = combinePaths(initialDir, "node_modules");
162087
- log2(`Dynamically importing ${pluginConfigEntry.name} from ${initialDir} (resolved to ${resolvedPath})`);
162087
+ log(`Dynamically importing ${pluginConfigEntry.name} from ${initialDir} (resolved to ${resolvedPath})`);
162088
162088
  let result;
162089
162089
  try {
162090
162090
  result = await host.importPlugin(resolvedPath, pluginConfigEntry.name);
@@ -164317,12 +164317,12 @@ ${options.prefix}` : `
164317
164317
  };
164318
164318
  this.documentRegistry = createDocumentRegistryInternal(this.host.useCaseSensitiveFileNames, this.currentDirectory, this.jsDocParsingMode, this);
164319
164319
  const watchLogLevel = this.logger.hasLevel(3) ? 2 : this.logger.loggingEnabled() ? 1 : 0;
164320
- const log2 = watchLogLevel !== 0 ? (s) => this.logger.info(s) : noop;
164320
+ const log = watchLogLevel !== 0 ? (s) => this.logger.info(s) : noop;
164321
164321
  this.packageJsonCache = createPackageJsonCache(this);
164322
164322
  this.watchFactory = this.serverMode !== 0 ? {
164323
164323
  watchFile: returnNoopFileWatcher,
164324
164324
  watchDirectory: returnNoopFileWatcher
164325
- } : getWatchFactory(createWatchFactoryHostUsingWatchEvents(this, opts.canUseWatchEvents) || this.host, watchLogLevel, log2, getDetailWatchInfo);
164325
+ } : getWatchFactory(createWatchFactoryHostUsingWatchEvents(this, opts.canUseWatchEvents) || this.host, watchLogLevel, log, getDetailWatchInfo);
164326
164326
  this.canUseWatchEvents = getCanUseWatchEvents(this, opts.canUseWatchEvents);
164327
164327
  (_a = opts.incrementalVerifier) == null || _a.call(opts, this);
164328
164328
  }
@@ -200578,7 +200578,6 @@ import fs from "fs/promises";
200578
200578
  import path2 from "path";
200579
200579
  import { execSync } from "child_process";
200580
200580
  import crypto from "crypto";
200581
- import { fileURLToPath } from "url";
200582
200581
  import { pathToFileURL } from "url";
200583
200582
  var SOURCE_COMPONENTS_FOLDER = "./dist/components/catalyst-ui";
200584
200583
  var SOURCE_DATA_FOLDER = "./dist/components/catalyst-ui/data";
@@ -200626,8 +200625,6 @@ async function createConfig() {
200626
200625
  await fs.writeFile(configPath, configContent, "utf-8");
200627
200626
  console.log(source_default.green("\u2713 Created catalyst.config.jsonc"));
200628
200627
  }
200629
- var __filename2 = fileURLToPath(import.meta.url);
200630
- var __dirname2 = path2.dirname(__filename2);
200631
200628
  var API_URL = "https://catalyst-software.vercel.app/Catalyst/UI/code/verify/premium";
200632
200629
  var API_TIMEOUT = 5000;
200633
200630
  function hashKey(key) {
@@ -200725,7 +200722,7 @@ async function showFreeMenu() {
200725
200722
  { name: `${source_default.bold("Full Install with Ngin")} ${source_default.gray("\u2192 Includes presets")}`, value: "full-install-ngin" },
200726
200723
  { name: `${source_default.bold("Components + Libraries")} ${source_default.gray("\u2192 No config files")}`, value: "components-and-libs" },
200727
200724
  { name: `${source_default.bold("Select Components")} ${source_default.gray("\u2192 Specific free components")}`, value: "select-components" },
200728
- +{ name: `${source_default.bold("Configure Only")} ${source_default.gray("\u2192 Tailwind + PostCSS setup")}`, value: "configure-tailwind-postcss" },
200725
+ { name: `${source_default.bold("Configure Only")} ${source_default.gray("\u2192 Tailwind + PostCSS setup")}`, value: "configure-tailwind-postcss" },
200729
200726
  { name: `${source_default.bold("Configure with Ngin")} ${source_default.gray("\u2192 Tailwind + PostCSS + Ngin preset")}`, value: "configure-ngin" },
200730
200727
  { name: `${source_default.bold("Create Config")} ${source_default.gray("\u2192 Configure installation options with pre-configured config file")}`, value: "create-config" },
200731
200728
  { name: `${source_default.red("\u2717 Exit")}`, value: "exit" }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@catalystsoftware/ui",
3
- "version": "1.0.14",
3
+ "version": "1.0.16",
4
4
  "description": "Catalyst UI Component Library CLI",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",