@nice2dev/ui-presentations 1.1.5 → 1.1.7

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 (64) hide show
  1. package/CHANGELOG.md +52 -0
  2. package/dist/__tests__/PresentationModel.test.d.ts +0 -1
  3. package/dist/__tests__/brandKit.test.d.ts +0 -1
  4. package/dist/__tests__/businessTemplates.test.d.ts +0 -1
  5. package/dist/__tests__/chartRenderer.test.d.ts +0 -1
  6. package/dist/__tests__/exportEngine.test.d.ts +0 -1
  7. package/dist/__tests__/i18n-locales.test.d.ts +0 -1
  8. package/dist/__tests__/puppetShow.test.d.ts +0 -1
  9. package/dist/__tests__/serialization.test.d.ts +0 -1
  10. package/dist/__tests__/setup.d.ts +0 -1
  11. package/dist/__tests__/slideAnimationEngine.test.d.ts +0 -1
  12. package/dist/__tests__/sprint24-presentations.test.d.ts +0 -1
  13. package/dist/collaborative/collaborativePresentation.d.ts +0 -1
  14. package/dist/components/NicePresentationEditor.d.ts +0 -1
  15. package/dist/components/NicePresentationPlayer.d.ts +0 -1
  16. package/dist/components/PresentationToolbar.d.ts +0 -1
  17. package/dist/components/SlideCanvas.d.ts +0 -1
  18. package/dist/components/SlidePropertyPanel.d.ts +0 -1
  19. package/dist/components/SlideThumbnailList.d.ts +0 -1
  20. package/dist/components/interactive/InteractiveButton.d.ts +0 -1
  21. package/dist/components/interactive/InteractiveCountdown.d.ts +0 -1
  22. package/dist/components/interactive/InteractivePoll.d.ts +0 -1
  23. package/dist/components/interactive/InteractiveQnA.d.ts +0 -1
  24. package/dist/components/interactive/InteractiveQuiz.d.ts +0 -1
  25. package/dist/components/interactive/index.d.ts +0 -1
  26. package/dist/core/PresentationModel.d.ts +0 -1
  27. package/dist/core/brandKit.d.ts +0 -1
  28. package/dist/core/chartRenderer.d.ts +0 -1
  29. package/dist/core/customTransitions.d.ts +0 -1
  30. package/dist/core/dashboardSlide.d.ts +0 -1
  31. package/dist/core/dataGridSlide.d.ts +0 -1
  32. package/dist/core/exportEngine.d.ts +0 -1
  33. package/dist/core/i18n.d.ts +0 -1
  34. package/dist/core/liveDataSlides.d.ts +0 -1
  35. package/dist/core/qrCodeSlide.d.ts +0 -1
  36. package/dist/core/querySlide.d.ts +0 -1
  37. package/dist/core/recordingMode.d.ts +0 -1
  38. package/dist/core/serialization.d.ts +0 -1
  39. package/dist/core/slideAnimationEngine.d.ts +0 -1
  40. package/dist/core/slideLibrary.d.ts +0 -1
  41. package/dist/core/versionHistory.d.ts +0 -1
  42. package/dist/hooks/usePresentationEditor.d.ts +0 -1
  43. package/dist/index.cjs +11 -11
  44. package/dist/index.d.ts +12 -13
  45. package/dist/index.mjs +1148 -485
  46. package/dist/puppetShow/gameEngineIntegration.d.ts +0 -1
  47. package/dist/puppetShow/index.d.ts +1 -2
  48. package/dist/puppetShow/puppetCharacter.d.ts +0 -1
  49. package/dist/puppetShow/puppetPlayer.d.ts +0 -1
  50. package/dist/puppetShow/puppetShowConverter.d.ts +0 -1
  51. package/dist/puppetShow/puppetShowTypes.d.ts +0 -1
  52. package/dist/puppetShow/puppetStage.d.ts +0 -1
  53. package/dist/puppetShow/puppetTimeline.d.ts +0 -1
  54. package/dist/templates/ArchitectureOverviewTemplate.d.ts +0 -1
  55. package/dist/templates/IncidentReportTemplate.d.ts +0 -1
  56. package/dist/templates/InvestorDeckTemplate.d.ts +0 -1
  57. package/dist/templates/OnboardingTemplate.d.ts +0 -1
  58. package/dist/templates/ProductPitchTemplate.d.ts +0 -1
  59. package/dist/templates/QuarterlyReportTemplate.d.ts +0 -1
  60. package/dist/templates/SprintReviewTemplate.d.ts +0 -1
  61. package/dist/templates/index.d.ts +6 -7
  62. package/dist/types/presentationTypes.d.ts +0 -1
  63. package/dist/ui-presentations.css +1 -1
  64. package/package.json +3 -3
