@smartsoft001-mobilems/claude-plugins 2.114.0 → 2.115.0
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.
- package/package.json +1 -1
- package/plugins/mobilems/.claude-plugin/plugin.json +1 -1
- package/plugins/mobilems/skills/mobilems-objects/SKILL.md +1 -1
- package/plugins/mobilems/skills/mobilems-objects/references/lib-contents.md +2 -2
- package/plugins/mobilems/skills/mobilems-project-init/references/shared-lib.md +18 -13
- package/plugins/mobilems/skills/mobilems-search/SKILL.md +6 -6
package/package.json
CHANGED
|
@@ -83,7 +83,7 @@ README) — never a per-module copy. `scripts/verify-module.sh` fails the run on
|
|
|
83
83
|
The cross-cutting rules live in `mobilems-project-init`
|
|
84
84
|
`references/qa-hardening.md`; these are the objects-specific ones:
|
|
85
85
|
|
|
86
|
-
- **Search debounce.** The panel full-text search (`app-objects-searchbar variant="panel"`, a
|
|
86
|
+
- **Search debounce.** The panel full-text search (`app-objects-searchbar variant="panel"`, a standalone component: a live debounced search through `searchEvent` / `closeEvent`, an `autofocus` input, never navigates - it does not extend `SearchbarBaseComponent`, which navigates to the search route) must
|
|
87
87
|
re-emit through a handler with `@debounce(250)` (`lodash-decorators`) — without it every keystroke
|
|
88
88
|
hits the API. Collections and news filters already do this; keep the modules consistent.
|
|
89
89
|
- **List page:** show the total result count (`facade.totalCount()`) and add the shared
|
|
@@ -20,8 +20,8 @@ libs/museum-objects/
|
|
|
20
20
|
└── lib/
|
|
21
21
|
├── objects.module.ts # MuseumObjectsModule (references/module-and-routes.md)
|
|
22
22
|
├── objects.routes.ts
|
|
23
|
-
├── components/ # description, filter-input (
|
|
24
|
-
│ # menu, objects-searchbar (
|
|
23
|
+
├── components/ # description, filter-input (may extend FilterInputBaseComponent - its API is a subset), high-def-request-modal,
|
|
24
|
+
│ # menu, objects-searchbar (standalone, live search), tabs/*
|
|
25
25
|
├── pages/ # list (ListComponent), item (ItemComponent) + index
|
|
26
26
|
└── services/ # objects.service.ts + index
|
|
27
27
|
```
|
|
@@ -58,10 +58,15 @@ and the `widget` container with its foundation widgets. The logic of `calendar`,
|
|
|
58
58
|
`carousel`, the three home carousels, `slider`, `scroll-top`, `gallery` (+ fullscreen dialog),
|
|
59
59
|
`confirmation-modal`, `newsletter-modal`, `map`, the `filter-input` / `filter-date-input` /
|
|
60
60
|
`filter-custom-dictionary-input` / `filter-dictionary-input` family, `searchbar`, `catalog-toolbar`,
|
|
61
|
-
`catalog-filter-bar`, `theme-tags-filter
|
|
61
|
+
`catalog-filter-bar`, `theme-tags-filter`, `select-checkbox`, `dropdown`, `tabs`, `wcag`, `breadcrumbs`,
|
|
62
|
+
`breadcrumbs-bar` and `menu-item` is a framework base now (see
|
|
62
63
|
"Framework now → bases"): generate each as `extends …BaseComponent` (`scroll-top` extends `ScrollTopComponent`,
|
|
63
64
|
which has no `Base` suffix) and write only the museum's own template and styles — the framework
|
|
64
|
-
ships no templates.
|
|
65
|
+
ships no templates. `dropdown`, `tabs`, `wcag`, `breadcrumbs`, `breadcrumbs-bar` and `menu-item` are
|
|
66
|
+
the shared-lib components that extend `DropdownBaseComponent`, `TabsBaseComponent`, `WcagBaseComponent`,
|
|
67
|
+
`BreadcrumbsBaseComponent`, `BreadcrumbsBarBaseComponent` and `MenuItemBaseComponent`; `category-dropdown`
|
|
68
|
+
and other feature-lib look-alikes are not bases. `in-page-anchors` is not generated: use the framework
|
|
69
|
+
`InPageAnchorsDirective` (`[smartInPageAnchors]`). The `app` shell and `skip-links` are
|
|
65
70
|
framework components (`smart-mobilems-app`, `smart-mobilems-skip-links`) — do not copy them.
|
|
66
71
|
|
|
67
72
|
> Trust the script over this table for the **leaf** components (the grid/list cards and the
|
|
@@ -112,20 +117,20 @@ files duplicate exports that now exist; copying those is the single most common
|
|
|
112
117
|
|
|
113
118
|
Framework now — do **not** generate (import from `@smartsoft001-mobilems/angular`):
|
|
114
119
|
|
|
115
|
-
| Kind | Framework exports
|
|
116
|
-
| ------------ |
|
|
117
|
-
| environment | `createMobilemsEnvironment`, `MOBILEMS_ENVIRONMENT`, `EnvironmentService`
|
|
118
|
-
| pipes | `altText`, `fileUrl`, `backgroundUrl`, `plainText`, `stripAnchors`, `capitalize`
|
|
119
|
-
| tools | `classifyLink`, `isInternalLink`, `normalizeUrl`, `stripHtml`, `formatNamedEntries`, `normalizeSearchText`, `newTabText`, `pageToOffset`, `decodeHtmlEntities`, `ElementIdSequence`, `createSafeTimeouts`, `photoFileName`/`urlExtension`, `widgetImageUrl`, `overflowingTags`, `themeTagKey`, `themeTagsLayout`, `THEME_TAGS_VISIBLE_LIMIT`
|
|
120
|
-
| directives | `a[smartExternalLink]`, `[smartExternalLinks]`, `[smartFocusTrap]`, `[smartTruncatedTitle]` (references use `app…` — rename the attributes)
|
|
121
|
-
| services | `ConfirmationModalService`, `ExternalLinkConfirmationService`, `FilterPersistenceService`, `OrientationService`, `WcagChangesService`, `LineHeightService`, `BreadcrumbsService`, `ContactService`, `DataService`, `MuseumSeoService`
|
|
122
|
-
| interceptors | `LanguageInterceptor`, `PreviewAuthInterceptor`, `SsrTimeoutInterceptor`, `DedupeRequestInterceptor`
|
|
123
|
-
| bases | `CalendarBaseComponent`, `PaginationDotsBaseComponent`, `PaginationBaseComponent`, `CarouselBaseComponent`, `PartnersCarouselBaseComponent`, `NewObjectsCarouselBaseComponent`, `ArticlesCarouselBaseComponent`, `SliderBaseComponent` (+ `ISliderOptions`; `ScrollTopComponent` is server-guarded), `GalleryBaseComponent`, `GalleryFullscreenDialogBaseComponent` (`GalleryFullscreenBaseComponent` is `@deprecated`), `ConfirmationModalBaseComponent`, `NewsletterModalBaseComponent`, `MapBaseComponent`, `FilterInputBaseComponent`, `FilterDateInputBaseComponent`, `FilterCustomDictionaryInputBaseComponent`, `FilterDictionaryInputBaseComponent` (inline tree, `source`, paging), `ThemeTagsFilterBaseComponent`, `CatalogFilterBarBaseComponent`, `CatalogToolbarBaseComponent`, `SearchbarBaseComponent`, `SelectCheckboxBaseComponent` (+ `ISelectionHooks`) |
|
|
124
|
-
| SSR tools | `injectServerResponseInit`, `appendPreloadLinks` (image preload `Link` headers)
|
|
120
|
+
| Kind | Framework exports |
|
|
121
|
+
| ------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
122
|
+
| environment | `createMobilemsEnvironment`, `MOBILEMS_ENVIRONMENT`, `EnvironmentService` |
|
|
123
|
+
| pipes | `altText`, `fileUrl`, `backgroundUrl`, `plainText`, `stripAnchors`, `capitalize` |
|
|
124
|
+
| tools | `classifyLink`, `isInternalLink`, `normalizeUrl`, `stripHtml`, `formatNamedEntries`, `normalizeSearchText`, `newTabText`, `pageToOffset`, `decodeHtmlEntities`, `ElementIdSequence`, `createSafeTimeouts`, `photoFileName`/`urlExtension`, `widgetImageUrl`, `overflowingTags`, `themeTagKey`, `themeTagsLayout`, `THEME_TAGS_VISIBLE_LIMIT`, `resolveMenuItemTarget`, `isNavigableMenuItem` (+ `MenuItemTarget`) |
|
|
125
|
+
| directives | `a[smartExternalLink]`, `[smartExternalLinks]`, `[smartFocusTrap]`, `[smartTruncatedTitle]`, `[smartInPageAnchors]` (`InPageAnchorsDirective`; references use `app…` — rename the attributes) |
|
|
126
|
+
| services | `ConfirmationModalService`, `ExternalLinkConfirmationService`, `FilterPersistenceService`, `OrientationService`, `WcagChangesService`, `LineHeightService`, `BreadcrumbsService`, `ContactService`, `DataService`, `MuseumSeoService` |
|
|
127
|
+
| interceptors | `LanguageInterceptor`, `PreviewAuthInterceptor`, `SsrTimeoutInterceptor`, `DedupeRequestInterceptor` |
|
|
128
|
+
| bases | `CalendarBaseComponent`, `PaginationDotsBaseComponent`, `PaginationBaseComponent`, `CarouselBaseComponent`, `PartnersCarouselBaseComponent`, `NewObjectsCarouselBaseComponent`, `ArticlesCarouselBaseComponent`, `SliderBaseComponent` (+ `ISliderOptions`; `ScrollTopComponent` is server-guarded), `GalleryBaseComponent`, `GalleryFullscreenDialogBaseComponent` (`GalleryFullscreenBaseComponent` is `@deprecated`), `ConfirmationModalBaseComponent`, `NewsletterModalBaseComponent`, `MapBaseComponent`, `FilterInputBaseComponent`, `FilterDateInputBaseComponent`, `FilterCustomDictionaryInputBaseComponent`, `FilterDictionaryInputBaseComponent` (inline tree, `source`, paging), `ThemeTagsFilterBaseComponent`, `CatalogFilterBarBaseComponent`, `CatalogToolbarBaseComponent`, `SearchbarBaseComponent`, `SelectCheckboxBaseComponent` (+ `ISelectionHooks`), `DropdownBaseComponent`, `TabsBaseComponent`, `WcagBaseComponent` (+ `WCAG_OPTION_GROUPS`), `BreadcrumbsBaseComponent`, `BreadcrumbsBarBaseComponent`, `MenuItemBaseComponent` |
|
|
129
|
+
| SSR tools | `injectServerResponseInit`, `appendPreloadLinks` (image preload `Link` headers) |
|
|
125
130
|
|
|
126
131
|
What stays in the app lib: the **template and styles** of every base above — the museum keeps its
|
|
127
132
|
own HTML and Tailwind classes (the filter inputs, searchbar, catalog toolbar and filter bar, theme tags and select
|
|
128
|
-
checkbox are logic only — extend the base, write the markup yourself; e.g. the confirmation-modal component is markup over `ConfirmationModalBaseComponent` /
|
|
133
|
+
checkbox, dropdown, tabs, wcag panel, breadcrumbs and menu item are logic only — extend the base, write the markup yourself; e.g. the confirmation-modal component is markup over `ConfirmationModalBaseComponent` /
|
|
129
134
|
`ConfirmationModalService`), the `leaflet` dependency (`MapBaseComponent` asks the subclass for
|
|
130
135
|
`loadLeaflet()`), `truncateHtml` and any museum-only tools. `local-storage`, `configs-cache`, `not-found-content` are gone: language lives in
|
|
131
136
|
the framework `TranslationService`, the config cache in `ConfigsFacade.init()`.
|
|
@@ -28,12 +28,12 @@ skeleton; build the foundation with `mobilems-project-init` first.
|
|
|
28
28
|
`node_modules/@smartsoft001-mobilems/angular/README.md`)
|
|
29
29
|
2. `libs/shared/angular/README.md` — the app's own shared lib
|
|
30
30
|
|
|
31
|
-
| Do not hand-roll | Use
|
|
32
|
-
| --------------------- |
|
|
33
|
-
| a tab strip | `TabsComponent` / `Tab` from the shared lib (the page already imports it) |
|
|
34
|
-
| result cards | the module's own list-item components (`objects-list-item`, news/collection cards)
|
|
35
|
-
| "next page" behaviour | the shared `NextPageComponent`, same pattern as the module lists
|
|
36
|
-
| a search input | `
|
|
31
|
+
| Do not hand-roll | Use |
|
|
32
|
+
| --------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
33
|
+
| a tab strip | `TabsComponent` / `Tab` from the shared lib (the page already imports it; logic: `TabsBaseComponent`, the museum keeps its own template) |
|
|
34
|
+
| result cards | the module's own list-item components (`objects-list-item`, news/collection cards) |
|
|
35
|
+
| "next page" behaviour | the shared `NextPageComponent`, same pattern as the module lists |
|
|
36
|
+
| a search input | the shared `searchbar` (logic: `SearchbarBaseComponent`, navigates to the search route; the museum keeps its own template); `app-objects-searchbar` is standalone and emits a live search instead |
|
|
37
37
|
|
|
38
38
|
Forking a result card for search is the classic mistake: the card then drifts
|
|
39
39
|
from the module's list and the museum ends up with two visually different
|