xmlui 0.9.19 → 0.9.21

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.
Files changed (35) hide show
  1. package/dist/{apiInterceptorWorker-BH8WAcl0.mjs → apiInterceptorWorker-7aKQ2rBj.mjs} +1 -1
  2. package/dist/{index-KE5HIbCX.mjs → index-B3CWFAxa.mjs} +1795 -2065
  3. package/dist/index.css +1892 -690
  4. package/dist/{lint-Cd70ckJ6.mjs → lint-EcgF-9Wr.mjs} +22 -46
  5. package/dist/scripts/src/components/ComponentProvider.js +16 -24
  6. package/dist/scripts/src/components/DropdownMenu/DropdownMenu.js +3 -1
  7. package/dist/scripts/src/components/DropdownMenu/DropdownMenuNative.js +10 -2
  8. package/dist/scripts/src/components/Form/FormContext.js +4 -0
  9. package/dist/scripts/src/components/Form/FormNative.js +6 -4
  10. package/dist/scripts/src/components/Form/formActions.js +2 -1
  11. package/dist/scripts/src/components/FormItem/FormItemNative.js +7 -0
  12. package/dist/scripts/src/components/Icon/MoonIcon.js +10 -0
  13. package/dist/scripts/src/components/Icon/StarsIcon.js +10 -0
  14. package/dist/scripts/src/components/IconProvider.js +4 -1
  15. package/dist/scripts/src/components/InspectButton/InspectButton.js +34 -0
  16. package/dist/scripts/src/components/ToneChangerButton/ToneChangerButton.js +1 -1
  17. package/dist/scripts/src/components-core/InspectorContext.js +86 -21
  18. package/dist/scripts/src/components-core/rendering/Container.js +1 -6
  19. package/dist/style.css +1837 -631
  20. package/dist/xmlui-metadata.mjs +1283 -1438
  21. package/dist/xmlui-metadata.umd.js +1282 -1437
  22. package/dist/xmlui-parser.mjs +17 -17
  23. package/dist/xmlui-standalone.umd.js +4063 -3150
  24. package/dist/xmlui.d.ts +1 -1
  25. package/dist/xmlui.mjs +1 -1
  26. package/package.json +2 -2
  27. package/dist/scripts/src/components/Alert/Alert.js +0 -61
  28. package/dist/scripts/src/components/Alert/AlertNative.js +0 -8
  29. package/dist/scripts/src/components/ButtonGroup/ButtonGroup.js +0 -55
  30. package/dist/scripts/src/components/ButtonGroup/ButtonGroupNative.js +0 -8
  31. package/dist/scripts/src/components/OffCanvas/OffCanvas.js +0 -57
  32. package/dist/scripts/src/components/OffCanvas/OffCanvasNative.js +0 -48
  33. package/dist/scripts/src/components/StateViewer/StateViewerNative.js +0 -19
  34. package/dist/scripts/src/components/SubNavPanel/SubNavPanel.js +0 -22
  35. package/dist/scripts/src/components/SubNavPanel/SubNavPanelNative.js +0 -9
@@ -56,14 +56,12 @@ const ScriptingSourceTree_1 = require("../../abstractions/scripting/ScriptingSou
56
56
  const containers_1 = require("../abstractions/containers");
57
57
  const AppContext_1 = require("../AppContext");
58
58
  const buildProxy_1 = require("../rendering/buildProxy");
59
- const DebugViewProvider_1 = require("../DebugViewProvider");
60
59
  const process_statement_async_1 = require("../script-runner/process-statement-async");
61
60
  const process_statement_sync_1 = require("../script-runner/process-statement-sync");
62
61
  const extractParam_1 = require("../utils/extractParam");
63
62
  const hooks_1 = require("../utils/hooks");
64
63
  const misc_1 = require("../utils/misc");
65
64
  const statementUtils_1 = require("../utils/statementUtils");
66
- const StateViewerNative_1 = require("../../components/StateViewer/StateViewerNative");
67
65
  const renderChild_1 = require("./renderChild");
68
66
  const ThemeContext_1 = require("../theming/ThemeContext");
69
67
  const LoaderComponent_1 = require("../LoaderComponent");
@@ -521,9 +519,6 @@ exports.Container = (0, react_1.memo)((0, react_1.forwardRef)(function Container
521
519
  const uidInfo = {};
522
520
  const thisUidInfoRef = (0, react_1.useRef)({});
523
521
  const uidInfoRef = node.uses === undefined ? parentUidInfoRef : thisUidInfoRef;
524
- const debugContext = (0, DebugViewProvider_1.useDebugView)();
525
- const stateViewProps = debugContext === null || debugContext === void 0 ? void 0 : debugContext.stateViewOptions;
526
- const showContainer = stateViewProps && debugContext.displayStateView;
527
522
  const renderedChildren = stableRenderChild(node.children, layoutContextRef === null || layoutContextRef === void 0 ? void 0 : layoutContextRef.current, parentRenderContext, uidInfoRef, ref);
528
523
  const renderedLoaders = renderLoaders({
529
524
  uidInfo,
@@ -545,7 +540,7 @@ exports.Container = (0, react_1.memo)((0, react_1.forwardRef)(function Container
545
540
  const containerContent = ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [renderedLoaders, !!children && (0, react_1.isValidElement)(renderedChildren)
546
541
  ? (0, react_1.cloneElement)(renderedChildren, null, children)
547
542
  : renderedChildren] }));
548
- return ((0, jsx_runtime_1.jsxs)(react_1.Fragment, { children: [showContainer && ((0, jsx_runtime_1.jsx)(StateViewerNative_1.StateViewer, { state: componentState, showBoundary: stateViewProps === null || stateViewProps === void 0 ? void 0 : stateViewProps.showBoundary, blink: stateViewProps === null || stateViewProps === void 0 ? void 0 : stateViewProps.blink, children: containerContent })), !showContainer && containerContent] }, node.uid
543
+ return ((0, jsx_runtime_1.jsx)(react_1.Fragment, { children: containerContent }, node.uid
549
544
  ? `${resolvedKey}>${(0, extractParam_1.extractParam)(componentState, node.uid, appContext, true)}`
550
545
  : undefined));
551
546
  }));