package/CHANGELOG.md CHANGED
@@ -1,5 +1,57 @@
1
1
  # @nice2dev/ui-presentations — Changelog
2
2
 
3
+ ## 1.1.7
4
+
5
+ ### Patch Changes
6
+
7
+ - Close the three items left open in the 1.1.6 response to OmniVerk.
8
+
9
+ **Every value control works without state in the parent.** The `audit-controllable-state` gate
10
+ counted 87 value props that were required with no `default*`, so the control could not render from a
11
+ manifest without data. It now reports 0 and gates CI at `--max=0`. 48 controls gained `default*` props
12
+ through `useControllableState` (existing `value` + handler call sites behave as before); 33 read-only
13
+ data lists are optional with a stable empty default; 4 props paired with a handler only by name are
14
+ optional; `NiceWhiteboard` and `NiceMetricsDashboard` render an empty state until a session or
15
+ dashboard arrives. Additive API only — nothing renamed or removed.
16
+
17
+ - `NicePivotGrid.fields`, `NiceScheduler.events` and `NiceGitHooks.hooks` are controlled only together
18
+ with their change handler, as `NiceScheduler` already documented for `currentDate`/`view`. A bare
19
+ prop stays an initial value; prop plus handler now always wins (later prop updates used to be
20
+ ignored). `NiceGitHooks.onHookChange` is now called; `onHooksChange` and
21
+ `NiceLocaleManager.onTranslationsChange` are new.
22
+ - `NiceCodeEditor` / `NiceCodeDiffEditor` no longer report a value written from the prop back through
23
+ `onChange`, and call the latest handler rather than the one captured at mount.
24
+ - `NiceHtmlEditor` no longer rewrites its content on every render (React 19 compares the
25
+ `dangerouslySetInnerHTML` object, not its string), which moved the caret; the HTML source and
26
+ Markdown views can be closed again.
27
+ - Selections seeded once from the first item (access manager, automation/scene editors, git diff
28
+ viewer, ribbon, setup wizard) follow data that arrives after mount.
29
+ - `useControllableState`: new `fallbackValue` seed that never triggers the value/default clash warning;
30
+ two functional updates in one tick no longer lose the first; `onChange` is called with one argument
31
+ when there is no meta. `UseControllableStateOptions` is now a union type alias.
32
+
33
+ **`--nice-*` is the source of truth for design tokens.** Controls read only `--nice-*` (9,225 reads in
34
+ 339 files). The unprefixed names (`--color-primary`, `--bg-primary`, `--text-muted`, …) stay declared
35
+ as aliases pointing at the Nice tokens, so reading them works, but setting them no longer repaints Nice
36
+ controls. Apps that relied on that can import `@nice2dev/ui/css/legacy-bg-text-aliases.css` after
37
+ `style.css` (removed in 1.2), or set `--nice-color-primary` and friends directly. 13 tokens that were
38
+ read and never declared (`--color-danger`, `--text-on-primary`, `--color-white`, …) are defined; the
39
+ dark blocks define the canonical names, so `.nice-dark` on `<body>` no longer leaves them on light
40
+ values; `--nice-primary-bg` and `--nice-selected-bg` are a primary tint instead of falling through to
41
+ grey. New gate `audit-token-names`.
42
+
43
+ **Node ESM and `require()`.** `@nice2dev/spatial-core` imports from plain Node ESM (51 relative
44
+ specifiers gained extensions, enforced by `nodenext`), and so does `@nice2dev/ui-buildings`, which
45
+ failed through it. `require()` works for `ui-3d`, `ui-graphics` and `game-engine`. The package-exports
46
+ gate now loads every entry in both module systems.
47
+
48
+ **Hygiene.** Sources are prettier-formatted and CI gates on it; 640 stale `.d.ts` files were removed
49
+ from source trees (never published).
50
+
51
+ ## 1.1.6
52
+
53
+ No changes in this release.
54
+
3
55
  ## 1.1.5
