@typespec/html-program-viewer 0.67.0-dev.0 → 0.67.0-dev.3

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.
@@ -359,7 +359,7 @@ function getDebugTree(debugSequenceHash, parentNode) {
359
359
  return undefined;
360
360
  }
361
361
  const parentLookupItem = parentNode ? DEFINITION_LOOKUP_TABLE[parentNode.sequenceHash] : undefined;
362
- const debugClassNames = getDebugClassNames(lookupItem, parentLookupItem, parentNode === null || parentNode === undefined ? undefined : parentNode.debugClassNames, parentNode === null || parentNode === undefined ? undefined : parentNode.children);
362
+ const debugClassNames = getDebugClassNames(lookupItem, parentLookupItem, parentNode === null || parentNode === void 0 ? void 0 : parentNode.debugClassNames, parentNode === null || parentNode === void 0 ? void 0 : parentNode.children);
363
363
  const node = {
364
364
  sequenceHash: debugSequenceHash,
365
365
  direction: lookupItem[1],
@@ -455,7 +455,7 @@ function createIsomorphicStyleSheet(styleElement, bucketName, priority, elementA
455
455
  }
456
456
  }
457
457
  function insertRule(rule) {
458
- if (styleElement === null || styleElement === undefined ? undefined : styleElement.sheet) {
458
+ if (styleElement === null || styleElement === void 0 ? void 0 : styleElement.sheet) {
459
459
  return styleElement.sheet.insertRule(rule, styleElement.sheet.cssRules.length);
460
460
  }
461
461
  return __cssRulesForSSR.push(rule);
@@ -466,7 +466,7 @@ function createIsomorphicStyleSheet(styleElement, bucketName, priority, elementA
466
466
  element: styleElement,
467
467
  bucketName,
468
468
  cssRules() {
469
- if (styleElement === null || styleElement === undefined ? undefined : styleElement.sheet) {
469
+ if (styleElement === null || styleElement === void 0 ? void 0 : styleElement.sheet) {
470
470
  return Array.from(styleElement.sheet.cssRules).map(cssRule => cssRule.cssText);
471
471
  }
472
472
  return __cssRulesForSSR;
@@ -522,8 +522,8 @@ function getStyleSheetKey(bucketName, media, priority) {
522
522
  function getStyleSheetForBucket(bucketName, targetDocument, insertionPoint, renderer, metadata = {}) {
523
523
  var _a, _b;
524
524
  const isMediaBucket = bucketName === 'm';
525
- const media = (_a = metadata['m']) !== null && _a !== undefined ? _a : '0';
526
- const priority = (_b = metadata['p']) !== null && _b !== undefined ? _b : 0;
525
+ const media = (_a = metadata['m']) !== null && _a !== void 0 ? _a : '0';
526
+ const priority = (_b = metadata['p']) !== null && _b !== void 0 ? _b : 0;
527
527
  const stylesheetKey = getStyleSheetKey(bucketName, media, priority);
528
528
  if (!renderer.stylesheets[stylesheetKey]) {
529
529
  const tag = targetDocument && targetDocument.createElement('style');
@@ -539,8 +539,8 @@ function getStyleSheetForBucket(bucketName, targetDocument, insertionPoint, rend
539
539
  }
540
540
  function isSameInsertionKey(element, bucketName, metadata) {
541
541
  var _a, _b;
542
- const targetKey = bucketName + ((_a = metadata['m']) !== null && _a !== undefined ? _a : '');
543
- const elementKey = element.getAttribute(DATA_BUCKET_ATTR) + ((_b = element.media) !== null && _b !== undefined ? _b : '');
542
+ const targetKey = bucketName + ((_a = metadata['m']) !== null && _a !== void 0 ? _a : '');
543
+ const elementKey = element.getAttribute(DATA_BUCKET_ATTR) + ((_b = element.media) !== null && _b !== void 0 ? _b : '');
544
544
  return targetKey === elementKey;
545
545
  }
546
546
  /**
@@ -556,8 +556,8 @@ function isSameInsertionKey(element, bucketName, metadata) {
556
556
  function findInsertionPoint(targetDocument, insertionPoint, targetBucket, renderer, metadata = {}) {
557
557
  var _a, _b;
558
558
  const targetOrder = styleBucketOrderingMap[targetBucket];
559
- const media = (_a = metadata['m']) !== null && _a !== undefined ? _a : '';
560
- const priority = (_b = metadata['p']) !== null && _b !== undefined ? _b : 0;
559
+ const media = (_a = metadata['m']) !== null && _a !== void 0 ? _a : '';
560
+ const priority = (_b = metadata['p']) !== null && _b !== void 0 ? _b : 0;
561
561
  // Similar to javascript sort comparators where
562
562
  // a positive value is increasing sort order
563
563
  // a negative value is decreasing sort order
@@ -737,7 +737,7 @@ function getSourceURLfromError() {
737
737
  return undefined;
738
738
  }
739
739
  const result = parseStackTraceLine(userMakeStyleCallLine);
740
- return result === null || result === undefined ? undefined : result.loc;
740
+ return result === null || result === void 0 ? void 0 : result.loc;
741
741
  }
742
742
  function findUserMakeStyleCallInStacks(stacks) {
743
743
  for (let i = stacks.length - 1; i >= 0; --i) {
@@ -881,7 +881,7 @@ const TextDirectionProvider = ({
881
881
  };
882
882
  if (props && typeof props.children === 'function') {
883
883
  propsWithMetadata[SLOT_RENDER_FUNCTION_SYMBOL] = props.children;
884
- propsWithMetadata.children = defaultProps === null || defaultProps === undefined ? undefined : defaultProps.children;
884
+ propsWithMetadata.children = defaultProps === null || defaultProps === void 0 ? void 0 : defaultProps.children;
885
885
  }
886
886
  return propsWithMetadata;
887
887
  }
@@ -911,7 +911,7 @@ Slot shorthands can be strings, numbers, arrays or JSX elements`);
911
911
  * Guard method to ensure a given element is a slot.
912
912
  * This is mainly used internally to ensure a slot is being used as a component.
913
913
  */ function isSlot(element) {
914
- return Boolean(element === null || element === undefined ? undefined : element.hasOwnProperty(SLOT_ELEMENT_TYPE_SYMBOL));
914
+ return Boolean(element === null || element === void 0 ? void 0 : element.hasOwnProperty(SLOT_ELEMENT_TYPE_SYMBOL));
915
915
  }
916
916
 
917
917
  /**
@@ -1429,7 +1429,7 @@ function getNativeElementProps(tagName, props, excludedPropNames) {
1429
1429
  */ const getIntrinsicElementProps = (/** The slot's default element type (e.g. 'div') */ tagName, /** The component's props object */ props, /** List of native props to exclude from the returned value */ excludedPropNames)=>{
1430
1430
  var _props_as;
1431
1431
  // eslint-disable-next-line @typescript-eslint/no-deprecated
1432
- return getNativeElementProps((_props_as = props.as) !== null && _props_as !== undefined ? _props_as : tagName, props);
1432
+ return getNativeElementProps((_props_as = props.as) !== null && _props_as !== void 0 ? _props_as : tagName, props);
1433
1433
  };
1434
1434
 
1435
1435
  /**
@@ -1468,7 +1468,7 @@ const providerContextDefaultValue = {
1468
1468
  */ const Provider = ProviderContext.Provider;
1469
1469
  function useFluent() {
1470
1470
  var _React_useContext;
1471
- return (_React_useContext = React.useContext(ProviderContext)) !== null && _React_useContext !== undefined ? _React_useContext : providerContextDefaultValue;
1471
+ return (_React_useContext = React.useContext(ProviderContext)) !== null && _React_useContext !== void 0 ? _React_useContext : providerContextDefaultValue;
1472
1472
  }
1473
1473
 
1474
1474
  /**
@@ -1479,7 +1479,7 @@ function useFluent() {
1479
1479
  */ const OverridesProvider = OverridesContext.Provider;
1480
1480
  function useOverrides() {
1481
1481
  var _React_useContext;
1482
- return (_React_useContext = React.useContext(OverridesContext)) !== null && _React_useContext !== undefined ? _React_useContext : {};
1482
+ return (_React_useContext = React.useContext(OverridesContext)) !== null && _React_useContext !== void 0 ? _React_useContext : {};
1483
1483
  }
1484
1484
 
1485
1485
  /**
@@ -1508,7 +1508,7 @@ const SSRContext = /*#__PURE__*/ React.createContext(undefined);
1508
1508
  * @internal
1509
1509
  */ function useSSRContext() {
1510
1510
  var _React_useContext;
1511
- return (_React_useContext = React.useContext(SSRContext)) !== null && _React_useContext !== undefined ? _React_useContext : defaultSSRContextValue;
1511
+ return (_React_useContext = React.useContext(SSRContext)) !== null && _React_useContext !== void 0 ? _React_useContext : defaultSSRContextValue;
1512
1512
  }
1513
1513
 
1514
1514
  /**
@@ -1556,9 +1556,6 @@ function useIdPrefix() {
1556
1556
  // the version of React being used. This is safe to ignore.
1557
1557
  // eslint-disable-next-line react-hooks/rules-of-hooks
1558
1558
  return React.useMemo(()=>{
1559
- if (providedId) {
1560
- return providedId;
1561
- }
1562
1559
  return `${idPrefix}${prefix}${++contextValue.current}`;
1563
1560
  }, [
1564
1561
  idPrefix,
@@ -1610,7 +1607,7 @@ function useIdPrefix() {
1610
1607
  var _typedElement_ownerDocument;
1611
1608
  const typedElement = element;
1612
1609
  var _options_constructorName;
1613
- return Boolean((typedElement === null || typedElement === undefined ? undefined : (_typedElement_ownerDocument = typedElement.ownerDocument) === null || _typedElement_ownerDocument === undefined ? undefined : _typedElement_ownerDocument.defaultView) && typedElement instanceof typedElement.ownerDocument.defaultView[(_options_constructorName = undefined ) !== null && _options_constructorName !== undefined ? _options_constructorName : 'HTMLElement']);
1610
+ return Boolean((typedElement === null || typedElement === void 0 ? void 0 : (_typedElement_ownerDocument = typedElement.ownerDocument) === null || _typedElement_ownerDocument === void 0 ? void 0 : _typedElement_ownerDocument.defaultView) && typedElement instanceof typedElement.ownerDocument.defaultView[(_options_constructorName = void 0 ) !== null && _options_constructorName !== void 0 ? _options_constructorName : 'HTMLElement']);
1614
1611
  }
1615
1612
 
1616
1613
  // TODO:
@@ -1934,7 +1931,7 @@ function createJSX(runtime, slotRuntime) {
1934
1931
  */ function getMetadataFromSlotComponent(type) {
1935
1932
  const { as, [SLOT_ELEMENT_TYPE_SYMBOL]: baseElementType, [SLOT_RENDER_FUNCTION_SYMBOL]: renderFunction, ...propsWithoutMetadata } = type;
1936
1933
  const props = propsWithoutMetadata;
1937
- const elementType = typeof baseElementType === 'string' ? as !== null && as !== undefined ? as : baseElementType : baseElementType;
1934
+ const elementType = typeof baseElementType === 'string' ? as !== null && as !== void 0 ? as : baseElementType : baseElementType;
1938
1935
  if (typeof elementType !== 'string' && as) {
1939
1936
  props.as = as;
1940
1937
  }
@@ -1965,7 +1962,7 @@ function requireReactJsxRuntime_production_min () {
1965
1962
  if (hasRequiredReactJsxRuntime_production_min) return reactJsxRuntime_production_min;
1966
1963
  hasRequiredReactJsxRuntime_production_min = 1;
1967
1964
  var f=React__default,k=Symbol.for("react.element"),l=Symbol.for("react.fragment"),m=Object.prototype.hasOwnProperty,n=f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,p={key:true,ref:true,__self:true,__source:true};
1968
- function q(c,a,g){var b,d={},e=null,h=null;undefined!==g&&(e=""+g);undefined!==a.key&&(e=""+a.key);undefined!==a.ref&&(h=a.ref);for(b in a)m.call(a,b)&&!p.hasOwnProperty(b)&&(d[b]=a[b]);if(c&&c.defaultProps)for(b in a=c.defaultProps,a) undefined===d[b]&&(d[b]=a[b]);return {$$typeof:k,type:c,key:e,ref:h,props:d,_owner:n.current}}reactJsxRuntime_production_min.Fragment=l;reactJsxRuntime_production_min.jsx=q;reactJsxRuntime_production_min.jsxs=q;
1965
+ function q(c,a,g){var b,d={},e=null,h=null;void 0!==g&&(e=""+g);void 0!==a.key&&(e=""+a.key);void 0!==a.ref&&(h=a.ref);for(b in a)m.call(a,b)&&!p.hasOwnProperty(b)&&(d[b]=a[b]);if(c&&c.defaultProps)for(b in a=c.defaultProps,a) void 0===d[b]&&(d[b]=a[b]);return {$$typeof:k,type:c,key:e,ref:h,props:d,_owner:n.current}}reactJsxRuntime_production_min.Fragment=l;reactJsxRuntime_production_min.jsx=q;reactJsxRuntime_production_min.jsxs=q;
1969
1966
  return reactJsxRuntime_production_min;
1970
1967
  }
1971
1968
 
@@ -2571,7 +2568,7 @@ function requireReactJsxRuntime_development () {
2571
2568
 
2572
2569
  for (var typeSpecName in typeSpecs) {
2573
2570
  if (has(typeSpecs, typeSpecName)) {
2574
- var error$1 = undefined; // Prop type validation may throw. In case they do, we don't want to
2571
+ var error$1 = void 0; // Prop type validation may throw. In case they do, we don't want to
2575
2572
  // fail the render phase where it didn't fail before. So we log it.
2576
2573
  // After these have been cleaned up, we'll let them throw.
2577
2574
 
@@ -3423,13 +3420,13 @@ var WeakRefInstance = class {
3423
3420
  var _a, _b;
3424
3421
  let instance;
3425
3422
  if (this._weakRef) {
3426
- instance = (_a = this._weakRef) == null ? undefined : _a.deref();
3423
+ instance = (_a = this._weakRef) == null ? void 0 : _a.deref();
3427
3424
  if (!instance) {
3428
3425
  delete this._weakRef;
3429
3426
  }
3430
3427
  } else {
3431
3428
  instance = this._instance;
3432
- if ((_b = instance == null ? undefined : instance.isDisposed) == null ? undefined : _b.call(instance)) {
3429
+ if ((_b = instance == null ? void 0 : instance.isDisposed) == null ? void 0 : _b.call(instance)) {
3433
3430
  delete this._instance;
3434
3431
  }
3435
3432
  }
@@ -3505,7 +3502,7 @@ function setupFocusEvent(win) {
3505
3502
  }
3506
3503
  }
3507
3504
  }
3508
- onFocusIn(target, e.relatedTarget || undefined);
3505
+ onFocusIn(target, e.relatedTarget || void 0);
3509
3506
  };
3510
3507
  const onFocusIn = (target, relatedTarget, originalEvent) => {
3511
3508
  var _a;
@@ -3534,8 +3531,8 @@ function setupFocusEvent(win) {
3534
3531
  });
3535
3532
  event.details = details;
3536
3533
  if (_canOverrideNativeFocus || data.lastFocusedProgrammatically) {
3537
- details.isFocusedProgrammatically = target === ((_a = data.lastFocusedProgrammatically) == null ? undefined : _a.deref());
3538
- data.lastFocusedProgrammatically = undefined;
3534
+ details.isFocusedProgrammatically = target === ((_a = data.lastFocusedProgrammatically) == null ? void 0 : _a.deref());
3535
+ data.lastFocusedProgrammatically = void 0;
3539
3536
  }
3540
3537
  target.dispatchEvent(event);
3541
3538
  };
@@ -3626,7 +3623,7 @@ var KeyborgCore = class {
3626
3623
  if (!details.relatedTarget) {
3627
3624
  return;
3628
3625
  }
3629
- if (details.isFocusedProgrammatically || details.isFocusedProgrammatically === undefined) {
3626
+ if (details.isFocusedProgrammatically || details.isFocusedProgrammatically === void 0) {
3630
3627
  return;
3631
3628
  }
3632
3629
  this.isNavigatingWithKeyboard = true;
@@ -3667,10 +3664,10 @@ var KeyborgCore = class {
3667
3664
  if (props) {
3668
3665
  const triggerKeys = props.triggerKeys;
3669
3666
  const dismissKeys = props.dismissKeys;
3670
- if (triggerKeys == null ? undefined : triggerKeys.length) {
3667
+ if (triggerKeys == null ? void 0 : triggerKeys.length) {
3671
3668
  this._triggerKeys = new Set(triggerKeys);
3672
3669
  }
3673
- if (dismissKeys == null ? undefined : dismissKeys.length) {
3670
+ if (dismissKeys == null ? void 0 : dismissKeys.length) {
3674
3671
  this._dismissKeys = new Set(dismissKeys);
3675
3672
  }
3676
3673
  }
@@ -3696,11 +3693,11 @@ var KeyborgCore = class {
3696
3693
  if (win) {
3697
3694
  if (this._isMouseOrTouchUsedTimer) {
3698
3695
  win.clearTimeout(this._isMouseOrTouchUsedTimer);
3699
- this._isMouseOrTouchUsedTimer = undefined;
3696
+ this._isMouseOrTouchUsedTimer = void 0;
3700
3697
  }
3701
3698
  if (this._dismissTimer) {
3702
3699
  win.clearTimeout(this._dismissTimer);
3703
- this._dismissTimer = undefined;
3700
+ this._dismissTimer = void 0;
3704
3701
  }
3705
3702
  disposeFocusEvent(win);
3706
3703
  const doc = win.document;
@@ -3721,7 +3718,7 @@ var KeyborgCore = class {
3721
3718
  */
3722
3719
  update() {
3723
3720
  var _a, _b;
3724
- const keyborgs = (_b = (_a = this._win) == null ? undefined : _a.__keyborg) == null ? undefined : _b.refs;
3721
+ const keyborgs = (_b = (_a = this._win) == null ? void 0 : _a.__keyborg) == null ? void 0 : _b.refs;
3725
3722
  if (keyborgs) {
3726
3723
  for (const id of Object.keys(keyborgs)) {
3727
3724
  Keyborg.update(keyborgs[id], this.isNavigatingWithKeyboard);
@@ -3736,7 +3733,7 @@ var KeyborgCore = class {
3736
3733
  if (e.key === "Tab") {
3737
3734
  return true;
3738
3735
  }
3739
- const activeElement = (_a = this._win) == null ? undefined : _a.document.activeElement;
3736
+ const activeElement = (_a = this._win) == null ? void 0 : _a.document.activeElement;
3740
3737
  const isTriggerKey = !this._triggerKeys || this._triggerKeys.has(e.keyCode);
3741
3738
  const isEditable = activeElement && (activeElement.tagName === "INPUT" || activeElement.tagName === "TEXTAREA" || activeElement.isContentEditable);
3742
3739
  return isTriggerKey && !isEditable;
@@ -3746,18 +3743,18 @@ var KeyborgCore = class {
3746
3743
  */
3747
3744
  _shouldDismissKeyboardNavigation(e) {
3748
3745
  var _a;
3749
- return (_a = this._dismissKeys) == null ? undefined : _a.has(e.keyCode);
3746
+ return (_a = this._dismissKeys) == null ? void 0 : _a.has(e.keyCode);
3750
3747
  }
3751
3748
  _scheduleDismiss() {
3752
3749
  const win = this._win;
3753
3750
  if (win) {
3754
3751
  if (this._dismissTimer) {
3755
3752
  win.clearTimeout(this._dismissTimer);
3756
- this._dismissTimer = undefined;
3753
+ this._dismissTimer = void 0;
3757
3754
  }
3758
3755
  const was = win.document.activeElement;
3759
3756
  this._dismissTimer = win.setTimeout(() => {
3760
- this._dismissTimer = undefined;
3757
+ this._dismissTimer = void 0;
3761
3758
  const cur = win.document.activeElement;
3762
3759
  if (was && cur && was === cur) {
3763
3760
  this.isNavigatingWithKeyboard = false;
@@ -3797,8 +3794,8 @@ var Keyborg = class _Keyborg {
3797
3794
  }
3798
3795
  dispose() {
3799
3796
  var _a;
3800
- const current = (_a = this._win) == null ? undefined : _a.__keyborg;
3801
- if (current == null ? undefined : current.refs[this._id]) {
3797
+ const current = (_a = this._win) == null ? void 0 : _a.__keyborg;
3798
+ if (current == null ? void 0 : current.refs[this._id]) {
3802
3799
  delete current.refs[this._id];
3803
3800
  if (Object.keys(current.refs).length === 0) {
3804
3801
  current.core.dispose();
@@ -3818,7 +3815,7 @@ var Keyborg = class _Keyborg {
3818
3815
  */
3819
3816
  isNavigatingWithKeyboard() {
3820
3817
  var _a;
3821
- return !!((_a = this._core) == null ? undefined : _a.isNavigatingWithKeyboard);
3818
+ return !!((_a = this._core) == null ? void 0 : _a.isNavigatingWithKeyboard);
3822
3819
  }
3823
3820
  /**
3824
3821
  * @param callback - Called when the keyboard navigation state changes
@@ -3925,16 +3922,16 @@ function alreadyInScope(el) {
3925
3922
  if (el.focusVisible) {
3926
3923
  return true;
3927
3924
  }
3928
- return alreadyInScope(el === null || el === undefined ? undefined : el.parentElement);
3925
+ return alreadyInScope(el === null || el === void 0 ? void 0 : el.parentElement);
3929
3926
  }
3930
3927
 
3931
3928
  function useFocusVisible(options = {}) {
3932
3929
  const contextValue = useFluent();
3933
3930
  const scopeRef = React.useRef(null);
3934
3931
  var _options_targetDocument;
3935
- const targetDocument = (_options_targetDocument = options.targetDocument) !== null && _options_targetDocument !== undefined ? _options_targetDocument : contextValue.targetDocument;
3932
+ const targetDocument = (_options_targetDocument = options.targetDocument) !== null && _options_targetDocument !== void 0 ? _options_targetDocument : contextValue.targetDocument;
3936
3933
  React.useEffect(()=>{
3937
- if ((targetDocument === null || targetDocument === undefined ? undefined : targetDocument.defaultView) && scopeRef.current) {
3934
+ if ((targetDocument === null || targetDocument === void 0 ? void 0 : targetDocument.defaultView) && scopeRef.current) {
3938
3935
  return applyFocusVisiblePolyfill(scopeRef.current, targetDocument.defaultView);
3939
3936
  }
3940
3937
  }, [
@@ -3945,46 +3942,17 @@ function useFocusVisible(options = {}) {
3945
3942
  }
3946
3943
 
3947
3944
  /* !!! DO NOT EDIT !!! */ /* This file has been generated by the token pipeline */ const grey = {
3948
- '2': '#050505',
3949
- '4': '#0a0a0a',
3950
- '6': '#0f0f0f',
3951
- '8': '#141414',
3952
- '10': '#1a1a1a',
3953
- '12': '#1f1f1f',
3954
3945
  '14': '#242424',
3955
3946
  '16': '#292929',
3956
- '18': '#2e2e2e',
3957
3947
  '20': '#333333',
3958
- '22': '#383838',
3959
- '24': '#3d3d3d',
3960
3948
  '26': '#424242',
3961
- '28': '#474747',
3962
3949
  '30': '#4d4d4d',
3963
- '32': '#525252',
3964
3950
  '34': '#575757',
3965
- '36': '#5c5c5c',
3966
3951
  '38': '#616161',
3967
- '40': '#666666',
3968
- '42': '#6b6b6b',
3969
3952
  '44': '#707070',
3970
- '46': '#757575',
3971
- '48': '#7a7a7a',
3972
- '50': '#808080',
3973
- '52': '#858585',
3974
- '54': '#8a8a8a',
3975
- '56': '#8f8f8f',
3976
- '58': '#949494',
3977
- '60': '#999999',
3978
- '62': '#9e9e9e',
3979
- '64': '#a3a3a3',
3980
- '66': '#a8a8a8',
3981
- '68': '#adadad',
3982
3953
  '70': '#b3b3b3',
3983
- '72': '#b8b8b8',
3984
3954
  '74': '#bdbdbd',
3985
- '76': '#c2c2c2',
3986
3955
  '78': '#c7c7c7',
3987
- '80': '#cccccc',
3988
3956
  '82': '#d1d1d1',
3989
3957
  '84': '#d6d6d6',
3990
3958
  '86': '#dbdbdb',
@@ -3996,29 +3964,19 @@ function useFocusVisible(options = {}) {
3996
3964
  '98': '#fafafa'
3997
3965
  };
3998
3966
  const whiteAlpha = {
3999
- '5': 'rgba(255, 255, 255, 0.05)',
4000
3967
  '10': 'rgba(255, 255, 255, 0.1)',
4001
3968
  '20': 'rgba(255, 255, 255, 0.2)',
4002
- '30': 'rgba(255, 255, 255, 0.3)',
4003
3969
  '40': 'rgba(255, 255, 255, 0.4)',
4004
3970
  '50': 'rgba(255, 255, 255, 0.5)',
4005
- '60': 'rgba(255, 255, 255, 0.6)',
4006
3971
  '70': 'rgba(255, 255, 255, 0.7)',
4007
- '80': 'rgba(255, 255, 255, 0.8)',
4008
- '90': 'rgba(255, 255, 255, 0.9)'
4009
- };
3972
+ '80': 'rgba(255, 255, 255, 0.8)'};
4010
3973
  const blackAlpha = {
4011
3974
  '5': 'rgba(0, 0, 0, 0.05)',
4012
3975
  '10': 'rgba(0, 0, 0, 0.1)',
4013
3976
  '20': 'rgba(0, 0, 0, 0.2)',
4014
3977
  '30': 'rgba(0, 0, 0, 0.3)',
4015
3978
  '40': 'rgba(0, 0, 0, 0.4)',
4016
- '50': 'rgba(0, 0, 0, 0.5)',
4017
- '60': 'rgba(0, 0, 0, 0.6)',
4018
- '70': 'rgba(0, 0, 0, 0.7)',
4019
- '80': 'rgba(0, 0, 0, 0.8)',
4020
- '90': 'rgba(0, 0, 0, 0.9)'
4021
- };
3979
+ '50': 'rgba(0, 0, 0, 0.5)'};
4022
3980
  const white = '#ffffff';
4023
3981
  const black = '#000000';
4024
3982
  const darkRed = {
@@ -4994,15 +4952,12 @@ const createLightTheme = (brand)=>{
4994
4952
  };
4995
4953
 
4996
4954
  const brandWeb = {
4997
- 10: `#061724`,
4998
- 20: `#082338`,
4999
4955
  30: `#0a2e4a`,
5000
4956
  40: `#0c3b5e`,
5001
4957
  50: `#0e4775`,
5002
4958
  60: `#0f548c`,
5003
4959
  70: `#115ea3`,
5004
4960
  80: `#0f6cbd`,
5005
- 90: `#2886de`,
5006
4961
  100: `#479ef5`,
5007
4962
  110: `#62abf5`,
5008
4963
  120: `#77b7f7`,
@@ -5112,7 +5067,7 @@ const insertSheet = (tag, rule)=>{
5112
5067
  useHandleSSRStyleElements(targetDocument, styleTagId);
5113
5068
  useInsertionEffect(()=>{
5114
5069
  // The style element could already have been created during SSR - no need to recreate it
5115
- const ssrStyleElement = targetDocument === null || targetDocument === undefined ? undefined : targetDocument.getElementById(styleTagId);
5070
+ const ssrStyleElement = targetDocument === null || targetDocument === void 0 ? void 0 : targetDocument.getElementById(styleTagId);
5116
5071
  if (ssrStyleElement) {
5117
5072
  styleTag.current = ssrStyleElement;
5118
5073
  } else {
@@ -5126,7 +5081,7 @@ const insertSheet = (tag, rule)=>{
5126
5081
  }
5127
5082
  return ()=>{
5128
5083
  var _styleTag_current;
5129
- (_styleTag_current = styleTag.current) === null || _styleTag_current === undefined ? undefined : _styleTag_current.remove();
5084
+ (_styleTag_current = styleTag.current) === null || _styleTag_current === void 0 ? void 0 : _styleTag_current.remove();
5130
5085
  };
5131
5086
  }, [
5132
5087
  styleTagId,
@@ -5186,7 +5141,7 @@ const DEFAULT_RENDERER_ATTRIBUTES = {};
5186
5141
  const { styleTagId, rule } = useFluentProviderThemeStyleTag({
5187
5142
  theme: mergedTheme,
5188
5143
  targetDocument,
5189
- rendererAttributes: (_renderer_styleElementAttributes = renderer.styleElementAttributes) !== null && _renderer_styleElementAttributes !== undefined ? _renderer_styleElementAttributes : DEFAULT_RENDERER_ATTRIBUTES
5144
+ rendererAttributes: (_renderer_styleElementAttributes = renderer.styleElementAttributes) !== null && _renderer_styleElementAttributes !== void 0 ? _renderer_styleElementAttributes : DEFAULT_RENDERER_ATTRIBUTES
5190
5145
  });
5191
5146
  if (process.env.NODE_ENV !== 'production') {
5192
5147
  // eslint-disable-next-line react-hooks/rules-of-hooks
@@ -5293,7 +5248,7 @@ const FluentProvider = /*#__PURE__*/ React.forwardRef((props, ref)=>{
5293
5248
  FluentProvider.displayName = 'FluentProvider';
5294
5249
 
5295
5250
  function isNamedUnion(union) {
5296
- return union.name !== undefined;
5251
+ return union.name !== void 0;
5297
5252
  }
5298
5253
 
5299
5254
  const mono = "_mono_ouyit_1";
@@ -5301,11 +5256,7 @@ const literal = "_literal_ouyit_5";
5301
5256
  const style$2 = {
5302
5257
  mono: mono,
5303
5258
  literal: literal,
5304
- "type-kind": "_type-kind_ouyit_9",
5305
- "type-kind-tag": "_type-kind-tag_ouyit_12",
5306
- "type-kind-tag-small": "_type-kind-tag-small_ouyit_17",
5307
- "type-kind-tag-auto": "_type-kind-tag-auto_ouyit_24"
5308
- };
5259
+ "type-kind": "_type-kind_ouyit_9"};
5309
5260
 
5310
5261
  const Mono = ({ children, className }) => /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: mergeClasses(style$2["mono"], className), children });
5311
5262
  const Literal = ({ children }) => /* @__PURE__ */ jsxRuntimeExports.jsx(Mono, { className: style$2["literal"], children });
@@ -5418,7 +5369,6 @@ const TypeConfig = {
5418
5369
  type: "ref",
5419
5370
  optional: "value",
5420
5371
  sourceProperty: "ref",
5421
- default: "value",
5422
5372
  defaultValue: "value"
5423
5373
  },
5424
5374
  Enum: {
@@ -5431,7 +5381,6 @@ const TypeConfig = {
5431
5381
  },
5432
5382
  Union: {
5433
5383
  expression: "skip",
5434
- options: "skip",
5435
5384
  variants: "nested"
5436
5385
  },
5437
5386
  UnionVariant: {
@@ -5508,7 +5457,7 @@ function getPropertyRendering(type, key) {
5508
5457
  return action;
5509
5458
  }
5510
5459
 
5511
- const TreeNavigatorContext = createContext(undefined);
5460
+ const TreeNavigatorContext = createContext(void 0);
5512
5461
  function useTreeNavigatorOptional() {
5513
5462
  return useContext(TreeNavigatorContext);
5514
5463
  }
@@ -5520,9 +5469,7 @@ const style = {
5520
5469
  "type-ui-header": "_type-ui-header_pmg7n_22",
5521
5470
  "type-name": "_type-name_pmg7n_31",
5522
5471
  property: property,
5523
- "named-type-ref": "_named-type-ref_pmg7n_39",
5524
- "js-value": "_js-value_pmg7n_49"
5525
- };
5472
+ "named-type-ref": "_named-type-ref_pmg7n_39"};
5526
5473
 
5527
5474
  const InspectType = ({ entity }) => {
5528
5475
  return /* @__PURE__ */ jsxRuntimeExports.jsx(Mono, { className: style["inspect-type"], children: /* @__PURE__ */ jsxRuntimeExports.jsx(EntityProperties, { entity }) });
@@ -5572,7 +5519,7 @@ const ParentReference = ({ type }) => {
5572
5519
  case "Scalar":
5573
5520
  case "Model":
5574
5521
  case "Union":
5575
- if (type.name !== undefined) {
5522
+ if (type.name !== void 0) {
5576
5523
  return /* @__PURE__ */ jsxRuntimeExports.jsx(NamedTypeRef, { type });
5577
5524
  } else {
5578
5525
  return null;
@@ -5635,8 +5582,8 @@ const SimpleType = ({ type, children }) => {
5635
5582
  const EntityProperties = ({ entity: type }) => {
5636
5583
  const props = Object.entries(type).map(([key, value]) => {
5637
5584
  const action = getPropertyRendering(type, key);
5638
- if (action === undefined || action === "skip") {
5639
- return undefined;
5585
+ if (action === void 0 || action === "skip") {
5586
+ return void 0;
5640
5587
  }
5641
5588
  return /* @__PURE__ */ jsxRuntimeExports.jsx(EntityProperty, { name: key, value, action }, key);
5642
5589
  }).filter((x) => Boolean(x));
@@ -5658,7 +5605,7 @@ const EntityPropertyValue = ({ value, action }) => {
5658
5605
  const renderRef = action === "ref";
5659
5606
  return renderRef ? /* @__PURE__ */ jsxRuntimeExports.jsx(EntityReference, { entity: x }) : /* @__PURE__ */ jsxRuntimeExports.jsx(EntityUI, { entity: x });
5660
5607
  };
5661
- if (value === undefined) {
5608
+ if (value === void 0) {
5662
5609
  return null;
5663
5610
  } else if (value.entityKind) {
5664
5611
  return render(value);
@@ -1,6 +1,6 @@
1
1
  const manifest = {
2
2
  "version": "0.66.0",
3
- "commit": "3085652401574258f66dd0a909df96944bc49127"
3
+ "commit": "5d93e100c449f6bcf7fba1976364bd91dd032063"
4
4
  };
5
5
 
6
6
  export { manifest as default };
@@ -1 +1 @@
1
- {"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../src/react/common.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAC;AAC/C,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAG/C,eAAO,MAAM,IAAI,4BAA6B;IAAE,QAAQ,EAAE,GAAG,CAAC;IAAC,SAAS,CAAC,EAAE,MAAM,CAAA;CAAE,4CAElF,CAAC;AAEF,eAAO,MAAM,OAAO,EAAE,iBAAiB,CAAC;IAAE,QAAQ,EAAE,GAAG,CAAA;CAAE,CAExD,CAAC;AAEF,eAAO,MAAM,QAAQ,aAAc;IAAE,IAAI,EAAE,IAAI,CAAA;CAAE,4CAEhD,CAAC;AAEF,eAAO,MAAM,WAAW,mBAA6B;IAAE,IAAI,EAAE,IAAI,CAAC;IAAC,IAAI,CAAC,EAAE,OAAO,GAAG,MAAM,CAAA;CAAE,4CAM3F,CAAC"}
1
+ {"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../src/react/common.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAC;AAC/C,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAG/C,eAAO,MAAM,IAAI,GAAI,yBAAyB;IAAE,QAAQ,EAAE,GAAG,CAAC;IAAC,SAAS,CAAC,EAAE,MAAM,CAAA;CAAE,4CAElF,CAAC;AAEF,eAAO,MAAM,OAAO,EAAE,iBAAiB,CAAC;IAAE,QAAQ,EAAE,GAAG,CAAA;CAAE,CAExD,CAAC;AAEF,eAAO,MAAM,QAAQ,GAAI,UAAU;IAAE,IAAI,EAAE,IAAI,CAAA;CAAE,4CAEhD,CAAC;AAEF,eAAO,MAAM,WAAW,GAAI,gBAAyB;IAAE,IAAI,EAAE,IAAI,CAAC;IAAC,IAAI,CAAC,EAAE,OAAO,GAAG,MAAM,CAAA;CAAE,4CAM3F,CAAC"}