4
56
 
5
57
  No changes in this release.
@@ -1,2 +1 @@
1
1
  export {};
2
- //# sourceMappingURL=PresentationModel.test.d.ts.map
@@ -1,2 +1 @@
1
1
  export {};
2
- //# sourceMappingURL=brandKit.test.d.ts.map
@@ -1,2 +1 @@
1
1
  export {};
2
- //# sourceMappingURL=businessTemplates.test.d.ts.map
@@ -1,2 +1 @@
1
1
  export {};
2
- //# sourceMappingURL=chartRenderer.test.d.ts.map
@@ -1,2 +1 @@
1
1
  export {};
2
- //# sourceMappingURL=exportEngine.test.d.ts.map
@@ -1,2 +1 @@
1
1
  export {};
2
- //# sourceMappingURL=i18n-locales.test.d.ts.map
@@ -3,4 +3,3 @@
3
3
  * @description Tests for the Puppet Show feature
4
4
  */
5
5
  export {};
6
- //# sourceMappingURL=puppetShow.test.d.ts.map
@@ -1,2 +1 @@
1
1
  export {};
2
- //# sourceMappingURL=serialization.test.d.ts.map
@@ -1 +0,0 @@
1
- //# sourceMappingURL=setup.d.ts.map
@@ -1,2 +1 @@
1
1
  export {};
2
- //# sourceMappingURL=slideAnimationEngine.test.d.ts.map
@@ -1,2 +1 @@
1
1
  export {};
2
- //# sourceMappingURL=sprint24-presentations.test.d.ts.map
@@ -204,4 +204,3 @@ export interface UseCollaborativePresentationOptions {
204
204
  createUndoManager?: (ydoc: YDoc, trackedTypes: unknown[]) => UndoManagerLike;
205
205
  }
206
206
  export declare function useCollaborativePresentation(options: UseCollaborativePresentationOptions): CollaborativePresentationContextValue;
207
- //# sourceMappingURL=collaborativePresentation.d.ts.map
@@ -21,4 +21,3 @@ export interface NicePresentationEditorProps {
21
21
  tutorial?: NiceComponentTutorial;
22
22
  }
23
23
  export declare const NicePresentationEditor: React.FC<NicePresentationEditorProps>;
24
- //# sourceMappingURL=NicePresentationEditor.d.ts.map
@@ -26,4 +26,3 @@ export interface NicePresentationPlayerProps {
26
26
  className?: string;
27
27
  }
28
28
  export declare const NicePresentationPlayer: React.FC<NicePresentationPlayerProps>;
29
- //# sourceMappingURL=NicePresentationPlayer.d.ts.map
@@ -12,4 +12,3 @@ export interface PresentationToolbarProps {
12
12
  className?: string;
13
13
  }
14
14
  export declare const PresentationToolbar: React.FC<PresentationToolbarProps>;
15
- //# sourceMappingURL=PresentationToolbar.d.ts.map
@@ -24,4 +24,3 @@ export interface SlideCanvasProps {
24
24
  className?: string;
25
25
  }
26
26
  export declare const SlideCanvas: React.FC<SlideCanvasProps>;
27
- //# sourceMappingURL=SlideCanvas.d.ts.map
@@ -9,4 +9,3 @@ export interface SlidePropertyPanelProps {
9
9
  className?: string;
10
10
  }
11
11
  export declare const SlidePropertyPanel: React.FC<SlidePropertyPanelProps>;
12
- //# sourceMappingURL=SlidePropertyPanel.d.ts.map
@@ -12,4 +12,3 @@ export interface SlideThumbnailListProps {
12
12
  className?: string;
13
13
  }
14
14
  export declare const SlideThumbnailList: React.FC<SlideThumbnailListProps>;
15
- //# sourceMappingURL=SlideThumbnailList.d.ts.map
@@ -17,4 +17,3 @@ export interface InteractiveButtonProps {
17
17
  }
18
18
  export declare const InteractiveButton: React.FC<InteractiveButtonProps>;
19
19
  export default InteractiveButton;
20
- //# sourceMappingURL=InteractiveButton.d.ts.map
@@ -17,4 +17,3 @@ export interface InteractiveCountdownProps {
17
17
  }
18
18
  export declare const InteractiveCountdown: React.FC<InteractiveCountdownProps>;
19
19
  export default InteractiveCountdown;
20
- //# sourceMappingURL=InteractiveCountdown.d.ts.map
@@ -21,4 +21,3 @@ export interface InteractivePollProps {
21
21
  }
22
22
  export declare const InteractivePoll: React.FC<InteractivePollProps>;
23
23
  export default InteractivePoll;
24
- //# sourceMappingURL=InteractivePoll.d.ts.map
@@ -27,4 +27,3 @@ export interface InteractiveQnAProps {
27
27
  }
28
28
  export declare const InteractiveQnA: React.FC<InteractiveQnAProps>;
29
29
  export default InteractiveQnA;
30
- //# sourceMappingURL=InteractiveQnA.d.ts.map
@@ -17,4 +17,3 @@ export interface InteractiveQuizProps {
17
17
  }
18
18
  export declare const InteractiveQuiz: React.FC<InteractiveQuizProps>;
19
19
  export default InteractiveQuiz;
20
- //# sourceMappingURL=InteractiveQuiz.d.ts.map
@@ -14,4 +14,3 @@ export { InteractiveQuiz } from './InteractiveQuiz';
14
14
  export { InteractiveCountdown } from './InteractiveCountdown';
15
15
  export { InteractiveQnA } from './InteractiveQnA';
16
16
  export type { ButtonContent, ButtonAction, PollContent, PollOption, QuizContent, QuizAnswer, CountdownContent, QnAContent, QnAQuestion, } from '../../types/presentationTypes';
17
- //# sourceMappingURL=index.d.ts.map
@@ -30,4 +30,3 @@ export declare class PresentationModel {
30
30
  moveElement(slideId: string, elementId: string, position: ElementPosition): void;
31
31
  setTheme(theme: _PresentationTheme): void;
32
32
  }
33
- //# sourceMappingURL=PresentationModel.d.ts.map
@@ -49,4 +49,3 @@ export declare function removeBrandKit(doc: NicePresentationDocument, kitId: str
49
49
  export declare const BRAND_KIT_NICE2DEV: BrandKit;
50
50
  export declare const BRAND_KIT_CORPORATE: BrandKit;
51
51
  export declare const BRAND_KIT_STARTUP: BrandKit;
52
- //# sourceMappingURL=brandKit.d.ts.map
@@ -1,4 +1,3 @@
1
1
  import { ChartContent } from '../types/presentationTypes';
2
2
  /** Generate SVG markup for a chart element. */
3
3
  export declare function renderChartSvg(chart: ChartContent, width: number, height: number): string;
4
- //# sourceMappingURL=chartRenderer.d.ts.map
@@ -111,4 +111,3 @@ declare const _default: {
111
111
  BUILT_IN_TRANSITIONS: CustomTransitionConfig[];
112
112
  };
113
113
  export default _default;
114
- //# sourceMappingURL=customTransitions.d.ts.map
@@ -225,4 +225,3 @@ declare const _default: {
225
225
  formatKPIValue: typeof formatKPIValue;
226
226
  };
227
227
  export default _default;
228
- //# sourceMappingURL=dashboardSlide.d.ts.map
@@ -251,4 +251,3 @@ declare const _default: {
251
251
  createEmployeeDataGrid: typeof createEmployeeDataGrid;
252
252
  };
253
253
  export default _default;
254
- //# sourceMappingURL=dataGridSlide.d.ts.map
@@ -1,4 +1,3 @@
1
1
  import { NicePresentationDocument } from '../types/presentationTypes';
2
2
  /** Export a full self-contained HTML presentation. */
3
3
  export declare function exportToHtml(doc: NicePresentationDocument): string;
4
- //# sourceMappingURL=exportEngine.d.ts.map
@@ -6,4 +6,3 @@ export interface NiceI18nProviderProps {
6
6
  }
7
7
  export declare const NiceI18nProvider: React.FC<NiceI18nProviderProps>;
8
8
  export declare function useNiceTranslation(): NiceTranslateFn;
9
- //# sourceMappingURL=i18n.d.ts.map
@@ -233,4 +233,3 @@ declare const _default: {
233
233
  formatValue: typeof formatValue;
234
234
  };
235
235
  export default _default;
236
- //# sourceMappingURL=liveDataSlides.d.ts.map
@@ -307,4 +307,3 @@ declare const _default: {
307
307
  createMultiQRSlide: typeof createMultiQRSlide;
308
308
  };
309
309
  export default _default;
310
- //# sourceMappingURL=qrCodeSlide.d.ts.map
@@ -192,4 +192,3 @@ declare const _default: {
192
192
  createKQLQuerySlide: typeof createKQLQuerySlide;
193
193
  };
194
194
  export default _default;
195
- //# sourceMappingURL=querySlide.d.ts.map
@@ -135,4 +135,3 @@ declare const _default: {
135
135
  RecordingIndicator: typeof RecordingIndicator;
136
136
  };
137
137
  export default _default;
138
- //# sourceMappingURL=recordingMode.d.ts.map
@@ -9,4 +9,3 @@ export interface ParseError {
9
9
  }
10
10
  export declare function parseNdpJson(json: string): ParseResult | ParseError;
11
11
  export declare function stringifyNdpJson(doc: NicePresentationDocument, pretty?: boolean): string;
12
- //# sourceMappingURL=serialization.d.ts.map
@@ -16,4 +16,3 @@ export interface TransitionState {
16
16
  }
17
17
  export declare function computeTransitionState(effect: string, progress: number, // 0→1
18
18
  direction?: string): TransitionState;
19
- //# sourceMappingURL=slideAnimationEngine.d.ts.map
@@ -307,4 +307,3 @@ export declare class SlideLibraryManager {
307
307
  importLibrary(json: string): void;
308
308
  }
309
309
  export default SlideLibraryManager;
310
- //# sourceMappingURL=slideLibrary.d.ts.map
@@ -230,4 +230,3 @@ export declare class PresentationVersionManager {
230
230
  dispose(): void;
231
231
  }
232
232
  export default PresentationVersionManager;
233
- //# sourceMappingURL=versionHistory.d.ts.map
@@ -31,4 +31,3 @@ export interface UsePresentationEditorReturn {
31
31
  model: PresentationModel;
32
32
  }
33
33
  export declare function usePresentationEditor(initialDoc?: NicePresentationDocument): UsePresentationEditorReturn;
34
- //# sourceMappingURL=usePresentationEditor.d.ts.map